summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-www/adzapper/ChangeLog8
-rw-r--r--net-www/adzapper/Manifest4
-rw-r--r--net-www/adzapper/adzapper-20030525.ebuild57
-rw-r--r--net-www/adzapper/files/digest-adzapper-200305251
4 files changed, 68 insertions, 2 deletions
diff --git a/net-www/adzapper/ChangeLog b/net-www/adzapper/ChangeLog
index 368de9398d11..753dd5ddd3f7 100644
--- a/net-www/adzapper/ChangeLog
+++ b/net-www/adzapper/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-www/adzapper
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-www/adzapper/ChangeLog,v 1.5 2003/02/12 08:46:19 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-www/adzapper/ChangeLog,v 1.6 2003/06/04 20:10:20 brad Exp $
+
+*adzapper-20030525 (04 June 2003)
+
+ 04 June 2003; Brad Laue <brad@gentoo.org> : Version bump,
+ This is a perl script, so I'm adding architecture support for all
+ platforms squid supports.
*adzapper-20030111 (13 Jan 2003)
diff --git a/net-www/adzapper/Manifest b/net-www/adzapper/Manifest
index 2495a7805459..a12909052694 100644
--- a/net-www/adzapper/Manifest
+++ b/net-www/adzapper/Manifest
@@ -1,3 +1,5 @@
-MD5 db94e3b3b532836630b01cfde71a8cb0 ChangeLog 778
MD5 34c58b1e9cdc53326c9bcaeb384f9032 adzapper-20030111.ebuild 1447
+MD5 f7e4b9429a525b8f2c029e1f08ce1a2d adzapper-20030525.ebuild 1465
+MD5 2bb767c342aea9397edbcd71852fa750 ChangeLog 969
MD5 742f1b62464905c66b4b852293227925 files/digest-adzapper-20030111 65
+MD5 7e44cc6b5c8fc3c862ed5266e1dff0fc files/digest-adzapper-20030525 65
diff --git a/net-www/adzapper/adzapper-20030525.ebuild b/net-www/adzapper/adzapper-20030525.ebuild
new file mode 100644
index 000000000000..88c94381ee6a
--- /dev/null
+++ b/net-www/adzapper/adzapper-20030525.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-www/adzapper/adzapper-20030525.ebuild,v 1.1 2003/06/04 20:10:20 brad Exp $
+
+DESCRIPTION="redirector for squid that intercepts advertising, page counters and some web bugs"
+HOMEPAGE="http://adzapper.sourceforge.net/"
+
+MY_P=${P/zapper/zap}
+S="${WORKDIR}/adzap"
+
+SRC_URI="http://adzapper.sourceforge.net/${MY_P}.tar.gz"
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~sparc ~alpha"
+IUSE=""
+
+DEPEND=""
+RDEPEND="net-www/squid"
+
+src_unpack() {
+ unpack ${A}
+
+ SCRPATH="/etc/adzapper/squid_redirect"
+
+ cd ${S}/scripts || die
+
+ # update the zapper path in various scripts
+ for src in wrapzap update-zapper*; do
+ mv $src $src.orig || die
+ sed -e "s|^zapper=.*|zapper=${SCRPATH}|" \
+ -e "s|^ZAPPER=.*|ZAPPER=\"${SCRPATH}\"|" \
+ -e "s|^pidfile=.*|pidfile=/var/run/squid.pid|" \
+ -e "s|^PIDFILE=.*|PIDFILE=\"/var/run/squid.pid\"|" \
+ -e "s|^RESTARTCMD=.*|RESTARTCMD=\"/etc/init.d/squid restart\"|" \
+ $src.orig > $src || die
+ rm $src.orig
+ done
+}
+
+src_install() {
+ cd ${S}/scripts
+ exeinto /etc/adzapper
+ doexe wrapzap zapchain squid_redirect
+
+ insinto /etc/adzapper
+ doins update-zapper*
+
+ cd ${S}/zaps
+ insinto /home/httpd/htdocs/zaps
+ doins *
+}
+
+pkg_postinst() {
+ einfo "To enable adzapper add the following lines to squid.conf:"
+ einfo "redirect_program /etc/adzapper/wrapzap"
+ einfo "redirect_children 10"
+}
diff --git a/net-www/adzapper/files/digest-adzapper-20030525 b/net-www/adzapper/files/digest-adzapper-20030525
new file mode 100644
index 000000000000..1aa0dc90f411
--- /dev/null
+++ b/net-www/adzapper/files/digest-adzapper-20030525
@@ -0,0 +1 @@
+MD5 cc35301d52410c883a17f7344c64232e adzap-20030525.tar.gz 33375