diff options
author | kris <kris@FreeBSD.org> | 2001-03-04 13:07:23 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2001-03-04 13:07:23 +0800 |
commit | f842fe649f57e0a55b6de28e446b8939cf8100ae (patch) | |
tree | 65674f11a173e1a914efdb756320d57c891da099 /www | |
parent | b437fa75df62c4b48baf5d83c9f0f6c00c9458ce (diff) | |
download | freebsd-ports-gnome-f842fe649f57e0a55b6de28e446b8939cf8100ae.tar.gz freebsd-ports-gnome-f842fe649f57e0a55b6de28e446b8939cf8100ae.tar.zst freebsd-ports-gnome-f842fe649f57e0a55b6de28e446b8939cf8100ae.zip |
adzap is a squid plugin which filters out banner ads, web bugs, javascript
popup consoles, and other annoying crap.
Obtained from: NetBSD
Diffstat (limited to 'www')
-rw-r--r-- | www/Makefile | 1 | ||||
-rw-r--r-- | www/adzap/Makefile | 41 | ||||
-rw-r--r-- | www/adzap/distinfo | 1 | ||||
-rw-r--r-- | www/adzap/files/patch-aa | 33 | ||||
-rw-r--r-- | www/adzap/files/patch-ab | 27 | ||||
-rw-r--r-- | www/adzap/pkg-comment | 1 | ||||
-rw-r--r-- | www/adzap/pkg-descr | 7 | ||||
-rw-r--r-- | www/adzap/pkg-message | 12 | ||||
-rw-r--r-- | www/adzap/pkg-plist | 15 |
9 files changed, 138 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile index 85b58529bd06..4b7444638adc 100644 --- a/www/Makefile +++ b/www/Makefile @@ -3,6 +3,7 @@ SUBDIR += Mosaic # requires Motif SUBDIR += WebMagick + SUBDIR += adzap SUBDIR += adzapper SUBDIR += amaya SUBDIR += analog diff --git a/www/adzap/Makefile b/www/adzap/Makefile new file mode 100644 index 000000000000..5c1c6dfdbd6a --- /dev/null +++ b/www/adzap/Makefile @@ -0,0 +1,41 @@ +# New ports collection makefile for: adzap +# Date created: 03 March 2001 +# Whom: Kris Kennaway <kris@FreeBSD.org> +# +# $FreeBSD$ + +PORTNAME= adzap +PORTVERSION= 20010227 +CATEGORIES= www perl5 +MASTER_SITES= http://www.zip.com.au/~cs/adzap/ + +MAINTAINER= kris@FreeBSD.org + +WRKSRC= ${WRKDIR}/adzap + +NO_BUILD= # defined +USE_PERL5= # defined + +do-configure: +.for FILE in squid_redirect wrapzap + ${CP} ${WRKSRC}/${FILE} ${WRKSRC}/${FILE}.orig + ${SED} -e "s:/usr/bin/perl:${PERL5}:g" \ + -e "s:@@PREFIX@@:${PREFIX}:g" \ + <${WRKSRC}/${FILE}.orig >${WRKSRC}/${FILE} +.endfor + ${SED} s,%PREFIX%,${PREFIX}, < ${WRKSRC}/wrapzap > ${WRKSRC}/adzap + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/squid_redirect ${PREFIX}/libexec + ${INSTALL_SCRIPT} ${WRKSRC}/adzap ${PREFIX}/libexec + ${MKDIR} ${PREFIX}/share/examples/adzap +.for FILE in adzap.conf proxy-cisra.pac proxy-home.pac proxy-zip.pac \ + closepopup-clear.html no-op-clear.html closepopup.html no-op.html \ + no-op-clear.js no-op.js ad-clear.gif ad.gif + ${INSTALL_DATA} ${WRKSRC}/${FILE} ${PREFIX}/share/examples/adzap +.endfor + +post-install: + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> diff --git a/www/adzap/distinfo b/www/adzap/distinfo new file mode 100644 index 000000000000..d57972907044 --- /dev/null +++ b/www/adzap/distinfo @@ -0,0 +1 @@ +MD5 (adzap-20010227.tar.gz) = 2c8f9c957d320630c0550a3415790bcb diff --git a/www/adzap/files/patch-aa b/www/adzap/files/patch-aa new file mode 100644 index 000000000000..ca52f4843c5e --- /dev/null +++ b/www/adzap/files/patch-aa @@ -0,0 +1,33 @@ +$NetBSD: patch-aa,v 1.2 2000/05/20 13:32:14 sommerfeld Exp $ + +--- wrapzap.orig Thu Jan 11 12:23:23 2001 ++++ wrapzap Mon Jan 15 00:49:46 2001 +@@ -16,26 +16,9 @@ + # + + # modify this to match your install +-zapper=/usr/local/script/squid_redirect ++zapper=@@PREFIX@@/libexec/squid_redirect + +-ZAP_MODE= # or "CLEAR" +-ZAP_BASE=http://adzap.cs.zip.com.au # a local web server will be better +-ZAP_CHAINING= # set to "1" or "FULL" if chaining +- # redirectors; see web page +-ZAP_PREMATCH= # pathname of extra pattern file +- # for patterns to preempt the stock +- # zapper +-ZAP_POSTMATCH= # pathname of extra pattern file +- # for patterns in addition to the +- # stock zapper; this is the one to +- # which you should add new ads +-STUBURL_AD=$ZAP_BASE/ad.gif +-STUBURL_ADBG=$ZAP_BASE/adbg.gif +-STUBURL_ADJS=$ZAP_BASE/no-op.js +-STUBURL_ADHTML=$ZAP_BASE/no-op.html +-STUBURL_ADPOPUP=$ZAP_BASE/closepopup.html +-STUBURL_COUNTER=$ZAP_BASE/counter.gif +-STUBURL_WEBBUG=$ZAP_BASE/webbug.gif ++. %PREFIX%/etc/adzap.conf + + export ZAP_MODE ZAP_BASE ZAP_CHAINING ZAP_PREMATCH ZAP_POSTMATCH + export STUBURL_AD STUBURL_ADJS STUBURL_ADHTML STUBURL_ADPOPUP \ diff --git a/www/adzap/files/patch-ab b/www/adzap/files/patch-ab new file mode 100644 index 000000000000..506eb1df32c6 --- /dev/null +++ b/www/adzap/files/patch-ab @@ -0,0 +1,27 @@ +$NetBSD: patch-ab,v 1.1.1.1 2000/04/25 09:40:25 rh Exp $ + +--- /dev/null Mon Jan 15 00:57:20 2001 ++++ adzap.conf Mon Jan 15 00:59:08 2001 +@@ -0,0 +1,22 @@ ++# example adzap configuration file ++# copy this file over to ${PREFIX}/etc/adzap.conf, ++# then modify this to match your install ++ ++ZAP_MODE=CLEAR # or "CLEAR" ++ZAP_BASE=http://adzap.cs.zip.com.au # a local web server will be better ++ZAP_CHAINING= # set to "1" or "FULL" if chaining ++ # redirectors; see web page ++ZAP_PREMATCH= # pathname of extra pattern file ++ # for patterns to preempt the stock ++ # zapper ++ZAP_POSTMATCH= # pathname of extra pattern file ++ # for patterns in addition to the ++ # stock zapper; this is the one to ++ # which you should add new ads ++STUBURL_AD=$ZAP_BASE/ad.gif ++STUBURL_ADBG=$ZAP_BASE/adbg.gif ++STUBURL_ADJS=$ZAP_BASE/no-op.js ++STUBURL_ADHTML=$ZAP_BASE/no-op.html ++STUBURL_ADPOPUP=$ZAP_BASE/closepopup.html ++STUBURL_COUNTER=$ZAP_BASE/counter.gif ++STUBURL_WEBBUG=$ZAP_BASE/webbug.gif diff --git a/www/adzap/pkg-comment b/www/adzap/pkg-comment new file mode 100644 index 000000000000..13de7b07ee65 --- /dev/null +++ b/www/adzap/pkg-comment @@ -0,0 +1 @@ +Filter out animated ad banners from web pages diff --git a/www/adzap/pkg-descr b/www/adzap/pkg-descr new file mode 100644 index 000000000000..4baaedabb8e8 --- /dev/null +++ b/www/adzap/pkg-descr @@ -0,0 +1,7 @@ + Adzap is a http-redirector script for squid, that zaps by replacing +those annoying ad banners from web pages with placeholder GIFs. +It lives in the web proxy and so requires no special browser +facilities. It's readily customizable, small, fast, and easy to +install. + +WWW: http://www.zip.com.au/~cs/adzap/index.html diff --git a/www/adzap/pkg-message b/www/adzap/pkg-message new file mode 100644 index 000000000000..250e9e5d11eb --- /dev/null +++ b/www/adzap/pkg-message @@ -0,0 +1,12 @@ +========================================================================== + + Adzap has now been installed. To get it up and running, copy + ${PREFIX}/share/examples/adzap/adzap.conf to ${PREFIX}/etc and modify + it to match your setup. Then edit your squid configuration and + add ${PREFIX}/libexec/adzap as your http-redirector. + + If you run a web server, you can copy the *.{html,js,gif} files from + ${PREFIX}/share/examples/adzap to your htdocs tree and modify + the web locations in ${PREFIX}/etc/adzap.conf accordingly. + +========================================================================== diff --git a/www/adzap/pkg-plist b/www/adzap/pkg-plist new file mode 100644 index 000000000000..c024129daa75 --- /dev/null +++ b/www/adzap/pkg-plist @@ -0,0 +1,15 @@ +libexec/adzap +libexec/squid_redirect +share/examples/adzap/adzap.conf +share/examples/adzap/proxy-cisra.pac +share/examples/adzap/proxy-home.pac +share/examples/adzap/proxy-zip.pac +share/examples/adzap/closepopup-clear.html +share/examples/adzap/no-op-clear.html +share/examples/adzap/closepopup.html +share/examples/adzap/no-op.html +share/examples/adzap/no-op-clear.js +share/examples/adzap/no-op.js +share/examples/adzap/ad-clear.gif +share/examples/adzap/ad.gif +@dirrm share/examples/adzap |