Move SASL conditionals to options.mk.diff -r1.213 -r1.214 pkgsrc/mail/postfix/Makefile
(ghen)
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.213 2008/01/18 05:08:29 tnn Exp $ | 1 | # $NetBSD: Makefile,v 1.214 2008/01/25 09:44:24 ghen Exp $ | |
2 | 2 | |||
3 | DISTNAME= postfix-2.4.6 | 3 | DISTNAME= postfix-2.4.6 | |
4 | PKGREVISION= 2 | 4 | PKGREVISION= 2 | |
5 | CATEGORIES= mail | 5 | CATEGORIES= mail | |
6 | MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ | 6 | MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ | |
7 | DIST_SUBDIR= postfix | 7 | DIST_SUBDIR= postfix | |
8 | 8 | |||
9 | MAINTAINER= martti@NetBSD.org | 9 | MAINTAINER= martti@NetBSD.org | |
10 | HOMEPAGE= http://www.postfix.org/ | 10 | HOMEPAGE= http://www.postfix.org/ | |
11 | COMMENT= Postfix SMTP server and tools | 11 | COMMENT= Postfix SMTP server and tools | |
12 | #LICENSE= postfix-license | 12 | #LICENSE= postfix-license | |
13 | 13 | |||
14 | CONFLICTS+= courier-mta-[0-9]* fastforward>=0.51nb2 sendmail-[0-9]* | 14 | CONFLICTS+= courier-mta-[0-9]* fastforward>=0.51nb2 sendmail-[0-9]* | |
@@ -107,30 +107,26 @@ PKG_GROUPS?= postfix maildrop | @@ -107,30 +107,26 @@ PKG_GROUPS?= postfix maildrop | |||
107 | PKG_USERS?= postfix:postfix | 107 | PKG_USERS?= postfix:postfix | |
108 | PKG_GECOS.postfix= Postfix User | 108 | PKG_GECOS.postfix= Postfix User | |
109 | PKG_HOME.postfix= ${POSTFIX_QUEUE_DIR} | 109 | PKG_HOME.postfix= ${POSTFIX_QUEUE_DIR} | |
110 | 110 | |||
111 | CONF_FILES= # empty | 111 | CONF_FILES= # empty | |
112 | .for i in main.cf master.cf postfix-files | 112 | .for i in main.cf master.cf postfix-files | |
113 | CONF_FILES+= ${EXAMPLEDIR}/${i} ${PKG_SYSCONFDIR}/${i} | 113 | CONF_FILES+= ${EXAMPLEDIR}/${i} ${PKG_SYSCONFDIR}/${i} | |
114 | .endfor | 114 | .endfor | |
115 | CONF_FILES_PERMS= # empty | 115 | CONF_FILES_PERMS= # empty | |
116 | .for i in post-install postfix-script | 116 | .for i in post-install postfix-script | |
117 | CONF_FILES_PERMS+= ${EXAMPLEDIR}/${i} ${PKG_SYSCONFDIR}/${i} \ | 117 | CONF_FILES_PERMS+= ${EXAMPLEDIR}/${i} ${PKG_SYSCONFDIR}/${i} \ | |
118 | ${ROOT_USER} ${ROOT_GROUP} 755 | 118 | ${ROOT_USER} ${ROOT_GROUP} 755 | |
119 | .endfor | 119 | .endfor | |
120 | .if !empty(PKG_OPTIONS:Msasl) | |||
121 | MAKE_DIRS+= ${SASLLIBDIR} | |||
122 | CONF_FILES+= ${EXAMPLEDIR}/smtpd.conf ${SASLLIBDIR}/smtpd.conf | |||
123 | .endif | |||
124 | 120 | |||
125 | MAKE_ENV+= DEBUG= # empty | 121 | MAKE_ENV+= DEBUG= # empty | |
126 | 122 | |||
127 | SUBST_CLASSES+= paths | 123 | SUBST_CLASSES+= paths | |
128 | SUBST_FILES.paths= ${WRKDIR}/mailer.conf | 124 | SUBST_FILES.paths= ${WRKDIR}/mailer.conf | |
129 | SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g' | 125 | SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g' | |
130 | SUBST_STAGE.paths= post-patch | 126 | SUBST_STAGE.paths= post-patch | |
131 | 127 | |||
132 | post-extract: | 128 | post-extract: | |
133 | cp ${FILESDIR}/mailer.conf ${WRKDIR}/mailer.conf | 129 | cp ${FILESDIR}/mailer.conf ${WRKDIR}/mailer.conf | |
134 | rm -f ${WRKSRC}/auxiliary/MacOSX/Postfix.StartupItem/Postfix | 130 | rm -f ${WRKSRC}/auxiliary/MacOSX/Postfix.StartupItem/Postfix | |
135 | 131 | |||
136 | do-configure: | 132 | do-configure: |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: options.mk,v 1.28 2008/01/17 13:47:01 martti Exp $ | 1 | # $NetBSD: options.mk,v 1.29 2008/01/25 09:44:24 ghen Exp $ | |
2 | 2 | |||
3 | # Global and legacy options | 3 | # Global and legacy options | |
4 | 4 | |||
5 | PKG_OPTIONS_VAR= PKG_OPTIONS.postfix | 5 | PKG_OPTIONS_VAR= PKG_OPTIONS.postfix | |
6 | PKG_SUPPORTED_OPTIONS= bdb ldap mysql mysql4 pcre pgsql sasl tls postfix-stress | 6 | PKG_SUPPORTED_OPTIONS= bdb ldap mysql mysql4 pcre pgsql sasl tls postfix-stress | |
7 | PKG_SUGGESTED_OPTIONS= tls | 7 | PKG_SUGGESTED_OPTIONS= tls | |
8 | 8 | |||
9 | .include "../../mk/bsd.options.mk" | 9 | .include "../../mk/bsd.options.mk" | |
10 | 10 | |||
11 | ### | 11 | ### | |
12 | ### Support "hash" (Berkeley DB) map type. | 12 | ### Support "hash" (Berkeley DB) map type. | |
13 | ### | 13 | ### | |
14 | .if empty(PKG_OPTIONS:Mbdb) | 14 | .if empty(PKG_OPTIONS:Mbdb) | |
@@ -89,26 +89,28 @@ AUXLIBS+= -L${PGSQL_PREFIX}/lib -lpq \ | @@ -89,26 +89,28 @@ AUXLIBS+= -L${PGSQL_PREFIX}/lib -lpq \ | |||
89 | .if !empty(PKG_OPTIONS:Msasl) | 89 | .if !empty(PKG_OPTIONS:Msasl) | |
90 | . include "../../security/cyrus-sasl/buildlink3.mk" | 90 | . include "../../security/cyrus-sasl/buildlink3.mk" | |
91 | BUILDLINK_INCDIRS.cyrus-sasl= include/sasl | 91 | BUILDLINK_INCDIRS.cyrus-sasl= include/sasl | |
92 | SASLLIBDIR= ${PREFIX}/lib/sasl2 | 92 | SASLLIBDIR= ${PREFIX}/lib/sasl2 | |
93 | PWCHECK_METHOD= auxprop | 93 | PWCHECK_METHOD= auxprop | |
94 | CCARGS+= -DUSE_CYRUS_SASL | 94 | CCARGS+= -DUSE_CYRUS_SASL | |
95 | AUXLIBS+= -L${BUILDLINK_PREFIX.cyrus-sasl}/lib \ | 95 | AUXLIBS+= -L${BUILDLINK_PREFIX.cyrus-sasl}/lib \ | |
96 | ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.cyrus-sasl}/lib \ | 96 | ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.cyrus-sasl}/lib \ | |
97 | -lsasl2 | 97 | -lsasl2 | |
98 | PLIST_SUBST+= SASL= | 98 | PLIST_SUBST+= SASL= | |
99 | MESSAGE_SRC+= ${PKGDIR}/MESSAGE.sasl | 99 | MESSAGE_SRC+= ${PKGDIR}/MESSAGE.sasl | |
100 | MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR} | 100 | MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR} | |
101 | MESSAGE_SUBST+= SASLLIBDIR=${SASLLIBDIR} | 101 | MESSAGE_SUBST+= SASLLIBDIR=${SASLLIBDIR} | |
102 | MAKE_DIRS+= ${SASLLIBDIR} | |||
103 | CONF_FILES+= ${EXAMPLEDIR}/smtpd.conf ${SASLLIBDIR}/smtpd.conf | |||
102 | .else | 104 | .else | |
103 | PLIST_SUBST+= SASL="@comment " | 105 | PLIST_SUBST+= SASL="@comment " | |
104 | CCARGS+= -DDEF_SERVER_SASL_TYPE=\"dovecot\" | 106 | CCARGS+= -DDEF_SERVER_SASL_TYPE=\"dovecot\" | |
105 | .endif | 107 | .endif | |
106 | 108 | |||
107 | ### | 109 | ### | |
108 | ### Postfix stress-adaptive behaviour, back-ported from Postfix 2.5 | 110 | ### Postfix stress-adaptive behaviour, back-ported from Postfix 2.5 | |
109 | ### See http://www.postfix.org/STRESS_README.html#adapt | 111 | ### See http://www.postfix.org/STRESS_README.html#adapt | |
110 | ### | 112 | ### | |
111 | .if !empty(PKG_OPTIONS:Mpostfix-stress) | 113 | .if !empty(PKG_OPTIONS:Mpostfix-stress) | |
112 | PATCHFILES= postfix-2.4-stress-patch.gz | 114 | PATCHFILES= postfix-2.4-stress-patch.gz | |
113 | PATCH_SITES= ${MASTER_SITES} | 115 | PATCH_SITES= ${MASTER_SITES} | |
114 | .endif | 116 | .endif |