2001-03-04 05:07:23 +00:00
|
|
|
# New ports collection makefile for: adzap
|
|
|
|
# Date created: 03 March 2001
|
|
|
|
# Whom: Kris Kennaway <kris@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= adzap
|
2001-05-06 05:52:24 +00:00
|
|
|
PORTVERSION= 20010504
|
2001-03-04 05:07:23 +00:00
|
|
|
CATEGORIES= www perl5
|
|
|
|
MASTER_SITES= http://www.zip.com.au/~cs/adzap/
|
|
|
|
|
|
|
|
MAINTAINER= kris@FreeBSD.org
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/adzap
|
|
|
|
|
|
|
|
NO_BUILD= # defined
|
|
|
|
USE_PERL5= # defined
|
|
|
|
|
|
|
|
do-configure:
|
|
|
|
.for FILE in squid_redirect 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
|
2001-04-17 16:11:10 +00:00
|
|
|
# ${SED} s,%PREFIX%,${PREFIX}, < ${WRKSRC}/wrapzap > ${WRKSRC}/adzap
|
2001-03-04 05:07:23 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/squid_redirect ${PREFIX}/libexec
|
2001-04-17 16:11:10 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/wrapzap ${PREFIX}/libexec/adzap
|
2001-03-04 05:07:23 +00:00
|
|
|
${MKDIR} ${PREFIX}/share/examples/adzap
|
|
|
|
.for FILE in adzap.conf proxy-cisra.pac proxy-home.pac proxy-zip.pac \
|
|
|
|
closepopup-clear.html no-op-clear.html closepopup.html no-op.html \
|
2001-05-06 05:52:24 +00:00
|
|
|
no-op-clear.js no-op.js ad-clear.gif ad-clear.mp3 ad-clear.swf ad.gif
|
2001-03-04 05:07:23 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${FILE} ${PREFIX}/share/examples/adzap
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|