summaryrefslogtreecommitdiff
path: root/www/adzap/Makefile
blob: c90a330c2eba0e302fe53eee8c9e63ff0c77f959 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# $NetBSD: Makefile,v 1.34 2003/03/29 12:42:47 jmmv Exp $
#

DISTNAME=	adzap-20030125
WRKSRC=		${WRKDIR}/adzap
CATEGORIES=	www perl5
# XXX: should use the following one day:
#MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=adzapper/}
MASTER_SITES=	http://adzapper.sourceforge.net/

MAINTAINER=	packages@netbsd.org
HOMEPAGE=	http://adzapper.sourceforge.net/
COMMENT=	filter out animated ad banners from web pages

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-cisra.pac 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"