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
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 07 11:20:02 UTC 2007
>Originator:     Guido Falsi
>Release:        FreeBSD 7.0-BETA2 i386
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


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.


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
 CATEGORIES=	www perl5
 MASTER_SITES=	http://adzapper.sourceforge.net/ LOCAL/kris
@@ -21,7 +22,7 @@
 PKGMESSAGE=	${WRKDIR}/pkg-message
-.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}
@@ -29,6 +30,7 @@
 	${INSTALL_SCRIPT} ${WRKSRC}/scripts/squid_redirect ${PREFIX}/libexec/
 	${INSTALL_SCRIPT} ${WRKSRC}/scripts/wrapzap ${PREFIX}/libexec/adzap
+	${INSTALL_SCRIPT} ${WRKSRC}/scripts/zapchain ${PREFIX}/libexec/
 	${CP} -R ${WRKSRC}/zaps ${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 @@

More information about the freebsd-ports-bugs mailing list