summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-01-19 01:18:30 +0000
committerjoerg <joerg@pkgsrc.org>2006-01-19 01:18:30 +0000
commit2d238121fa86564ed54a8235c20ac6ba8c646311 (patch)
tree66075ed5dd51364f3e03b044a461e328f1049be8 /mail
parent6491d05a698ae6cd5790238462f9d673bf4ed494 (diff)
downloadpkgsrc-2d238121fa86564ed54a8235c20ac6ba8c646311.tar.gz
Use SUBST framework instead FILES_SUBST_SED.
Diffstat (limited to 'mail')
-rw-r--r--mail/qmail/Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/mail/qmail/Makefile b/mail/qmail/Makefile
index 0b8af5a5fc5..e72a975e009 100644
--- a/mail/qmail/Makefile
+++ b/mail/qmail/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.43 2006/01/13 20:53:56 schmonz Exp $
+# $NetBSD: Makefile,v 1.44 2006/01/19 01:18:30 joerg Exp $
#
DISTNAME= netqmail-1.05
@@ -87,14 +87,18 @@ SUBST_MESSAGE.logging= "Setting QUEUE_EXTRA."
SUBST_FILES.djbware+= cdb_seek.c dns.c
+SUBST_CLASSES+= paths
+SUBST_FILES.paths= ${WRKDIR}/README.pkgsrc
+SUBST_SED.paths+= -e 's,@PKGNAME@,${PKGNAME},g'
+SUBST_SED.paths+= -e 's,@PKG_INFO@,${PKG_INFO},g'
+SUBST_SED.paths+= -e 's,@GREP@,${GREP},g'
+SUBST_STAGE.paths= post-patch
+
post-extract:
${_PKG_SILENT}${_PKG_DEBUG}extract_file=${PKGNAME_NOREV}.tar.gz;\
export extract_file; cd ${WRKSRC}; ${EXTRACT_CMD}; \
${MV} ${PKGNAME_NOREV} ..; ${MV} ${DISTNAME}.patch ..
-
-post-build:
- @${SED} ${FILES_SUBST_SED} ${FILESDIR}/README.pkgsrc \
- > ${WRKDIR}/README.pkgsrc
+ ${CP} ${FILESDIR}/README.pkgsrc ${WRKDIR}/README.pkgsrc
post-install:
# qmail's installer sets strange permissions; set them back