summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorghen <ghen@pkgsrc.org>2008-01-16 14:21:39 +0000
committerghen <ghen@pkgsrc.org>2008-01-16 14:21:39 +0000
commit42408282f442086270409eb495520f73dccc6b6b (patch)
treebd45034bf924bf064dea6c782553b9659f9efbd5 /mail
parent4498fe021cddbaf4a226e80bf4b64a1f5ce13ade (diff)
downloadpkgsrc-42408282f442086270409eb495520f73dccc6b6b.tar.gz
Drop the "dovecot-sasl" option and instead enable dovecot SASL support by
default (this doesn't actually depend on Dovecot for building, the code is shipped with Postfix). Set the default value for smtpd_sasl_type to "dovecot" unless cyrus SASL is enabled, too. This ensures backwards compatibility for most cases. Ok with martti, joerg.
Diffstat (limited to 'mail')
-rw-r--r--mail/postfix-current/Makefile4
-rw-r--r--mail/postfix-current/options.mk17
-rw-r--r--mail/postfix/Makefile4
-rw-r--r--mail/postfix/options.mk19
4 files changed, 15 insertions, 29 deletions
diff --git a/mail/postfix-current/Makefile b/mail/postfix-current/Makefile
index cfa79299a58..823b7fc21b9 100644
--- a/mail/postfix-current/Makefile
+++ b/mail/postfix-current/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.87 2007/10/30 19:31:40 martti Exp $
+# $NetBSD: Makefile,v 1.88 2008/01/16 14:21:44 ghen Exp $
DISTNAME= postfix-2.5-20071006
#PKGREVISION= 1
@@ -30,7 +30,7 @@ BUILD_DEFS+= VARBASE POSTFIX_QUEUE_DIR
# CCARGS is a list of options to pass to the preprocessor/compiler.
# AUXLIBS is a list of options to pass to the linker.
#
-CCARGS= # empty
+CCARGS= -DUSE_SASL_AUTH
AUXLIBS= ${LDFLAGS}
FIX_RPATH+= AUXLIBS
diff --git a/mail/postfix-current/options.mk b/mail/postfix-current/options.mk
index fda06dada81..c629577b77e 100644
--- a/mail/postfix-current/options.mk
+++ b/mail/postfix-current/options.mk
@@ -1,9 +1,9 @@
-# $NetBSD: options.mk,v 1.16 2007/04/29 19:27:36 tron Exp $
+# $NetBSD: options.mk,v 1.17 2008/01/16 14:21:48 ghen Exp $
# Global and legacy options
PKG_OPTIONS_VAR= PKG_OPTIONS.postfix
-PKG_SUPPORTED_OPTIONS= bdb ldap mysql mysql4 pcre pgsql sasl tls dovecot-sasl
+PKG_SUPPORTED_OPTIONS= bdb ldap mysql mysql4 pcre pgsql sasl tls
PKG_SUGGESTED_OPTIONS= tls
.include "../../mk/bsd.options.mk"
@@ -83,7 +83,8 @@ AUXLIBS+= -L${PGSQL_PREFIX}/lib -lpq \
.endif
###
-### SASL support for SMTP authentication.
+### Cyrus SASL support for SMTP authentication.
+### (Dovcot SASL support is built in by default.)
###
.if !empty(PKG_OPTIONS:Msasl)
. include "../../security/cyrus-sasl/buildlink3.mk"
@@ -100,13 +101,5 @@ MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
MESSAGE_SUBST+= SASLLIBDIR=${SASLLIBDIR}
.else
PLIST_SUBST+= SASL="@comment "
-.endif
-
-###
-### SASL support for SMTP authentication (via Dovecot).
-###
-.if !empty(PKG_OPTIONS:Mdovecot-sasl)
-DEPENDS+= dovecot-[0-9]*:../../mail/dovecot
-
-CCARGS+= -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\"dovecot\"
+CCARGS+= -DDEF_SERVER_SASL_TYPE=\"dovecot\"
.endif
diff --git a/mail/postfix/Makefile b/mail/postfix/Makefile
index 53cb820a889..56f8d252b16 100644
--- a/mail/postfix/Makefile
+++ b/mail/postfix/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.211 2007/12/02 02:17:24 gdt Exp $
+# $NetBSD: Makefile,v 1.212 2008/01/16 14:21:39 ghen Exp $
DISTNAME= postfix-2.4.6
PKGREVISION= 1
@@ -30,7 +30,7 @@ BUILD_DEFS+= VARBASE POSTFIX_QUEUE_DIR
# CCARGS is a list of options to pass to the preprocessor/compiler.
# AUXLIBS is a list of options to pass to the linker.
#
-CCARGS= # empty
+CCARGS= -DUSE_SASL_AUTH
AUXLIBS= ${LDFLAGS}
FIX_RPATH+= AUXLIBS
diff --git a/mail/postfix/options.mk b/mail/postfix/options.mk
index 3b5d1d0e4b0..c58e789441f 100644
--- a/mail/postfix/options.mk
+++ b/mail/postfix/options.mk
@@ -1,9 +1,9 @@
-# $NetBSD: options.mk,v 1.26 2008/01/14 13:29:25 ghen Exp $
+# $NetBSD: options.mk,v 1.27 2008/01/16 14:21:43 ghen Exp $
# Global and legacy options
PKG_OPTIONS_VAR= PKG_OPTIONS.postfix
-PKG_SUPPORTED_OPTIONS= bdb ldap mysql mysql4 pcre pgsql sasl tls dovecot-sasl postfix-stress
+PKG_SUPPORTED_OPTIONS= bdb ldap mysql mysql4 pcre pgsql sasl tls postfix-stress
PKG_SUGGESTED_OPTIONS= tls
.include "../../mk/bsd.options.mk"
@@ -83,14 +83,15 @@ AUXLIBS+= -L${PGSQL_PREFIX}/lib -lpq \
.endif
###
-### SASL support for SMTP authentication.
+### Cyrus SASL support for SMTP authentication.
+### (Dovcot SASL support is built in by default.)
###
.if !empty(PKG_OPTIONS:Msasl)
. include "../../security/cyrus-sasl/buildlink3.mk"
BUILDLINK_INCDIRS.cyrus-sasl= include/sasl
SASLLIBDIR= ${PREFIX}/lib/sasl2
PWCHECK_METHOD= auxprop
-CCARGS+= -DUSE_SASL_AUTH -DUSE_CYRUS_SASL
+CCARGS+= -DUSE_CYRUS_SASL
AUXLIBS+= -L${BUILDLINK_PREFIX.cyrus-sasl}/lib \
${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.cyrus-sasl}/lib \
-lsasl2
@@ -100,15 +101,7 @@ MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
MESSAGE_SUBST+= SASLLIBDIR=${SASLLIBDIR}
.else
PLIST_SUBST+= SASL="@comment "
-.endif
-
-###
-### SASL support for SMTP authentication (via Dovecot).
-###
-.if !empty(PKG_OPTIONS:Mdovecot-sasl)
-DEPENDS+= dovecot-[0-9]*:../../mail/dovecot
-
-CCARGS+= -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\"dovecot\"
+CCARGS+= -DDEF_SERVER_SASL_TYPE=\"dovecot\"
.endif
###