summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-proxy/adzapper')
-rw-r--r--net-proxy/adzapper/ChangeLog7
-rw-r--r--net-proxy/adzapper/adzapper-20071120.ebuild55
-rw-r--r--net-proxy/adzapper/files/digest-adzapper-200711203
3 files changed, 64 insertions, 1 deletions
diff --git a/net-proxy/adzapper/ChangeLog b/net-proxy/adzapper/ChangeLog
index 6b3cf9d7b120..70ba3cf14386 100644
--- a/net-proxy/adzapper/ChangeLog
+++ b/net-proxy/adzapper/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-proxy/adzapper
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/adzapper/ChangeLog,v 1.47 2007/11/02 14:27:15 mrness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/adzapper/ChangeLog,v 1.48 2007/12/30 10:10:55 mrness Exp $
+
+*adzapper-20071120 (30 Dec 2007)
+
+ 30 Dec 2007; Alin Năstac <mrness@gentoo.org> +adzapper-20071120.ebuild:
+ Version bump.
*adzapper-20071023 (02 Nov 2007)
diff --git a/net-proxy/adzapper/adzapper-20071120.ebuild b/net-proxy/adzapper/adzapper-20071120.ebuild
new file mode 100644
index 000000000000..6a3d7aeae0a5
--- /dev/null
+++ b/net-proxy/adzapper/adzapper-20071120.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/adzapper/adzapper-20071120.ebuild,v 1.1 2007/12/30 10:10:55 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="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86"
+IUSE=""
+
+RDEPEND="dev-lang/perl
+ net-proxy/squid"
+
+S="${WORKDIR}/adzap"
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}/scripts" || die "Scripts directory not found"
+
+ # update the zapper path in various scripts
+ local f SCRPATH="/etc/adzapper/squid_redirect"
+ for f in wrapzap update-zapper*; do
+ sed -i -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\"|" \
+ $f || die "sed updating failed."
+ 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 /etc/squid/squid.conf:"
+ einfo " url_rewrite_program /etc/adzapper/wrapzap"
+ einfo " url_rewrite_children 10"
+}
diff --git a/net-proxy/adzapper/files/digest-adzapper-20071120 b/net-proxy/adzapper/files/digest-adzapper-20071120
new file mode 100644
index 000000000000..534014d87622
--- /dev/null
+++ b/net-proxy/adzapper/files/digest-adzapper-20071120
@@ -0,0 +1,3 @@
+MD5 32eb82f36f36079b793d9ee8593178f3 adzap-20071120.tar.gz 56267
+RMD160 7a7f84e4ac4a02d3b48c49bbad0a7f7bee2433f3 adzap-20071120.tar.gz 56267
+SHA256 6a2983fe13007ad0f732719f135871382411ed1718aa4c3873bedf65f3f2f145 adzap-20071120.tar.gz 56267