summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2008-07-12 23:04:37 +0000
committerAlin Năstac <mrness@gentoo.org>2008-07-12 23:04:37 +0000
commitf8885d41b59d0b5968dec3eadbd5a1d026f2dc04 (patch)
tree81401cbf696fd45852265a03fe8200b4c7cc2243 /net-proxy
parentVersion bump. (diff)
downloadgentoo-2-f8885d41b59d0b5968dec3eadbd5a1d026f2dc04.tar.gz
gentoo-2-f8885d41b59d0b5968dec3eadbd5a1d026f2dc04.tar.bz2
gentoo-2-f8885d41b59d0b5968dec3eadbd5a1d026f2dc04.zip
Version bump.
(Portage version: 2.1.4.4)
Diffstat (limited to 'net-proxy')
-rw-r--r--net-proxy/adzapper/ChangeLog9
-rw-r--r--net-proxy/adzapper/adzapper-20080508.ebuild55
2 files changed, 62 insertions, 2 deletions
diff --git a/net-proxy/adzapper/ChangeLog b/net-proxy/adzapper/ChangeLog
index 70ba3cf14386..391feb622c6a 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.48 2007/12/30 10:10:55 mrness Exp $
+# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/adzapper/ChangeLog,v 1.49 2008/07/12 23:04:37 mrness Exp $
+
+*adzapper-20080508 (12 Jul 2008)
+
+ 12 Jul 2008; Alin Năstac <mrness@gentoo.org> +adzapper-20080508.ebuild:
+ Version bump.
*adzapper-20071120 (30 Dec 2007)
diff --git a/net-proxy/adzapper/adzapper-20080508.ebuild b/net-proxy/adzapper/adzapper-20080508.ebuild
new file mode 100644
index 000000000000..85e3d259585b
--- /dev/null
+++ b/net-proxy/adzapper/adzapper-20080508.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/adzapper/adzapper-20080508.ebuild,v 1.1 2008/07/12 23:04:37 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"
+}