diff options
author | joerg <joerg> | 2006-01-20 23:38:47 +0000 |
---|---|---|
committer | joerg <joerg> | 2006-01-20 23:38:47 +0000 |
commit | 234c650b1803172160271d555026fc5e4c633744 (patch) | |
tree | 53a282a41bdd83c1da9973328324bf3a5f4eada0 /mail | |
parent | 694da27453a9a66cd4a253f391483a7bc2dad6b3 (diff) | |
download | pkgsrc-234c650b1803172160271d555026fc5e4c633744.tar.gz |
Use SUBST framework.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/nullmailer/Makefile | 19 |
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 |