summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2025-07-21 15:53:07 -0700
committerCy Schubert <cy@FreeBSD.org>2025-07-21 15:58:01 -0700
commit2a324f85f0fced3fb291232a9e5d2349c95a005c (patch)
tree26025cc5e683d7bd8bf60918f41c086547b478a3
parentnet/samba420: Add support for MIT KRB5 in base (diff)
mail/cyrus-imapd25: 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
-rw-r--r--mail/cyrus-imapd25/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/mail/cyrus-imapd25/Makefile b/mail/cyrus-imapd25/Makefile
index 2fd853795ef5..4644b9c2dcc1 100644
--- a/mail/cyrus-imapd25/Makefile
+++ b/mail/cyrus-imapd25/Makefile
@@ -1,6 +1,6 @@
PORTNAME= cyrus-imapd
PORTVERSION= 2.5.17
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= mail
MASTER_SITES= https://github.com/cyrusimap/cyrus-imapd/releases/download/${PORTNAME}-${PORTVERSION}/
PKGNAMESUFFIX= 25
@@ -92,8 +92,12 @@ OPTIONS_RADIO_GSSAPI+= GSSAPI_BASE
OPTIONS_DEFAULT+= GSSAPI_BASE
.endif
GSSAPI_BASE_USES= gssapi
-GSSAPI_BASE_CONFIGURE_ON= --enable-gssapi="${GSSAPIBASEDIR}" \
- --with-gss_impl=heimdal
+GSSAPI_BASE_CONFIGURE_ON= --enable-gssapi="${GSSAPIBASEDIR}"
+.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