1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/www/adzap/Makefile

39 lines
1013 B
Makefile

# Created by: Kris Kennaway <kris@FreeBSD.org>
# $FreeBSD$
PORTNAME= adzap
PORTVERSION= 20110915
CATEGORIES= www perl5
MASTER_SITES= http://adzapper.sourceforge.net/
MAINTAINER= ports@FreeBSD.org
COMMENT= Filter out animated ad banners from web pages
USES= perl5
NO_BUILD= yes
USE_PERL5= run
SUB_FILES= adzap.conf pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
NO_STAGE= yes
do-configure:
.for FILE in squid_redirect-nodata wrapzap zapchain
${REINPLACE_CMD} -e "s:/usr/bin/perl:${PERL5}:g" \
-e "s:%%PREFIX%%:${PREFIX}:g" ${WRKSRC}/scripts/${FILE}
.endfor
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/scripts/squid_redirect-nodata ${PREFIX}/libexec/
${INSTALL_SCRIPT} ${WRKSRC}/scripts/wrapzap ${PREFIX}/libexec/adzap
${INSTALL_SCRIPT} ${WRKSRC}/scripts/zapchain ${PREFIX}/libexec/
${INSTALL} -d ${EXAMPLESDIR}
${CP} -R ${WRKSRC}/zaps ${EXAMPLESDIR}
${CP} -R ${WRKSRC}/rc ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKDIR}/adzap.conf ${EXAMPLESDIR}
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>