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