Gentoo Archives: gentoo-commits

From: "Eray Aslan (eras)" <eras@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-proxy/squid: squid-3.5.2.ebuild squid-3.4.12.ebuild squid-3.5.1-r1.ebuild squid-3.4.11-r1.ebuild ChangeLog
Date: Wed, 25 Feb 2015 11:04:30
Message-Id: 20150225110426.A519412841@oystercatcher.gentoo.org
1 eras 15/02/25 11:04:26
2
3 Modified: squid-3.5.2.ebuild squid-3.5.1-r1.ebuild
4 squid-3.4.11-r1.ebuild ChangeLog
5 Added: squid-3.4.12.ebuild
6 Log:
7 Version bump. Remove NETFILTER_TPROXY kernel check - no longer in the kernel - bug #539150
8
9 (Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key 0x77F1F175586A3B1F)
10
11 Revision Changes Path
12 1.2 net-proxy/squid/squid-3.5.2.ebuild
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/squid/squid-3.5.2.ebuild?rev=1.2&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/squid/squid-3.5.2.ebuild?rev=1.2&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/squid/squid-3.5.2.ebuild?r1=1.1&r2=1.2
17
18 Index: squid-3.5.2.ebuild
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-proxy/squid/squid-3.5.2.ebuild,v
21 retrieving revision 1.1
22 retrieving revision 1.2
23 diff -u -r1.1 -r1.2
24 --- squid-3.5.2.ebuild 23 Feb 2015 08:52:19 -0000 1.1
25 +++ squid-3.5.2.ebuild 25 Feb 2015 11:04:26 -0000 1.2
26 @@ -1,6 +1,6 @@
27 # Copyright 1999-2015 Gentoo Foundation
28 # Distributed under the terms of the GNU General Public License v2
29 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/squid-3.5.2.ebuild,v 1.1 2015/02/23 08:52:19 eras Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/squid-3.5.2.ebuild,v 1.2 2015/02/25 11:04:26 eras Exp $
31
32 EAPI=5
33 inherit autotools eutils linux-info pam toolchain-funcs user versionator
34 @@ -50,7 +50,7 @@
35
36 pkg_pretend() {
37 if use tproxy; then
38 - local CONFIG_CHECK="~NF_CONNTRACK ~NETFILTER_TPROXY ~NETFILTER_XT_MATCH_SOCKET ~NETFILTER_XT_TARGET_TPROXY"
39 + local CONFIG_CHECK="~NF_CONNTRACK ~NETFILTER_XT_MATCH_SOCKET ~NETFILTER_XT_TARGET_TPROXY"
40 linux-info_pkg_setup
41 fi
42 }
43
44
45
46 1.2 net-proxy/squid/squid-3.5.1-r1.ebuild
47
48 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/squid/squid-3.5.1-r1.ebuild?rev=1.2&view=markup
49 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/squid/squid-3.5.1-r1.ebuild?rev=1.2&content-type=text/plain
50 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/squid/squid-3.5.1-r1.ebuild?r1=1.1&r2=1.2
51
52 Index: squid-3.5.1-r1.ebuild
53 ===================================================================
54 RCS file: /var/cvsroot/gentoo-x86/net-proxy/squid/squid-3.5.1-r1.ebuild,v
55 retrieving revision 1.1
56 retrieving revision 1.2
57 diff -u -r1.1 -r1.2
58 --- squid-3.5.1-r1.ebuild 4 Feb 2015 16:10:18 -0000 1.1
59 +++ squid-3.5.1-r1.ebuild 25 Feb 2015 11:04:26 -0000 1.2
60 @@ -1,6 +1,6 @@
61 # Copyright 1999-2015 Gentoo Foundation
62 # Distributed under the terms of the GNU General Public License v2
63 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/squid-3.5.1-r1.ebuild,v 1.1 2015/02/04 16:10:18 eras Exp $
64 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/squid-3.5.1-r1.ebuild,v 1.2 2015/02/25 11:04:26 eras Exp $
65
66 EAPI=5
67 inherit autotools eutils linux-info pam toolchain-funcs user versionator
68 @@ -50,7 +50,7 @@
69
70 pkg_pretend() {
71 if use tproxy; then
72 - local CONFIG_CHECK="~NF_CONNTRACK ~NETFILTER_TPROXY ~NETFILTER_XT_MATCH_SOCKET ~NETFILTER_XT_TARGET_TPROXY"
73 + local CONFIG_CHECK="~NF_CONNTRACK ~NETFILTER_XT_MATCH_SOCKET ~NETFILTER_XT_TARGET_TPROXY"
74 linux-info_pkg_setup
75 fi
76 }
77
78
79
80 1.11 net-proxy/squid/squid-3.4.11-r1.ebuild
81
82 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/squid/squid-3.4.11-r1.ebuild?rev=1.11&view=markup
83 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/squid/squid-3.4.11-r1.ebuild?rev=1.11&content-type=text/plain
84 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/squid/squid-3.4.11-r1.ebuild?r1=1.10&r2=1.11
85
86 Index: squid-3.4.11-r1.ebuild
87 ===================================================================
88 RCS file: /var/cvsroot/gentoo-x86/net-proxy/squid/squid-3.4.11-r1.ebuild,v
89 retrieving revision 1.10
90 retrieving revision 1.11
91 diff -u -r1.10 -r1.11
92 --- squid-3.4.11-r1.ebuild 24 Feb 2015 10:57:31 -0000 1.10
93 +++ squid-3.4.11-r1.ebuild 25 Feb 2015 11:04:26 -0000 1.11
94 @@ -1,6 +1,6 @@
95 # Copyright 1999-2015 Gentoo Foundation
96 # Distributed under the terms of the GNU General Public License v2
97 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/squid-3.4.11-r1.ebuild,v 1.10 2015/02/24 10:57:31 ago Exp $
98 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/squid-3.4.11-r1.ebuild,v 1.11 2015/02/25 11:04:26 eras Exp $
99
100 EAPI=5
101 inherit autotools eutils linux-info pam toolchain-funcs user versionator
102 @@ -50,7 +50,7 @@
103
104 pkg_pretend() {
105 if use tproxy; then
106 - local CONFIG_CHECK="~NF_CONNTRACK ~NETFILTER_TPROXY ~NETFILTER_XT_MATCH_SOCKET ~NETFILTER_XT_TARGET_TPROXY"
107 + local CONFIG_CHECK="~NF_CONNTRACK ~NETFILTER_XT_MATCH_SOCKET ~NETFILTER_XT_TARGET_TPROXY"
108 linux-info_pkg_setup
109 fi
110 }
111
112
113
114 1.520 net-proxy/squid/ChangeLog
115
116 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/squid/ChangeLog?rev=1.520&view=markup
117 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/squid/ChangeLog?rev=1.520&content-type=text/plain
118 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/squid/ChangeLog?r1=1.519&r2=1.520
119
120 Index: ChangeLog
121 ===================================================================
122 RCS file: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v
123 retrieving revision 1.519
124 retrieving revision 1.520
125 diff -u -r1.519 -r1.520
126 --- ChangeLog 25 Feb 2015 10:11:51 -0000 1.519
127 +++ ChangeLog 25 Feb 2015 11:04:26 -0000 1.520
128 @@ -1,6 +1,13 @@
129 # ChangeLog for net-proxy/squid
130 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
131 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v 1.519 2015/02/25 10:11:51 eras Exp $
132 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v 1.520 2015/02/25 11:04:26 eras Exp $
133 +
134 +*squid-3.4.12 (25 Feb 2015)
135 +
136 + 25 Feb 2015; Eray Aslan <eras@g.o> +squid-3.4.12.ebuild,
137 + squid-3.4.11-r1.ebuild, squid-3.5.1-r1.ebuild, squid-3.5.2.ebuild:
138 + Version bump. Remove NETFILTER_TPROXY kernel check - no longer in the kernel
139 + - bug #539150
140
141 25 Feb 2015; Eray Aslan <eras@g.o> -files/squid-12683_12681.patch,
142 -squid-3.3.13-r1.ebuild, -squid-3.4.10.ebuild, -squid-3.4.11.ebuild,
143
144
145
146 1.1 net-proxy/squid/squid-3.4.12.ebuild
147
148 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/squid/squid-3.4.12.ebuild?rev=1.1&view=markup
149 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/squid/squid-3.4.12.ebuild?rev=1.1&content-type=text/plain
150
151 Index: squid-3.4.12.ebuild
152 ===================================================================
153 # Copyright 1999-2015 Gentoo Foundation
154 # Distributed under the terms of the GNU General Public License v2
155 # $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/squid-3.4.12.ebuild,v 1.1 2015/02/25 11:04:26 eras Exp $
156
157 EAPI=5
158 inherit autotools eutils linux-info pam toolchain-funcs user versionator
159
160 DESCRIPTION="A full-featured web proxy cache"
161 HOMEPAGE="http://www.squid-cache.org/"
162 SRC_URI="http://www.squid-cache.org/Versions/v3/3.4/${P}.tar.xz"
163
164 LICENSE="GPL-2"
165 SLOT="0"
166 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
167 IUSE="caps ipv6 pam ldap samba sasl kerberos nis radius ssl snmp selinux logrotate test \
168 ecap esi icap-client ssl-crtd \
169 mysql postgres sqlite \
170 qos tproxy \
171 +htcp +wccp +wccpv2 \
172 pf-transparent ipf-transparent kqueue \
173 elibc_uclibc kernel_linux"
174
175 COMMON_DEPEND="caps? ( >=sys-libs/libcap-2.16 )
176 pam? ( virtual/pam )
177 ldap? ( net-nds/openldap )
178 kerberos? ( virtual/krb5 )
179 qos? ( net-libs/libnetfilter_conntrack )
180 ssl? ( dev-libs/openssl dev-libs/nettle )
181 sasl? ( dev-libs/cyrus-sasl )
182 ecap? ( net-libs/libecap:0.2 )
183 esi? ( dev-libs/expat dev-libs/libxml2 )
184 !x86-fbsd? ( logrotate? ( app-admin/logrotate ) )
185 >=sys-libs/db-4
186 dev-lang/perl
187 dev-libs/libltdl"
188 DEPEND="${COMMON_DEPEND}
189 ecap? ( virtual/pkgconfig )
190 sys-apps/ed
191 test? ( dev-util/cppunit )"
192 RDEPEND="${COMMON_DEPEND}
193 samba? ( net-fs/samba )
194 mysql? ( dev-perl/DBD-mysql )
195 postgres? ( dev-perl/DBD-Pg )
196 selinux? ( sec-policy/selinux-squid )
197 sqlite? ( dev-perl/DBD-SQLite )
198 !<=sci-biology/meme-4.8.1-r1"
199
200 REQUIRED_USE="tproxy? ( caps )
201 qos? ( caps )"
202
203 pkg_pretend() {
204 if use tproxy; then
205 local CONFIG_CHECK="~NF_CONNTRACK ~NETFILTER_XT_MATCH_SOCKET ~NETFILTER_XT_TARGET_TPROXY"
206 linux-info_pkg_setup
207 fi
208 }
209
210 pkg_setup() {
211 enewgroup squid 31
212 enewuser squid 31 -1 /var/cache/squid squid
213 }
214
215 src_prepare() {
216 epatch "${FILESDIR}/${PN}-3.3.4-gentoo.patch"
217 sed -i -e 's:/usr/local/squid/etc:/etc/squid:' \
218 INSTALL QUICKSTART \
219 helpers/basic_auth/MSNT/README.html \
220 helpers/basic_auth/MSNT/confload.cc \
221 helpers/basic_auth/MSNT/msntauth.conf.default \
222 scripts/fileno-to-pathname.pl \
223 scripts/check_cache.pl \
224 tools/cachemgr.cgi.8 \
225 tools/purge/conffile.hh \
226 tools/purge/README || die
227 sed -i -e 's:/usr/local/squid/sbin:/usr/sbin:' \
228 INSTALL QUICKSTART || die
229 sed -i -e 's:/usr/local/squid/var/cache:/var/cache/squid:' \
230 QUICKSTART || die
231 sed -i -e 's:/usr/local/squid/var/logs:/var/log/squid:' \
232 QUICKSTART \
233 src/log/access_log.cc || die
234 sed -i -e 's:/usr/local/squid/logs:/var/log/squid:' \
235 src/log/access_log.cc || die
236 sed -i -e 's:/usr/local/squid/bin:/usr/bin:' \
237 helpers/basic_auth/MSNT/README.html || die
238 sed -i -e 's:/usr/local/squid/libexec:/usr/libexec/squid:' \
239 helpers/external_acl/unix_group/ext_unix_group_acl.8 \
240 helpers/external_acl/session/ext_session_acl.8 \
241 src/ssl/ssl_crtd.8 || die
242 sed -i -e 's:/usr/local/squid/cache:/var/cache/squid:' \
243 scripts/check_cache.pl || die
244 sed -i -e 's:/usr/local/squid/ssl_cert:/etc/ssl/squid:' \
245 src/ssl/ssl_crtd.8 || die
246 sed -i -e 's:/usr/local/squid/var/lib/ssl_db:/var/lib/squid/ssl_db:' \
247 src/ssl/ssl_crtd.8 || die
248 sed -i -e 's:/var/lib/ssl_db:/var/lib/squid/ssl_db:' \
249 src/ssl/ssl_crtd.8 || die
250 # /var/run/squid to /run/squid
251 sed -i -e 's:$(localstatedir)::' \
252 src/ipc/Makefile.am || die
253 sed -i -e 's:_LTDL_SETUP:LTDL_INIT([installable]):' \
254 libltdl/configure.ac || die
255
256 epatch_user
257
258 eautoreconf
259 }
260
261 src_configure() {
262 local basic_modules="MSNT,MSNT-multi-domain,NCSA,POP3,getpwnam"
263 use samba && basic_modules+=",SMB"
264 use ldap && basic_modules+=",LDAP"
265 use pam && basic_modules+=",PAM"
266 use sasl && basic_modules+=",SASL"
267 use nis && ! use elibc_uclibc && basic_modules+=",NIS"
268 use radius && basic_modules+=",RADIUS"
269 if use mysql || use postgres || use sqlite ; then
270 basic_modules+=",DB"
271 fi
272
273 local digest_modules="file"
274 use ldap && digest_modules+=",LDAP,eDirectory"
275
276 local negotiate_modules myconf
277 if use kerberos ; then
278 negotiate_modules="kerberos,wrapper"
279 myconf="--with-krb5-config=yes"
280 else
281 negotiate_modules="none"
282 myconf="--with-krb5-config=no"
283 fi
284
285 local ntlm_modules="none"
286 use samba && ntlm_modules="smb_lm"
287
288 local ext_helpers="file_userip,session,unix_group"
289 use samba && ext_helpers+=",wbinfo_group"
290 use ldap && ext_helpers+=",LDAP_group,eDirectory_userip"
291 use ldap && use kerberos && ext_helpers+=",kerberos_ldap_group"
292
293 # uclibc does not have aio support - needed for coss (#61175)
294 local storeio_modules="aufs,diskd,rock,ufs"
295
296 local transparent
297 if use kernel_linux ; then
298 transparent+=" --enable-linux-netfilter"
299 use qos && transparent+=" --enable-zph-qos --with-netfilter-conntrack"
300 fi
301
302 if use kernel_FreeBSD || use kernel_OpenBSD || use kernel_NetBSD ; then
303 transparent+=" $(use_enable kqueue)"
304 if use pf-transparent; then
305 transparent+=" --enable-pf-transparent"
306 elif use ipf-transparent; then
307 transparent+=" --enable-ipf-transparent"
308 fi
309 fi
310
311 tc-export CC AR
312
313 econf \
314 --sysconfdir=/etc/squid \
315 --libexecdir=/usr/libexec/squid \
316 --localstatedir=/var \
317 --with-pidfile=/run/squid.pid \
318 --datadir=/usr/share/squid \
319 --with-logdir=/var/log/squid \
320 --with-default-user=squid \
321 --enable-removal-policies="lru,heap" \
322 --enable-storeio="${storeio_modules}" \
323 --enable-disk-io \
324 --enable-auth \
325 --enable-auth-basic="${basic_modules}" \
326 --enable-auth-digest="${digest_modules}" \
327 --enable-auth-ntlm="${ntlm_modules}" \
328 --enable-auth-negotiate="${negotiate_modules}" \
329 --enable-external-acl-helpers="${ext_helpers}" \
330 --enable-log-daemon-helpers \
331 --enable-url-rewrite-helpers \
332 --enable-cache-digests \
333 --enable-delay-pools \
334 --enable-eui \
335 --enable-icmp \
336 --enable-follow-x-forwarded-for \
337 --with-large-files \
338 --disable-strict-error-checking \
339 --disable-arch-native \
340 $(use_with caps libcap) \
341 $(use_enable ipv6) \
342 $(use_enable snmp) \
343 $(use_enable ssl) \
344 $(use_with ssl nettle) \
345 $(use_enable ssl-crtd) \
346 $(use_enable icap-client) \
347 $(use_enable ecap) \
348 $(use_enable esi) \
349 $(use_enable htcp) \
350 $(use_enable wccp) \
351 $(use_enable wccpv2) \
352 ${transparent} \
353 ${myconf}
354 }
355
356 src_install() {
357 emake DESTDIR="${D}" install
358
359 # need suid root for looking into /etc/shadow
360 fowners root:squid /usr/libexec/squid/basic_ncsa_auth
361 fperms 4750 /usr/libexec/squid/basic_ncsa_auth
362 if use pam; then
363 fowners root:squid /usr/libexec/squid/basic_pam_auth
364 fperms 4750 /usr/libexec/squid/basic_pam_auth
365 fi
366 # pinger needs suid as well
367 fowners root:squid /usr/libexec/squid/pinger
368 fperms 4750 /usr/libexec/squid/pinger
369
370 # cleanup
371 rm -f "${D}"/usr/bin/Run*
372 rm -rf "${D}"/run/squid "${D}"/var/cache/squid
373
374 dodoc CONTRIBUTORS CREDITS ChangeLog INSTALL QUICKSTART README SPONSORS doc/*.txt
375 newdoc helpers/negotiate_auth/kerberos/README README.kerberos
376 newdoc helpers/basic_auth/MSNT-multi-domain/README.txt README.MSNT-multi-domain
377 newdoc helpers/basic_auth/LDAP/README README.LDAP
378 newdoc helpers/basic_auth/RADIUS/README README.RADIUS
379 newdoc helpers/external_acl/kerberos_ldap_group/README README.kerberos_ldap_group
380 newdoc tools/purge/README README.purge
381 newdoc tools/helper-mux.README README.helper-mux
382 dohtml RELEASENOTES.html
383
384 newpamd "${FILESDIR}/squid.pam" squid
385 newconfd "${FILESDIR}/squid.confd-r1" squid
386 newinitd "${FILESDIR}/squid.initd-r4" squid
387 if use logrotate; then
388 insinto /etc/logrotate.d
389 newins "${FILESDIR}/squid.logrotate" squid
390 else
391 exeinto /etc/cron.weekly
392 newexe "${FILESDIR}/squid.cron" squid.cron
393 fi
394
395 diropts -m0750 -o squid -g squid
396 keepdir /var/log/squid /etc/ssl/squid /var/lib/squid
397 }
398
399 pkg_postinst() {
400 if [[ $(get_version_component_range 1 ${REPLACING_VERSIONS}) -lt 3 ]] || \
401 [[ $(get_version_component_range 2 ${REPLACING_VERSIONS}) -lt 4 ]]; then
402 elog "Please read the release notes at:"
403 elog " http://www.squid-cache.org/Versions/v3/3.4/RELEASENOTES.html"
404 echo
405 fi
406 }