summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorjoerg <joerg>2007-02-20 16:49:29 +0000
committerjoerg <joerg>2007-02-20 16:49:29 +0000
commit7496af3ce4e7d0454c7c05971dd922beb9a46b65 (patch)
tree3fe6aff63b4073bb8b3b109e77b6f5cfc3eb85b1 /mail
parenteb95c63a4a20975683dc9c41920f45420437fb2e (diff)
downloadpkgsrc-7496af3ce4e7d0454c7c05971dd922beb9a46b65.tar.gz
Add an option to use dovecot for SASL.
Diffstat (limited to 'mail')
-rw-r--r--mail/postfix/Makefile4
-rw-r--r--mail/postfix/options.mk13
2 files changed, 13 insertions, 4 deletions
diff --git a/mail/postfix/Makefile b/mail/postfix/Makefile
index c08b672038d..568f062e9cb 100644
--- a/mail/postfix/Makefile
+++ b/mail/postfix/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.198 2007/02/15 06:24:04 martti Exp $
+# $NetBSD: Makefile,v 1.199 2007/02/20 16:49:29 joerg Exp $
DISTNAME= postfix-2.3.7
#PKGREVISION= 1
@@ -116,7 +116,7 @@ CONF_FILES_PERMS= # empty
CONF_FILES_PERMS+= ${EXAMPLEDIR}/${i} ${PKG_SYSCONFDIR}/${i} \
${ROOT_USER} ${ROOT_GROUP} 755
.endfor
-.if !empty(PKG_OPTIONS:Msasl)
+.if !empty(PKG_OPTIONS:Msasl) || !empty(PKG_OPTIONS:Mdovecot-sasl)
MAKE_DIRS+= ${SASLLIBDIR}
CONF_FILES+= ${EXAMPLEDIR}/smtpd.conf ${SASLLIBDIR}/smtpd.conf
.endif
diff --git a/mail/postfix/options.mk b/mail/postfix/options.mk
index 747bb989a29..05bfd3d5a25 100644
--- a/mail/postfix/options.mk
+++ b/mail/postfix/options.mk
@@ -1,9 +1,9 @@
-# $NetBSD: options.mk,v 1.23 2006/07/30 10:59:24 adrianp Exp $
+# $NetBSD: options.mk,v 1.24 2007/02/20 16:49:30 joerg Exp $
# Global and legacy options
PKG_OPTIONS_VAR= PKG_OPTIONS.postfix
-PKG_SUPPORTED_OPTIONS= bdb ldap mysql mysql4 pcre pgsql sasl tls
+PKG_SUPPORTED_OPTIONS= bdb ldap mysql mysql4 pcre pgsql sasl tls dovecot-sasl
.include "../../mk/bsd.options.mk"
###
@@ -99,3 +99,12 @@ 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\"
+.endif