summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2001-03-04 05:07:23 +0000
committerkris <kris@FreeBSD.org>2001-03-04 05:07:23 +0000
commitf842fe649f57e0a55b6de28e446b8939cf8100ae (patch)
tree65674f11a173e1a914efdb756320d57c891da099
parentb437fa75df62c4b48baf5d83c9f0f6c00c9458ce (diff)
downloadFreeBSD-ports-f842fe649f57e0a55b6de28e446b8939cf8100ae.zip
FreeBSD-ports-f842fe649f57e0a55b6de28e446b8939cf8100ae.tar.gz
adzap is a squid plugin which filters out banner ads, web bugs, javascript
popup consoles, and other annoying crap. Obtained from: NetBSD
-rw-r--r--www/Makefile1
-rw-r--r--www/adzap/Makefile41
-rw-r--r--www/adzap/distinfo1
-rw-r--r--www/adzap/files/patch-aa33
-rw-r--r--www/adzap/files/patch-ab27
-rw-r--r--www/adzap/pkg-comment1
-rw-r--r--www/adzap/pkg-descr7
-rw-r--r--www/adzap/pkg-message12
-rw-r--r--www/adzap/pkg-plist15
9 files changed, 138 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 85b5852..4b74446 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 0000000..5c1c6df
--- /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 0000000..d579729
--- /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 0000000..ca52f48
--- /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 0000000..506eb1d
--- /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 0000000..13de7b0
--- /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 0000000..4baaeda
--- /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 0000000..250e9e5
--- /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 0000000..c024129
--- /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
OpenPOWER on IntegriCloud