Gentoo Archives: gentoo-commits

From: "Jeroen Roovers (jer)" <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-proxy/adzapper: ChangeLog adzapper-20110915.ebuild
Date: Wed, 01 Aug 2012 19:36:25
Message-Id: 20120801193605.BACA82004B@flycatcher.gentoo.org
1 jer 12/08/01 19:36:05
2
3 Modified: ChangeLog
4 Added: adzapper-20110915.ebuild
5 Log:
6 Version bump thanks to Elias Probst and Florian Steinel (bug #277909).
7
8 (Portage version: 2.2.0_alpha120/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.60 net-proxy/adzapper/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/adzapper/ChangeLog?rev=1.60&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/adzapper/ChangeLog?rev=1.60&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/adzapper/ChangeLog?r1=1.59&r2=1.60
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-proxy/adzapper/ChangeLog,v
20 retrieving revision 1.59
21 retrieving revision 1.60
22 diff -u -r1.59 -r1.60
23 --- ChangeLog 20 Apr 2009 20:19:49 -0000 1.59
24 +++ ChangeLog 1 Aug 2012 19:36:05 -0000 1.60
25 @@ -1,6 +1,11 @@
26 # ChangeLog for net-proxy/adzapper
27 -# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/adzapper/ChangeLog,v 1.59 2009/04/20 20:19:49 maekke Exp $
29 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/adzapper/ChangeLog,v 1.60 2012/08/01 19:36:05 jer Exp $
31 +
32 +*adzapper-20110915 (01 Aug 2012)
33 +
34 + 01 Aug 2012; Jeroen Roovers <jer@g.o> +adzapper-20110915.ebuild:
35 + Version bump thanks to Elias Probst and Florian Steinel (bug #277909).
36
37 20 Apr 2009; Markus Meier <maekke@g.o> adzapper-20080508:
38 amd64 stable, bug #257531
39
40
41
42 1.1 net-proxy/adzapper/adzapper-20110915.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/adzapper/adzapper-20110915.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/adzapper/adzapper-20110915.ebuild?rev=1.1&content-type=text/plain
46
47 Index: adzapper-20110915.ebuild
48 ===================================================================
49 # Copyright 1999-2012 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/net-proxy/adzapper/adzapper-20110915.ebuild,v 1.1 2012/08/01 19:36:05 jer Exp $
52
53 EAPI=4
54
55 MY_P=${P/zapper/zap}
56
57 DESCRIPTION="Redirector for squid that intercepts advertising, page counters and some web bugs"
58 HOMEPAGE="http://adzapper.sourceforge.net/"
59 SRC_URI="http://adzapper.sourceforge.net/${MY_P}.tar.gz"
60
61 LICENSE="BSD"
62 SLOT="0"
63 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86"
64 IUSE=""
65
66 RDEPEND="dev-lang/perl"
67
68 S="${WORKDIR}"/${P/per/}
69
70 src_prepare() {
71 # update the zapper path in various scripts
72 local SCRPATH="/etc/adzapper/squid_redirect"
73 sed -i scripts/wrapzap scripts/update-zapper* \
74 -e "s|^zapper=.*|zapper=${SCRPATH}|" \
75 -e "s|^ZAPPER=.*|ZAPPER=\"${SCRPATH}\"|" \
76 -e "s|^pidfile=.*|pidfile=/var/run/squid.pid|" \
77 -e "s|^PIDFILE=.*|PIDFILE=\"/var/run/squid.pid\"|" \
78 -e "s|^RESTARTCMD=.*|RESTARTCMD=\"/etc/init.d/squid restart\"|" \
79 || die "sed updating failed."
80 }
81
82 src_install() {
83 exeinto /etc/adzapper
84 doexe \
85 scripts/wrapzap \
86 scripts/zapchain \
87 adblock-plus/adblockplus2adzapper.py
88 newexe scripts/squid_redirect{-nodata,}
89
90 insinto /etc/adzapper
91 doins scripts/update-zapper*
92
93 insinto /var/www/localhost/htdocs/zap
94 doins zaps/*
95 }
96
97 pkg_postinst() {
98 einfo "To enable adzapper, add the following lines to /etc/squid/squid.conf:"
99 einfo " url_rewrite_program /etc/adzapper/wrapzap"
100 einfo " url_rewrite_children 10"
101 }