summaryrefslogtreecommitdiff
path: root/mail/postfix
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2007-02-20 16:49:29 +0000
committerjoerg <joerg@pkgsrc.org>2007-02-20 16:49:29 +0000
commit1f92332f9b579a8230166d929262e8579777d3ab (patch)
tree3fe6aff63b4073bb8b3b109e77b6f5cfc3eb85b1 /mail/postfix
parent72b976bc80d93523b3a0174b6154fefea20b61d6 (diff)
downloadpkgsrc-1f92332f9b579a8230166d929262e8579777d3ab.tar.gz
Add an option to use dovecot for SASL.
Diffstat (limited to 'mail/postfix')
-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