- Add more ad patterns. - Hooks to get the printer-friendly version of some pages (disabled by default, controlled by STUBURL_PRINT in adzap.conf). Note: adds the new STUBURL_PRINT variable; users should update to the latest adzap.conf as shown in the install message.
47 lines
1.6 KiB
Text
47 lines
1.6 KiB
Text
$NetBSD: patch-aa,v 1.12 2003/08/13 03:05:49 simonb Exp $
|
|
|
|
--- scripts/wrapzap.orig Sun Jul 20 21:38:48 2003
|
|
+++ scripts/wrapzap
|
|
@@ -15,39 +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
|
|
-
|
|
-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_ADHTML=$ZAP_BASE/no-op.html
|
|
-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_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
|
|
export STUBURL_AD STUBURL_ADSSL STUBURL_ADJS STUBURL_ADHTML STUBURL_ADMP3 \
|