summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2012-08-01 19:36:05 +0000
committerJeroen Roovers <jer@gentoo.org>2012-08-01 19:36:05 +0000
commit5f65cdb358a4ddd43d5640e0766c5d8c3eba7eda (patch)
treee6c3702b9dd2bbfc6df2572c38c6c4aa81510670 /net-proxy/adzapper
parentAdd ~amd64-fbsd keyword, with permission from ryao. (diff)
downloadgentoo-2-5f65cdb358a4ddd43d5640e0766c5d8c3eba7eda.tar.gz
gentoo-2-5f65cdb358a4ddd43d5640e0766c5d8c3eba7eda.tar.bz2
gentoo-2-5f65cdb358a4ddd43d5640e0766c5d8c3eba7eda.zip
Version bump thanks to Elias Probst and Florian Steinel (bug #277909).
(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)
Diffstat (limited to 'net-proxy/adzapper')
-rw-r--r--net-proxy/adzapper/ChangeLog9
-rw-r--r--net-proxy/adzapper/adzapper-20110915.ebuild53
2 files changed, 60 insertions, 2 deletions
diff --git a/net-proxy/adzapper/ChangeLog b/net-proxy/adzapper/ChangeLog
index 5046e9e1b67e..d386a54cab0e 100644
--- a/net-proxy/adzapper/ChangeLog
+++ b/net-proxy/adzapper/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-proxy/adzapper
-# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/adzapper/ChangeLog,v 1.59 2009/04/20 20:19:49 maekke Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/adzapper/ChangeLog,v 1.60 2012/08/01 19:36:05 jer Exp $
+
+*adzapper-20110915 (01 Aug 2012)
+
+ 01 Aug 2012; Jeroen Roovers <jer@gentoo.org> +adzapper-20110915.ebuild:
+ Version bump thanks to Elias Probst and Florian Steinel (bug #277909).
20 Apr 2009; Markus Meier <maekke@gentoo.org> adzapper-20080508:
amd64 stable, bug #257531
diff --git a/net-proxy/adzapper/adzapper-20110915.ebuild b/net-proxy/adzapper/adzapper-20110915.ebuild
new file mode 100644
index 000000000000..6b83238dfdd7
--- /dev/null
+++ b/net-proxy/adzapper/adzapper-20110915.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/adzapper/adzapper-20110915.ebuild,v 1.1 2012/08/01 19:36:05 jer Exp $
+
+EAPI=4
+
+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"
+
+S="${WORKDIR}"/${P/per/}
+
+src_prepare() {
+ # update the zapper path in various scripts
+ local SCRPATH="/etc/adzapper/squid_redirect"
+ sed -i scripts/wrapzap scripts/update-zapper* \
+ -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\"|" \
+ || die "sed updating failed."
+}
+
+src_install() {
+ exeinto /etc/adzapper
+ doexe \
+ scripts/wrapzap \
+ scripts/zapchain \
+ adblock-plus/adblockplus2adzapper.py
+ newexe scripts/squid_redirect{-nodata,}
+
+ insinto /etc/adzapper
+ doins scripts/update-zapper*
+
+ insinto /var/www/localhost/htdocs/zap
+ doins zaps/*
+}
+
+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"
+}