--- update-zapper.orig Sun Jan 5 05:28:38 2003 +++ update-zapper Tue Sep 2 23:01:53 2003 @@ -8,15 +8,16 @@ # masterurl=http://adzapper.sourceforge.net/scripts/squid_redirect -zapper=/usr/local/etc/squid_redirect ## hack to suit your site -pidfile=/var/run/squid-noads.pid ## hack to suit, again +zapper=%%PREFIX%%/etc/squirm/squid_redirect ## hack to suit your site +pidfile=%%PREFIX%%/squid/logs/squid.pid ## hack to suit, again tmp=/tmp/newzapper$$ -if wget -q --cache=off -O $tmp "$masterurl" +if %%FETCH_CMD%% -q -o $tmp "$masterurl" then [ ! -s "$tmp" ] \ || cmp -s "$tmp" "$zapper" \ - || ( cat "$tmp" >"$zapper" || exit 1 + || ( cat "$tmp" | sed -e "s@\|)@\|\.\*)@g" -e "s@(\|@(\.\*\|@g" >"$zapper" || exit 1 + (cd %%PREFIX%%/etc/squirm && %%PREFIX%%/bin/a2swrap) [ -s "$pidfile" ] && kill -1 `cat "$pidfile"` ) fi