diff options
author | joerg <joerg@pkgsrc.org> | 2006-01-10 20:31:00 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2006-01-10 20:31:00 +0000 |
commit | 89eaa0081ed3aade0f490d9bb3845baf3402388d (patch) | |
tree | 65b469c36d2b5239f8840d6e76ce5711422d7e86 | |
parent | 53e65c5b84747d61abe53202a0408c208b9c3ca1 (diff) | |
download | pkgsrc-89eaa0081ed3aade0f490d9bb3845baf3402388d.tar.gz |
Use SUBST framework for mailer.conf as well.
-rw-r--r-- | mail/postfix/Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/mail/postfix/Makefile b/mail/postfix/Makefile index 008fb75369f..64ab6b33328 100644 --- a/mail/postfix/Makefile +++ b/mail/postfix/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.175 2006/01/10 06:38:14 martti Exp $ +# $NetBSD: Makefile,v 1.176 2006/01/10 20:31:00 joerg Exp $ DISTNAME= postfix-2.2.8 #PKGREVISION= 1 @@ -106,14 +106,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 |