eddb542343
- Add more ad patterns. - Add ADJSTEXT and ADHTMLTEXT zap classes. Note: adds the STUBURL_ADJSTEXT and STUBURL_ADHTMLTEXT variables; users should update to the latest adzap.conf as shown in the install message.
51 lines
1.8 KiB
Text
51 lines
1.8 KiB
Text
$NetBSD: patch-aa,v 1.15 2006/04/17 08:56:09 simonb Exp $
|
|
|
|
--- scripts/wrapzap.orig 2006-03-25 09:03:55.000000000 +1100
|
|
+++ scripts/wrapzap
|
|
@@ -15,43 +15,9 @@
|
|
# - Cameron Simpson <cs@zip.com.au> 21apr2000
|
|
#
|
|
|
|
-# modify this to match your install
|
|
-zapper=/usr/local/bin/squid_redirect
|
|
-
|
|
-ZAP_MODE= # or "CLEAR"
|
|
-ZAP_BASE=http://adzapper.sourceforge.net/zaps # a local web server will be better
|
|
-ZAP_BASE_SSL=https://adzapper.sourceforge.net/zaps # this can probably be ignored
|
|
-
|
|
-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
|
|
-ZAP_MATCH= # pathname of extra pattern file
|
|
- # for patterns to use instead of the
|
|
- # inbuilt pattern list
|
|
-ZAP_NO_CHANGE= # set to "NULL" is your proxy is Apache2 instead of Squid
|
|
-
|
|
-STUBURL_AD=$ZAP_BASE/ad.gif
|
|
-STUBURL_ADSSL=$ZAP_BASE_SSL/ad.gif
|
|
-STUBURL_ADBG=$ZAP_BASE/adbg.gif
|
|
-STUBURL_ADJS=$ZAP_BASE/no-op.js
|
|
-STUBURL_ADJSTEXT=
|
|
-STUBURL_ADHTML=$ZAP_BASE/no-op.html
|
|
-STUBURL_ADHTMLTEXT=
|
|
-STUBURL_ADMP3=$ZAP_BASE/ad.mp3
|
|
-STUBURL_ADPOPUP=$ZAP_BASE/closepopup.html
|
|
-STUBURL_ADSWF=$ZAP_BASE/ad.swf
|
|
-STUBURL_COUNTER=$ZAP_BASE/counter.gif
|
|
-STUBURL_COUNTERJS=$ZAP_BASE/no-op-counter.js
|
|
-STUBURL_COUNTERHTML=$ZAP_BASE/no-op-counter.html
|
|
-STUBURL_WEBBUG=$ZAP_BASE/webbug.gif
|
|
-STUBURL_WEBBUGJS=$ZAP_BASE/webbug.js
|
|
-STUBURL_WEBBUGHTML=$ZAP_BASE/webbug.html
|
|
-
|
|
-STUBURL_PRINT= # off by default, set to 1
|
|
+zapper=@@PREFIX@@/libexec/squid_redirect
|
|
+
|
|
+. /etc/adzap.conf
|
|
|
|
export ZAP_MODE ZAP_BASE ZAP_BASE_SSL ZAP_PREMATCH ZAP_POSTMATCH ZAP_MATCH ZAP_NO_CHANGE
|
|
export STUBURL_AD STUBURL_ADSSL STUBURL_ADJS STUBURL_ADHTML STUBURL_ADMP3 \
|