summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-proxy/adzapper')
-rw-r--r--www-proxy/adzapper/ChangeLog7
-rw-r--r--www-proxy/adzapper/Manifest12
-rw-r--r--www-proxy/adzapper/adzapper-20050316.ebuild58
-rw-r--r--www-proxy/adzapper/files/digest-adzapper-200503161
4 files changed, 72 insertions, 6 deletions
diff --git a/www-proxy/adzapper/ChangeLog b/www-proxy/adzapper/ChangeLog
index 748d31c93f0d..1cbfe571ab17 100644
--- a/www-proxy/adzapper/ChangeLog
+++ b/www-proxy/adzapper/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for www-proxy/adzapper
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-proxy/adzapper/ChangeLog,v 1.7 2005/02/23 15:56:15 cryos Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-proxy/adzapper/ChangeLog,v 1.8 2005/03/20 22:34:20 mrness Exp $
+
+*adzapper-20050316 (21 Mar 2005)
+
+ 21 Mar 2005; Alin Nastac <mrness@gentoo.org> +adzapper-20050316.ebuild:
+ Version bump (#86041).
*adzapper-20050106 (23 Feb 2005)
diff --git a/www-proxy/adzapper/Manifest b/www-proxy/adzapper/Manifest
index 07d4d2f23816..e7c09fc01a69 100644
--- a/www-proxy/adzapper/Manifest
+++ b/www-proxy/adzapper/Manifest
@@ -3,14 +3,16 @@ Hash: SHA1
MD5 7bd9ec75f217ba0e17a7faa4bc115466 adzapper-20040408.ebuild 1464
MD5 6468530c7f00afcc485ded995f848d10 adzapper-20050106.ebuild 1521
-MD5 6fa0b5433ce642178cafe67679ed3d9c ChangeLog 3417
+MD5 8884ef6a8a0eef2338853b1114800ff9 adzapper-20050316.ebuild 1523
+MD5 4bbfec37211bf2fc236d8ca5cf6bea3a ChangeLog 3552
MD5 721f99d55a63f5e643476a5340957c04 metadata.xml 368
MD5 d1666b04a8c2b141f1a5875a0eea33f0 files/digest-adzapper-20040408 65
MD5 e7d816cf4877320a48ec63fb3b3b7d6c files/digest-adzapper-20050106 65
+MD5 2d648a6b3987ab877735484f8fa35b59 files/digest-adzapper-20050316 65
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.2.6 (GNU/Linux)
+Version: GnuPG v1.4.1 (GNU/Linux)
-iD8DBQFCHKe/ntT9W3vfTuoRAieeAJ9GSBG+L+8Wxf50oA5Czz6NdAWY3ACfWwOj
-/BOttK+/zpZUi7JHT9Ux3rw=
-=mMM4
+iD8DBQFCPfp1jiC39V7gKu0RAp6XAKCIyK23RsdSRsF5vyizKePs95rsEQCfTs5q
+Tk9s2LjFLGasE5HiP5xqYdw=
+=JTRg
-----END PGP SIGNATURE-----
diff --git a/www-proxy/adzapper/adzapper-20050316.ebuild b/www-proxy/adzapper/adzapper-20050316.ebuild
new file mode 100644
index 000000000000..a04ad2448979
--- /dev/null
+++ b/www-proxy/adzapper/adzapper-20050316.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-proxy/adzapper/adzapper-20050316.ebuild,v 1.1 2005/03/20 22:34:20 mrness Exp $
+
+MY_P=${P/zapper/zap}
+
+DESCRIPTION="Redirector for squid that intercepts advertising, page counters and some web bugs"
+HOMEPAGE="http://adzapper.sourceforge.net/"
+SRC_URI="http://adzapper.sourceforge.net/${MY_P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~sparc ~alpha ~amd64"
+IUSE=""
+
+DEPEND=""
+RDEPEND="www-proxy/squid"
+
+S="${WORKDIR}/adzap"
+
+src_unpack() {
+ unpack ${A}
+
+ SCRPATH="/etc/adzapper/squid_redirect"
+
+ cd ${S}/scripts || die "Error no scripts dir."
+
+ # 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 "sed updating failed."
+ 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 /var/www/localhost/htdocs/zap
+ 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/www-proxy/adzapper/files/digest-adzapper-20050316 b/www-proxy/adzapper/files/digest-adzapper-20050316
new file mode 100644
index 000000000000..e617475e9192
--- /dev/null
+++ b/www-proxy/adzapper/files/digest-adzapper-20050316
@@ -0,0 +1 @@
+MD5 c5e85d7664b873deea48f8ad16a5f68e adzap-20050316.tar.gz 49003