diff options
author | mjl <mjl> | 2004-08-14 12:49:45 +0000 |
---|---|---|
committer | mjl <mjl> | 2004-08-14 12:49:45 +0000 |
commit | ba8376bce7508663cbf057dfa1823e59f38c6c3a (patch) | |
tree | fb55895cca675b0ea3550a75618114672aa0809a /www/bannerfilter | |
parent | 060cb86d9ba598922b8610660163bee478540338 (diff) | |
download | pkgsrc-ba8376bce7508663cbf057dfa1823e59f38c6c3a.tar.gz |
Import of bannerfilter 1.31
This script blocks advertising banners on the Web.
Unlike most other similar solutions, BannerFilter does more than simply
block advertising graphics. It also blocks advertising frames on a few
sites, and automatically closes pop-up windows.
Diffstat (limited to 'www/bannerfilter')
-rw-r--r-- | www/bannerfilter/DESCR | 5 | ||||
-rw-r--r-- | www/bannerfilter/Makefile | 33 | ||||
-rw-r--r-- | www/bannerfilter/PLIST | 33 | ||||
-rw-r--r-- | www/bannerfilter/distinfo | 5 | ||||
-rw-r--r-- | www/bannerfilter/patches/patch-aa | 13 |
5 files changed, 89 insertions, 0 deletions
diff --git a/www/bannerfilter/DESCR b/www/bannerfilter/DESCR new file mode 100644 index 00000000000..68c298bc77f --- /dev/null +++ b/www/bannerfilter/DESCR @@ -0,0 +1,5 @@ +This script blocks advertising banners on the Web. + +Unlike most other similar solutions, BannerFilter does more than simply +block advertising graphics. It also blocks advertising frames on a few +sites, and automatically closes pop-up windows. 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" diff --git a/www/bannerfilter/PLIST b/www/bannerfilter/PLIST new file mode 100644 index 00000000000..c70b23eea37 --- /dev/null +++ b/www/bannerfilter/PLIST @@ -0,0 +1,33 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2004/08/14 12:49:45 mjl Exp $ +bin/bannerfilter-redirector.pl +share/bannerfilter/bannerfilter.conf +share/bannerfilter/data/banners.data +share/bannerfilter/data/banners.local.data +share/bannerfilter/data/exceptions.data +share/bannerfilter/data/exceptions.local.data +share/bannerfilter/data/frames.data +share/bannerfilter/data/frames.local.data +share/bannerfilter/data/popups.data +share/bannerfilter/data/popups.local.data +share/bannerfilter/doc/CHANGES +share/bannerfilter/doc/COPYING +share/bannerfilter/doc/README +share/bannerfilter/www/banner.gif +share/bannerfilter/www/blocked.html +share/bannerfilter/www/empty.js +share/bannerfilter/www/flash.swf +share/bannerfilter/www/goatsecx.gif +share/bannerfilter/www/header_tile.gif +share/bannerfilter/www/hometown.html +share/bannerfilter/www/namezero.html +share/bannerfilter/www/nbci.html +share/bannerfilter/www/null.gif +share/bannerfilter/www/popup.html +share/bannerfilter/www/test.html +share/bannerfilter/www/xbbackground.gif +share/bannerfilter/www/xoom.html +share/bannerfilter/www/yahoo.html +@dirrm share/bannerfilter/data +@dirrm share/bannerfilter/doc +@dirrm share/bannerfilter/www +@dirrm share/bannerfilter diff --git a/www/bannerfilter/distinfo b/www/bannerfilter/distinfo new file mode 100644 index 00000000000..19ca94553bd --- /dev/null +++ b/www/bannerfilter/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2004/08/14 12:49:45 mjl Exp $ + +SHA1 (bannerfilter-1.31.tar.gz) = 734277149b5180b3213e558ac02fe5f465103378 +Size (bannerfilter-1.31.tar.gz) = 36294 bytes +SHA1 (patch-aa) = 6ebc088bc68f650dbcc7d70a9ee8ab8dbe0e1c14 diff --git a/www/bannerfilter/patches/patch-aa b/www/bannerfilter/patches/patch-aa new file mode 100644 index 00000000000..0ce7c17f2a9 --- /dev/null +++ b/www/bannerfilter/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1.1.1 2004/08/14 12:49:45 mjl Exp $ + +--- bannerfilter.conf.orig Sat Aug 14 14:22:23 2004 ++++ bannerfilter.conf Sat Aug 14 14:23:00 2004 +@@ -5,7 +5,7 @@ + + # Path to the directory containing the data files (if not specified, + # look in the same directory that redirector.pl is in): +-; DATA = /usr/local/squid/bannerfilter/ ++DATA = @SHAREDIR@/data/ + + # URL of the directory containing the HTML and graphics files (this must + # be accessible to the machine running Squid; it does not need to be |