summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2025-07-19 22:53:58 -0700
committerCy Schubert <cy@FreeBSD.org>2025-07-20 06:31:28 -0700
commitc368214c71bb02e5938ce3dcbee28712cc2c7d66 (patch)
tree9dd3ac953e2b38fe6e8a58d74da4b1562aa6bb5d /security
parentMk/Uses/gssapi.mk: Add support for MIT KRB5 in base (diff)
security/cyrus-sasl2-saslauthd: 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
Diffstat (limited to 'security')
-rw-r--r--security/cyrus-sasl2-saslauthd/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/security/cyrus-sasl2-saslauthd/Makefile b/security/cyrus-sasl2-saslauthd/Makefile
index 6c922264b12d..41c6027c54d7 100644
--- a/security/cyrus-sasl2-saslauthd/Makefile
+++ b/security/cyrus-sasl2-saslauthd/Makefile
@@ -1,4 +1,4 @@
-PORTREVISION= 2
+PORTREVISION= 3
PKGNAMESUFFIX= -saslauthd
COMMENT= SASL authentication server for cyrus-sasl2
@@ -53,7 +53,12 @@ OPTIONS_DEFAULT+= GSSAPI_BASE
OPTIONS_RADIO_GSSAPI+= GSSAPI_HEIMDAL GSSAPI_MIT
GSSAPI_BASE_USES= gssapi:base
GSSAPI_BASE_CONFIGURE_ON= --enable-gssapi="${GSSAPIBASEDIR}" \
- --with-gss_impl=heimdal
+
+.if exists(/usr/libexec/krb5kdc)
+GSSAPI_BASE_CONFIGURE_ON+= --with-gss_impl=mit
+.else
+GSSAPI_BASE_CONFIGURE_ON+= --with-gss_impl=heimdal
+.endif
GSSAPI_HEIMDAL_USES= gssapi:heimdal,flags
GSSAPI_HEIMDAL_CONFIGURE_ON= --enable-gssapi="${GSSAPIBASEDIR}" \
--with-gss_impl=heimdal