mail/cyrus-imapd36: 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
This commit is contained in:
Cy Schubert
2025-07-21 15:57:15 -07:00
parent 66119f7c97
commit e15d21d605

View File

@@ -1,6 +1,6 @@
PORTNAME= cyrus-imapd
PORTVERSION= 3.6.7
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= mail
MASTER_SITES= https://github.com/cyrusimap/cyrus-imapd/releases/download/${PORTNAME}-${DISTVERSION}/
PKGNAMESUFFIX= ${CYRUS_IMAPD_VER}
@@ -132,8 +132,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