diff options
Diffstat (limited to 'www/bannerfilter/Makefile')
-rw-r--r-- | www/bannerfilter/Makefile | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/www/bannerfilter/Makefile b/www/bannerfilter/Makefile new file mode 100644 index 00000000000..ffd0f72b86f --- /dev/null +++ b/www/bannerfilter/Makefile @@ -0,0 +1,33 @@ +# $NetBSD: Makefile,v 1.1.1.1 2004/08/14 12:49:45 mjl Exp $ +# + +DISTNAME= bannerfilter-1.31 +CATEGORIES= www +MASTER_SITES= http://phroggy.com/files/unix/ + +MAINTAINER= INSERT_YOUR_MAIL_ADDRESS_HERE +HOMEPAGE= http://phroggy.com/bannerfilter/ +COMMENT= Blocks advertising banners as squid redirector script + +USE_BUILDLINK3= yes +USE_PKGINSTALL= 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 + +do-install: + ${INSTALL_DATA_DIR} ${SHAREDIR}/www ${SHAREDIR}/doc ${SHAREDIR}/data + ${INSTALL_DATA} ${WRKSRC}/www/* ${SHAREDIR}/www/ + ${INSTALL_DATA} ${WRKSRC}/*.data ${SHAREDIR}/data/ + ${INSTALL_DATA} ${WRKSRC}/CHANGES ${WRKSRC}/COPYING ${WRKSRC}/README ${SHAREDIR}/doc/ + ${INSTALL_DATA} ${WRKSRC}/bannerfilter.conf ${SHAREDIR}/ + ${INSTALL_SCRIPT} ${WRKSRC}/redirector.pl ${PREFIX}/bin/bannerfilter-redirector.pl + +.include "../../lang/perl5/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" |