summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-01-20 23:38:47 +0000
committerjoerg <joerg@pkgsrc.org>2006-01-20 23:38:47 +0000
commitcdded4f6c7e63b59001a8fd8fd3d5daf8a4c7e77 (patch)
tree53a282a41bdd83c1da9973328324bf3a5f4eada0
parentd14818e89aea1e1fc428c9d5bd32a279a49e72dd (diff)
downloadpkgsrc-cdded4f6c7e63b59001a8fd8fd3d5daf8a4c7e77.tar.gz
Use SUBST framework.
-rw-r--r--mail/nullmailer/Makefile19
1 files changed, 11 insertions, 8 deletions
diff --git a/mail/nullmailer/Makefile b/mail/nullmailer/Makefile
index acb33456294..3be6546d975 100644
--- a/mail/nullmailer/Makefile
+++ b/mail/nullmailer/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2006/01/14 08:20:20 schmonz Exp $
+# $NetBSD: Makefile,v 1.21 2006/01/20 23:38:47 joerg Exp $
DISTNAME= nullmailer-1.02
CATEGORIES= mail
@@ -51,13 +51,16 @@ SPECIAL_PERMS+= ${VARBASE}/spool/nullmailer/trigger \
INSTALL_EXTRA_TMPL+= ${PKGDIR}/INSTALL
DEINSTALL_EXTRA_TMPL+= ${PKGDIR}/DEINSTALL
-post-configure:
- @${SED} ${FILES_SUBST_SED} ${FILESDIR}/mailer.conf > \
- ${WRKDIR}/mailer.conf
- @cd ${WRKSRC}/doc; for i in nullmailer-send nullmailer-queue; do\
- ${SED} ${FILES_SUBST_SED} $${i}.8 > $${i}.8.new; \
- ${MV} -f $${i}.8.new $${i}.8; \
- done
+SUBST_CLASSES+= paths
+SUBST_FILES.paths= ${WRKDIR}/mailer.conf
+SUBST_FILES.paths+= doc/nullmailer-send.8 doc/nullmailer-queue.8
+SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g'
+SUBST_SED.paths+= -e 's,@VARBASE@,${VARBASE},g'
+SUBST_SED.paths+= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g'
+SUBST_STAGE.paths= post-patch
+
+post-extract:
+ ${CP} ${FILESDIR}/mailer.conf ${WRKDIR}/mailer.conf
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/nullmailer