summaryrefslogtreecommitdiff
path: root/mail/postfix
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-07-19 20:34:50 +0000
committerjlam <jlam@pkgsrc.org>2004-07-19 20:34:50 +0000
commit35fae82b178c7fecfa4ec924f8e2e6cbf8e3d9c2 (patch)
tree09a569cc182666b20e975d99081da19db5aaf527 /mail/postfix
parent926492b94a7e83c47a7d9654b5cfd786087f9763 (diff)
downloadpkgsrc-35fae82b178c7fecfa4ec924f8e2e6cbf8e3d9c2.tar.gz
If neither USE_SASL or USE_SASL2 are defined and POSTFIX_OPTIONS includes
"sasl", then use SASLv2 by default.
Diffstat (limited to 'mail/postfix')
-rw-r--r--mail/postfix/Makefile.options15
1 files changed, 12 insertions, 3 deletions
diff --git a/mail/postfix/Makefile.options b/mail/postfix/Makefile.options
index c684d4071a3..fd347f5b1dd 100644
--- a/mail/postfix/Makefile.options
+++ b/mail/postfix/Makefile.options
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.options,v 1.1 2004/07/19 19:59:17 jlam Exp $
+# $NetBSD: Makefile.options,v 1.2 2004/07/19 20:34:50 jlam Exp $
#
# POSTFIX_ALL_OPTIONS lists all of the currently-supported optional modules
# that may be built into Postfix.
@@ -100,10 +100,19 @@ AUXLIBS+= -L${BUILDLINK_PREFIX.mysql-client}/lib/mysql \
## .endif
###
-### SASL support for SMTP authentication.
+### SASL support for SMTP authentication. If neither SASLv1 or SASLv2 is
+### explicitly specified, then build with SASLv2.
###
.if !empty(_POSTFIX_OPTIONS:Msasl)
-. if defined(USE_SASL2) && !empty(USE_SASL2:M[yY][eE][sS])
+. if !defined(USE_SASL2) && !defined(USE_SASL)
+. include "../../security/cyrus-sasl2/buildlink3.mk"
+SASLLIBDIR= ${PREFIX}/lib/sasl2
+PWCHECK_METHOD= auxprop
+CCARGS+= -DUSE_SASL2_AUTH
+AUXLIBS+= -L${BUILDLINK_PREFIX.cyrus-sasl}/lib \
+ -Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.cyrus-sasl}/lib \
+ -lsasl2
+. elif defined(USE_SASL2) && !empty(USE_SASL2:M[yY][eE][sS])
. include "../../security/cyrus-sasl2/buildlink3.mk"
SASLLIBDIR= ${PREFIX}/lib/sasl2
PWCHECK_METHOD= auxprop