2012-10-28 07:30:00 +01:00
|
|
|
# $NetBSD: Makefile,v 1.65 2012/10/28 06:30:01 asau Exp $
|
2000-04-25 11:40:25 +02:00
|
|
|
#
|
|
|
|
|
2008-10-30 02:28:53 +01:00
|
|
|
DISTNAME= adzap-20080508
|
2012-10-03 23:53:53 +02:00
|
|
|
PKGREVISION= 1
|
2000-08-27 04:46:03 +02:00
|
|
|
CATEGORIES= www perl5
|
2003-01-22 13:52:35 +01:00
|
|
|
# XXX: should use the following one day:
|
|
|
|
#MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=adzapper/}
|
|
|
|
MASTER_SITES= http://adzapper.sourceforge.net/
|
2000-04-25 11:40:25 +02:00
|
|
|
|
2005-10-02 07:04:48 +02:00
|
|
|
MAINTAINER= simonb@NetBSD.org
|
2003-01-22 13:52:35 +01:00
|
|
|
HOMEPAGE= http://adzapper.sourceforge.net/
|
2003-07-22 06:14:17 +02:00
|
|
|
COMMENT= Filter out animated ad banners from web pages
|
2001-02-17 18:21:28 +01:00
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}/adzap
|
2005-09-28 14:06:36 +02:00
|
|
|
NO_BUILD= yes
|
2005-07-16 03:19:06 +02:00
|
|
|
USE_TOOLS+= perl:run
|
2000-04-25 11:40:25 +02:00
|
|
|
|
2006-12-12 14:52:20 +01:00
|
|
|
CHECK_PORTABILITY_SKIP= scripts/update-zapper.damien
|
|
|
|
|
2008-06-12 04:14:13 +02:00
|
|
|
INSTALLATION_DIRS= libexec share/examples/adzap
|
2005-06-17 05:50:19 +02:00
|
|
|
|
2000-04-25 11:40:25 +02:00
|
|
|
do-configure:
|
2002-01-10 01:41:45 +01:00
|
|
|
.for FILE in scripts/squid_redirect scripts/wrapzap
|
2001-04-04 09:08:48 +02:00
|
|
|
${CP} ${WRKSRC}/${FILE} ${WRKSRC}/${FILE}.ORIG
|
2000-08-27 04:46:03 +02:00
|
|
|
${SED} -e "s:/usr/bin/perl:${PERL5}:g" \
|
2000-04-25 11:40:25 +02:00
|
|
|
-e "s:@@PREFIX@@:${PREFIX}:g" \
|
2001-04-04 09:08:48 +02:00
|
|
|
<${WRKSRC}/${FILE}.ORIG >${WRKSRC}/${FILE}
|
2000-04-25 11:40:25 +02:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
do-install:
|
2008-06-12 04:14:13 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/scripts/squid_redirect ${DESTDIR}${PREFIX}/libexec
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/scripts/wrapzap ${DESTDIR}${PREFIX}/libexec/adzap
|
2005-01-04 00:48:21 +01:00
|
|
|
.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-clear.js \
|
|
|
|
counter.gif counter.js \
|
|
|
|
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.html webbug-clear.js \
|
|
|
|
webbug.gif webbug.html webbug.js
|
2008-06-12 04:14:13 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/zaps/${FILE} ${DESTDIR}${PREFIX}/share/examples/adzap
|
2000-04-25 11:40:25 +02:00
|
|
|
.endfor
|
2003-10-19 01:23:41 +02:00
|
|
|
.for FILE in proxy-home.pac proxy-zip.pac
|
2008-06-12 04:14:13 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/rc/${FILE} ${DESTDIR}${PREFIX}/share/examples/adzap
|
2002-01-10 01:41:45 +01:00
|
|
|
.endfor
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/scripts/adzap.conf \
|
2008-06-12 04:14:13 +02:00
|
|
|
${DESTDIR}${PREFIX}/share/examples/adzap
|
2000-04-25 11:40:25 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|