pkgsrc/www/adzap/patches/patch-aa

38 lines
1.3 KiB
Text
Raw Normal View History

$NetBSD: patch-aa,v 1.6 2001/11/23 02:18:22 simonb Exp $
--- wrapzap.orig Fri Nov 23 12:30:44 2001
+++ wrapzap Fri Nov 23 12:34:21 2001
@@ -16,29 +16,9 @@
#
# modify this to match your install
-zapper=/usr/local/script/squid_redirect
-
-ZAP_MODE= # or "CLEAR"
-ZAP_BASE=http://adzap.cs.zip.com.au # a local web server will be better
-ZAP_BASE_SSL=https://adzap.cs.zip.com.au # 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
-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_WEBBUG=$ZAP_BASE/webbug.gif
-STUBURL_WEBBUGJS=$ZAP_BASE/webbug.js
+zapper=@@PREFIX@@/libexec/squid_redirect
+
+. /etc/adzap.conf
export ZAP_MODE ZAP_BASE ZAP_BASE_SSL ZAP_PREMATCH ZAP_POSTMATCH
export STUBURL_AD STUBURL_ADSSL STUBURL_ADJS STUBURL_ADHTML STUDURL_ADMP3 STUBURL_ADPOPUP \