2001-03-04 00:07:23 -05:00
|
|
|
# New ports collection makefile for: adzap
|
|
|
|
# Date created: 03 March 2001
|
|
|
|
# Whom: Kris Kennaway <kris@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= adzap
|
2003-05-11 04:08:38 -04:00
|
|
|
PORTVERSION= 20030505
|
2001-03-04 00:07:23 -05:00
|
|
|
CATEGORIES= www perl5
|
2002-11-16 23:04:50 -05:00
|
|
|
MASTER_SITES= http://adzapper.sourceforge.net/ \
|
2001-07-15 20:21:58 -04:00
|
|
|
${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITE_SUBDIR=kris
|
2001-03-04 00:07:23 -05:00
|
|
|
|
|
|
|
MAINTAINER= kris@FreeBSD.org
|
2003-03-07 01:14:21 -05:00
|
|
|
COMMENT= Filter out animated ad banners from web pages
|
2001-03-04 00:07:23 -05:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/adzap
|
|
|
|
|
|
|
|
NO_BUILD= # defined
|
|
|
|
USE_PERL5= # defined
|
2002-01-05 21:27:08 -05:00
|
|
|
ZAPFILES= adzap.conf closepopup-clear.html no-op-clear.html \
|
|
|
|
closepopup.html no-op.html no-op-clear.js no-op.js \
|
|
|
|
ad-clear.gif ad-clear.mp3 ad-clear.swf ad.gif
|
|
|
|
RCFILES= proxy-cisra.pac proxy-home.pac proxy-zip.pac
|
2001-03-04 00:07:23 -05:00
|
|
|
|
|
|
|
do-configure:
|
|
|
|
.for FILE in squid_redirect wrapzap
|
2002-01-05 21:27:08 -05:00
|
|
|
${PERL} -pi -e "s:/usr/bin/perl:${PERL5}:g; \
|
|
|
|
s:%%PREFIX%%:${PREFIX}:g" ${WRKSRC}/scripts/${FILE}
|
|
|
|
${PERL} -pi -e "s:%%PREFIX%%:${PREFIX}:g" ${WRKSRC}/zaps/adzap.conf
|
2001-03-04 00:07:23 -05:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
do-install:
|
2002-01-05 21:27:08 -05:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/scripts/squid_redirect ${PREFIX}/libexec
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/scripts/wrapzap ${PREFIX}/libexec/adzap
|
2001-03-04 00:07:23 -05:00
|
|
|
${MKDIR} ${PREFIX}/share/examples/adzap
|
2002-01-05 21:27:08 -05:00
|
|
|
.for FILE in ${ZAPFILES}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/zaps/${FILE} ${PREFIX}/share/examples/adzap
|
|
|
|
.endfor
|
|
|
|
.for FILE in ${RCFILES}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/rc/${FILE} ${PREFIX}/share/examples/adzap
|
2001-03-04 00:07:23 -05:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|