summaryrefslogtreecommitdiff
path: root/security/cyrus-sasl2-saslauthd/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'security/cyrus-sasl2-saslauthd/Makefile')
-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