summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-01-10 20:21:32 +0000
committerjoerg <joerg@pkgsrc.org>2006-01-10 20:21:32 +0000
commit273507bc47f4a1b2872d2c1b8ab70d8f2c07213b (patch)
treeac96c6a5c6ca7095b31254ad1cec177284b0325d /mail
parent30d948a9f6fb71bb30ffad8280bf7c817d3410a5 (diff)
downloadpkgsrc-273507bc47f4a1b2872d2c1b8ab70d8f2c07213b.tar.gz
Use SUBST framework for mailer.conf as well.
Diffstat (limited to 'mail')
-rw-r--r--mail/postfix-current/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/mail/postfix-current/Makefile b/mail/postfix-current/Makefile
index 031689a2919..e5056ddfa72 100644
--- a/mail/postfix-current/Makefile
+++ b/mail/postfix-current/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.55 2006/01/10 06:39:00 martti Exp $
+# $NetBSD: Makefile,v 1.56 2006/01/10 20:21:32 joerg Exp $
DISTNAME= postfix-2.3-20060103
#PKGREVISION= 1
@@ -109,14 +109,20 @@ CONF_FILES+= ${EXAMPLEDIR}/smtpd.conf ${SASLLIBDIR}/smtpd.conf
MAKE_ENV+= DEBUG= # empty
+SUBST_CLASSES+= paths
+SUBST_FILES.paths= ${WRKDIR}/mailer.conf
+SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g'
+SUBST_STAGE.paths= post-patch
+
+post-extract:
+ ${CP} ${FILESDIR}/mailer.conf ${WRKDIR}/mailer.conf
+
do-configure:
cd ${WRKSRC} && \
${SETENV} ${MAKE_ENV} ${MAKE} -f Makefile.init makefiles \
'CCARGS=${CCARGS}' 'AUXLIBS=${AUXLIBS}'
post-build:
- @${SED} ${FILES_SUBST_SED} ${FILESDIR}/mailer.conf \
- > ${WRKDIR}/mailer.conf
.if !empty(PKG_OPTIONS:Msasl)
${ECHO} "pwcheck_method: ${PWCHECK_METHOD}" > ${WRKDIR}/smtpd.conf
.endif