ports/117887: www/adzap : make it also install zapchain, to chain redirectors into squid.
Guido Falsi
mad at madpilot.net
Wed Nov 7 11:20:03 UTC 2007
>Number: 117887
>Category: ports
>Synopsis: www/adzap : make it also install zapchain, to chain redirectors into squid.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Nov 07 11:20:02 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator: Guido Falsi
>Release: FreeBSD 7.0-BETA2 i386
>Organization:
none
>Environment:
System: FreeBSD wedge.madpilot.net 7.0-BETA2 FreeBSD 7.0-BETA2 #42: Sat Nov 3 15:55:18 CET 2007 root at wedge.madpilot.net:/usr/obj/usr/src/sys/WEDGE i386
>Description:
adzap comes with an handy perl script to chain more than one
url_rewriter into squid. This makes it possibile to zap ads with
adzap and, for example, check urls with squidguard after that.
I'm using this script on multiple machines, and am always patching
the port manually for this, so I thought I could send a PR for this.
>How-To-Repeat:
>Fix:
diff -ruN adzap.old/Makefile adzap/Makefile
--- adzap.old/Makefile 2007-11-07 10:52:46.000000000 +0100
+++ adzap/Makefile 2007-11-07 10:54:06.000000000 +0100
@@ -6,6 +6,7 @@
PORTNAME= adzap
PORTVERSION= 20071023
+PORTREVISION= 1
CATEGORIES= www perl5
MASTER_SITES= http://adzapper.sourceforge.net/ LOCAL/kris
@@ -21,7 +22,7 @@
PKGMESSAGE= ${WRKDIR}/pkg-message
do-configure:
-.for FILE in squid_redirect wrapzap
+.for FILE in squid_redirect wrapzap zapchain
${REINPLACE_CMD} -e "s:/usr/bin/perl:${PERL5}:g" \
-e "s:%%PREFIX%%:${PREFIX}:g" ${WRKSRC}/scripts/${FILE}
.endfor
@@ -29,6 +30,7 @@
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/scripts/squid_redirect ${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}
diff -ruN adzap.old/pkg-plist adzap/pkg-plist
--- adzap.old/pkg-plist 2007-11-07 10:52:46.000000000 +0100
+++ adzap/pkg-plist 2007-11-07 10:54:19.000000000 +0100
@@ -1,5 +1,6 @@
libexec/adzap
libexec/squid_redirect
+libexec/zapchain
%%EXAMPLESDIR%%/adzap.conf
%%EXAMPLESDIR%%/rc/proxy-home.pac
%%EXAMPLESDIR%%/rc/proxy-zip.pac
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list