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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Thu Dec 1 21:15:40 2005 UTC (11 years, 10 months ago) by mrness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Remove old version. Mark ver 20050712 stable on x86. Version bump.
(Portage version: 2.0.51.22-r3)

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

  ViewVC Help
Powered by ViewVC 1.1.20