diff options
author | J Robert Ray <jrray@gentoo.org> | 2002-11-11 05:23:24 +0000 |
---|---|---|
committer | J Robert Ray <jrray@gentoo.org> | 2002-11-11 05:23:24 +0000 |
commit | fc3185156ba0b39c2de51c31b4f3679a9e93a6c6 (patch) | |
tree | bfff92350b527bde79149e076b1cd9c06e68177c | |
parent | masking gtk-engines (diff) | |
download | gentoo-2-fc3185156ba0b39c2de51c31b4f3679a9e93a6c6.tar.gz gentoo-2-fc3185156ba0b39c2de51c31b4f3679a9e93a6c6.tar.bz2 gentoo-2-fc3185156ba0b39c2de51c31b4f3679a9e93a6c6.zip |
New ebuild
-rw-r--r-- | net-www/adzapper/ChangeLog | 8 | ||||
-rw-r--r-- | net-www/adzapper/adzapper-20021111.ebuild | 57 | ||||
-rw-r--r-- | net-www/adzapper/files/digest-adzapper-20021111 | 1 |
3 files changed, 66 insertions, 0 deletions
diff --git a/net-www/adzapper/ChangeLog b/net-www/adzapper/ChangeLog new file mode 100644 index 000000000000..e5ed50621097 --- /dev/null +++ b/net-www/adzapper/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for net-www/adzapper +# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-www/adzapper/ChangeLog,v 1.1 2002/11/11 05:23:24 jrray Exp $ + +*adzapper-20021111 (10 Nov 2002) + + 10 Nov 2002; J Robert Ray <jrray@gentoo.org> : + New ebuild. diff --git a/net-www/adzapper/adzapper-20021111.ebuild b/net-www/adzapper/adzapper-20021111.ebuild new file mode 100644 index 000000000000..74a2ffc6333b --- /dev/null +++ b/net-www/adzapper/adzapper-20021111.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-www/adzapper/adzapper-20021111.ebuild,v 1.1 2002/11/11 05:23:24 jrray Exp $ + +DESCRIPTION="redirector for squid that intercepts advertising, page counters and some web bugs" +HOMEPAGE="http://adzapper.sourceforge.net/" + +MY_P=${P/zapper/zap} +S="${WORKDIR}/adzap" + +SRC_URI="http://adzapper.sourceforge.net/${MY_P}.tar.gz" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +DEPEND="" +RDEPEND="net-www/squid" + +src_unpack() { + unpack ${A} + + SCRPATH="/etc/adzapper/squid_redirect" + + cd ${S}/scripts || die + + # 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 + 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 /home/httpd/htdocs/zaps + 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/net-www/adzapper/files/digest-adzapper-20021111 b/net-www/adzapper/files/digest-adzapper-20021111 new file mode 100644 index 000000000000..5e9b89d894e2 --- /dev/null +++ b/net-www/adzapper/files/digest-adzapper-20021111 @@ -0,0 +1 @@ +MD5 99e503d110107093248dffc4a07a8977 adzap-20021111.tar.gz 77093 |