summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--security/cyrus-sasl2/Makefile9
-rw-r--r--security/cyrus-sasl2/pkg-plist6
2 files changed, 11 insertions, 4 deletions
diff --git a/security/cyrus-sasl2/Makefile b/security/cyrus-sasl2/Makefile
index 7ea922ca67b4..e54dcba3179f 100644
--- a/security/cyrus-sasl2/Makefile
+++ b/security/cyrus-sasl2/Makefile
@@ -48,7 +48,6 @@ CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc \
--mandir=${MANPREFIX}/man \
--enable-static \
--enable-login \
- --enable-ntlm \
--with-saslauthd \
--enable-auth-sasldb \
--with-rc4=openssl
@@ -82,6 +81,13 @@ CONFIGURE_ARGS+= --disable-digest
DIGEST= "@comment "
.endif
+.if defined(WITHOUT_NTLM)
+CONFIGURE_ARGS+= --disable-ntlm
+NTLM= "@comment "
+.else
+CONFIGURE_ARGS+= --enable-ntlm
+.endif
+
.if defined(KRB5_HOME) && exists(${KRB5_HOME})
CONFIGURE_ARGS+= --enable-gssapi=${KRB5_HOME}
.elif defined(HEIMDAL_HOME) && exists(${HEIMDAL_HOME})
@@ -133,6 +139,7 @@ PLIST_SUB= PREFIX=${PREFIX} \
OTP=${OTP} \
CRAM=${CRAM} \
DIGEST=${DIGEST} \
+ NTLM=${NTLM} \
GSSAPI=${GSSAPI} \
EBONES=${EBONES} \
DOCSDIR=${DOCSDIR:S/^${PREFIX}\///} \
diff --git a/security/cyrus-sasl2/pkg-plist b/security/cyrus-sasl2/pkg-plist
index 23478f4ee9f4..d686345717d7 100644
--- a/security/cyrus-sasl2/pkg-plist
+++ b/security/cyrus-sasl2/pkg-plist
@@ -31,9 +31,9 @@ lib/sasl2/liblogin.so.2
%%MYSQL%%lib/sasl2/libmysql.a
%%MYSQL%%lib/sasl2/libmysql.so
%%MYSQL%%lib/sasl2/libmysql.so.2
-lib/sasl2/libntlm.a
-lib/sasl2/libntlm.so
-lib/sasl2/libntlm.so.2
+%%NTLM%%lib/sasl2/libntlm.a
+%%NTLM%%lib/sasl2/libntlm.so
+%%NTLM%%lib/sasl2/libntlm.so.2
%%OTP%%lib/sasl2/libotp.a
%%OTP%%lib/sasl2/libotp.so
%%OTP%%lib/sasl2/libotp.so.2