pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mail/postfix Use SUBST framework for mailer.conf as well.
details: https://anonhg.NetBSD.org/pkgsrc/rev/aab741233a99
branches: trunk
changeset: 506026:aab741233a99
user: joerg <joerg%pkgsrc.org@localhost>
date: Tue Jan 10 20:31:00 2006 +0000
description:
Use SUBST framework for mailer.conf as well.
diffstat:
mail/postfix/Makefile | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diffs (32 lines):
diff -r 782a74760ca5 -r aab741233a99 mail/postfix/Makefile
--- a/mail/postfix/Makefile Tue Jan 10 20:29:56 2006 +0000
+++ b/mail/postfix/Makefile Tue Jan 10 20:31:00 2006 +0000
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index