Gentoo Archives: gentoo-commits

From: Eray Aslan <eras@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-proxy/squid/, net-proxy/squid/files/
Date: Tue, 12 Jul 2016 12:51:02
Message-Id: 1468327839.7d76da31430622f08ab2d3e2a77ee7f02ac086a1.eras@gentoo
1 commit: 7d76da31430622f08ab2d3e2a77ee7f02ac086a1
2 Author: Eray Aslan <eras <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jul 12 12:50:39 2016 +0000
4 Commit: Eray Aslan <eras <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 12 12:50:39 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d76da31
7
8 net-proxy/squid: remove old
9
10 Package-Manager: portage-2.3.0
11
12 net-proxy/squid/Manifest | 2 -
13 net-proxy/squid/files/squid-3.5-14022.patch | 50 ------
14 net-proxy/squid/squid-3.5.15.ebuild | 249 ----------------------------
15 net-proxy/squid/squid-3.5.17.ebuild | 249 ----------------------------
16 4 files changed, 550 deletions(-)
17
18 diff --git a/net-proxy/squid/Manifest b/net-proxy/squid/Manifest
19 index b0452a5..0158642 100644
20 --- a/net-proxy/squid/Manifest
21 +++ b/net-proxy/squid/Manifest
22 @@ -1,3 +1 @@
23 -DIST squid-3.5.15.tar.xz 2315628 SHA256 9cfce3231c7b3b33816fc54414d8720a51ac5e723663e0685a8bb995b9f450d2 SHA512 b5a6b4bc94d007f475419123b7ff4cdf7d47a024b859d2f7de0952115285114f06fd389fc6f463c21a1ce7d41e06227972bd802bafd2704cf0814afdee893dde WHIRLPOOL a8c73ac1a9a36b405cfb2d804ad51e673ffc812e561860f5b2775b468fcebc84834842ae4f55d4be928936f1750ea54b54d788149758a362282e1287696fe094
24 -DIST squid-3.5.17.tar.xz 2318216 SHA256 cb04e34f6ec80a5ae6caaef042703c841d3803c4c280e75eff12a5a6c84951a2 SHA512 7531c208278ee42b9e34b4e49a249bb033389207546cf0172a2657d60d08146d36ee8f9296e16eea13c552bad01f3ef8592b1486556756edb0b3304b17306661 WHIRLPOOL 4aaf4108c1223f16e1b544244d26288cc96ee5f17b3322070fa35dc3069e588a1270df1531104554e7ac8b0316bc722edb812d0a41b871ec50020e514ef0d411
25 DIST squid-3.5.19.tar.xz 2318720 SHA256 c4b8a2efb85acc600e506605f175298ce3324048e60f4708926d354fe4b5c7a0 SHA512 b2e70845d87a3a3d57b8ff08c6fb21137cedc75c8076a8e004a4b4031a7045d13f13de2b2aa98435e39770aefe1db838538ed62fc4169f83797c99fc0883f650 WHIRLPOOL 73ce9e63bbf5d494ff40b2379930e2723f01507782b3c332ea0e2b3d1c813c914fdfea47d22f9b004d0bac5a826928b5e47fa0fdb190c2be5235e1c51c25c575
26
27 diff --git a/net-proxy/squid/files/squid-3.5-14022.patch b/net-proxy/squid/files/squid-3.5-14022.patch
28 deleted file mode 100644
29 index 4b598b6..0000000
30 --- a/net-proxy/squid/files/squid-3.5-14022.patch
31 +++ /dev/null
32 @@ -1,50 +0,0 @@
33 -------------------------------------------------------------
34 -revno: 14022
35 -revision-id: squid3@××××××××××.nz-20160411131130-z2lp1uj94sovgthy
36 -parent: squid3@××××××××××.nz-20160411124138-zsrf0ltaxlj25k2x
37 -fixes bug: http://bugs.squid-cache.org/show_bug.cgi?id=4481
38 -committer: Amos Jeffries <squid3@××××××××××.nz>
39 -branch nick: 3.5
40 -timestamp: Tue 2016-04-12 01:11:30 +1200
41 -message:
42 - Bug 4481: varyEvaluateMatch: Oops. Not a Vary match on second attempt
43 -------------------------------------------------------------
44 -# Bazaar merge directive format 2 (Bazaar 0.90)
45 -# revision_id: squid3@××××××××××.nz-20160411131130-z2lp1uj94sovgthy
46 -# target_branch: http://bzr.squid-cache.org/bzr/squid3/3.5
47 -# testament_sha1: 91af3a71dfc316577c5661733fc0c9fdeeb8ba83
48 -# timestamp: 2016-04-11 13:50:55 +0000
49 -# source_branch: http://bzr.squid-cache.org/bzr/squid3/3.5
50 -# base_revision_id: squid3@××××××××××.nz-20160411124138-\
51 -# zsrf0ltaxlj25k2x
52 -#
53 -# Begin patch
54 -=== modified file 'src/StoreMetaVary.cc'
55 ---- src/StoreMetaVary.cc 2016-04-01 06:15:31 +0000
56 -+++ src/StoreMetaVary.cc 2016-04-11 13:11:30 +0000
57 -@@ -22,6 +22,9 @@
58 - /* XXX separate this mutator from the query */
59 - /* Assume the object is OK.. remember the vary request headers */
60 - e->mem_obj->vary_headers.assign(static_cast<const char *>(value), length);
61 -+ /* entries created before SBuf vary handling may include string terminator */
62 -+ static const SBuf nul("\0", 1);
63 -+ e->mem_obj->vary_headers.trim(nul);
64 - return true;
65 - }
66 -
67 -
68 -=== modified file 'src/store_swapmeta.cc'
69 ---- src/store_swapmeta.cc 2016-04-01 06:15:31 +0000
70 -+++ src/store_swapmeta.cc 2016-04-11 13:11:30 +0000
71 -@@ -89,9 +89,7 @@
72 - SBuf vary(e->mem_obj->vary_headers);
73 -
74 - if (!vary.isEmpty()) {
75 -- // TODO: do we still need +1 here? StoreMetaVary::checkConsistency
76 -- // no longer relies on nul-termination, but other things might.
77 -- t = StoreMeta::Factory(STORE_META_VARY_HEADERS, vary.length() + 1, vary.c_str());
78 -+ t = StoreMeta::Factory(STORE_META_VARY_HEADERS, vary.length(), vary.c_str());
79 -
80 - if (!t) {
81 - storeSwapTLVFree(TLV);
82 -
83
84 diff --git a/net-proxy/squid/squid-3.5.15.ebuild b/net-proxy/squid/squid-3.5.15.ebuild
85 deleted file mode 100644
86 index e808f01..0000000
87 --- a/net-proxy/squid/squid-3.5.15.ebuild
88 +++ /dev/null
89 @@ -1,249 +0,0 @@
90 -# Copyright 1999-2016 Gentoo Foundation
91 -# Distributed under the terms of the GNU General Public License v2
92 -# $Id$
93 -
94 -EAPI=5
95 -inherit autotools eutils linux-info pam toolchain-funcs user versionator
96 -
97 -DESCRIPTION="A full-featured web proxy cache"
98 -HOMEPAGE="http://www.squid-cache.org/"
99 -SRC_URI="http://www.squid-cache.org/Versions/v3/3.5/${P}.tar.xz"
100 -
101 -LICENSE="GPL-2"
102 -SLOT="0"
103 -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd"
104 -IUSE="caps ipv6 pam ldap samba sasl kerberos nis radius ssl snmp selinux logrotate test \
105 - ecap esi ssl-crtd \
106 - mysql postgres sqlite \
107 - qos tproxy \
108 - +htcp +wccp +wccpv2 \
109 - pf-transparent ipf-transparent kqueue \
110 - elibc_uclibc kernel_linux"
111 -
112 -COMMON_DEPEND="caps? ( >=sys-libs/libcap-2.16 )
113 - pam? ( virtual/pam )
114 - ldap? ( net-nds/openldap )
115 - kerberos? ( virtual/krb5 )
116 - qos? ( net-libs/libnetfilter_conntrack )
117 - ssl? ( dev-libs/openssl:0 dev-libs/nettle >=net-libs/gnutls-3.1.5 )
118 - sasl? ( dev-libs/cyrus-sasl )
119 - ecap? ( net-libs/libecap:1 )
120 - esi? ( dev-libs/expat dev-libs/libxml2 )
121 - !x86-fbsd? ( logrotate? ( app-admin/logrotate ) )
122 - >=sys-libs/db-4:*
123 - dev-lang/perl
124 - dev-libs/libltdl:0"
125 -DEPEND="${COMMON_DEPEND}
126 - ecap? ( virtual/pkgconfig )
127 - sys-apps/ed
128 - test? ( dev-util/cppunit )"
129 -RDEPEND="${COMMON_DEPEND}
130 - samba? ( net-fs/samba )
131 - mysql? ( dev-perl/DBD-mysql )
132 - postgres? ( dev-perl/DBD-Pg )
133 - selinux? ( sec-policy/selinux-squid )
134 - sqlite? ( dev-perl/DBD-SQLite )
135 - !<=sci-biology/meme-4.8.1-r1"
136 -
137 -REQUIRED_USE="tproxy? ( caps )
138 - qos? ( caps )"
139 -
140 -pkg_pretend() {
141 - if use tproxy; then
142 - local CONFIG_CHECK="~NF_CONNTRACK ~NETFILTER_XT_MATCH_SOCKET ~NETFILTER_XT_TARGET_TPROXY"
143 - linux-info_pkg_setup
144 - fi
145 -}
146 -
147 -pkg_setup() {
148 - enewgroup squid
149 - enewuser squid -1 -1 /var/cache/squid squid
150 -}
151 -
152 -src_prepare() {
153 - epatch "${FILESDIR}/${PN}-3.5.7-gentoo.patch"
154 - sed -i -e 's:/usr/local/squid/etc:/etc/squid:' \
155 - INSTALL QUICKSTART \
156 - scripts/fileno-to-pathname.pl \
157 - scripts/check_cache.pl \
158 - tools/cachemgr.cgi.8 \
159 - tools/purge/conffile.hh \
160 - tools/purge/README || die
161 - sed -i -e 's:/usr/local/squid/sbin:/usr/sbin:' \
162 - INSTALL QUICKSTART || die
163 - sed -i -e 's:/usr/local/squid/var/cache:/var/cache/squid:' \
164 - QUICKSTART || die
165 - sed -i -e 's:/usr/local/squid/var/logs:/var/log/squid:' \
166 - QUICKSTART \
167 - src/log/access_log.cc || die
168 - sed -i -e 's:/usr/local/squid/logs:/var/log/squid:' \
169 - src/log/access_log.cc || die
170 - sed -i -e 's:/usr/local/squid/libexec:/usr/libexec/squid:' \
171 - helpers/external_acl/unix_group/ext_unix_group_acl.8 \
172 - helpers/external_acl/session/ext_session_acl.8 \
173 - src/ssl/ssl_crtd.8 || die
174 - sed -i -e 's:/usr/local/squid/cache:/var/cache/squid:' \
175 - scripts/check_cache.pl || die
176 - sed -i -e 's:/usr/local/squid/ssl_cert:/etc/ssl/squid:' \
177 - src/ssl/ssl_crtd.8 || die
178 - sed -i -e 's:/usr/local/squid/var/lib/ssl_db:/var/lib/squid/ssl_db:' \
179 - src/ssl/ssl_crtd.8 || die
180 - sed -i -e 's:/var/lib/ssl_db:/var/lib/squid/ssl_db:' \
181 - src/ssl/ssl_crtd.8 || die
182 - # /var/run/squid to /run/squid
183 - sed -i -e 's:$(localstatedir)::' \
184 - src/ipc/Makefile.am || die
185 - sed -i -e 's:_LTDL_SETUP:LTDL_INIT([installable]):' \
186 - libltdl/configure.ac || die
187 -
188 - epatch_user
189 -
190 - eautoreconf
191 -}
192 -
193 -src_configure() {
194 - local basic_modules="MSNT-multi-domain,NCSA,POP3,getpwnam"
195 - use samba && basic_modules+=",SMB"
196 - use ldap && basic_modules+=",LDAP"
197 - use pam && basic_modules+=",PAM"
198 - use sasl && basic_modules+=",SASL"
199 - use nis && ! use elibc_uclibc && basic_modules+=",NIS"
200 - use radius && basic_modules+=",RADIUS"
201 - if use mysql || use postgres || use sqlite ; then
202 - basic_modules+=",DB"
203 - fi
204 -
205 - local digest_modules="file"
206 - use ldap && digest_modules+=",LDAP,eDirectory"
207 -
208 - local negotiate_modules="none"
209 - local myconf="--without-mit-krb5 --without-heimdal-krb5"
210 - if use kerberos ; then
211 - negotiate_modules="kerberos,wrapper"
212 - if has_version app-crypt/heimdal ; then
213 - myconf="--without-mit-krb5 --with-heimdal-krb5"
214 - else
215 - myconf="--with-mit-krb5 --without-heimdal-krb5"
216 - fi
217 - fi
218 -
219 - local ntlm_modules="none"
220 - use samba && ntlm_modules="smb_lm"
221 -
222 - local ext_helpers="file_userip,session,unix_group"
223 - use samba && ext_helpers+=",wbinfo_group"
224 - use ldap && ext_helpers+=",LDAP_group,eDirectory_userip"
225 - use ldap && use kerberos && ext_helpers+=",kerberos_ldap_group"
226 -
227 - local storeio_modules="aufs,diskd,rock,ufs"
228 -
229 - local transparent
230 - if use kernel_linux ; then
231 - transparent+=" --enable-linux-netfilter"
232 - use qos && transparent+=" --enable-zph-qos --with-netfilter-conntrack"
233 - fi
234 -
235 - if use kernel_FreeBSD || use kernel_OpenBSD || use kernel_NetBSD ; then
236 - transparent+=" $(use_enable kqueue)"
237 - if use pf-transparent; then
238 - transparent+=" --enable-pf-transparent"
239 - elif use ipf-transparent; then
240 - transparent+=" --enable-ipf-transparent"
241 - fi
242 - fi
243 -
244 - tc-export CC AR
245 -
246 - econf \
247 - --sysconfdir=/etc/squid \
248 - --libexecdir=/usr/libexec/squid \
249 - --localstatedir=/var \
250 - --with-pidfile=/run/squid.pid \
251 - --datadir=/usr/share/squid \
252 - --with-logdir=/var/log/squid \
253 - --with-default-user=squid \
254 - --enable-removal-policies="lru,heap" \
255 - --enable-storeio="${storeio_modules}" \
256 - --enable-disk-io \
257 - --enable-auth-basic="${basic_modules}" \
258 - --enable-auth-digest="${digest_modules}" \
259 - --enable-auth-ntlm="${ntlm_modules}" \
260 - --enable-auth-negotiate="${negotiate_modules}" \
261 - --enable-external-acl-helpers="${ext_helpers}" \
262 - --enable-log-daemon-helpers \
263 - --enable-url-rewrite-helpers \
264 - --enable-cache-digests \
265 - --enable-delay-pools \
266 - --enable-eui \
267 - --enable-icmp \
268 - --enable-follow-x-forwarded-for \
269 - --with-large-files \
270 - --disable-strict-error-checking \
271 - --disable-arch-native \
272 - --with-ltdl-includedir=/usr/include \
273 - --with-ltdl-libdir=/usr/$(get_libdir) \
274 - $(use_with caps libcap) \
275 - $(use_enable ipv6) \
276 - $(use_enable snmp) \
277 - $(use_with ssl openssl) \
278 - $(use_with ssl nettle) \
279 - $(use_with ssl gnutls) \
280 - $(use_enable ssl-crtd) \
281 - $(use_enable ecap) \
282 - $(use_enable esi) \
283 - $(use_enable htcp) \
284 - $(use_enable wccp) \
285 - $(use_enable wccpv2) \
286 - ${transparent} \
287 - ${myconf}
288 -}
289 -
290 -src_install() {
291 - emake DESTDIR="${D}" install
292 -
293 - # need suid root for looking into /etc/shadow
294 - fowners root:squid /usr/libexec/squid/basic_ncsa_auth
295 - fperms 4750 /usr/libexec/squid/basic_ncsa_auth
296 - if use pam; then
297 - fowners root:squid /usr/libexec/squid/basic_pam_auth
298 - fperms 4750 /usr/libexec/squid/basic_pam_auth
299 - fi
300 - # pinger needs suid as well
301 - fowners root:squid /usr/libexec/squid/pinger
302 - fperms 4750 /usr/libexec/squid/pinger
303 -
304 - # cleanup
305 - rm -f "${D}"/usr/bin/Run*
306 - rm -rf "${D}"/run/squid "${D}"/var/cache/squid
307 -
308 - dodoc CONTRIBUTORS CREDITS ChangeLog INSTALL QUICKSTART README SPONSORS doc/*.txt
309 - newdoc helpers/negotiate_auth/kerberos/README README.kerberos
310 - newdoc helpers/basic_auth/RADIUS/README README.RADIUS
311 - newdoc helpers/external_acl/kerberos_ldap_group/README README.kerberos_ldap_group
312 - newdoc tools/purge/README README.purge
313 - newdoc tools/helper-mux.README README.helper-mux
314 - dohtml RELEASENOTES.html
315 -
316 - newpamd "${FILESDIR}/squid.pam" squid
317 - newconfd "${FILESDIR}/squid.confd-r1" squid
318 - newinitd "${FILESDIR}/squid.initd-r4" squid
319 - if use logrotate; then
320 - insinto /etc/logrotate.d
321 - newins "${FILESDIR}/squid.logrotate" squid
322 - else
323 - exeinto /etc/cron.weekly
324 - newexe "${FILESDIR}/squid.cron" squid.cron
325 - fi
326 -
327 - diropts -m0750 -o squid -g squid
328 - keepdir /var/log/squid /etc/ssl/squid /var/lib/squid
329 -}
330 -
331 -pkg_postinst() {
332 - if [[ $(get_version_component_range 1 ${REPLACING_VERSIONS}) -lt 3 ]] || \
333 - [[ $(get_version_component_range 2 ${REPLACING_VERSIONS}) -lt 5 ]]; then
334 - elog "Please read the release notes at:"
335 - elog " http://www.squid-cache.org/Versions/v3/3.5/RELEASENOTES.html"
336 - echo
337 - fi
338 -}
339
340 diff --git a/net-proxy/squid/squid-3.5.17.ebuild b/net-proxy/squid/squid-3.5.17.ebuild
341 deleted file mode 100644
342 index a48b508..0000000
343 --- a/net-proxy/squid/squid-3.5.17.ebuild
344 +++ /dev/null
345 @@ -1,249 +0,0 @@
346 -# Copyright 1999-2016 Gentoo Foundation
347 -# Distributed under the terms of the GNU General Public License v2
348 -# $Id$
349 -
350 -EAPI=5
351 -inherit autotools eutils linux-info pam toolchain-funcs user versionator
352 -
353 -DESCRIPTION="A full-featured web proxy cache"
354 -HOMEPAGE="http://www.squid-cache.org/"
355 -SRC_URI="http://www.squid-cache.org/Versions/v3/3.5/${P}.tar.xz"
356 -
357 -LICENSE="GPL-2"
358 -SLOT="0"
359 -KEYWORDS="alpha amd64 arm hppa ~ia64 ~mips ~ppc ppc64 ~sparc ~x86 ~x86-fbsd"
360 -IUSE="caps ipv6 pam ldap samba sasl kerberos nis radius ssl snmp selinux logrotate test \
361 - ecap esi ssl-crtd \
362 - mysql postgres sqlite \
363 - qos tproxy \
364 - +htcp +wccp +wccpv2 \
365 - pf-transparent ipf-transparent kqueue \
366 - elibc_uclibc kernel_linux"
367 -
368 -COMMON_DEPEND="caps? ( >=sys-libs/libcap-2.16 )
369 - pam? ( virtual/pam )
370 - ldap? ( net-nds/openldap )
371 - kerberos? ( virtual/krb5 )
372 - qos? ( net-libs/libnetfilter_conntrack )
373 - ssl? ( dev-libs/openssl:0 dev-libs/nettle >=net-libs/gnutls-3.1.5 )
374 - sasl? ( dev-libs/cyrus-sasl )
375 - ecap? ( net-libs/libecap:1 )
376 - esi? ( dev-libs/expat dev-libs/libxml2 )
377 - !x86-fbsd? ( logrotate? ( app-admin/logrotate ) )
378 - >=sys-libs/db-4:*
379 - dev-lang/perl
380 - dev-libs/libltdl:0"
381 -DEPEND="${COMMON_DEPEND}
382 - ecap? ( virtual/pkgconfig )
383 - sys-apps/ed
384 - test? ( dev-util/cppunit )"
385 -RDEPEND="${COMMON_DEPEND}
386 - samba? ( net-fs/samba )
387 - mysql? ( dev-perl/DBD-mysql )
388 - postgres? ( dev-perl/DBD-Pg )
389 - selinux? ( sec-policy/selinux-squid )
390 - sqlite? ( dev-perl/DBD-SQLite )
391 - !<=sci-biology/meme-4.8.1-r1"
392 -
393 -REQUIRED_USE="tproxy? ( caps )
394 - qos? ( caps )"
395 -
396 -pkg_pretend() {
397 - if use tproxy; then
398 - local CONFIG_CHECK="~NF_CONNTRACK ~NETFILTER_XT_MATCH_SOCKET ~NETFILTER_XT_TARGET_TPROXY"
399 - linux-info_pkg_setup
400 - fi
401 -}
402 -
403 -pkg_setup() {
404 - enewgroup squid
405 - enewuser squid -1 -1 /var/cache/squid squid
406 -}
407 -
408 -src_prepare() {
409 - epatch "${FILESDIR}/${PN}-3.5.7-gentoo.patch"
410 - sed -i -e 's:/usr/local/squid/etc:/etc/squid:' \
411 - INSTALL QUICKSTART \
412 - scripts/fileno-to-pathname.pl \
413 - scripts/check_cache.pl \
414 - tools/cachemgr.cgi.8 \
415 - tools/purge/conffile.hh \
416 - tools/purge/README || die
417 - sed -i -e 's:/usr/local/squid/sbin:/usr/sbin:' \
418 - INSTALL QUICKSTART || die
419 - sed -i -e 's:/usr/local/squid/var/cache:/var/cache/squid:' \
420 - QUICKSTART || die
421 - sed -i -e 's:/usr/local/squid/var/logs:/var/log/squid:' \
422 - QUICKSTART \
423 - src/log/access_log.cc || die
424 - sed -i -e 's:/usr/local/squid/logs:/var/log/squid:' \
425 - src/log/access_log.cc || die
426 - sed -i -e 's:/usr/local/squid/libexec:/usr/libexec/squid:' \
427 - helpers/external_acl/unix_group/ext_unix_group_acl.8 \
428 - helpers/external_acl/session/ext_session_acl.8 \
429 - src/ssl/ssl_crtd.8 || die
430 - sed -i -e 's:/usr/local/squid/cache:/var/cache/squid:' \
431 - scripts/check_cache.pl || die
432 - sed -i -e 's:/usr/local/squid/ssl_cert:/etc/ssl/squid:' \
433 - src/ssl/ssl_crtd.8 || die
434 - sed -i -e 's:/usr/local/squid/var/lib/ssl_db:/var/lib/squid/ssl_db:' \
435 - src/ssl/ssl_crtd.8 || die
436 - sed -i -e 's:/var/lib/ssl_db:/var/lib/squid/ssl_db:' \
437 - src/ssl/ssl_crtd.8 || die
438 - # /var/run/squid to /run/squid
439 - sed -i -e 's:$(localstatedir)::' \
440 - src/ipc/Makefile.am || die
441 - sed -i -e 's:_LTDL_SETUP:LTDL_INIT([installable]):' \
442 - libltdl/configure.ac || die
443 -
444 - epatch_user
445 -
446 - eautoreconf
447 -}
448 -
449 -src_configure() {
450 - local basic_modules="MSNT-multi-domain,NCSA,POP3,getpwnam"
451 - use samba && basic_modules+=",SMB"
452 - use ldap && basic_modules+=",LDAP"
453 - use pam && basic_modules+=",PAM"
454 - use sasl && basic_modules+=",SASL"
455 - use nis && ! use elibc_uclibc && basic_modules+=",NIS"
456 - use radius && basic_modules+=",RADIUS"
457 - if use mysql || use postgres || use sqlite ; then
458 - basic_modules+=",DB"
459 - fi
460 -
461 - local digest_modules="file"
462 - use ldap && digest_modules+=",LDAP,eDirectory"
463 -
464 - local negotiate_modules="none"
465 - local myconf="--without-mit-krb5 --without-heimdal-krb5"
466 - if use kerberos ; then
467 - negotiate_modules="kerberos,wrapper"
468 - if has_version app-crypt/heimdal ; then
469 - myconf="--without-mit-krb5 --with-heimdal-krb5"
470 - else
471 - myconf="--with-mit-krb5 --without-heimdal-krb5"
472 - fi
473 - fi
474 -
475 - local ntlm_modules="none"
476 - use samba && ntlm_modules="smb_lm"
477 -
478 - local ext_helpers="file_userip,session,unix_group"
479 - use samba && ext_helpers+=",wbinfo_group"
480 - use ldap && ext_helpers+=",LDAP_group,eDirectory_userip"
481 - use ldap && use kerberos && ext_helpers+=",kerberos_ldap_group"
482 -
483 - local storeio_modules="aufs,diskd,rock,ufs"
484 -
485 - local transparent
486 - if use kernel_linux ; then
487 - transparent+=" --enable-linux-netfilter"
488 - use qos && transparent+=" --enable-zph-qos --with-netfilter-conntrack"
489 - fi
490 -
491 - if use kernel_FreeBSD || use kernel_OpenBSD || use kernel_NetBSD ; then
492 - transparent+=" $(use_enable kqueue)"
493 - if use pf-transparent; then
494 - transparent+=" --enable-pf-transparent"
495 - elif use ipf-transparent; then
496 - transparent+=" --enable-ipf-transparent"
497 - fi
498 - fi
499 -
500 - tc-export CC AR
501 -
502 - econf \
503 - --sysconfdir=/etc/squid \
504 - --libexecdir=/usr/libexec/squid \
505 - --localstatedir=/var \
506 - --with-pidfile=/run/squid.pid \
507 - --datadir=/usr/share/squid \
508 - --with-logdir=/var/log/squid \
509 - --with-default-user=squid \
510 - --enable-removal-policies="lru,heap" \
511 - --enable-storeio="${storeio_modules}" \
512 - --enable-disk-io \
513 - --enable-auth-basic="${basic_modules}" \
514 - --enable-auth-digest="${digest_modules}" \
515 - --enable-auth-ntlm="${ntlm_modules}" \
516 - --enable-auth-negotiate="${negotiate_modules}" \
517 - --enable-external-acl-helpers="${ext_helpers}" \
518 - --enable-log-daemon-helpers \
519 - --enable-url-rewrite-helpers \
520 - --enable-cache-digests \
521 - --enable-delay-pools \
522 - --enable-eui \
523 - --enable-icmp \
524 - --enable-follow-x-forwarded-for \
525 - --with-large-files \
526 - --disable-strict-error-checking \
527 - --disable-arch-native \
528 - --with-ltdl-includedir=/usr/include \
529 - --with-ltdl-libdir=/usr/$(get_libdir) \
530 - $(use_with caps libcap) \
531 - $(use_enable ipv6) \
532 - $(use_enable snmp) \
533 - $(use_with ssl openssl) \
534 - $(use_with ssl nettle) \
535 - $(use_with ssl gnutls) \
536 - $(use_enable ssl-crtd) \
537 - $(use_enable ecap) \
538 - $(use_enable esi) \
539 - $(use_enable htcp) \
540 - $(use_enable wccp) \
541 - $(use_enable wccpv2) \
542 - ${transparent} \
543 - ${myconf}
544 -}
545 -
546 -src_install() {
547 - emake DESTDIR="${D}" install
548 -
549 - # need suid root for looking into /etc/shadow
550 - fowners root:squid /usr/libexec/squid/basic_ncsa_auth
551 - fperms 4750 /usr/libexec/squid/basic_ncsa_auth
552 - if use pam; then
553 - fowners root:squid /usr/libexec/squid/basic_pam_auth
554 - fperms 4750 /usr/libexec/squid/basic_pam_auth
555 - fi
556 - # pinger needs suid as well
557 - fowners root:squid /usr/libexec/squid/pinger
558 - fperms 4750 /usr/libexec/squid/pinger
559 -
560 - # cleanup
561 - rm -f "${D}"/usr/bin/Run*
562 - rm -rf "${D}"/run/squid "${D}"/var/cache/squid
563 -
564 - dodoc CONTRIBUTORS CREDITS ChangeLog INSTALL QUICKSTART README SPONSORS doc/*.txt
565 - newdoc helpers/negotiate_auth/kerberos/README README.kerberos
566 - newdoc helpers/basic_auth/RADIUS/README README.RADIUS
567 - newdoc helpers/external_acl/kerberos_ldap_group/README README.kerberos_ldap_group
568 - newdoc tools/purge/README README.purge
569 - newdoc tools/helper-mux.README README.helper-mux
570 - dohtml RELEASENOTES.html
571 -
572 - newpamd "${FILESDIR}/squid.pam" squid
573 - newconfd "${FILESDIR}/squid.confd-r1" squid
574 - newinitd "${FILESDIR}/squid.initd-r4" squid
575 - if use logrotate; then
576 - insinto /etc/logrotate.d
577 - newins "${FILESDIR}/squid.logrotate" squid
578 - else
579 - exeinto /etc/cron.weekly
580 - newexe "${FILESDIR}/squid.cron" squid.cron
581 - fi
582 -
583 - diropts -m0750 -o squid -g squid
584 - keepdir /var/log/squid /etc/ssl/squid /var/lib/squid
585 -}
586 -
587 -pkg_postinst() {
588 - if [[ $(get_version_component_range 1 ${REPLACING_VERSIONS}) -lt 3 ]] || \
589 - [[ $(get_version_component_range 2 ${REPLACING_VERSIONS}) -lt 5 ]]; then
590 - elog "Please read the release notes at:"
591 - elog " http://www.squid-cache.org/Versions/v3/3.5/RELEASENOTES.html"
592 - echo
593 - fi
594 -}