git: d30d5dfae517 - main - Uses/gssapi.mk: Improve base Kerberos detection

From: Lexi Winter <ivy_at_FreeBSD.org>
Date: Mon, 11 Aug 2025 12:15:00 UTC
The branch main has been updated by ivy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d30d5dfae517a74a4a9e2a22e1cf110594bcb43d

commit d30d5dfae517a74a4a9e2a22e1cf110594bcb43d
Author:     Lexi Winter <ivy@FreeBSD.org>
AuthorDate: 2025-08-11 12:10:47 +0000
Commit:     Lexi Winter <ivy@FreeBSD.org>
CommitDate: 2025-08-11 12:11:41 +0000

    Uses/gssapi.mk: Improve base Kerberos detection
    
    We can't check for /usr/libexec/krb5kdc to determine if base uses
    MIT Kerberos, because this is part of the kerberos-kdc package and
    might not be installed.  Instead, pick a pkgconfig file which is
    only installed with MIT: /usr/libdata/pkgconfig/mit-krb5.pc.
    
    Reviewed by:            des, cy
    Approved by:            cy (ports)
    Differential Revision:  https://reviews.freebsd.org/D51841
---
 Mk/Uses/gssapi.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Mk/Uses/gssapi.mk b/Mk/Uses/gssapi.mk
index 36fb72326868..b419a8fe27ff 100644
--- a/Mk/Uses/gssapi.mk
+++ b/Mk/Uses/gssapi.mk
@@ -86,7 +86,7 @@ _local:=	${_A}
 .      if ${SSL_DEFAULT} != base
 IGNORE=	You are using OpenSSL from ports and have selected GSSAPI from base, please select another GSSAPI value
 .      endif
-.      if exists(/usr/libexec/krb5kdc)
+.      if exists(/usr/libdata/pkgconfig/mit-krb5.pc)
          # Base has MIT KRB5 installed
 KRB5_HOME?=	/usr
 GSSAPIBASEDIR=	${KRB5_HOME}