summaryrefslogtreecommitdiff
path: root/mail/postfix/Makefile
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-07-18 19:16:31 +0000
committerjlam <jlam@pkgsrc.org>2004-07-18 19:16:31 +0000
commitdcfd5188266e986e6349f0af42e3e8baba1d4266 (patch)
treea9d700a18364962076efb044ca479d5787c00e72 /mail/postfix/Makefile
parentf6a33234761e30137a90e08a285452d22e3e3ca7 (diff)
downloadpkgsrc-dcfd5188266e986e6349f0af42e3e8baba1d4266.tar.gz
Use FILES_SUBST_SED instead of local make targets to do the same thing.
FILES_SUBST_SED substitutes for @FOO@, so use that format for things to be replaced.
Diffstat (limited to 'mail/postfix/Makefile')
-rw-r--r--mail/postfix/Makefile10
1 files changed, 4 insertions, 6 deletions
diff --git a/mail/postfix/Makefile b/mail/postfix/Makefile
index a67fa01869f..7250e18b05e 100644
--- a/mail/postfix/Makefile
+++ b/mail/postfix/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.133 2004/06/22 05:12:43 martti Exp $
+# $NetBSD: Makefile,v 1.134 2004/07/18 19:16:31 jlam Exp $
DISTNAME= postfix-2.1.3
CATEGORIES= mail
@@ -179,9 +179,7 @@ INSTALL_EXTRA_TMPL+= ${PKGDIR}/INSTALL
pre-configure:
@for i in ${POSTFIX_CONF_FILES}; do \
${CP} ${WRKSRC}/$${i} ${WRKSRC}/$${i}.dist; \
- ${SED} -e 's|__PREFIX|'${PREFIX}'|g' \
- -e 's|__PKG_SYSCONFDIR|'${PKG_SYSCONFDIR}'|g' \
- < ${WRKSRC}/$${i}.dist \
+ ${SED} ${FILES_SUBST_SED} ${WRKSRC}/$${i}.dist \
> ${WRKSRC}/$${i}; \
done
@@ -191,8 +189,8 @@ do-configure:
'CCARGS=${CCARGS}' 'AUXLIBS=${AUXLIBS}'
post-build:
- ${SED} -e 's#@@PREFIX@@#${PREFIX}#g' \
- <${FILESDIR}/mailer.conf >${WRKDIR}/mailer.conf.postfix
+ @${SED} ${FILES_SUBST_SED} ${FILESDIR}/mailer.conf \
+ > ${WRKDIR}/mailer.conf.postfix
pre-install:
${INSTALL_DATA_DIR} ${PKG_SYSCONFDIR}