1 |
commit: 6b74f04f772ce24be091433c80ba02d4d0e980bb |
2 |
Author: Eray Aslan <eras <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 20 08:12:37 2017 +0000 |
4 |
Commit: Eray Aslan <eras <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 20 08:12:37 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b74f04f |
7 |
|
8 |
net-proxy/squid: remove old |
9 |
|
10 |
Package-Manager: Portage-2.3.14, Repoman-2.3.6 |
11 |
|
12 |
net-proxy/squid/Manifest | 3 - |
13 |
net-proxy/squid/squid-3.5.23.ebuild | 240 ------------------------------------ |
14 |
net-proxy/squid/squid-3.5.24.ebuild | 240 ------------------------------------ |
15 |
net-proxy/squid/squid-3.5.25.ebuild | 240 ------------------------------------ |
16 |
4 files changed, 723 deletions(-) |
17 |
|
18 |
diff --git a/net-proxy/squid/Manifest b/net-proxy/squid/Manifest |
19 |
index 9d5514e53e0..eeece36dc02 100644 |
20 |
--- a/net-proxy/squid/Manifest |
21 |
+++ b/net-proxy/squid/Manifest |
22 |
@@ -1,4 +1 @@ |
23 |
-DIST squid-3.5.23.tar.xz 2325884 SHA256 fa4c0c99f41e92fe1330bed3968d176c6f47ef2e3aea2f83977d5501afa40bdb SHA512 3f2b3df60fc0b2aab3d0d9e3489832d60d0aac8222f09ad2ff6afb95202b904f41f6530d713e7ce446c6f62b66f0cd792a6b12005d43c53fe68d2371f9caa880 WHIRLPOOL 39338be97e3357759b9062e3c3b353a2118ca910e56584e73560489078e76a42b230ac24468ea62f6e3df7de210492beda54b0c178804c097d4b303d16cd2914 |
24 |
-DIST squid-3.5.24.tar.xz 2326424 SHA256 4fe29f582eef357faa541a53835b6885e24e6f28b80a3abcdf3b57f5393bbdb2 SHA512 912a0882c71ba170e7c2eccf940cfca87d7fd0a6026a7aaa9dddacc1e17590809ad449e15913d180d5ce5b8d2828a68247ab920a4a499f3ee29ddd464e29344f WHIRLPOOL 1d245ee3bd6eff69b201ee1c57671617d06e36663d38d44bf4335ca1ebee251c0983f1f041c00cc823d7c5fc04d0a3725197beac407e2bfcfe81f679bc96f3a0 |
25 |
-DIST squid-3.5.25.tar.xz 2327316 SHA256 28959254c32b8cd87e9599b6beb97352cf0638524e0f5ac3e1754f08462f3585 SHA512 9adfadd962954537c3364543ce4ca862e6f60801f1fb80bc3b74fbd99b60219aed4756affff8f7d956337f4b573d0ebecad01f689d0c6554aa2958f5bcfb972f WHIRLPOOL d29a4591fc8521e3ebd864d547c86341136b1aefa7679d35a01e5fcc102b4dfe1e340089f9e7ba9489911fbcd6a1e61a4715e1669348aa6e8a4379471ab18ec6 |
26 |
DIST squid-3.5.26.tar.xz 2328352 SHA256 baa1eecb7d6e18881f4455060d80ee7cb95ae7e2695fdccf7e21ccc8f879a982 SHA512 08fc7fb5d1dea8d91cc318e5be9044fd75c69d0d2053a0c79ab594155aeb4a0f48bb0ff1dd754497485dc8db117b71f1787b0265842cf61b474293d5d38a9222 WHIRLPOOL 4d069b5beb91a0c688dacd72067f360a22bbf5565705c4d0a4ee9c6131c857adcbaa2130b0785f242bde23902cd32344f3c264f46f567088283f3de65d6acbd0 |
27 |
|
28 |
diff --git a/net-proxy/squid/squid-3.5.23.ebuild b/net-proxy/squid/squid-3.5.23.ebuild |
29 |
deleted file mode 100644 |
30 |
index 3022f9bcb2b..00000000000 |
31 |
--- a/net-proxy/squid/squid-3.5.23.ebuild |
32 |
+++ /dev/null |
33 |
@@ -1,240 +0,0 @@ |
34 |
-# Copyright 1999-2017 Gentoo Foundation |
35 |
-# Distributed under the terms of the GNU General Public License v2 |
36 |
- |
37 |
-EAPI=6 |
38 |
-inherit autotools linux-info pam toolchain-funcs user |
39 |
- |
40 |
-DESCRIPTION="A full-featured web proxy cache" |
41 |
-HOMEPAGE="http://www.squid-cache.org/" |
42 |
-SRC_URI="http://www.squid-cache.org/Versions/v3/3.5/${P}.tar.xz" |
43 |
- |
44 |
-LICENSE="GPL-2" |
45 |
-SLOT="0" |
46 |
-KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd" |
47 |
-IUSE="caps ipv6 pam ldap libressl samba sasl kerberos nis radius ssl snmp selinux logrotate test \ |
48 |
- ecap esi ssl-crtd \ |
49 |
- mysql postgres sqlite \ |
50 |
- qos tproxy \ |
51 |
- +htcp +wccp +wccpv2 \ |
52 |
- pf-transparent ipf-transparent kqueue \ |
53 |
- elibc_uclibc kernel_linux" |
54 |
- |
55 |
-COMMON_DEPEND="caps? ( >=sys-libs/libcap-2.16 ) |
56 |
- pam? ( virtual/pam ) |
57 |
- ldap? ( net-nds/openldap ) |
58 |
- kerberos? ( virtual/krb5 ) |
59 |
- qos? ( net-libs/libnetfilter_conntrack ) |
60 |
- ssl? ( |
61 |
- libressl? ( dev-libs/libressl:0 ) |
62 |
- !libressl? ( dev-libs/openssl:0 ) |
63 |
- dev-libs/nettle >=net-libs/gnutls-3.1.5 ) |
64 |
- sasl? ( dev-libs/cyrus-sasl ) |
65 |
- ecap? ( net-libs/libecap:1 ) |
66 |
- esi? ( dev-libs/expat dev-libs/libxml2 ) |
67 |
- !x86-fbsd? ( logrotate? ( app-admin/logrotate ) ) |
68 |
- >=sys-libs/db-4:* |
69 |
- dev-lang/perl |
70 |
- dev-libs/libltdl:0" |
71 |
-DEPEND="${COMMON_DEPEND} |
72 |
- ecap? ( virtual/pkgconfig ) |
73 |
- test? ( dev-util/cppunit )" |
74 |
-RDEPEND="${COMMON_DEPEND} |
75 |
- samba? ( net-fs/samba ) |
76 |
- mysql? ( dev-perl/DBD-mysql ) |
77 |
- postgres? ( dev-perl/DBD-Pg ) |
78 |
- selinux? ( sec-policy/selinux-squid ) |
79 |
- sqlite? ( dev-perl/DBD-SQLite ) |
80 |
- !<=sci-biology/meme-4.8.1-r1" |
81 |
- |
82 |
-REQUIRED_USE="tproxy? ( caps ) |
83 |
- qos? ( caps )" |
84 |
- |
85 |
-pkg_pretend() { |
86 |
- if use tproxy; then |
87 |
- local CONFIG_CHECK="~NF_CONNTRACK ~NETFILTER_XT_MATCH_SOCKET ~NETFILTER_XT_TARGET_TPROXY" |
88 |
- linux-info_pkg_setup |
89 |
- fi |
90 |
-} |
91 |
- |
92 |
-pkg_setup() { |
93 |
- enewgroup squid |
94 |
- enewuser squid -1 -1 /var/cache/squid squid |
95 |
-} |
96 |
- |
97 |
-src_prepare() { |
98 |
- eapply "${FILESDIR}/${PN}-3.5.7-gentoo.patch" |
99 |
- sed -i -e 's:/usr/local/squid/etc:/etc/squid:' \ |
100 |
- INSTALL QUICKSTART \ |
101 |
- scripts/fileno-to-pathname.pl \ |
102 |
- scripts/check_cache.pl \ |
103 |
- tools/cachemgr.cgi.8 \ |
104 |
- tools/purge/conffile.hh \ |
105 |
- tools/purge/README || die |
106 |
- sed -i -e 's:/usr/local/squid/sbin:/usr/sbin:' \ |
107 |
- INSTALL QUICKSTART || die |
108 |
- sed -i -e 's:/usr/local/squid/var/cache:/var/cache/squid:' \ |
109 |
- QUICKSTART || die |
110 |
- sed -i -e 's:/usr/local/squid/var/logs:/var/log/squid:' \ |
111 |
- QUICKSTART \ |
112 |
- src/log/access_log.cc || die |
113 |
- sed -i -e 's:/usr/local/squid/logs:/var/log/squid:' \ |
114 |
- src/log/access_log.cc || die |
115 |
- sed -i -e 's:/usr/local/squid/libexec:/usr/libexec/squid:' \ |
116 |
- helpers/external_acl/unix_group/ext_unix_group_acl.8 \ |
117 |
- helpers/external_acl/session/ext_session_acl.8 \ |
118 |
- src/ssl/ssl_crtd.8 || die |
119 |
- sed -i -e 's:/usr/local/squid/cache:/var/cache/squid:' \ |
120 |
- scripts/check_cache.pl || die |
121 |
- sed -i -e 's:/usr/local/squid/ssl_cert:/etc/ssl/squid:' \ |
122 |
- src/ssl/ssl_crtd.8 || die |
123 |
- sed -i -e 's:/usr/local/squid/var/lib/ssl_db:/var/lib/squid/ssl_db:' \ |
124 |
- src/ssl/ssl_crtd.8 || die |
125 |
- sed -i -e 's:/var/lib/ssl_db:/var/lib/squid/ssl_db:' \ |
126 |
- src/ssl/ssl_crtd.8 || die |
127 |
- # /var/run/squid to /run/squid |
128 |
- sed -i -e 's:$(localstatedir)::' \ |
129 |
- src/ipc/Makefile.am || die |
130 |
- sed -i -e 's:_LTDL_SETUP:LTDL_INIT([installable]):' \ |
131 |
- libltdl/configure.ac || die |
132 |
- |
133 |
- eapply_user |
134 |
- eautoreconf |
135 |
-} |
136 |
- |
137 |
-src_configure() { |
138 |
- local basic_modules="MSNT-multi-domain,NCSA,POP3,getpwnam" |
139 |
- use samba && basic_modules+=",SMB" |
140 |
- use ldap && basic_modules+=",LDAP" |
141 |
- use pam && basic_modules+=",PAM" |
142 |
- use sasl && basic_modules+=",SASL" |
143 |
- use nis && ! use elibc_uclibc && basic_modules+=",NIS" |
144 |
- use radius && basic_modules+=",RADIUS" |
145 |
- if use mysql || use postgres || use sqlite ; then |
146 |
- basic_modules+=",DB" |
147 |
- fi |
148 |
- |
149 |
- local digest_modules="file" |
150 |
- use ldap && digest_modules+=",LDAP,eDirectory" |
151 |
- |
152 |
- local negotiate_modules="none" |
153 |
- local myconf="--without-mit-krb5 --without-heimdal-krb5" |
154 |
- if use kerberos ; then |
155 |
- negotiate_modules="kerberos,wrapper" |
156 |
- if has_version app-crypt/heimdal ; then |
157 |
- myconf="--without-mit-krb5 --with-heimdal-krb5" |
158 |
- else |
159 |
- myconf="--with-mit-krb5 --without-heimdal-krb5" |
160 |
- fi |
161 |
- fi |
162 |
- |
163 |
- local ntlm_modules="none" |
164 |
- use samba && ntlm_modules="smb_lm" |
165 |
- |
166 |
- local ext_helpers="file_userip,session,unix_group" |
167 |
- use samba && ext_helpers+=",wbinfo_group" |
168 |
- use ldap && ext_helpers+=",LDAP_group,eDirectory_userip" |
169 |
- use ldap && use kerberos && ext_helpers+=",kerberos_ldap_group" |
170 |
- |
171 |
- local storeio_modules="aufs,diskd,rock,ufs" |
172 |
- |
173 |
- local transparent |
174 |
- if use kernel_linux ; then |
175 |
- transparent+=" --enable-linux-netfilter" |
176 |
- use qos && transparent+=" --enable-zph-qos --with-netfilter-conntrack" |
177 |
- fi |
178 |
- |
179 |
- if use kernel_FreeBSD || use kernel_OpenBSD || use kernel_NetBSD ; then |
180 |
- transparent+=" $(use_enable kqueue)" |
181 |
- if use pf-transparent; then |
182 |
- transparent+=" --enable-pf-transparent" |
183 |
- elif use ipf-transparent; then |
184 |
- transparent+=" --enable-ipf-transparent" |
185 |
- fi |
186 |
- fi |
187 |
- |
188 |
- tc-export CC AR |
189 |
- |
190 |
- econf \ |
191 |
- --sysconfdir=/etc/squid \ |
192 |
- --libexecdir=/usr/libexec/squid \ |
193 |
- --localstatedir=/var \ |
194 |
- --with-pidfile=/run/squid.pid \ |
195 |
- --datadir=/usr/share/squid \ |
196 |
- --with-logdir=/var/log/squid \ |
197 |
- --with-default-user=squid \ |
198 |
- --enable-removal-policies="lru,heap" \ |
199 |
- --enable-storeio="${storeio_modules}" \ |
200 |
- --enable-disk-io \ |
201 |
- --enable-auth-basic="${basic_modules}" \ |
202 |
- --enable-auth-digest="${digest_modules}" \ |
203 |
- --enable-auth-ntlm="${ntlm_modules}" \ |
204 |
- --enable-auth-negotiate="${negotiate_modules}" \ |
205 |
- --enable-external-acl-helpers="${ext_helpers}" \ |
206 |
- --enable-log-daemon-helpers \ |
207 |
- --enable-url-rewrite-helpers \ |
208 |
- --enable-cache-digests \ |
209 |
- --enable-delay-pools \ |
210 |
- --enable-eui \ |
211 |
- --enable-icmp \ |
212 |
- --enable-follow-x-forwarded-for \ |
213 |
- --with-large-files \ |
214 |
- --disable-strict-error-checking \ |
215 |
- --disable-arch-native \ |
216 |
- --with-ltdl-includedir=/usr/include \ |
217 |
- --with-ltdl-libdir=/usr/$(get_libdir) \ |
218 |
- $(use_with caps libcap) \ |
219 |
- $(use_enable ipv6) \ |
220 |
- $(use_enable snmp) \ |
221 |
- $(use_with ssl openssl) \ |
222 |
- $(use_with ssl nettle) \ |
223 |
- $(use_with ssl gnutls) \ |
224 |
- $(use_enable ssl-crtd) \ |
225 |
- $(use_enable ecap) \ |
226 |
- $(use_enable esi) \ |
227 |
- $(use_enable htcp) \ |
228 |
- $(use_enable wccp) \ |
229 |
- $(use_enable wccpv2) \ |
230 |
- ${transparent} \ |
231 |
- ${myconf} |
232 |
-} |
233 |
- |
234 |
-src_install() { |
235 |
- emake DESTDIR="${D}" install |
236 |
- |
237 |
- # need suid root for looking into /etc/shadow |
238 |
- fowners root:squid /usr/libexec/squid/basic_ncsa_auth |
239 |
- fperms 4750 /usr/libexec/squid/basic_ncsa_auth |
240 |
- if use pam; then |
241 |
- fowners root:squid /usr/libexec/squid/basic_pam_auth |
242 |
- fperms 4750 /usr/libexec/squid/basic_pam_auth |
243 |
- fi |
244 |
- # pinger needs suid as well |
245 |
- fowners root:squid /usr/libexec/squid/pinger |
246 |
- fperms 4750 /usr/libexec/squid/pinger |
247 |
- |
248 |
- # cleanup |
249 |
- rm -f "${D}"/usr/bin/Run* |
250 |
- rm -rf "${D}"/run/squid "${D}"/var/cache/squid |
251 |
- |
252 |
- dodoc CONTRIBUTORS CREDITS ChangeLog INSTALL QUICKSTART README SPONSORS doc/*.txt |
253 |
- newdoc helpers/negotiate_auth/kerberos/README README.kerberos |
254 |
- newdoc helpers/basic_auth/RADIUS/README README.RADIUS |
255 |
- newdoc helpers/external_acl/kerberos_ldap_group/README README.kerberos_ldap_group |
256 |
- newdoc tools/purge/README README.purge |
257 |
- newdoc tools/helper-mux.README README.helper-mux |
258 |
- dodoc RELEASENOTES.html |
259 |
- |
260 |
- newpamd "${FILESDIR}/squid.pam" squid |
261 |
- newconfd "${FILESDIR}/squid.confd-r1" squid |
262 |
- newinitd "${FILESDIR}/squid.initd-r4" squid |
263 |
- if use logrotate; then |
264 |
- insinto /etc/logrotate.d |
265 |
- newins "${FILESDIR}/squid.logrotate" squid |
266 |
- else |
267 |
- exeinto /etc/cron.weekly |
268 |
- newexe "${FILESDIR}/squid.cron" squid.cron |
269 |
- fi |
270 |
- |
271 |
- diropts -m0750 -o squid -g squid |
272 |
- keepdir /var/log/squid /etc/ssl/squid /var/lib/squid |
273 |
-} |
274 |
|
275 |
diff --git a/net-proxy/squid/squid-3.5.24.ebuild b/net-proxy/squid/squid-3.5.24.ebuild |
276 |
deleted file mode 100644 |
277 |
index b499ec5ba11..00000000000 |
278 |
--- a/net-proxy/squid/squid-3.5.24.ebuild |
279 |
+++ /dev/null |
280 |
@@ -1,240 +0,0 @@ |
281 |
-# Copyright 1999-2017 Gentoo Foundation |
282 |
-# Distributed under the terms of the GNU General Public License v2 |
283 |
- |
284 |
-EAPI=6 |
285 |
-inherit autotools linux-info pam toolchain-funcs user |
286 |
- |
287 |
-DESCRIPTION="A full-featured web proxy cache" |
288 |
-HOMEPAGE="http://www.squid-cache.org/" |
289 |
-SRC_URI="http://www.squid-cache.org/Versions/v3/3.5/${P}.tar.xz" |
290 |
- |
291 |
-LICENSE="GPL-2" |
292 |
-SLOT="0" |
293 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
294 |
-IUSE="caps ipv6 pam ldap libressl samba sasl kerberos nis radius ssl snmp selinux logrotate test \ |
295 |
- ecap esi ssl-crtd \ |
296 |
- mysql postgres sqlite \ |
297 |
- qos tproxy \ |
298 |
- +htcp +wccp +wccpv2 \ |
299 |
- pf-transparent ipf-transparent kqueue \ |
300 |
- elibc_uclibc kernel_linux" |
301 |
- |
302 |
-COMMON_DEPEND="caps? ( >=sys-libs/libcap-2.16 ) |
303 |
- pam? ( virtual/pam ) |
304 |
- ldap? ( net-nds/openldap ) |
305 |
- kerberos? ( virtual/krb5 ) |
306 |
- qos? ( net-libs/libnetfilter_conntrack ) |
307 |
- ssl? ( |
308 |
- libressl? ( dev-libs/libressl:0 ) |
309 |
- !libressl? ( dev-libs/openssl:0 ) |
310 |
- dev-libs/nettle >=net-libs/gnutls-3.1.5 ) |
311 |
- sasl? ( dev-libs/cyrus-sasl ) |
312 |
- ecap? ( net-libs/libecap:1 ) |
313 |
- esi? ( dev-libs/expat dev-libs/libxml2 ) |
314 |
- !x86-fbsd? ( logrotate? ( app-admin/logrotate ) ) |
315 |
- >=sys-libs/db-4:* |
316 |
- dev-lang/perl |
317 |
- dev-libs/libltdl:0" |
318 |
-DEPEND="${COMMON_DEPEND} |
319 |
- ecap? ( virtual/pkgconfig ) |
320 |
- test? ( dev-util/cppunit )" |
321 |
-RDEPEND="${COMMON_DEPEND} |
322 |
- samba? ( net-fs/samba ) |
323 |
- mysql? ( dev-perl/DBD-mysql ) |
324 |
- postgres? ( dev-perl/DBD-Pg ) |
325 |
- selinux? ( sec-policy/selinux-squid ) |
326 |
- sqlite? ( dev-perl/DBD-SQLite ) |
327 |
- !<=sci-biology/meme-4.8.1-r1" |
328 |
- |
329 |
-REQUIRED_USE="tproxy? ( caps ) |
330 |
- qos? ( caps )" |
331 |
- |
332 |
-pkg_pretend() { |
333 |
- if use tproxy; then |
334 |
- local CONFIG_CHECK="~NF_CONNTRACK ~NETFILTER_XT_MATCH_SOCKET ~NETFILTER_XT_TARGET_TPROXY" |
335 |
- linux-info_pkg_setup |
336 |
- fi |
337 |
-} |
338 |
- |
339 |
-pkg_setup() { |
340 |
- enewgroup squid |
341 |
- enewuser squid -1 -1 /var/cache/squid squid |
342 |
-} |
343 |
- |
344 |
-src_prepare() { |
345 |
- eapply "${FILESDIR}/${PN}-3.5.7-gentoo.patch" |
346 |
- sed -i -e 's:/usr/local/squid/etc:/etc/squid:' \ |
347 |
- INSTALL QUICKSTART \ |
348 |
- scripts/fileno-to-pathname.pl \ |
349 |
- scripts/check_cache.pl \ |
350 |
- tools/cachemgr.cgi.8 \ |
351 |
- tools/purge/conffile.hh \ |
352 |
- tools/purge/README || die |
353 |
- sed -i -e 's:/usr/local/squid/sbin:/usr/sbin:' \ |
354 |
- INSTALL QUICKSTART || die |
355 |
- sed -i -e 's:/usr/local/squid/var/cache:/var/cache/squid:' \ |
356 |
- QUICKSTART || die |
357 |
- sed -i -e 's:/usr/local/squid/var/logs:/var/log/squid:' \ |
358 |
- QUICKSTART \ |
359 |
- src/log/access_log.cc || die |
360 |
- sed -i -e 's:/usr/local/squid/logs:/var/log/squid:' \ |
361 |
- src/log/access_log.cc || die |
362 |
- sed -i -e 's:/usr/local/squid/libexec:/usr/libexec/squid:' \ |
363 |
- helpers/external_acl/unix_group/ext_unix_group_acl.8 \ |
364 |
- helpers/external_acl/session/ext_session_acl.8 \ |
365 |
- src/ssl/ssl_crtd.8 || die |
366 |
- sed -i -e 's:/usr/local/squid/cache:/var/cache/squid:' \ |
367 |
- scripts/check_cache.pl || die |
368 |
- sed -i -e 's:/usr/local/squid/ssl_cert:/etc/ssl/squid:' \ |
369 |
- src/ssl/ssl_crtd.8 || die |
370 |
- sed -i -e 's:/usr/local/squid/var/lib/ssl_db:/var/lib/squid/ssl_db:' \ |
371 |
- src/ssl/ssl_crtd.8 || die |
372 |
- sed -i -e 's:/var/lib/ssl_db:/var/lib/squid/ssl_db:' \ |
373 |
- src/ssl/ssl_crtd.8 || die |
374 |
- # /var/run/squid to /run/squid |
375 |
- sed -i -e 's:$(localstatedir)::' \ |
376 |
- src/ipc/Makefile.am || die |
377 |
- sed -i -e 's:_LTDL_SETUP:LTDL_INIT([installable]):' \ |
378 |
- libltdl/configure.ac || die |
379 |
- |
380 |
- eapply_user |
381 |
- eautoreconf |
382 |
-} |
383 |
- |
384 |
-src_configure() { |
385 |
- local basic_modules="MSNT-multi-domain,NCSA,POP3,getpwnam" |
386 |
- use samba && basic_modules+=",SMB" |
387 |
- use ldap && basic_modules+=",LDAP" |
388 |
- use pam && basic_modules+=",PAM" |
389 |
- use sasl && basic_modules+=",SASL" |
390 |
- use nis && ! use elibc_uclibc && basic_modules+=",NIS" |
391 |
- use radius && basic_modules+=",RADIUS" |
392 |
- if use mysql || use postgres || use sqlite ; then |
393 |
- basic_modules+=",DB" |
394 |
- fi |
395 |
- |
396 |
- local digest_modules="file" |
397 |
- use ldap && digest_modules+=",LDAP,eDirectory" |
398 |
- |
399 |
- local negotiate_modules="none" |
400 |
- local myconf="--without-mit-krb5 --without-heimdal-krb5" |
401 |
- if use kerberos ; then |
402 |
- negotiate_modules="kerberos,wrapper" |
403 |
- if has_version app-crypt/heimdal ; then |
404 |
- myconf="--without-mit-krb5 --with-heimdal-krb5" |
405 |
- else |
406 |
- myconf="--with-mit-krb5 --without-heimdal-krb5" |
407 |
- fi |
408 |
- fi |
409 |
- |
410 |
- local ntlm_modules="none" |
411 |
- use samba && ntlm_modules="smb_lm" |
412 |
- |
413 |
- local ext_helpers="file_userip,session,unix_group" |
414 |
- use samba && ext_helpers+=",wbinfo_group" |
415 |
- use ldap && ext_helpers+=",LDAP_group,eDirectory_userip" |
416 |
- use ldap && use kerberos && ext_helpers+=",kerberos_ldap_group" |
417 |
- |
418 |
- local storeio_modules="aufs,diskd,rock,ufs" |
419 |
- |
420 |
- local transparent |
421 |
- if use kernel_linux ; then |
422 |
- transparent+=" --enable-linux-netfilter" |
423 |
- use qos && transparent+=" --enable-zph-qos --with-netfilter-conntrack" |
424 |
- fi |
425 |
- |
426 |
- if use kernel_FreeBSD || use kernel_OpenBSD || use kernel_NetBSD ; then |
427 |
- transparent+=" $(use_enable kqueue)" |
428 |
- if use pf-transparent; then |
429 |
- transparent+=" --enable-pf-transparent" |
430 |
- elif use ipf-transparent; then |
431 |
- transparent+=" --enable-ipf-transparent" |
432 |
- fi |
433 |
- fi |
434 |
- |
435 |
- tc-export CC AR |
436 |
- |
437 |
- econf \ |
438 |
- --sysconfdir=/etc/squid \ |
439 |
- --libexecdir=/usr/libexec/squid \ |
440 |
- --localstatedir=/var \ |
441 |
- --with-pidfile=/run/squid.pid \ |
442 |
- --datadir=/usr/share/squid \ |
443 |
- --with-logdir=/var/log/squid \ |
444 |
- --with-default-user=squid \ |
445 |
- --enable-removal-policies="lru,heap" \ |
446 |
- --enable-storeio="${storeio_modules}" \ |
447 |
- --enable-disk-io \ |
448 |
- --enable-auth-basic="${basic_modules}" \ |
449 |
- --enable-auth-digest="${digest_modules}" \ |
450 |
- --enable-auth-ntlm="${ntlm_modules}" \ |
451 |
- --enable-auth-negotiate="${negotiate_modules}" \ |
452 |
- --enable-external-acl-helpers="${ext_helpers}" \ |
453 |
- --enable-log-daemon-helpers \ |
454 |
- --enable-url-rewrite-helpers \ |
455 |
- --enable-cache-digests \ |
456 |
- --enable-delay-pools \ |
457 |
- --enable-eui \ |
458 |
- --enable-icmp \ |
459 |
- --enable-follow-x-forwarded-for \ |
460 |
- --with-large-files \ |
461 |
- --disable-strict-error-checking \ |
462 |
- --disable-arch-native \ |
463 |
- --with-ltdl-includedir=/usr/include \ |
464 |
- --with-ltdl-libdir=/usr/$(get_libdir) \ |
465 |
- $(use_with caps libcap) \ |
466 |
- $(use_enable ipv6) \ |
467 |
- $(use_enable snmp) \ |
468 |
- $(use_with ssl openssl) \ |
469 |
- $(use_with ssl nettle) \ |
470 |
- $(use_with ssl gnutls) \ |
471 |
- $(use_enable ssl-crtd) \ |
472 |
- $(use_enable ecap) \ |
473 |
- $(use_enable esi) \ |
474 |
- $(use_enable htcp) \ |
475 |
- $(use_enable wccp) \ |
476 |
- $(use_enable wccpv2) \ |
477 |
- ${transparent} \ |
478 |
- ${myconf} |
479 |
-} |
480 |
- |
481 |
-src_install() { |
482 |
- emake DESTDIR="${D}" install |
483 |
- |
484 |
- # need suid root for looking into /etc/shadow |
485 |
- fowners root:squid /usr/libexec/squid/basic_ncsa_auth |
486 |
- fperms 4750 /usr/libexec/squid/basic_ncsa_auth |
487 |
- if use pam; then |
488 |
- fowners root:squid /usr/libexec/squid/basic_pam_auth |
489 |
- fperms 4750 /usr/libexec/squid/basic_pam_auth |
490 |
- fi |
491 |
- # pinger needs suid as well |
492 |
- fowners root:squid /usr/libexec/squid/pinger |
493 |
- fperms 4750 /usr/libexec/squid/pinger |
494 |
- |
495 |
- # cleanup |
496 |
- rm -f "${D}"/usr/bin/Run* |
497 |
- rm -rf "${D}"/run/squid "${D}"/var/cache/squid |
498 |
- |
499 |
- dodoc CONTRIBUTORS CREDITS ChangeLog INSTALL QUICKSTART README SPONSORS doc/*.txt |
500 |
- newdoc helpers/negotiate_auth/kerberos/README README.kerberos |
501 |
- newdoc helpers/basic_auth/RADIUS/README README.RADIUS |
502 |
- newdoc helpers/external_acl/kerberos_ldap_group/README README.kerberos_ldap_group |
503 |
- newdoc tools/purge/README README.purge |
504 |
- newdoc tools/helper-mux.README README.helper-mux |
505 |
- dodoc RELEASENOTES.html |
506 |
- |
507 |
- newpamd "${FILESDIR}/squid.pam" squid |
508 |
- newconfd "${FILESDIR}/squid.confd-r1" squid |
509 |
- newinitd "${FILESDIR}/squid.initd-r4" squid |
510 |
- if use logrotate; then |
511 |
- insinto /etc/logrotate.d |
512 |
- newins "${FILESDIR}/squid.logrotate" squid |
513 |
- else |
514 |
- exeinto /etc/cron.weekly |
515 |
- newexe "${FILESDIR}/squid.cron" squid.cron |
516 |
- fi |
517 |
- |
518 |
- diropts -m0750 -o squid -g squid |
519 |
- keepdir /var/log/squid /etc/ssl/squid /var/lib/squid |
520 |
-} |
521 |
|
522 |
diff --git a/net-proxy/squid/squid-3.5.25.ebuild b/net-proxy/squid/squid-3.5.25.ebuild |
523 |
deleted file mode 100644 |
524 |
index b499ec5ba11..00000000000 |
525 |
--- a/net-proxy/squid/squid-3.5.25.ebuild |
526 |
+++ /dev/null |
527 |
@@ -1,240 +0,0 @@ |
528 |
-# Copyright 1999-2017 Gentoo Foundation |
529 |
-# Distributed under the terms of the GNU General Public License v2 |
530 |
- |
531 |
-EAPI=6 |
532 |
-inherit autotools linux-info pam toolchain-funcs user |
533 |
- |
534 |
-DESCRIPTION="A full-featured web proxy cache" |
535 |
-HOMEPAGE="http://www.squid-cache.org/" |
536 |
-SRC_URI="http://www.squid-cache.org/Versions/v3/3.5/${P}.tar.xz" |
537 |
- |
538 |
-LICENSE="GPL-2" |
539 |
-SLOT="0" |
540 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
541 |
-IUSE="caps ipv6 pam ldap libressl samba sasl kerberos nis radius ssl snmp selinux logrotate test \ |
542 |
- ecap esi ssl-crtd \ |
543 |
- mysql postgres sqlite \ |
544 |
- qos tproxy \ |
545 |
- +htcp +wccp +wccpv2 \ |
546 |
- pf-transparent ipf-transparent kqueue \ |
547 |
- elibc_uclibc kernel_linux" |
548 |
- |
549 |
-COMMON_DEPEND="caps? ( >=sys-libs/libcap-2.16 ) |
550 |
- pam? ( virtual/pam ) |
551 |
- ldap? ( net-nds/openldap ) |
552 |
- kerberos? ( virtual/krb5 ) |
553 |
- qos? ( net-libs/libnetfilter_conntrack ) |
554 |
- ssl? ( |
555 |
- libressl? ( dev-libs/libressl:0 ) |
556 |
- !libressl? ( dev-libs/openssl:0 ) |
557 |
- dev-libs/nettle >=net-libs/gnutls-3.1.5 ) |
558 |
- sasl? ( dev-libs/cyrus-sasl ) |
559 |
- ecap? ( net-libs/libecap:1 ) |
560 |
- esi? ( dev-libs/expat dev-libs/libxml2 ) |
561 |
- !x86-fbsd? ( logrotate? ( app-admin/logrotate ) ) |
562 |
- >=sys-libs/db-4:* |
563 |
- dev-lang/perl |
564 |
- dev-libs/libltdl:0" |
565 |
-DEPEND="${COMMON_DEPEND} |
566 |
- ecap? ( virtual/pkgconfig ) |
567 |
- test? ( dev-util/cppunit )" |
568 |
-RDEPEND="${COMMON_DEPEND} |
569 |
- samba? ( net-fs/samba ) |
570 |
- mysql? ( dev-perl/DBD-mysql ) |
571 |
- postgres? ( dev-perl/DBD-Pg ) |
572 |
- selinux? ( sec-policy/selinux-squid ) |
573 |
- sqlite? ( dev-perl/DBD-SQLite ) |
574 |
- !<=sci-biology/meme-4.8.1-r1" |
575 |
- |
576 |
-REQUIRED_USE="tproxy? ( caps ) |
577 |
- qos? ( caps )" |
578 |
- |
579 |
-pkg_pretend() { |
580 |
- if use tproxy; then |
581 |
- local CONFIG_CHECK="~NF_CONNTRACK ~NETFILTER_XT_MATCH_SOCKET ~NETFILTER_XT_TARGET_TPROXY" |
582 |
- linux-info_pkg_setup |
583 |
- fi |
584 |
-} |
585 |
- |
586 |
-pkg_setup() { |
587 |
- enewgroup squid |
588 |
- enewuser squid -1 -1 /var/cache/squid squid |
589 |
-} |
590 |
- |
591 |
-src_prepare() { |
592 |
- eapply "${FILESDIR}/${PN}-3.5.7-gentoo.patch" |
593 |
- sed -i -e 's:/usr/local/squid/etc:/etc/squid:' \ |
594 |
- INSTALL QUICKSTART \ |
595 |
- scripts/fileno-to-pathname.pl \ |
596 |
- scripts/check_cache.pl \ |
597 |
- tools/cachemgr.cgi.8 \ |
598 |
- tools/purge/conffile.hh \ |
599 |
- tools/purge/README || die |
600 |
- sed -i -e 's:/usr/local/squid/sbin:/usr/sbin:' \ |
601 |
- INSTALL QUICKSTART || die |
602 |
- sed -i -e 's:/usr/local/squid/var/cache:/var/cache/squid:' \ |
603 |
- QUICKSTART || die |
604 |
- sed -i -e 's:/usr/local/squid/var/logs:/var/log/squid:' \ |
605 |
- QUICKSTART \ |
606 |
- src/log/access_log.cc || die |
607 |
- sed -i -e 's:/usr/local/squid/logs:/var/log/squid:' \ |
608 |
- src/log/access_log.cc || die |
609 |
- sed -i -e 's:/usr/local/squid/libexec:/usr/libexec/squid:' \ |
610 |
- helpers/external_acl/unix_group/ext_unix_group_acl.8 \ |
611 |
- helpers/external_acl/session/ext_session_acl.8 \ |
612 |
- src/ssl/ssl_crtd.8 || die |
613 |
- sed -i -e 's:/usr/local/squid/cache:/var/cache/squid:' \ |
614 |
- scripts/check_cache.pl || die |
615 |
- sed -i -e 's:/usr/local/squid/ssl_cert:/etc/ssl/squid:' \ |
616 |
- src/ssl/ssl_crtd.8 || die |
617 |
- sed -i -e 's:/usr/local/squid/var/lib/ssl_db:/var/lib/squid/ssl_db:' \ |
618 |
- src/ssl/ssl_crtd.8 || die |
619 |
- sed -i -e 's:/var/lib/ssl_db:/var/lib/squid/ssl_db:' \ |
620 |
- src/ssl/ssl_crtd.8 || die |
621 |
- # /var/run/squid to /run/squid |
622 |
- sed -i -e 's:$(localstatedir)::' \ |
623 |
- src/ipc/Makefile.am || die |
624 |
- sed -i -e 's:_LTDL_SETUP:LTDL_INIT([installable]):' \ |
625 |
- libltdl/configure.ac || die |
626 |
- |
627 |
- eapply_user |
628 |
- eautoreconf |
629 |
-} |
630 |
- |
631 |
-src_configure() { |
632 |
- local basic_modules="MSNT-multi-domain,NCSA,POP3,getpwnam" |
633 |
- use samba && basic_modules+=",SMB" |
634 |
- use ldap && basic_modules+=",LDAP" |
635 |
- use pam && basic_modules+=",PAM" |
636 |
- use sasl && basic_modules+=",SASL" |
637 |
- use nis && ! use elibc_uclibc && basic_modules+=",NIS" |
638 |
- use radius && basic_modules+=",RADIUS" |
639 |
- if use mysql || use postgres || use sqlite ; then |
640 |
- basic_modules+=",DB" |
641 |
- fi |
642 |
- |
643 |
- local digest_modules="file" |
644 |
- use ldap && digest_modules+=",LDAP,eDirectory" |
645 |
- |
646 |
- local negotiate_modules="none" |
647 |
- local myconf="--without-mit-krb5 --without-heimdal-krb5" |
648 |
- if use kerberos ; then |
649 |
- negotiate_modules="kerberos,wrapper" |
650 |
- if has_version app-crypt/heimdal ; then |
651 |
- myconf="--without-mit-krb5 --with-heimdal-krb5" |
652 |
- else |
653 |
- myconf="--with-mit-krb5 --without-heimdal-krb5" |
654 |
- fi |
655 |
- fi |
656 |
- |
657 |
- local ntlm_modules="none" |
658 |
- use samba && ntlm_modules="smb_lm" |
659 |
- |
660 |
- local ext_helpers="file_userip,session,unix_group" |
661 |
- use samba && ext_helpers+=",wbinfo_group" |
662 |
- use ldap && ext_helpers+=",LDAP_group,eDirectory_userip" |
663 |
- use ldap && use kerberos && ext_helpers+=",kerberos_ldap_group" |
664 |
- |
665 |
- local storeio_modules="aufs,diskd,rock,ufs" |
666 |
- |
667 |
- local transparent |
668 |
- if use kernel_linux ; then |
669 |
- transparent+=" --enable-linux-netfilter" |
670 |
- use qos && transparent+=" --enable-zph-qos --with-netfilter-conntrack" |
671 |
- fi |
672 |
- |
673 |
- if use kernel_FreeBSD || use kernel_OpenBSD || use kernel_NetBSD ; then |
674 |
- transparent+=" $(use_enable kqueue)" |
675 |
- if use pf-transparent; then |
676 |
- transparent+=" --enable-pf-transparent" |
677 |
- elif use ipf-transparent; then |
678 |
- transparent+=" --enable-ipf-transparent" |
679 |
- fi |
680 |
- fi |
681 |
- |
682 |
- tc-export CC AR |
683 |
- |
684 |
- econf \ |
685 |
- --sysconfdir=/etc/squid \ |
686 |
- --libexecdir=/usr/libexec/squid \ |
687 |
- --localstatedir=/var \ |
688 |
- --with-pidfile=/run/squid.pid \ |
689 |
- --datadir=/usr/share/squid \ |
690 |
- --with-logdir=/var/log/squid \ |
691 |
- --with-default-user=squid \ |
692 |
- --enable-removal-policies="lru,heap" \ |
693 |
- --enable-storeio="${storeio_modules}" \ |
694 |
- --enable-disk-io \ |
695 |
- --enable-auth-basic="${basic_modules}" \ |
696 |
- --enable-auth-digest="${digest_modules}" \ |
697 |
- --enable-auth-ntlm="${ntlm_modules}" \ |
698 |
- --enable-auth-negotiate="${negotiate_modules}" \ |
699 |
- --enable-external-acl-helpers="${ext_helpers}" \ |
700 |
- --enable-log-daemon-helpers \ |
701 |
- --enable-url-rewrite-helpers \ |
702 |
- --enable-cache-digests \ |
703 |
- --enable-delay-pools \ |
704 |
- --enable-eui \ |
705 |
- --enable-icmp \ |
706 |
- --enable-follow-x-forwarded-for \ |
707 |
- --with-large-files \ |
708 |
- --disable-strict-error-checking \ |
709 |
- --disable-arch-native \ |
710 |
- --with-ltdl-includedir=/usr/include \ |
711 |
- --with-ltdl-libdir=/usr/$(get_libdir) \ |
712 |
- $(use_with caps libcap) \ |
713 |
- $(use_enable ipv6) \ |
714 |
- $(use_enable snmp) \ |
715 |
- $(use_with ssl openssl) \ |
716 |
- $(use_with ssl nettle) \ |
717 |
- $(use_with ssl gnutls) \ |
718 |
- $(use_enable ssl-crtd) \ |
719 |
- $(use_enable ecap) \ |
720 |
- $(use_enable esi) \ |
721 |
- $(use_enable htcp) \ |
722 |
- $(use_enable wccp) \ |
723 |
- $(use_enable wccpv2) \ |
724 |
- ${transparent} \ |
725 |
- ${myconf} |
726 |
-} |
727 |
- |
728 |
-src_install() { |
729 |
- emake DESTDIR="${D}" install |
730 |
- |
731 |
- # need suid root for looking into /etc/shadow |
732 |
- fowners root:squid /usr/libexec/squid/basic_ncsa_auth |
733 |
- fperms 4750 /usr/libexec/squid/basic_ncsa_auth |
734 |
- if use pam; then |
735 |
- fowners root:squid /usr/libexec/squid/basic_pam_auth |
736 |
- fperms 4750 /usr/libexec/squid/basic_pam_auth |
737 |
- fi |
738 |
- # pinger needs suid as well |
739 |
- fowners root:squid /usr/libexec/squid/pinger |
740 |
- fperms 4750 /usr/libexec/squid/pinger |
741 |
- |
742 |
- # cleanup |
743 |
- rm -f "${D}"/usr/bin/Run* |
744 |
- rm -rf "${D}"/run/squid "${D}"/var/cache/squid |
745 |
- |
746 |
- dodoc CONTRIBUTORS CREDITS ChangeLog INSTALL QUICKSTART README SPONSORS doc/*.txt |
747 |
- newdoc helpers/negotiate_auth/kerberos/README README.kerberos |
748 |
- newdoc helpers/basic_auth/RADIUS/README README.RADIUS |
749 |
- newdoc helpers/external_acl/kerberos_ldap_group/README README.kerberos_ldap_group |
750 |
- newdoc tools/purge/README README.purge |
751 |
- newdoc tools/helper-mux.README README.helper-mux |
752 |
- dodoc RELEASENOTES.html |
753 |
- |
754 |
- newpamd "${FILESDIR}/squid.pam" squid |
755 |
- newconfd "${FILESDIR}/squid.confd-r1" squid |
756 |
- newinitd "${FILESDIR}/squid.initd-r4" squid |
757 |
- if use logrotate; then |
758 |
- insinto /etc/logrotate.d |
759 |
- newins "${FILESDIR}/squid.logrotate" squid |
760 |
- else |
761 |
- exeinto /etc/cron.weekly |
762 |
- newexe "${FILESDIR}/squid.cron" squid.cron |
763 |
- fi |
764 |
- |
765 |
- diropts -m0750 -o squid -g squid |
766 |
- keepdir /var/log/squid /etc/ssl/squid /var/lib/squid |
767 |
-} |