0832160ed6
* 2004-04-08 cameron: scripts/squid_redirect: Move % unescaping into the zap pattern matching function so that $words[0] remains undamaged. Previously a %20 in an input URL which hit a PASS rule (or no rule) transmuted into a bare space, and other nasty chars could do likewise - I imagine a %0a would really break stuff. Rod Savard reported this issue, which breaks chained redirectors, on 29mar2004. * 2004-03-31 cameron: rc/patterns: popups from popup.scambiositi.com * 2004-03-07 cameron: scripts/squid_redirect: Jean-Pierre Radley reports that the /usr/bin/env trick fails because SCO OpenServer 5.0.x has /bin/env, not /usr/bin/env. So I've reverted to the older, simpler system, undoing the suggestion of Petri T. Koistinen. Mykefile: Use $HOMEHOST instead of hardwiring "amadeus". * 2004-03-06 cameron: scripts/squid_redirect: Set #! line to #!/usr/bin/env perl on suggestion from Petri T. Koistinen. rc/patterns: popup at www.military.com from John Woodstock falkag.(de|net) pattern updates from Nick Leverton * 2004-02-03 cameron: rc/patterns: PRINT rule for sciencedaily.com planetark.com PRINT rule * 2004-01-31 cameron: rc/patterns: self ads at bigfoot * 2004-01-29 cameron: rc/patterns: more SWF ads * 2004-01-26 cameron: rc/patterns: content.ad-flow.com GIFs .falkag.net GIFs * 2004-01-22 cameron: rc/patterns: another PRINT rule for abc.net.au * 2004-01-20 cameron: rc/patterns: ads from klipmart.dvlabs.com, seen at forbes.com * 2004-01-19 cameron: rc/patterns: widen http://servedby.advertising.com/** on report from Billy Newsom big exception for webmail.aol.com from Neal Macklin exception for NYTIMES article about popup ads * 2004-01-14 cameron: rc/patterns: bar.hit-counter.udub.com * 2004-01-08 cameron: rc/patterns: raise priority of .yimg.com PASS rule on report from Mike Mitchell
44 lines
1.6 KiB
Makefile
44 lines
1.6 KiB
Makefile
# $NetBSD: Makefile,v 1.44 2004/04/19 21:37:22 kleink Exp $
|
|
#
|
|
|
|
DISTNAME= adzap-20040408
|
|
CATEGORIES= www perl5
|
|
# XXX: should use the following one day:
|
|
#MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=adzapper/}
|
|
MASTER_SITES= http://adzapper.sourceforge.net/
|
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
|
HOMEPAGE= http://adzapper.sourceforge.net/
|
|
COMMENT= Filter out animated ad banners from web pages
|
|
|
|
WRKSRC= ${WRKDIR}/adzap
|
|
NO_BUILD= # defined
|
|
USE_PERL5= # defined
|
|
|
|
do-configure:
|
|
.for FILE in scripts/squid_redirect scripts/wrapzap
|
|
${CP} ${WRKSRC}/${FILE} ${WRKSRC}/${FILE}.ORIG
|
|
${SED} -e "s:/usr/bin/perl:${PERL5}:g" \
|
|
-e "s:@@PREFIX@@:${PREFIX}:g" \
|
|
<${WRKSRC}/${FILE}.ORIG >${WRKSRC}/${FILE}
|
|
.endfor
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/scripts/squid_redirect ${PREFIX}/libexec
|
|
${INSTALL_SCRIPT} ${WRKSRC}/scripts/wrapzap ${PREFIX}/libexec/adzap
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/adzap
|
|
.for FILE in ad-clear.gif ad-clear.mp3 ad-clear.swf ad-grey.gif ad-old.gif \
|
|
ad.gif ad.mp3 ad.swf adbg-clear.gif adbg.gif \
|
|
closepopup-clear.html closepopup.html counter-clear.gif counter.gif \
|
|
no-op-clear.html no-op-clear.js no-op-counter-clear.html \
|
|
no-op-counter-clear.js no-op-counter.html no-op-counter.js \
|
|
no-op.html no-op.js webbug-clear.gif webbug-clear.js webbug.gif webbug.js
|
|
${INSTALL_DATA} ${WRKSRC}/zaps/${FILE} ${PREFIX}/share/examples/adzap
|
|
.endfor
|
|
.for FILE in proxy-home.pac proxy-zip.pac
|
|
${INSTALL_DATA} ${WRKSRC}/rc/${FILE} ${PREFIX}/share/examples/adzap
|
|
.endfor
|
|
${INSTALL_DATA} ${WRKSRC}/scripts/adzap.conf \
|
|
${PREFIX}/share/examples/adzap
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|