Gentoo Archives: gentoo-commits

From: "Alin Nastac (mrness)" <mrness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-proxy/squidguard: ChangeLog squidguard-1.3-r1.ebuild
Date: Fri, 20 Jun 2008 22:04:42
Message-Id: E1K9oii-0007VG-1R@stork.gentoo.org
1 mrness 08/06/20 22:04:36
2
3 Modified: ChangeLog
4 Added: squidguard-1.3-r1.ebuild
5 Log:
6 Fix bypass vulnerability (#228593). Use eautoreconf instead eautoconf.
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.19 net-proxy/squidguard/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squidguard/ChangeLog?rev=1.19&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squidguard/ChangeLog?rev=1.19&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squidguard/ChangeLog?r1=1.18&r2=1.19
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-proxy/squidguard/ChangeLog,v
19 retrieving revision 1.18
20 retrieving revision 1.19
21 diff -u -r1.18 -r1.19
22 --- ChangeLog 17 Feb 2008 08:05:47 -0000 1.18
23 +++ ChangeLog 20 Jun 2008 22:04:35 -0000 1.19
24 @@ -1,6 +1,12 @@
25 # ChangeLog for net-proxy/squidguard
26 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/squidguard/ChangeLog,v 1.18 2008/02/17 08:05:47 mrness Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/squidguard/ChangeLog,v 1.19 2008/06/20 22:04:35 mrness Exp $
29 +
30 +*squidguard-1.3-r1 (20 Jun 2008)
31 +
32 + 20 Jun 2008; Alin Năstac <mrness@g.o>
33 + +files/squidguard-1.3-autoheader.patch, +squidguard-1.3-r1.ebuild:
34 + Fix bypass vulnerability (#228593). Use eautoreconf instead eautoconf.
35
36 *squidguard-1.3 (17 Feb 2008)
37
38
39
40
41 1.1 net-proxy/squidguard/squidguard-1.3-r1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squidguard/squidguard-1.3-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squidguard/squidguard-1.3-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: squidguard-1.3-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-proxy/squidguard/squidguard-1.3-r1.ebuild,v 1.1 2008/06/20 22:04:35 mrness Exp $
51
52 WANT_AUTOMAKE=none
53
54 inherit eutils autotools
55
56 DESCRIPTION="Combined filter, redirector and access controller plugin for Squid."
57 HOMEPAGE="http://www.squidguard.org"
58 SRC_URI="http://www.squidguard.org/Downloads/squidGuard-${PV}.tar.gz
59 http://www.squidguard.org/Downloads/Patches/${PV}/squidGuard-${PV}-patch-20080613.tar.gz"
60
61 LICENSE="GPL-2"
62 SLOT="0"
63 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
64 IUSE="ldap"
65
66 RDEPEND="net-proxy/squid
67 >=sys-libs/db-2
68 ldap? ( net-nds/openldap )"
69 DEPEND="${RDEPEND}
70 sys-devel/bison
71 sys-devel/flex"
72
73 S="${WORKDIR}/squidGuard-${PV}"
74
75 RESTRICT="test" # tests are currently broken
76
77 src_unpack() {
78 unpack ${A}
79
80 cd "${S}"
81 cp ../squidGuard-${PV}-patch-20080613/src/sgDiv.c.in src/ || die "failed to replace sgDiv.c.in"
82 epatch "${FILESDIR}/${P}-gentoo.patch"
83 epatch "${FILESDIR}/${P}-autoheader.patch"
84 eautoreconf
85 }
86
87 src_compile() {
88 econf \
89 $(use_with ldap) \
90 --with-sg-config=/etc/squidGuard/squidGuard.conf \
91 --with-sg-logdir=/var/log/squidGuard \
92 || die "configure has failed"
93
94 emake || die "make has failed"
95 }
96
97 src_install() {
98 emake prefix="/usr" INSTDIR="${D}" install || die "emake install has failed"
99
100 keepdir /var/log/squidGuard
101 fowners squid:squid /var/log/squidGuard
102
103 insinto /etc/squidGuard/sample
104 doins "${FILESDIR}"/squidGuard.conf.*
105 insinto /etc/squidGuard/sample/db
106 doins "${FILESDIR}"/blockedsites
107
108 dodoc ANNOUNCE CHANGELOG README
109 dohtml doc/*.html
110 docinto text
111 dodoc doc/*.txt
112 }
113
114 pkg_postinst() {
115 einfo "To enable squidGuard, add the following lines to /etc/squid/squid.conf:"
116 einfo " url_rewrite_program /usr/bin/squidGuard"
117 einfo " url_rewrite_children 10"
118 einfo ""
119 einfo "Remember to edit /etc/squidGuard/squidGuard.conf first!"
120 einfo "Examples can be found in /etc/squidGuard/sample/"
121 }
122
123
124
125 --
126 gentoo-commits@l.g.o mailing list