1 |
eras 14/08/28 07:17:03 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: squid-3.4.7.ebuild squid-3.3.13.ebuild |
5 |
Log: |
6 |
Security bump |
7 |
|
8 |
(Portage version: 2.2.12/cvs/Linux x86_64, signed Manifest commit with key 0x77F1F175586A3B1F) |
9 |
|
10 |
Revision Changes Path |
11 |
1.467 net-proxy/squid/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/squid/ChangeLog?rev=1.467&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/squid/ChangeLog?rev=1.467&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/squid/ChangeLog?r1=1.466&r2=1.467 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v |
20 |
retrieving revision 1.466 |
21 |
retrieving revision 1.467 |
22 |
diff -u -r1.466 -r1.467 |
23 |
--- ChangeLog 1 Jul 2014 11:03:52 -0000 1.466 |
24 |
+++ ChangeLog 28 Aug 2014 07:17:03 -0000 1.467 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for net-proxy/squid |
27 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v 1.466 2014/07/01 11:03:52 eras Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v 1.467 2014/08/28 07:17:03 eras Exp $ |
30 |
+ |
31 |
+*squid-3.3.13 (28 Aug 2014) |
32 |
+*squid-3.4.7 (28 Aug 2014) |
33 |
+ |
34 |
+ 28 Aug 2014; Eray Aslan <eras@g.o> +squid-3.3.13.ebuild, |
35 |
+ +squid-3.4.7.ebuild: |
36 |
+ Security bump |
37 |
|
38 |
*squid-3.4.6 (01 Jul 2014) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 net-proxy/squid/squid-3.4.7.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/squid/squid-3.4.7.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/squid/squid-3.4.7.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: squid-3.4.7.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2014 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/squid-3.4.7.ebuild,v 1.1 2014/08/28 07:17:03 eras Exp $ |
53 |
|
54 |
EAPI=5 |
55 |
inherit autotools eutils linux-info pam toolchain-funcs user versionator |
56 |
|
57 |
DESCRIPTION="A full-featured web proxy cache" |
58 |
HOMEPAGE="http://www.squid-cache.org/" |
59 |
SRC_URI="ftp://ftp.squid-cache.org/pub/archive/3.4/${P}.tar.xz" |
60 |
|
61 |
LICENSE="GPL-2" |
62 |
SLOT="0" |
63 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
64 |
IUSE="caps ipv6 pam ldap samba sasl kerberos nis radius ssl snmp selinux logrotate test \ |
65 |
ecap esi icap-client ssl-crtd \ |
66 |
mysql postgres sqlite \ |
67 |
qos tproxy \ |
68 |
+htcp +wccp +wccpv2 \ |
69 |
pf-transparent ipf-transparent kqueue \ |
70 |
elibc_uclibc kernel_linux" |
71 |
|
72 |
COMMON_DEPEND="caps? ( >=sys-libs/libcap-2.16 ) |
73 |
pam? ( virtual/pam ) |
74 |
ldap? ( net-nds/openldap ) |
75 |
kerberos? ( virtual/krb5 ) |
76 |
qos? ( net-libs/libnetfilter_conntrack ) |
77 |
ssl? ( dev-libs/openssl dev-libs/nettle ) |
78 |
sasl? ( dev-libs/cyrus-sasl ) |
79 |
ecap? ( net-libs/libecap:0.2 ) |
80 |
esi? ( dev-libs/expat dev-libs/libxml2 ) |
81 |
selinux? ( sec-policy/selinux-squid ) |
82 |
!x86-fbsd? ( logrotate? ( app-admin/logrotate ) ) |
83 |
>=sys-libs/db-4 |
84 |
sys-devel/libtool |
85 |
dev-lang/perl |
86 |
sys-devel/libtool" |
87 |
DEPEND="${COMMON_DEPEND} |
88 |
ecap? ( virtual/pkgconfig ) |
89 |
sys-apps/ed |
90 |
test? ( dev-util/cppunit )" |
91 |
RDEPEND="${COMMON_DEPEND} |
92 |
samba? ( net-fs/samba ) |
93 |
mysql? ( dev-perl/DBD-mysql ) |
94 |
postgres? ( dev-perl/DBD-Pg ) |
95 |
sqlite? ( dev-perl/DBD-SQLite ) |
96 |
!<=sci-biology/meme-4.8.1-r1" |
97 |
|
98 |
REQUIRED_USE="tproxy? ( caps ) |
99 |
qos? ( caps )" |
100 |
|
101 |
pkg_pretend() { |
102 |
if use tproxy; then |
103 |
local CONFIG_CHECK="~NF_CONNTRACK ~NETFILTER_TPROXY ~NETFILTER_XT_MATCH_SOCKET ~NETFILTER_XT_TARGET_TPROXY" |
104 |
linux-info_pkg_setup |
105 |
fi |
106 |
} |
107 |
|
108 |
pkg_setup() { |
109 |
enewgroup squid 31 |
110 |
enewuser squid 31 -1 /var/cache/squid squid |
111 |
} |
112 |
|
113 |
src_prepare() { |
114 |
epatch "${FILESDIR}/${PN}-3.3.4-gentoo.patch" |
115 |
sed -i -e 's:/usr/local/squid/etc:/etc/squid:' \ |
116 |
INSTALL QUICKSTART \ |
117 |
helpers/basic_auth/MSNT/README.html \ |
118 |
helpers/basic_auth/MSNT/confload.cc \ |
119 |
helpers/basic_auth/MSNT/msntauth.conf.default \ |
120 |
scripts/fileno-to-pathname.pl \ |
121 |
scripts/check_cache.pl \ |
122 |
tools/cachemgr.cgi.8 \ |
123 |
tools/purge/conffile.hh \ |
124 |
tools/purge/README || die |
125 |
sed -i -e 's:/usr/local/squid/sbin:/usr/sbin:' \ |
126 |
INSTALL QUICKSTART || die |
127 |
sed -i -e 's:/usr/local/squid/var/cache:/var/cache/squid:' \ |
128 |
QUICKSTART || die |
129 |
sed -i -e 's:/usr/local/squid/var/logs:/var/log/squid:' \ |
130 |
QUICKSTART \ |
131 |
src/log/access_log.cc || die |
132 |
sed -i -e 's:/usr/local/squid/logs:/var/log/squid:' \ |
133 |
src/log/access_log.cc || die |
134 |
sed -i -e 's:/usr/local/squid/bin:/usr/bin:' \ |
135 |
helpers/basic_auth/MSNT/README.html || die |
136 |
sed -i -e 's:/usr/local/squid/libexec:/usr/libexec/squid:' \ |
137 |
helpers/external_acl/unix_group/ext_unix_group_acl.8 \ |
138 |
helpers/external_acl/session/ext_session_acl.8 \ |
139 |
src/ssl/ssl_crtd.8 || die |
140 |
sed -i -e 's:/usr/local/squid/cache:/var/cache/squid:' \ |
141 |
scripts/check_cache.pl || die |
142 |
sed -i -e 's:/usr/local/squid/ssl_cert:/etc/ssl/squid:' \ |
143 |
src/ssl/ssl_crtd.8 || die |
144 |
sed -i -e 's:/usr/local/squid/var/lib/ssl_db:/var/lib/squid/ssl_db:' \ |
145 |
src/ssl/ssl_crtd.8 || die |
146 |
sed -i -e 's:/var/lib/ssl_db:/var/lib/squid/ssl_db:' \ |
147 |
src/ssl/ssl_crtd.8 || die |
148 |
# /var/run/squid to /run/squid |
149 |
sed -i -e 's:$(localstatedir)::' \ |
150 |
src/ipc/Makefile.am |
151 |
|
152 |
epatch_user |
153 |
|
154 |
# Bug #419685 - eautoreconf in src_prepare() fails in libltdl/ |
155 |
# aclocal-1.11: `configure.ac' or `configure.in' is required |
156 |
MAKEOPTS="${MAKEOPTS} -j1" eautoreconf |
157 |
} |
158 |
|
159 |
src_configure() { |
160 |
local basic_modules="MSNT,MSNT-multi-domain,NCSA,POP3,getpwnam" |
161 |
use samba && basic_modules+=",SMB" |
162 |
use ldap && basic_modules+=",LDAP" |
163 |
use pam && basic_modules+=",PAM" |
164 |
use sasl && basic_modules+=",SASL" |
165 |
use nis && ! use elibc_uclibc && basic_modules+=",NIS" |
166 |
use radius && basic_modules+=",RADIUS" |
167 |
if use mysql || use postgres || use sqlite ; then |
168 |
basic_modules+=",DB" |
169 |
fi |
170 |
|
171 |
local digest_modules="file" |
172 |
use ldap && digest_modules+=",LDAP,eDirectory" |
173 |
|
174 |
local negotiate_modules="none" |
175 |
use kerberos && negotiate_modules="kerberos,wrapper" |
176 |
|
177 |
local ntlm_modules="none" |
178 |
use samba && ntlm_modules="smb_lm" |
179 |
|
180 |
local ext_helpers="file_userip,session,unix_group" |
181 |
use samba && ext_helpers+=",wbinfo_group" |
182 |
use ldap && ext_helpers+=",LDAP_group,eDirectory_userip" |
183 |
use ldap && use kerberos && ext_helpers+=",kerberos_ldap_group" |
184 |
|
185 |
# uclibc does not have aio support - needed for coss (#61175) |
186 |
local storeio_modules="aufs,diskd,rock,ufs" |
187 |
|
188 |
local transparent |
189 |
if use kernel_linux ; then |
190 |
transparent+=" --enable-linux-netfilter" |
191 |
use qos && transparent+=" --enable-zph-qos --with-netfilter-conntrack" |
192 |
fi |
193 |
|
194 |
if use kernel_FreeBSD || use kernel_OpenBSD || use kernel_NetBSD ; then |
195 |
transparent+=" $(use_enable kqueue)" |
196 |
if use pf-transparent; then |
197 |
transparent+=" --enable-pf-transparent" |
198 |
elif use ipf-transparent; then |
199 |
transparent+=" --enable-ipf-transparent" |
200 |
fi |
201 |
fi |
202 |
|
203 |
tc-export CC AR |
204 |
|
205 |
econf \ |
206 |
--sysconfdir=/etc/squid \ |
207 |
--libexecdir=/usr/libexec/squid \ |
208 |
--localstatedir=/var \ |
209 |
--with-pidfile=/run/squid.pid \ |
210 |
--datadir=/usr/share/squid \ |
211 |
--with-logdir=/var/log/squid \ |
212 |
--with-default-user=squid \ |
213 |
--enable-removal-policies="lru,heap" \ |
214 |
--enable-storeio="${storeio_modules}" \ |
215 |
--enable-disk-io \ |
216 |
--enable-auth \ |
217 |
--enable-auth-basic="${basic_modules}" \ |
218 |
--enable-auth-digest="${digest_modules}" \ |
219 |
--enable-auth-ntlm="${ntlm_modules}" \ |
220 |
--enable-auth-negotiate="${negotiate_modules}" \ |
221 |
--enable-external-acl-helpers="${ext_helpers}" \ |
222 |
--enable-log-daemon-helpers \ |
223 |
--enable-url-rewrite-helpers \ |
224 |
--enable-cache-digests \ |
225 |
--enable-delay-pools \ |
226 |
--enable-eui \ |
227 |
--enable-icmp \ |
228 |
--enable-follow-x-forwarded-for \ |
229 |
--with-large-files \ |
230 |
--disable-strict-error-checking \ |
231 |
--disable-arch-native \ |
232 |
$(use_with caps libcap) \ |
233 |
$(use_enable ipv6) \ |
234 |
$(use_enable snmp) \ |
235 |
$(use_enable ssl) \ |
236 |
$(use_with ssl nettle) \ |
237 |
$(use_enable ssl-crtd) \ |
238 |
$(use_enable icap-client) \ |
239 |
$(use_enable ecap) \ |
240 |
$(use_enable esi) \ |
241 |
$(use_enable htcp) \ |
242 |
$(use_enable wccp) \ |
243 |
$(use_enable wccpv2) \ |
244 |
${transparent} |
245 |
} |
246 |
|
247 |
src_install() { |
248 |
emake DESTDIR="${D}" install |
249 |
|
250 |
# need suid root for looking into /etc/shadow |
251 |
fowners root:squid /usr/libexec/squid/basic_ncsa_auth |
252 |
fperms 4750 /usr/libexec/squid/basic_ncsa_auth |
253 |
if use pam; then |
254 |
fowners root:squid /usr/libexec/squid/basic_pam_auth |
255 |
fperms 4750 /usr/libexec/squid/basic_pam_auth |
256 |
fi |
257 |
# pinger needs suid as well |
258 |
fowners root:squid /usr/libexec/squid/pinger |
259 |
fperms 4750 /usr/libexec/squid/pinger |
260 |
|
261 |
# cleanup |
262 |
rm -f "${D}"/usr/bin/Run* |
263 |
rm -rf "${D}"/run/squid "${D}"/var/cache/squid |
264 |
|
265 |
dodoc CONTRIBUTORS CREDITS ChangeLog INSTALL QUICKSTART README SPONSORS doc/*.txt |
266 |
newdoc helpers/negotiate_auth/kerberos/README README.kerberos |
267 |
newdoc helpers/basic_auth/MSNT-multi-domain/README.txt README.MSNT-multi-domain |
268 |
newdoc helpers/basic_auth/LDAP/README README.LDAP |
269 |
newdoc helpers/basic_auth/RADIUS/README README.RADIUS |
270 |
newdoc helpers/external_acl/kerberos_ldap_group/README README.kerberos_ldap_group |
271 |
newdoc tools/purge/README README.purge |
272 |
newdoc tools/helper-mux.README README.helper-mux |
273 |
dohtml RELEASENOTES.html |
274 |
|
275 |
newpamd "${FILESDIR}/squid.pam" squid |
276 |
newconfd "${FILESDIR}/squid.confd-r1" squid |
277 |
newinitd "${FILESDIR}/squid.initd-r4" squid |
278 |
if use logrotate; then |
279 |
insinto /etc/logrotate.d |
280 |
newins "${FILESDIR}/squid.logrotate" squid |
281 |
else |
282 |
exeinto /etc/cron.weekly |
283 |
newexe "${FILESDIR}/squid.cron" squid.cron |
284 |
fi |
285 |
|
286 |
diropts -m0750 -o squid -g squid |
287 |
keepdir /var/log/squid /etc/ssl/squid /var/lib/squid |
288 |
} |
289 |
|
290 |
pkg_postinst() { |
291 |
if [[ $(get_version_component_range 1 ${REPLACING_VERSIONS}) -lt 3 ]] || \ |
292 |
[[ $(get_version_component_range 2 ${REPLACING_VERSIONS}) -lt 4 ]]; then |
293 |
elog "Please read the release notes at:" |
294 |
elog " http://www.squid-cache.org/Versions/v3/3.4/RELEASENOTES.html" |
295 |
echo |
296 |
fi |
297 |
} |
298 |
|
299 |
|
300 |
|
301 |
1.1 net-proxy/squid/squid-3.3.13.ebuild |
302 |
|
303 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/squid/squid-3.3.13.ebuild?rev=1.1&view=markup |
304 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/squid/squid-3.3.13.ebuild?rev=1.1&content-type=text/plain |
305 |
|
306 |
Index: squid-3.3.13.ebuild |
307 |
=================================================================== |
308 |
# Copyright 1999-2014 Gentoo Foundation |
309 |
# Distributed under the terms of the GNU General Public License v2 |
310 |
# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/squid-3.3.13.ebuild,v 1.1 2014/08/28 07:17:03 eras Exp $ |
311 |
|
312 |
EAPI=5 |
313 |
inherit autotools eutils linux-info pam toolchain-funcs user versionator |
314 |
|
315 |
DESCRIPTION="A full-featured web proxy cache" |
316 |
HOMEPAGE="http://www.squid-cache.org/" |
317 |
SRC_URI="ftp://ftp.squid-cache.org/pub/archive/3.3/${P}.tar.xz" |
318 |
|
319 |
LICENSE="GPL-2" |
320 |
SLOT="0" |
321 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
322 |
IUSE="caps ipv6 pam ldap samba sasl kerberos nis radius ssl snmp selinux logrotate test \ |
323 |
ecap icap-client ssl-crtd \ |
324 |
mysql postgres sqlite \ |
325 |
qos tproxy \ |
326 |
pf-transparent ipf-transparent kqueue \ |
327 |
elibc_uclibc kernel_linux" |
328 |
|
329 |
COMMON_DEPEND="caps? ( >=sys-libs/libcap-2.16 ) |
330 |
pam? ( virtual/pam ) |
331 |
ldap? ( net-nds/openldap ) |
332 |
kerberos? ( virtual/krb5 ) |
333 |
qos? ( net-libs/libnetfilter_conntrack ) |
334 |
ssl? ( dev-libs/openssl ) |
335 |
sasl? ( dev-libs/cyrus-sasl ) |
336 |
ecap? ( net-libs/libecap:0.2 ) |
337 |
selinux? ( sec-policy/selinux-squid ) |
338 |
!x86-fbsd? ( logrotate? ( app-admin/logrotate ) ) |
339 |
>=sys-libs/db-4 |
340 |
sys-devel/libtool |
341 |
dev-lang/perl |
342 |
sys-devel/libtool" |
343 |
DEPEND="${COMMON_DEPEND} |
344 |
sys-apps/ed |
345 |
test? ( dev-util/cppunit )" |
346 |
RDEPEND="${COMMON_DEPEND} |
347 |
samba? ( net-fs/samba ) |
348 |
mysql? ( dev-perl/DBD-mysql ) |
349 |
postgres? ( dev-perl/DBD-Pg ) |
350 |
sqlite? ( dev-perl/DBD-SQLite ) |
351 |
!<=sci-biology/meme-4.8.1-r1" |
352 |
|
353 |
REQUIRED_USE="tproxy? ( caps ) |
354 |
qos? ( caps )" |
355 |
|
356 |
pkg_pretend() { |
357 |
if use tproxy; then |
358 |
local CONFIG_CHECK="~NF_CONNTRACK ~NETFILTER_TPROXY ~NETFILTER_XT_MATCH_SOCKET ~NETFILTER_XT_TARGET_TPROXY" |
359 |
linux-info_pkg_setup |
360 |
fi |
361 |
} |
362 |
|
363 |
pkg_setup() { |
364 |
enewgroup squid 31 |
365 |
enewuser squid 31 -1 /var/cache/squid squid |
366 |
} |
367 |
|
368 |
src_prepare() { |
369 |
epatch "${FILESDIR}/${PN}-3.3.4-gentoo.patch" |
370 |
sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' \ |
371 |
lib/libTrie/configure.ac || die |
372 |
sed -i -e 's:/usr/local/squid/etc:/etc/squid:' \ |
373 |
INSTALL QUICKSTART \ |
374 |
helpers/basic_auth/MSNT/README.html \ |
375 |
helpers/basic_auth/MSNT/confload.cc \ |
376 |
helpers/basic_auth/MSNT/msntauth.conf.default \ |
377 |
scripts/fileno-to-pathname.pl \ |
378 |
scripts/check_cache.pl \ |
379 |
tools/cachemgr.cgi.8 \ |
380 |
tools/purge/conffile.hh \ |
381 |
tools/purge/README || die |
382 |
sed -i -e 's:/usr/local/squid/sbin:/usr/sbin:' \ |
383 |
INSTALL QUICKSTART || die |
384 |
sed -i -e 's:/usr/local/squid/var/cache:/var/cache/squid:' \ |
385 |
QUICKSTART || die |
386 |
sed -i -e 's:/usr/local/squid/var/logs:/var/log/squid:' \ |
387 |
QUICKSTART \ |
388 |
src/log/access_log.cc || die |
389 |
sed -i -e 's:/usr/local/squid/logs:/var/log/squid:' \ |
390 |
src/log/access_log.cc || die |
391 |
sed -i -e 's:/usr/local/squid/bin:/usr/bin:' \ |
392 |
helpers/basic_auth/MSNT/README.html || die |
393 |
sed -i -e 's:/usr/local/squid/libexec:/usr/libexec/squid:' \ |
394 |
helpers/external_acl/unix_group/ext_unix_group_acl.8 \ |
395 |
helpers/external_acl/session/ext_session_acl.8 \ |
396 |
src/ssl/ssl_crtd.8 || die |
397 |
sed -i -e 's:/usr/local/squid/cache:/var/cache/squid:' \ |
398 |
scripts/check_cache.pl || die |
399 |
sed -i -e 's:/usr/local/squid/ssl_cert:/etc/ssl/squid:' \ |
400 |
src/ssl/ssl_crtd.8 || die |
401 |
sed -i -e 's:/usr/local/squid/var/lib/ssl_db:/var/lib/squid/ssl_db:' \ |
402 |
src/ssl/ssl_crtd.8 || die |
403 |
sed -i -e 's:/var/lib/ssl_db:/var/lib/squid/ssl_db:' \ |
404 |
src/ssl/ssl_crtd.8 || die |
405 |
# /var/run/squid to /run/squid |
406 |
sed -i -e 's:$(localstatedir)::' \ |
407 |
src/ipc/Makefile.am |
408 |
|
409 |
epatch_user |
410 |
|
411 |
# Bug #419685 - eautoreconf in src_prepare() fails in libltdl/ |
412 |
# aclocal-1.11: `configure.ac' or `configure.in' is required |
413 |
MAKEOPTS="${MAKEOPTS} -j1" eautoreconf |
414 |
} |
415 |
|
416 |
src_configure() { |
417 |
local basic_modules="MSNT,MSNT-multi-domain,NCSA,POP3,getpwnam" |
418 |
use samba && basic_modules+=",SMB" |
419 |
use ldap && basic_modules+=",LDAP" |
420 |
use pam && basic_modules+=",PAM" |
421 |
use sasl && basic_modules+=",SASL" |
422 |
use nis && ! use elibc_uclibc && basic_modules+=",NIS" |
423 |
use radius && basic_modules+=",RADIUS" |
424 |
if use mysql || use postgres || use sqlite ; then |
425 |
basic_modules+=",DB" |
426 |
fi |
427 |
|
428 |
local digest_modules="file" |
429 |
use ldap && digest_modules+=",LDAP,eDirectory" |
430 |
|
431 |
local negotiate_modules="none" |
432 |
use kerberos && negotiate_modules="kerberos,wrapper" |
433 |
|
434 |
local ntlm_modules="none" |
435 |
use samba && ntlm_modules="smb_lm" |
436 |
|
437 |
local ext_helpers="file_userip,session,unix_group" |
438 |
use samba && ext_helpers+=",wbinfo_group" |
439 |
use ldap && ext_helpers+=",LDAP_group,eDirectory_userip" |
440 |
use ldap && use kerberos && ext_helpers+=",kerberos_ldap_group" |
441 |
|
442 |
# uclibc does not have aio support - needed for coss (#61175) |
443 |
local storeio_modules="aufs,diskd,rock,ufs" |
444 |
|
445 |
local transparent |
446 |
if use kernel_linux ; then |
447 |
transparent+=" --enable-linux-netfilter" |
448 |
use qos && transparent+=" --enable-zph-qos --with-netfilter-conntrack" |
449 |
fi |
450 |
|
451 |
if use kernel_FreeBSD || use kernel_OpenBSD || use kernel_NetBSD ; then |
452 |
transparent+=" $(use_enable kqueue)" |
453 |
if use pf-transparent; then |
454 |
transparent+=" --enable-pf-transparent" |
455 |
elif use ipf-transparent; then |
456 |
transparent+=" --enable-ipf-transparent" |
457 |
fi |
458 |
fi |
459 |
|
460 |
tc-export CC AR |
461 |
|
462 |
econf \ |
463 |
--sysconfdir=/etc/squid \ |
464 |
--libexecdir=/usr/libexec/squid \ |
465 |
--localstatedir=/var \ |
466 |
--with-pidfile=/run/squid.pid \ |
467 |
--datadir=/usr/share/squid \ |
468 |
--with-logdir=/var/log/squid \ |
469 |
--with-default-user=squid \ |
470 |
--enable-removal-policies="lru,heap" \ |
471 |
--enable-storeio="${storeio_modules}" \ |
472 |
--enable-disk-io \ |
473 |
--enable-auth \ |
474 |
--enable-auth-basic="${basic_modules}" \ |
475 |
--enable-auth-digest="${digest_modules}" \ |
476 |
--enable-auth-ntlm="${ntlm_modules}" \ |
477 |
--enable-auth-negotiate="${negotiate_modules}" \ |
478 |
--enable-external-acl-helpers="${ext_helpers}" \ |
479 |
--enable-log-daemon-helpers \ |
480 |
--enable-url-rewrite-helpers \ |
481 |
--enable-cache-digests \ |
482 |
--enable-delay-pools \ |
483 |
--enable-eui \ |
484 |
--enable-icmp \ |
485 |
--enable-follow-x-forwarded-for \ |
486 |
--enable-esi \ |
487 |
--with-large-files \ |
488 |
--disable-strict-error-checking \ |
489 |
$(use_with caps libcap) \ |
490 |
$(use_enable ipv6) \ |
491 |
$(use_enable snmp) \ |
492 |
$(use_enable ssl) \ |
493 |
$(use_enable ssl-crtd) \ |
494 |
$(use_enable icap-client) \ |
495 |
$(use_enable ecap) \ |
496 |
${transparent} |
497 |
} |
498 |
|
499 |
src_install() { |
500 |
emake DESTDIR="${D}" install |
501 |
|
502 |
# need suid root for looking into /etc/shadow |
503 |
fowners root:squid /usr/libexec/squid/basic_ncsa_auth |
504 |
fperms 4750 /usr/libexec/squid/basic_ncsa_auth |
505 |
if use pam; then |
506 |
fowners root:squid /usr/libexec/squid/basic_pam_auth |
507 |
fperms 4750 /usr/libexec/squid/basic_pam_auth |
508 |
fi |
509 |
# pinger needs suid as well |
510 |
fowners root:squid /usr/libexec/squid/pinger |
511 |
fperms 4750 /usr/libexec/squid/pinger |
512 |
|
513 |
# some cleanups |
514 |
rm -f "${D}"/usr/bin/Run* |
515 |
rm -rf "${D}"/run/squid "${D}"/var/cache/squid |
516 |
|
517 |
dodoc CONTRIBUTORS CREDITS ChangeLog INSTALL QUICKSTART README SPONSORS doc/*.txt |
518 |
newdoc helpers/negotiate_auth/kerberos/README README.kerberos |
519 |
newdoc helpers/basic_auth/MSNT-multi-domain/README.txt README.MSNT-multi-domain |
520 |
newdoc helpers/basic_auth/LDAP/README README.LDAP |
521 |
newdoc helpers/basic_auth/RADIUS/README README.RADIUS |
522 |
newdoc helpers/external_acl/kerberos_ldap_group/README README.kerberos_ldap_group |
523 |
newdoc tools/purge/README README.purge |
524 |
newdoc tools/helper-mux.README README.helper-mux |
525 |
dohtml RELEASENOTES.html |
526 |
|
527 |
newpamd "${FILESDIR}/squid.pam" squid |
528 |
newconfd "${FILESDIR}/squid.confd-r1" squid |
529 |
newinitd "${FILESDIR}/squid.initd-r4" squid |
530 |
if use logrotate; then |
531 |
insinto /etc/logrotate.d |
532 |
newins "${FILESDIR}/squid.logrotate" squid |
533 |
else |
534 |
exeinto /etc/cron.weekly |
535 |
newexe "${FILESDIR}/squid.cron" squid.cron |
536 |
fi |
537 |
|
538 |
diropts -m0750 -o squid -g squid |
539 |
keepdir /var/log/squid /etc/ssl/squid /var/lib/squid |
540 |
} |
541 |
|
542 |
pkg_postinst() { |
543 |
if [[ $(get_version_component_range 1 ${REPLACING_VERSIONS}) -lt 3 ]] || \ |
544 |
[[ $(get_version_component_range 2 ${REPLACING_VERSIONS}) -lt 3 ]]; then |
545 |
elog "Please read the release notes at:" |
546 |
elog " http://www.squid-cache.org/Versions/v3/3.3/RELEASENOTES.html" |
547 |
echo |
548 |
fi |
549 |
} |