Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-proxy/squid/
Date: Mon, 17 May 2021 08:04:25
Message-Id: 1621238658.c8e213f0a2e2e4d9c35428d7819c360e2d07e226.zlogene@gentoo
1 commit: c8e213f0a2e2e4d9c35428d7819c360e2d07e226
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 17 08:03:50 2021 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Mon May 17 08:04:18 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c8e213f0
7
8 net-proxy/squid: Drop old
9
10 Package-Manager: Portage-3.0.17, Repoman-3.0.2
11 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
12
13 net-proxy/squid/Manifest | 2 -
14 net-proxy/squid/squid-4.13-r1.ebuild | 286 -----------------------------------
15 net-proxy/squid/squid-4.14.ebuild | 286 -----------------------------------
16 3 files changed, 574 deletions(-)
17
18 diff --git a/net-proxy/squid/Manifest b/net-proxy/squid/Manifest
19 index ed550051705..b109270c2c9 100644
20 --- a/net-proxy/squid/Manifest
21 +++ b/net-proxy/squid/Manifest
22 @@ -1,3 +1 @@
23 -DIST squid-4.13.tar.xz 2452752 BLAKE2B e2efdfda736f2324c6723e76272c4989a41fa6d0f52b48cc33957ae8e57e75350487d9683fc72c43926e5d91b698eef728282895018b78acefe23de2e67cfd74 SHA512 06807f82ed01e12afe2dd843aa0a94f69c351765b1889c4c5c3da1cf2ecb06ac3a4be6a24a62f04397299c8fc0df5397f76f64df5422ff78b37a9382d5fdf7fc
24 -DIST squid-4.14.tar.xz 2452892 BLAKE2B be8d8fc17b6b762faac0e6fbb5e428fc48b3f958b27f9da9eb941315c22185d34edb9fec73518626b6d5a7206b43f209638dc6bb874d52d6e183e5646874a668 SHA512 3509caea9e10ea54547eeb769a21f0ca4d37e39a063953821fc51d588b22facfa183d0a48be9ab15831ee646e031079b515c75162515b8a4e7c708df2d41958b
25 DIST squid-4.15.tar.xz 2454176 BLAKE2B 3cb08c806f03fcddd7233b05986434d2be3e62a50d006eb3f84bbc5b894ee3641929551d00a1800d6676add62f967067ec62b5b7c41d767766eeab5dfc17980e SHA512 8f0ce6e30dd9173927e8133618211ffb865fb5dde4c63c2fb465e2efccda4a6efb33f2c0846870c9b915340aff5f59461a60171882bcc0c890336b846fe60bd1
26
27 diff --git a/net-proxy/squid/squid-4.13-r1.ebuild b/net-proxy/squid/squid-4.13-r1.ebuild
28 deleted file mode 100644
29 index ce003456869..00000000000
30 --- a/net-proxy/squid/squid-4.13-r1.ebuild
31 +++ /dev/null
32 @@ -1,286 +0,0 @@
33 -# Copyright 1999-2021 Gentoo Authors
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=7
37 -
38 -inherit autotools flag-o-matic linux-info pam systemd toolchain-funcs
39 -
40 -DESCRIPTION="A full-featured web proxy cache"
41 -HOMEPAGE="http://www.squid-cache.org/"
42 -
43 -# Upstream patch ID for the most recent bug-fixed update to the formal release.
44 -r=
45 -#r=-20181117-r0022167
46 -if [ -z "$r" ]; then
47 - SRC_URI="http://www.squid-cache.org/Versions/v${PV%.*}/${P}.tar.xz"
48 -else
49 - SRC_URI="http://www.squid-cache.org/Versions/v${PV%.*}/${P}${r}.tar.bz2"
50 - S="${S}${r}"
51 -fi
52 -
53 -LICENSE="GPL-2"
54 -SLOT="0"
55 -KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 ~sparc x86"
56 -IUSE="caps gnutls ipv6 pam ldap samba sasl kerberos nis radius ssl snmp selinux logrotate test \
57 - ecap esi ssl-crtd \
58 - mysql postgres sqlite systemd \
59 - perl qos tproxy \
60 - +htcp +wccp +wccpv2 \
61 - pf-transparent ipf-transparent kqueue \
62 - elibc_uclibc kernel_linux"
63 -
64 -RESTRICT="!test? ( test )"
65 -
66 -BDEPEND="dev-lang/perl"
67 -
68 -COMMON_DEPEND="acct-group/squid
69 - acct-user/squid
70 - caps? ( >=sys-libs/libcap-2.16 )
71 - pam? ( sys-libs/pam )
72 - ldap? ( net-nds/openldap )
73 - kerberos? ( virtual/krb5 )
74 - qos? ( net-libs/libnetfilter_conntrack )
75 - ssl? (
76 - !gnutls? ( dev-libs/openssl:0 )
77 - dev-libs/nettle:= )
78 - sasl? ( dev-libs/cyrus-sasl )
79 - systemd? ( sys-apps/systemd:= )
80 - ecap? ( net-libs/libecap:1 )
81 - esi? ( dev-libs/expat dev-libs/libxml2 )
82 - gnutls? ( >=net-libs/gnutls-3.1.5 )
83 - logrotate? ( app-admin/logrotate )
84 - >=sys-libs/db-4:*
85 - dev-libs/libltdl:0"
86 -
87 -DEPEND="${COMMON_DEPEND}
88 - ${BDEPEND}
89 - ecap? ( virtual/pkgconfig )
90 - test? ( dev-util/cppunit )"
91 -
92 -RDEPEND="${COMMON_DEPEND}
93 - samba? ( net-fs/samba )
94 - perl? ( dev-lang/perl )
95 - mysql? ( dev-perl/DBD-mysql )
96 - postgres? ( dev-perl/DBD-Pg )
97 - selinux? ( sec-policy/selinux-squid )
98 - sqlite? ( dev-perl/DBD-SQLite )"
99 -
100 -REQUIRED_USE="tproxy? ( caps )
101 - qos? ( caps )"
102 -
103 -pkg_pretend() {
104 - if use tproxy; then
105 - local CONFIG_CHECK="~NF_CONNTRACK ~NETFILTER_XT_MATCH_SOCKET ~NETFILTER_XT_TARGET_TPROXY"
106 - linux-info_pkg_setup
107 - fi
108 -}
109 -
110 -src_prepare() {
111 - eapply "${FILESDIR}/${PN}-4.3-gentoo.patch"
112 - sed -i -e 's:/usr/local/squid/etc:/etc/squid:' \
113 - INSTALL QUICKSTART \
114 - scripts/fileno-to-pathname.pl \
115 - scripts/check_cache.pl \
116 - tools/cachemgr.cgi.8 \
117 - tools/purge/conffile.hh \
118 - tools/purge/purge.1 || die
119 - sed -i -e 's:/usr/local/squid/sbin:/usr/sbin:' \
120 - INSTALL QUICKSTART || die
121 - sed -i -e 's:/usr/local/squid/var/cache:/var/cache/squid:' \
122 - QUICKSTART || die
123 - sed -i -e 's:/usr/local/squid/var/logs:/var/log/squid:' \
124 - QUICKSTART \
125 - src/log/access_log.cc || die
126 - sed -i -e 's:/usr/local/squid/logs:/var/log/squid:' \
127 - src/log/access_log.cc || die
128 - sed -i -e 's:/usr/local/squid/libexec:/usr/libexec/squid:' \
129 - src/acl/external/unix_group/ext_unix_group_acl.8 \
130 - src/acl/external/session/ext_session_acl.8 || die
131 - sed -i -e 's:/usr/local/squid/cache:/var/cache/squid:' \
132 - scripts/check_cache.pl || die
133 - # /var/run/squid to /run/squid
134 - sed -i -e 's:$(localstatedir)::' \
135 - src/ipc/Makefile.am || die
136 - sed -i -e 's:_LTDL_SETUP:LTDL_INIT([installable]):' \
137 - libltdl/configure.ac || die
138 -
139 - sed -i 's:/var/run/:/run/:g' tools/systemd/squid.service || die
140 -
141 - eapply_user
142 - eautoreconf
143 -}
144 -
145 -src_configure() {
146 - local basic_modules="NCSA,POP3,getpwnam"
147 - use samba && basic_modules+=",SMB"
148 - use ldap && basic_modules+=",SMB_LM,LDAP"
149 - use pam && basic_modules+=",PAM"
150 - use sasl && basic_modules+=",SASL"
151 - use nis && ! use elibc_uclibc && basic_modules+=",NIS"
152 - use radius && basic_modules+=",RADIUS"
153 - if use mysql || use postgres || use sqlite ; then
154 - basic_modules+=",DB"
155 - fi
156 -
157 - local digest_modules="file"
158 - use ldap && digest_modules+=",LDAP,eDirectory"
159 -
160 - local negotiate_modules="none"
161 - local myconf="--without-mit-krb5 --without-heimdal-krb5"
162 - if use kerberos ; then
163 - negotiate_modules="kerberos,wrapper"
164 - if has_version app-crypt/heimdal ; then
165 - myconf="--without-mit-krb5 --with-heimdal-krb5"
166 - else
167 - myconf="--with-mit-krb5 --without-heimdal-krb5"
168 - fi
169 - fi
170 -
171 - local ntlm_modules="none"
172 - use samba && ntlm_modules="SMB_LM"
173 -
174 - local ext_helpers="file_userip,session,unix_group,delayer,time_quota"
175 - use samba && ext_helpers+=",wbinfo_group"
176 - use ldap && ext_helpers+=",LDAP_group,eDirectory_userip"
177 - use ldap && use kerberos && ext_helpers+=",kerberos_ldap_group"
178 - if use mysql || use postgres || use sqlite ; then
179 - ext_helpers+=",SQL_session"
180 - fi
181 -
182 - local storeio_modules="aufs,diskd,rock,ufs"
183 -
184 - local transparent
185 - if use kernel_linux ; then
186 - transparent+=" --enable-linux-netfilter"
187 - use qos && transparent+=" --enable-zph-qos --with-netfilter-conntrack"
188 - fi
189 -
190 - if use kernel_FreeBSD || use kernel_OpenBSD || use kernel_NetBSD ; then
191 - transparent+=" $(use_enable kqueue)"
192 - if use pf-transparent; then
193 - transparent+=" --enable-pf-transparent"
194 - elif use ipf-transparent; then
195 - transparent+=" --enable-ipf-transparent"
196 - fi
197 - fi
198 -
199 - tc-export_build_env BUILD_CXX
200 - export BUILDCXX=${BUILD_CXX}
201 - export BUILDCXXFLAGS=${BUILD_CXXFLAGS}
202 - tc-export CC AR
203 -
204 - # Should be able to drop this workaround with newer versions.
205 - # https://bugs.squid-cache.org/show_bug.cgi?id=4224
206 - tc-is-cross-compiler && export squid_cv_gnu_atomics=no
207 -
208 - # Bug #719662
209 - (use ppc || use arm || use hppa) && append-libs -latomic
210 -
211 - econf \
212 - --sysconfdir=/etc/squid \
213 - --libexecdir=/usr/libexec/squid \
214 - --localstatedir=/var \
215 - --with-pidfile=/run/squid.pid \
216 - --datadir=/usr/share/squid \
217 - --with-logdir=/var/log/squid \
218 - --with-default-user=squid \
219 - --enable-removal-policies="lru,heap" \
220 - --enable-storeio="${storeio_modules}" \
221 - --enable-disk-io \
222 - --enable-auth-basic="${basic_modules}" \
223 - --enable-auth-digest="${digest_modules}" \
224 - --enable-auth-ntlm="${ntlm_modules}" \
225 - --enable-auth-negotiate="${negotiate_modules}" \
226 - --enable-external-acl-helpers="${ext_helpers}" \
227 - --enable-log-daemon-helpers \
228 - --enable-url-rewrite-helpers \
229 - --enable-cache-digests \
230 - --enable-delay-pools \
231 - --enable-eui \
232 - --enable-icmp \
233 - --enable-follow-x-forwarded-for \
234 - --with-large-files \
235 - --with-build-environment=default \
236 - --disable-strict-error-checking \
237 - --disable-arch-native \
238 - --with-included-ltdl=/usr/include \
239 - --with-ltdl-libdir=/usr/$(get_libdir) \
240 - $(use_with caps libcap) \
241 - $(use_enable ipv6) \
242 - $(use_enable snmp) \
243 - $(use_with ssl openssl) \
244 - $(use_with ssl nettle) \
245 - $(use_with gnutls) \
246 - $(use_enable ssl-crtd) \
247 - $(use_with systemd) \
248 - $(use_enable ecap) \
249 - $(use_enable esi) \
250 - $(use_enable htcp) \
251 - $(use_enable wccp) \
252 - $(use_enable wccpv2) \
253 - ${transparent} \
254 - ${myconf}
255 -}
256 -
257 -src_install() {
258 - default
259 -
260 - systemd_dounit "tools/systemd/squid.service"
261 -
262 - # need suid root for looking into /etc/shadow
263 - fowners root:squid /usr/libexec/squid/basic_ncsa_auth
264 - fperms 4750 /usr/libexec/squid/basic_ncsa_auth
265 - if use pam; then
266 - fowners root:squid /usr/libexec/squid/basic_pam_auth
267 - fperms 4750 /usr/libexec/squid/basic_pam_auth
268 - fi
269 - # pinger needs suid as well
270 - fowners root:squid /usr/libexec/squid/pinger
271 - fperms 4750 /usr/libexec/squid/pinger
272 -
273 - # these scripts depend on perl
274 - if ! use perl; then
275 - for f in basic_pop3_auth \
276 - ext_delayer_acl \
277 - helper-mux \
278 - log_db_daemon \
279 - security_fake_certverify \
280 - storeid_file_rewrite \
281 - url_lfs_rewrite; do
282 - rm "${D}"/usr/libexec/squid/${f} || die
283 - done
284 - fi
285 -
286 - # cleanup
287 - rm -r "${D}"/run "${D}"/var/cache || die
288 -
289 - dodoc CONTRIBUTORS CREDITS ChangeLog INSTALL QUICKSTART README SPONSORS doc/*.txt
290 - newdoc src/auth/negotiate/kerberos/README README.kerberos
291 - newdoc src/auth/basic/RADIUS/README README.RADIUS
292 - newdoc src/acl/external/kerberos_ldap_group/README README.kerberos_ldap_group
293 - dodoc RELEASENOTES.html
294 -
295 - if use pam; then
296 - newpamd "${FILESDIR}/squid.pam" squid
297 - fi
298 -
299 - newconfd "${FILESDIR}/squid.confd-r2" squid
300 - newinitd "${FILESDIR}/squid.initd-r5" squid
301 - if use logrotate; then
302 - insinto /etc/logrotate.d
303 - newins "${FILESDIR}/squid.logrotate" squid
304 - else
305 - exeinto /etc/cron.weekly
306 - newexe "${FILESDIR}/squid.cron" squid.cron
307 - fi
308 -
309 - diropts -m0750 -o squid -g squid
310 - keepdir /var/log/squid /etc/ssl/squid /var/lib/squid
311 -}
312 -
313 -pkg_postinst() {
314 - elog "A good starting point to debug Squid issues is to use 'squidclient mgr:' commands such as 'squidclient mgr:info'."
315 - if [ ${#r} -gt 0 ]; then
316 - elog "You are using a release with the official ${r} patch! Make sure you mention that, or send the output of 'squidclient mgr:info' when asking for support."
317 - fi
318 -}
319
320 diff --git a/net-proxy/squid/squid-4.14.ebuild b/net-proxy/squid/squid-4.14.ebuild
321 deleted file mode 100644
322 index 68b0c1d3501..00000000000
323 --- a/net-proxy/squid/squid-4.14.ebuild
324 +++ /dev/null
325 @@ -1,286 +0,0 @@
326 -# Copyright 1999-2021 Gentoo Authors
327 -# Distributed under the terms of the GNU General Public License v2
328 -
329 -EAPI=7
330 -
331 -inherit autotools flag-o-matic linux-info pam systemd toolchain-funcs
332 -
333 -DESCRIPTION="A full-featured web proxy cache"
334 -HOMEPAGE="http://www.squid-cache.org/"
335 -
336 -# Upstream patch ID for the most recent bug-fixed update to the formal release.
337 -r=
338 -#r=-20181117-r0022167
339 -if [ -z "$r" ]; then
340 - SRC_URI="http://www.squid-cache.org/Versions/v${PV%.*}/${P}.tar.xz"
341 -else
342 - SRC_URI="http://www.squid-cache.org/Versions/v${PV%.*}/${P}${r}.tar.bz2"
343 - S="${S}${r}"
344 -fi
345 -
346 -LICENSE="GPL-2"
347 -SLOT="0"
348 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
349 -IUSE="caps gnutls ipv6 pam ldap samba sasl kerberos nis radius ssl snmp selinux logrotate test \
350 - ecap esi ssl-crtd \
351 - mysql postgres sqlite systemd \
352 - perl qos tproxy \
353 - +htcp +wccp +wccpv2 \
354 - pf-transparent ipf-transparent kqueue \
355 - elibc_uclibc kernel_linux"
356 -
357 -RESTRICT="!test? ( test )"
358 -
359 -BDEPEND="dev-lang/perl"
360 -
361 -COMMON_DEPEND="acct-group/squid
362 - acct-user/squid
363 - caps? ( >=sys-libs/libcap-2.16 )
364 - pam? ( sys-libs/pam )
365 - ldap? ( net-nds/openldap )
366 - kerberos? ( virtual/krb5 )
367 - qos? ( net-libs/libnetfilter_conntrack )
368 - ssl? (
369 - !gnutls? ( dev-libs/openssl:0 )
370 - dev-libs/nettle:= )
371 - sasl? ( dev-libs/cyrus-sasl )
372 - systemd? ( sys-apps/systemd:= )
373 - ecap? ( net-libs/libecap:1 )
374 - esi? ( dev-libs/expat dev-libs/libxml2 )
375 - gnutls? ( >=net-libs/gnutls-3.1.5 )
376 - logrotate? ( app-admin/logrotate )
377 - >=sys-libs/db-4:*
378 - dev-libs/libltdl:0"
379 -
380 -DEPEND="${COMMON_DEPEND}
381 - ${BDEPEND}
382 - ecap? ( virtual/pkgconfig )
383 - test? ( dev-util/cppunit )"
384 -
385 -RDEPEND="${COMMON_DEPEND}
386 - samba? ( net-fs/samba )
387 - perl? ( dev-lang/perl )
388 - mysql? ( dev-perl/DBD-mysql )
389 - postgres? ( dev-perl/DBD-Pg )
390 - selinux? ( sec-policy/selinux-squid )
391 - sqlite? ( dev-perl/DBD-SQLite )"
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 -src_prepare() {
404 - eapply "${FILESDIR}/${PN}-4.3-gentoo.patch"
405 - sed -i -e 's:/usr/local/squid/etc:/etc/squid:' \
406 - INSTALL QUICKSTART \
407 - scripts/fileno-to-pathname.pl \
408 - scripts/check_cache.pl \
409 - tools/cachemgr.cgi.8 \
410 - tools/purge/conffile.hh \
411 - tools/purge/purge.1 || die
412 - sed -i -e 's:/usr/local/squid/sbin:/usr/sbin:' \
413 - INSTALL QUICKSTART || die
414 - sed -i -e 's:/usr/local/squid/var/cache:/var/cache/squid:' \
415 - QUICKSTART || die
416 - sed -i -e 's:/usr/local/squid/var/logs:/var/log/squid:' \
417 - QUICKSTART \
418 - src/log/access_log.cc || die
419 - sed -i -e 's:/usr/local/squid/logs:/var/log/squid:' \
420 - src/log/access_log.cc || die
421 - sed -i -e 's:/usr/local/squid/libexec:/usr/libexec/squid:' \
422 - src/acl/external/unix_group/ext_unix_group_acl.8 \
423 - src/acl/external/session/ext_session_acl.8 || die
424 - sed -i -e 's:/usr/local/squid/cache:/var/cache/squid:' \
425 - scripts/check_cache.pl || die
426 - # /var/run/squid to /run/squid
427 - sed -i -e 's:$(localstatedir)::' \
428 - src/ipc/Makefile.am || die
429 - sed -i -e 's:_LTDL_SETUP:LTDL_INIT([installable]):' \
430 - libltdl/configure.ac || die
431 -
432 - sed -i 's:/var/run/:/run/:g' tools/systemd/squid.service || die
433 -
434 - eapply_user
435 - eautoreconf
436 -}
437 -
438 -src_configure() {
439 - local basic_modules="NCSA,POP3,getpwnam"
440 - use samba && basic_modules+=",SMB"
441 - use ldap && basic_modules+=",SMB_LM,LDAP"
442 - use pam && basic_modules+=",PAM"
443 - use sasl && basic_modules+=",SASL"
444 - use nis && ! use elibc_uclibc && basic_modules+=",NIS"
445 - use radius && basic_modules+=",RADIUS"
446 - if use mysql || use postgres || use sqlite ; then
447 - basic_modules+=",DB"
448 - fi
449 -
450 - local digest_modules="file"
451 - use ldap && digest_modules+=",LDAP,eDirectory"
452 -
453 - local negotiate_modules="none"
454 - local myconf="--without-mit-krb5 --without-heimdal-krb5"
455 - if use kerberos ; then
456 - negotiate_modules="kerberos,wrapper"
457 - if has_version app-crypt/heimdal ; then
458 - myconf="--without-mit-krb5 --with-heimdal-krb5"
459 - else
460 - myconf="--with-mit-krb5 --without-heimdal-krb5"
461 - fi
462 - fi
463 -
464 - local ntlm_modules="none"
465 - use samba && ntlm_modules="SMB_LM"
466 -
467 - local ext_helpers="file_userip,session,unix_group,delayer,time_quota"
468 - use samba && ext_helpers+=",wbinfo_group"
469 - use ldap && ext_helpers+=",LDAP_group,eDirectory_userip"
470 - use ldap && use kerberos && ext_helpers+=",kerberos_ldap_group"
471 - if use mysql || use postgres || use sqlite ; then
472 - ext_helpers+=",SQL_session"
473 - fi
474 -
475 - local storeio_modules="aufs,diskd,rock,ufs"
476 -
477 - local transparent
478 - if use kernel_linux ; then
479 - transparent+=" --enable-linux-netfilter"
480 - use qos && transparent+=" --enable-zph-qos --with-netfilter-conntrack"
481 - fi
482 -
483 - if use kernel_FreeBSD || use kernel_OpenBSD || use kernel_NetBSD ; then
484 - transparent+=" $(use_enable kqueue)"
485 - if use pf-transparent; then
486 - transparent+=" --enable-pf-transparent"
487 - elif use ipf-transparent; then
488 - transparent+=" --enable-ipf-transparent"
489 - fi
490 - fi
491 -
492 - tc-export_build_env BUILD_CXX
493 - export BUILDCXX=${BUILD_CXX}
494 - export BUILDCXXFLAGS=${BUILD_CXXFLAGS}
495 - tc-export CC AR
496 -
497 - # Should be able to drop this workaround with newer versions.
498 - # https://bugs.squid-cache.org/show_bug.cgi?id=4224
499 - tc-is-cross-compiler && export squid_cv_gnu_atomics=no
500 -
501 - # Bug #719662
502 - (use ppc || use arm || use hppa) && append-libs -latomic
503 -
504 - econf \
505 - --sysconfdir=/etc/squid \
506 - --libexecdir=/usr/libexec/squid \
507 - --localstatedir=/var \
508 - --with-pidfile=/run/squid.pid \
509 - --datadir=/usr/share/squid \
510 - --with-logdir=/var/log/squid \
511 - --with-default-user=squid \
512 - --enable-removal-policies="lru,heap" \
513 - --enable-storeio="${storeio_modules}" \
514 - --enable-disk-io \
515 - --enable-auth-basic="${basic_modules}" \
516 - --enable-auth-digest="${digest_modules}" \
517 - --enable-auth-ntlm="${ntlm_modules}" \
518 - --enable-auth-negotiate="${negotiate_modules}" \
519 - --enable-external-acl-helpers="${ext_helpers}" \
520 - --enable-log-daemon-helpers \
521 - --enable-url-rewrite-helpers \
522 - --enable-cache-digests \
523 - --enable-delay-pools \
524 - --enable-eui \
525 - --enable-icmp \
526 - --enable-follow-x-forwarded-for \
527 - --with-large-files \
528 - --with-build-environment=default \
529 - --disable-strict-error-checking \
530 - --disable-arch-native \
531 - --with-included-ltdl=/usr/include \
532 - --with-ltdl-libdir=/usr/$(get_libdir) \
533 - $(use_with caps libcap) \
534 - $(use_enable ipv6) \
535 - $(use_enable snmp) \
536 - $(use_with ssl openssl) \
537 - $(use_with ssl nettle) \
538 - $(use_with gnutls) \
539 - $(use_enable ssl-crtd) \
540 - $(use_with systemd) \
541 - $(use_enable ecap) \
542 - $(use_enable esi) \
543 - $(use_enable htcp) \
544 - $(use_enable wccp) \
545 - $(use_enable wccpv2) \
546 - ${transparent} \
547 - ${myconf}
548 -}
549 -
550 -src_install() {
551 - default
552 -
553 - systemd_dounit "tools/systemd/squid.service"
554 -
555 - # need suid root for looking into /etc/shadow
556 - fowners root:squid /usr/libexec/squid/basic_ncsa_auth
557 - fperms 4750 /usr/libexec/squid/basic_ncsa_auth
558 - if use pam; then
559 - fowners root:squid /usr/libexec/squid/basic_pam_auth
560 - fperms 4750 /usr/libexec/squid/basic_pam_auth
561 - fi
562 - # pinger needs suid as well
563 - fowners root:squid /usr/libexec/squid/pinger
564 - fperms 4750 /usr/libexec/squid/pinger
565 -
566 - # these scripts depend on perl
567 - if ! use perl; then
568 - for f in basic_pop3_auth \
569 - ext_delayer_acl \
570 - helper-mux \
571 - log_db_daemon \
572 - security_fake_certverify \
573 - storeid_file_rewrite \
574 - url_lfs_rewrite; do
575 - rm "${D}"/usr/libexec/squid/${f} || die
576 - done
577 - fi
578 -
579 - # cleanup
580 - rm -r "${D}"/run "${D}"/var/cache || die
581 -
582 - dodoc CONTRIBUTORS CREDITS ChangeLog INSTALL QUICKSTART README SPONSORS doc/*.txt
583 - newdoc src/auth/negotiate/kerberos/README README.kerberos
584 - newdoc src/auth/basic/RADIUS/README README.RADIUS
585 - newdoc src/acl/external/kerberos_ldap_group/README README.kerberos_ldap_group
586 - dodoc RELEASENOTES.html
587 -
588 - if use pam; then
589 - newpamd "${FILESDIR}/squid.pam" squid
590 - fi
591 -
592 - newconfd "${FILESDIR}/squid.confd-r2" squid
593 - newinitd "${FILESDIR}/squid.initd-r5" squid
594 - if use logrotate; then
595 - insinto /etc/logrotate.d
596 - newins "${FILESDIR}/squid.logrotate" squid
597 - else
598 - exeinto /etc/cron.weekly
599 - newexe "${FILESDIR}/squid.cron" squid.cron
600 - fi
601 -
602 - diropts -m0750 -o squid -g squid
603 - keepdir /var/log/squid /etc/ssl/squid /var/lib/squid
604 -}
605 -
606 -pkg_postinst() {
607 - elog "A good starting point to debug Squid issues is to use 'squidclient mgr:' commands such as 'squidclient mgr:info'."
608 - if [ ${#r} -gt 0 ]; then
609 - elog "You are using a release with the official ${r} patch! Make sure you mention that, or send the output of 'squidclient mgr:info' when asking for support."
610 - fi
611 -}