diff options
author | Alin Năstac <mrness@gentoo.org> | 2007-01-17 18:52:28 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2007-01-17 18:52:28 +0000 |
commit | c7f303a304ba8e132b72c6819fe8b6e72d4605a8 (patch) | |
tree | 694436ec3d97c8985cc29d588be22bf33916c600 | |
parent | Fixing erroneous comment on masked package. (diff) | |
download | gentoo-2-c7f303a304ba8e132b72c6819fe8b6e72d4605a8.tar.gz gentoo-2-c7f303a304ba8e132b72c6819fe8b6e72d4605a8.tar.bz2 gentoo-2-c7f303a304ba8e132b72c6819fe8b6e72d4605a8.zip |
amd64; version bump
(Portage version: 2.1.1-r2)
-rw-r--r-- | net-proxy/adzapper/ChangeLog | 10 | ||||
-rw-r--r-- | net-proxy/adzapper/adzapper-20060909.ebuild | 6 | ||||
-rw-r--r-- | net-proxy/adzapper/adzapper-20061217.ebuild | 59 | ||||
-rw-r--r-- | net-proxy/adzapper/files/digest-adzapper-20061217 | 3 |
4 files changed, 73 insertions, 5 deletions
diff --git a/net-proxy/adzapper/ChangeLog b/net-proxy/adzapper/ChangeLog index 21252724c709..44c2cb31693c 100644 --- a/net-proxy/adzapper/ChangeLog +++ b/net-proxy/adzapper/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-proxy/adzapper -# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/adzapper/ChangeLog,v 1.34 2006/11/17 14:15:06 gustavoz Exp $ +# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/adzapper/ChangeLog,v 1.35 2007/01/17 18:52:28 mrness Exp $ + +*adzapper-20061217 (17 Jan 2007) + + 17 Jan 2007; Alin Năstac <mrness@gentoo.org> adzapper-20060909.ebuild, + +adzapper-20061217.ebuild: + Stable on amd64. Version bump. 17 Nov 2006; Gustavo Zacarias <gustavoz@gentoo.org> adzapper-20060909.ebuild: diff --git a/net-proxy/adzapper/adzapper-20060909.ebuild b/net-proxy/adzapper/adzapper-20060909.ebuild index d04a27401a74..6f3e9bf99e89 100644 --- a/net-proxy/adzapper/adzapper-20060909.ebuild +++ b/net-proxy/adzapper/adzapper-20060909.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2006 Gentoo Foundation +# 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-20060909.ebuild,v 1.4 2006/11/17 14:15:06 gustavoz Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-proxy/adzapper/adzapper-20060909.ebuild,v 1.5 2007/01/17 18:52:28 mrness Exp $ MY_P=${P/zapper/zap} @@ -10,7 +10,7 @@ SRC_URI="http://adzapper.sourceforge.net/${MY_P}.tar.gz" LICENSE="BSD" SLOT="0" -KEYWORDS="~alpha ~amd64 ~hppa ~ppc sparc x86" +KEYWORDS="~alpha amd64 ~hppa ~ppc sparc x86" IUSE="" RDEPEND="dev-lang/perl diff --git a/net-proxy/adzapper/adzapper-20061217.ebuild b/net-proxy/adzapper/adzapper-20061217.ebuild new file mode 100644 index 000000000000..e237149f8779 --- /dev/null +++ b/net-proxy/adzapper/adzapper-20061217.ebuild @@ -0,0 +1,59 @@ +# 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-20061217.ebuild,v 1.1 2007/01/17 18:52:28 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 " - for squid ver 2.5" + einfo " ${HILITE}redirect_program /etc/adzapper/wrapzap${NORMAL}" + einfo " ${HILITE}redirect_children 10${NORMAL}" + einfo " - for squid ver 2.6" + einfo " ${HILITE}url_rewrite_program /etc/adzapper/wrapzap${NORMAL}" + einfo " ${HILITE}url_rewrite_children 10${NORMAL}" +} diff --git a/net-proxy/adzapper/files/digest-adzapper-20061217 b/net-proxy/adzapper/files/digest-adzapper-20061217 new file mode 100644 index 000000000000..4836818b68db --- /dev/null +++ b/net-proxy/adzapper/files/digest-adzapper-20061217 @@ -0,0 +1,3 @@ +MD5 540efd85f5094ea90526401f7c5a76f2 adzap-20061217.tar.gz 53622 +RMD160 58ba3cf7e1736f96f9ea62f1fbd2e1f7c8f8d26d adzap-20061217.tar.gz 53622 +SHA256 f7a27effa8724b50ae9bd3ea87dd35ebea212d3ea512fa7af9651e3c6b3d3e2d adzap-20061217.tar.gz 53622 |