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