git: 512e446a8520 - main - net/samba420: Add support for MIT KRB5 in base

From: Cy Schubert <cy_at_FreeBSD.org>
Date: Mon, 21 Jul 2025 22:17:05 UTC
The branch main has been updated by cy:

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

commit 512e446a85207552add46105a630bc3fc497a9e3
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2025-07-21 21:27:51 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2025-07-21 22:16:54 +0000

    net/samba420: Add support for MIT KRB5 in base
    
    FreeBSD 15 will ship with MIT KRB5 in base. Detect this accordingly.
    
    PR:             287597
    exp-run by:     antoine
---
 net/samba420/Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/net/samba420/Makefile b/net/samba420/Makefile
index 42e525f6bb3f..68e4623196b2 100644
--- a/net/samba420/Makefile
+++ b/net/samba420/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=			${SAMBA4_BASENAME}420
 PORTVERSION=			${SAMBA4_VERSION}
-PORTREVISION=			7
+PORTREVISION=			8
 CATEGORIES?=			net
 MASTER_SITES=			SAMBA/samba/stable SAMBA/samba/rc
 DISTNAME=			${SAMBA4_DISTNAME}
@@ -368,6 +368,12 @@ GPGME_CONFIGURE_WITH=		gpgme
 GPGME_LIB_DEPENDS=		libgpgme.so:security/gpgme
 GPGME_RUN_DEPENDS=		${PYTHON_PKGNAMEPREFIX}gpg>=2.0.0:security/py-gpg@${PY_FLAVOR}
 
+.if exists(/usr/libexec/krb5kdc)
+GSSAPI_BUILTIN_USES=		gssapi
+GSSAPI_MIT_CONFIGURE_ON=	--with-system-mitkrb5 ${GSSAPIBASEDIR} \
+				--with-system-mitkdc=${GSSAPIBASEDIR}/libexec/krb5kdc
+.endif
+
 GSSAPI_BUILTIN_BUILD_DEPENDS=	p5-JSON>=4.0:converters/p5-JSON
 
 GSSAPI_MIT_CONFIGURE_ON=	--with-system-mitkrb5 ${GSSAPIBASEDIR} \