2006-04-17 10:56:08 +02:00
|
|
|
$NetBSD: patch-aa,v 1.15 2006/04/17 08:56:09 simonb Exp $
|
2000-04-25 11:40:25 +02:00
|
|
|
|
2006-04-17 10:56:08 +02:00
|
|
|
--- scripts/wrapzap.orig 2006-03-25 09:03:55.000000000 +1100
|
2003-01-22 13:52:35 +01:00
|
|
|
+++ scripts/wrapzap
|
2006-04-17 10:56:08 +02:00
|
|
|
@@ -15,43 +15,9 @@
|
2003-08-13 05:05:48 +02:00
|
|
|
# - Cameron Simpson <cs@zip.com.au> 21apr2000
|
2000-04-25 11:40:25 +02:00
|
|
|
#
|
|
|
|
|
2003-08-13 05:05:48 +02:00
|
|
|
-# modify this to match your install
|
|
|
|
-zapper=/usr/local/bin/squid_redirect
|
2001-04-04 09:17:05 +02:00
|
|
|
-
|
2000-04-25 11:40:25 +02:00
|
|
|
-ZAP_MODE= # or "CLEAR"
|
2003-01-22 13:52:35 +01:00
|
|
|
-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
|
|
|
|
-
|
2000-04-25 11:40:25 +02:00
|
|
|
-ZAP_PREMATCH= # pathname of extra pattern file
|
2000-05-20 15:32:13 +02:00
|
|
|
- # for patterns to preempt the stock
|
2000-04-25 11:40:25 +02:00
|
|
|
- # zapper
|
|
|
|
-ZAP_POSTMATCH= # pathname of extra pattern file
|
|
|
|
- # for patterns in addition to the
|
2000-05-20 15:32:13 +02:00
|
|
|
- # stock zapper; this is the one to
|
|
|
|
- # which you should add new ads
|
2003-01-22 13:52:35 +01:00
|
|
|
-ZAP_MATCH= # pathname of extra pattern file
|
|
|
|
- # for patterns to use instead of the
|
|
|
|
- # inbuilt pattern list
|
2005-05-04 14:35:54 +02:00
|
|
|
-ZAP_NO_CHANGE= # set to "NULL" is your proxy is Apache2 instead of Squid
|
2003-01-22 13:52:35 +01:00
|
|
|
-
|
2000-04-25 11:40:25 +02:00
|
|
|
-STUBURL_AD=$ZAP_BASE/ad.gif
|
2001-11-23 03:18:21 +01:00
|
|
|
-STUBURL_ADSSL=$ZAP_BASE_SSL/ad.gif
|
2001-01-14 15:06:01 +01:00
|
|
|
-STUBURL_ADBG=$ZAP_BASE/adbg.gif
|
2000-04-25 11:40:25 +02:00
|
|
|
-STUBURL_ADJS=$ZAP_BASE/no-op.js
|
2006-04-17 10:56:08 +02:00
|
|
|
-STUBURL_ADJSTEXT=
|
2000-04-25 11:40:25 +02:00
|
|
|
-STUBURL_ADHTML=$ZAP_BASE/no-op.html
|
2006-04-17 10:56:08 +02:00
|
|
|
-STUBURL_ADHTMLTEXT=
|
2001-07-07 09:48:15 +02:00
|
|
|
-STUBURL_ADMP3=$ZAP_BASE/ad.mp3
|
2000-04-25 11:40:25 +02:00
|
|
|
-STUBURL_ADPOPUP=$ZAP_BASE/closepopup.html
|
2001-07-07 09:48:15 +02:00
|
|
|
-STUBURL_ADSWF=$ZAP_BASE/ad.swf
|
2000-05-20 15:32:13 +02:00
|
|
|
-STUBURL_COUNTER=$ZAP_BASE/counter.gif
|
2002-01-10 01:41:45 +01:00
|
|
|
-STUBURL_COUNTERJS=$ZAP_BASE/no-op-counter.js
|
2002-09-07 16:23:25 +02:00
|
|
|
-STUBURL_COUNTERHTML=$ZAP_BASE/no-op-counter.html
|
2001-01-14 15:06:01 +01:00
|
|
|
-STUBURL_WEBBUG=$ZAP_BASE/webbug.gif
|
2001-07-07 09:48:15 +02:00
|
|
|
-STUBURL_WEBBUGJS=$ZAP_BASE/webbug.js
|
2005-11-18 02:06:27 +01:00
|
|
|
-STUBURL_WEBBUGHTML=$ZAP_BASE/webbug.html
|
2003-08-13 05:05:48 +02:00
|
|
|
-
|
|
|
|
-STUBURL_PRINT= # off by default, set to 1
|
2001-04-04 09:17:05 +02:00
|
|
|
+zapper=@@PREFIX@@/libexec/squid_redirect
|
2001-11-23 03:18:21 +01:00
|
|
|
+
|
2000-04-25 11:40:25 +02:00
|
|
|
+. /etc/adzap.conf
|
|
|
|
|
2005-05-04 14:35:54 +02:00
|
|
|
export ZAP_MODE ZAP_BASE ZAP_BASE_SSL ZAP_PREMATCH ZAP_POSTMATCH ZAP_MATCH ZAP_NO_CHANGE
|
2002-02-11 06:49:34 +01:00
|
|
|
export STUBURL_AD STUBURL_ADSSL STUBURL_ADJS STUBURL_ADHTML STUBURL_ADMP3 \
|