summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authormjl <mjl@pkgsrc.org>2004-08-14 23:25:09 +0000
committermjl <mjl@pkgsrc.org>2004-08-14 23:25:09 +0000
commit3afcc54440a27d600ad2825229e0e029ae50a1d5 (patch)
tree7f258468b31bec8f66f4b47a17bfbcbe61851d51 /www
parent1bea74c68fc2fcb87042a1338cb1da7ddc832dca (diff)
downloadpkgsrc-3afcc54440a27d600ad2825229e0e029ae50a1d5.tar.gz
Use subst framework instead of manually invoking sed.
Diffstat (limited to 'www')
-rw-r--r--www/bannerfilter/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/www/bannerfilter/Makefile b/www/bannerfilter/Makefile
index ffd0f72b86f..931c5e20caa 100644
--- a/www/bannerfilter/Makefile
+++ b/www/bannerfilter/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2004/08/14 12:49:45 mjl Exp $
+# $NetBSD: Makefile,v 1.2 2004/08/14 23:25:09 mjl Exp $
#
DISTNAME= bannerfilter-1.31
@@ -11,15 +11,17 @@ COMMENT= Blocks advertising banners as squid redirector script
USE_BUILDLINK3= yes
USE_PKGINSTALL= YES
+NO_BUILD= YES
SHAREDIR= ${PREFIX}/share/bannerfilter
CONF_FILES= ${SHAREDIR}/bannerfilter.conf ${PKG_SYSCONFDIR}/bannerfilter.conf
REPLACE_PERL= redirector.pl
-FILES_SUBST+= SHAREDIR=${SHAREDIR}
-do-build:
- @${SED} ${FILES_SUBST_SED} ${WRKSRC}/bannerfilter.conf > ${WRKSRC}/bannerfilter.conf.new && \
- ${MV} ${WRKSRC}/bannerfilter.conf.new ${WRKSRC}/bannerfilter.conf
+SUBST_CLASSES+= bf
+
+SUBST_STAGE.bf= post-patch
+SUBST_FILES.bf= bannerfilter.conf
+SUBST_SED.bf= -e s,@SHAREDIR@,${SHAREDIR},g
do-install:
${INSTALL_DATA_DIR} ${SHAREDIR}/www ${SHAREDIR}/doc ${SHAREDIR}/data