/[gentoo-x86]/net-proxy/adzapper/adzapper-20050106.ebuild
Gentoo

Contents of /net-proxy/adzapper/adzapper-20050106.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Jul 30 07:28:22 2005 UTC (12 years, 1 month ago) by mrness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
remove oldies; x86; version bump
(Portage version: 2.0.51.22-r2)

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-proxy/adzapper/adzapper-20050106.ebuild,v 1.1 2005/04/22 19:15:11 mrness Exp $
4
5 DESCRIPTION="Redirector for squid that intercepts advertising, page counters and some web bugs"
6 HOMEPAGE="http://adzapper.sourceforge.net/"
7
8 MY_P=${P/zapper/zap}
9 S="${WORKDIR}/adzap"
10
11 SRC_URI="http://adzapper.sourceforge.net/${MY_P}.tar.gz"
12 LICENSE="BSD"
13 SLOT="0"
14 KEYWORDS="~x86 ~ppc ~sparc ~alpha ~amd64"
15 IUSE=""
16
17 RDEPEND="net-proxy/squid"
18
19 src_unpack() {
20 unpack ${A}
21
22 SCRPATH="/etc/adzapper/squid_redirect"
23
24 cd ${S}/scripts || die "Error no scripts dir."
25
26 # update the zapper path in various scripts
27 for src in wrapzap update-zapper*; do
28 mv $src $src.orig || die
29 sed -e "s|^zapper=.*|zapper=${SCRPATH}|" \
30 -e "s|^ZAPPER=.*|ZAPPER=\"${SCRPATH}\"|" \
31 -e "s|^pidfile=.*|pidfile=/var/run/squid.pid|" \
32 -e "s|^PIDFILE=.*|PIDFILE=\"/var/run/squid.pid\"|" \
33 -e "s|^RESTARTCMD=.*|RESTARTCMD=\"/etc/init.d/squid restart\"|" \
34 $src.orig > $src || die "sed updating failed."
35 rm $src.orig
36 done
37 }
38
39 src_install() {
40 cd ${S}/scripts
41 exeinto /etc/adzapper
42 doexe wrapzap zapchain squid_redirect
43
44 insinto /etc/adzapper
45 doins update-zapper*
46
47 cd ${S}/zaps
48 insinto /var/www/localhost/htdocs/zap
49 doins *
50 }
51
52 pkg_postinst() {
53 einfo "To enable adzapper add the following lines to squid.conf:"
54 einfo "redirect_program /etc/adzapper/wrapzap"
55 einfo "redirect_children 10"
56 }

  ViewVC Help
Powered by ViewVC 1.1.20