1 |
mrness 08/11/30 19:20:44 |
2 |
|
3 |
Modified: ChangeLog metadata.xml squid-2.7.4-r2.ebuild |
4 |
Added: squid-3.0.10-r1.ebuild squid-2.7.5-r1.ebuild |
5 |
Removed: squid-2.7.5.ebuild squid-3.0.9.ebuild |
6 |
squid-2.7.3.ebuild squid-3.0.10.ebuild |
7 |
Log: |
8 |
Remove obsolete versions. |
9 |
Remove qos USE flag. |
10 |
Add epoll and kqueue USE flags (#247488). |
11 |
Add init script support for Kerberos keytab file (#242060). |
12 |
(Portage version: 2.1.4.4) |
13 |
|
14 |
Revision Changes Path |
15 |
1.213 net-proxy/squid/ChangeLog |
16 |
|
17 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/ChangeLog?rev=1.213&view=markup |
18 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/ChangeLog?rev=1.213&content-type=text/plain |
19 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/ChangeLog?r1=1.212&r2=1.213 |
20 |
|
21 |
Index: ChangeLog |
22 |
=================================================================== |
23 |
RCS file: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v |
24 |
retrieving revision 1.212 |
25 |
retrieving revision 1.213 |
26 |
diff -u -r1.212 -r1.213 |
27 |
--- ChangeLog 13 Nov 2008 00:40:02 -0000 1.212 |
28 |
+++ ChangeLog 30 Nov 2008 19:20:44 -0000 1.213 |
29 |
@@ -1,6 +1,19 @@ |
30 |
# ChangeLog for net-proxy/squid |
31 |
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
32 |
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v 1.212 2008/11/13 00:40:02 ranger Exp $ |
33 |
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v 1.213 2008/11/30 19:20:44 mrness Exp $ |
34 |
+ |
35 |
+*squid-3.0.10-r1 (30 Nov 2008) |
36 |
+*squid-2.7.5-r1 (30 Nov 2008) |
37 |
+ |
38 |
+ 30 Nov 2008; Alin Năstac <mrness@g.o> |
39 |
+ -files/squid-2.7.3-gentoo.patch, -files/squid-3.0.9-gentoo.patch, |
40 |
+ -files/squid-3.0.9-heimdal.patch, -files/squid-3.0.9-zph.patch, |
41 |
+ files/squid.confd, files/squid.initd, files/squid.initd-logrotate, |
42 |
+ metadata.xml, -squid-2.7.3.ebuild, squid-2.7.4-r2.ebuild, |
43 |
+ -squid-2.7.5.ebuild, +squid-2.7.5-r1.ebuild, -squid-3.0.9.ebuild, |
44 |
+ -squid-3.0.10.ebuild, +squid-3.0.10-r1.ebuild: |
45 |
+ Remove obsolete versions. Remove qos USE flag. Add epoll and kqueue USE |
46 |
+ flags (#247488). Add init script support for Kerberos keytab file (#242060). |
47 |
|
48 |
13 Nov 2008; Brent Baude <ranger@g.o> squid-2.7.4-r2.ebuild: |
49 |
stable ppc64, bug 242386 |
50 |
|
51 |
|
52 |
|
53 |
1.5 net-proxy/squid/metadata.xml |
54 |
|
55 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/metadata.xml?rev=1.5&view=markup |
56 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/metadata.xml?rev=1.5&content-type=text/plain |
57 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/metadata.xml?r1=1.4&r2=1.5 |
58 |
|
59 |
Index: metadata.xml |
60 |
=================================================================== |
61 |
RCS file: /var/cvsroot/gentoo-x86/net-proxy/squid/metadata.xml,v |
62 |
retrieving revision 1.4 |
63 |
retrieving revision 1.5 |
64 |
diff -u -r1.4 -r1.5 |
65 |
--- metadata.xml 23 Aug 2008 02:55:25 -0000 1.4 |
66 |
+++ metadata.xml 30 Nov 2008 19:20:44 -0000 1.5 |
67 |
@@ -4,15 +4,15 @@ |
68 |
<herd>net-proxy</herd> |
69 |
<longdescription>A full-featured web proxy cache</longdescription> |
70 |
<use> |
71 |
+ <flag name='epoll'>Enables Linux epoll() support</flag> |
72 |
<flag name='icap-client'>Adds ICAP client support</flag> |
73 |
<flag name='ipf-transparent'>Adds transparent proxy support for systems |
74 |
using IP-Filter (only for *bsd)</flag> |
75 |
<flag name='logrotate'>Use <pkg>app-admin/logrotate</pkg> for rotating |
76 |
logs</flag> |
77 |
+ <flag name='kqueue'>Enables *BSD kqueue() support</flag> |
78 |
<flag name='pf-transparent'>Adds transparent proxy support for systems using |
79 |
PF (only for *bsd)</flag> |
80 |
- <flag name='qos'>Adds tcp_outgoing_priority for setting the Qdisc |
81 |
- priority</flag> |
82 |
<flag name='zero-penalty-hit'>Add Zero Penalty Hit patch |
83 |
(http://zph.bratcheda.org)</flag> |
84 |
</use> |
85 |
|
86 |
|
87 |
|
88 |
1.9 net-proxy/squid/squid-2.7.4-r2.ebuild |
89 |
|
90 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/squid-2.7.4-r2.ebuild?rev=1.9&view=markup |
91 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/squid-2.7.4-r2.ebuild?rev=1.9&content-type=text/plain |
92 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/squid-2.7.4-r2.ebuild?r1=1.8&r2=1.9 |
93 |
|
94 |
Index: squid-2.7.4-r2.ebuild |
95 |
=================================================================== |
96 |
RCS file: /var/cvsroot/gentoo-x86/net-proxy/squid/squid-2.7.4-r2.ebuild,v |
97 |
retrieving revision 1.8 |
98 |
retrieving revision 1.9 |
99 |
diff -u -r1.8 -r1.9 |
100 |
--- squid-2.7.4-r2.ebuild 13 Nov 2008 00:40:02 -0000 1.8 |
101 |
+++ squid-2.7.4-r2.ebuild 30 Nov 2008 19:20:44 -0000 1.9 |
102 |
@@ -1,6 +1,6 @@ |
103 |
# Copyright 1999-2008 Gentoo Foundation |
104 |
# Distributed under the terms of the GNU General Public License v2 |
105 |
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/squid-2.7.4-r2.ebuild,v 1.8 2008/11/13 00:40:02 ranger Exp $ |
106 |
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/squid-2.7.4-r2.ebuild,v 1.9 2008/11/30 19:20:44 mrness Exp $ |
107 |
|
108 |
WANT_AUTOCONF="latest" |
109 |
WANT_AUTOMAKE="latest" |
110 |
@@ -23,7 +23,7 @@ |
111 |
KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd" |
112 |
IUSE="pam ldap samba sasl kerberos nis ssl snmp selinux logrotate \ |
113 |
mysql postgres sqlite \ |
114 |
- qos zero-penalty-hit \ |
115 |
+ zero-penalty-hit \ |
116 |
pf-transparent ipf-transparent \ |
117 |
elibc_uclibc kernel_linux" |
118 |
|
119 |
@@ -45,11 +45,6 @@ |
120 |
S="${WORKDIR}/${S_PP}" |
121 |
|
122 |
pkg_setup() { |
123 |
- if use qos; then |
124 |
- eerror "qos patch is no longer supported!" |
125 |
- eerror "Please remove qos USE flag and use zph* config options instead." |
126 |
- die "unsupported USE flags detected" |
127 |
- fi |
128 |
if use zero-penalty-hit; then |
129 |
ewarn "This version supports natively IP TOS/Priority mangling," |
130 |
ewarn "but it does not support zph_preserve_miss_tos." |
131 |
|
132 |
|
133 |
|
134 |
1.1 net-proxy/squid/squid-3.0.10-r1.ebuild |
135 |
|
136 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/squid-3.0.10-r1.ebuild?rev=1.1&view=markup |
137 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/squid-3.0.10-r1.ebuild?rev=1.1&content-type=text/plain |
138 |
|
139 |
Index: squid-3.0.10-r1.ebuild |
140 |
=================================================================== |
141 |
# Copyright 1999-2008 Gentoo Foundation |
142 |
# Distributed under the terms of the GNU General Public License v2 |
143 |
# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/squid-3.0.10-r1.ebuild,v 1.1 2008/11/30 19:20:44 mrness Exp $ |
144 |
|
145 |
WANT_AUTOCONF="latest" |
146 |
WANT_AUTOMAKE="latest" |
147 |
|
148 |
inherit eutils pam toolchain-funcs autotools linux-info |
149 |
|
150 |
# lame archive versioning scheme.. |
151 |
S_PMV="${PV%%.*}" |
152 |
S_PV="${PV%.*}" |
153 |
S_PL="${PV##*.}" |
154 |
S_PP="${PN}-${S_PV}.STABLE${S_PL}" |
155 |
|
156 |
RESTRICT="test" # check if test works in next bump |
157 |
|
158 |
DESCRIPTION="A full-featured web proxy cache" |
159 |
HOMEPAGE="http://www.squid-cache.org/" |
160 |
SRC_URI="http://www.squid-cache.org/Versions/v${S_PMV}/${S_PV}/${S_PP}.tar.gz" |
161 |
|
162 |
LICENSE="GPL-2" |
163 |
SLOT="0" |
164 |
KEYWORDS="~alpha ~amd64 -arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
165 |
IUSE="pam ldap samba sasl kerberos nis radius ssl snmp selinux icap-client logrotate \ |
166 |
mysql postgres sqlite \ |
167 |
zero-penalty-hit \ |
168 |
pf-transparent ipf-transparent kqueue \ |
169 |
elibc_uclibc kernel_linux epoll" |
170 |
|
171 |
DEPEND="pam? ( virtual/pam ) |
172 |
ldap? ( net-nds/openldap ) |
173 |
kerberos? ( || ( app-crypt/mit-krb5 app-crypt/heimdal ) ) |
174 |
ssl? ( dev-libs/openssl ) |
175 |
sasl? ( dev-libs/cyrus-sasl ) |
176 |
selinux? ( sec-policy/selinux-squid ) |
177 |
!x86-fbsd? ( logrotate? ( app-admin/logrotate ) ) |
178 |
>=sys-libs/db-4 |
179 |
dev-lang/perl" |
180 |
RDEPEND="${DEPEND} |
181 |
samba? ( net-fs/samba ) |
182 |
mysql? ( dev-perl/DBD-mysql ) |
183 |
postgres? ( dev-perl/DBD-Pg ) |
184 |
sqlite? ( dev-perl/DBD-SQLite )" |
185 |
|
186 |
S="${WORKDIR}/${S_PP}" |
187 |
|
188 |
pkg_setup() { |
189 |
if grep -qs '^[[:space:]]*cache_dir[[:space:]]\+coss' "${ROOT}"etc/squid/squid.conf; then |
190 |
eerror "coss store IO has been disabled by upstream due to stability issues!" |
191 |
eerror "If you want to install this version, switch the store type to something else" |
192 |
eerror "before attempting to install this version again." |
193 |
|
194 |
die "/etc/squid/squid.conf: cache_dir use a disabled store type" |
195 |
fi |
196 |
|
197 |
enewgroup squid 31 |
198 |
enewuser squid 31 -1 /var/cache/squid squid |
199 |
} |
200 |
|
201 |
src_unpack() { |
202 |
unpack ${A} || die "unpack failed" |
203 |
|
204 |
cd "${S}" || die "source dir not found" |
205 |
epatch "${FILESDIR}"/${P}-gentoo.patch |
206 |
use zero-penalty-hit && epatch "${FILESDIR}"/${P}-zph.patch |
207 |
has_version app-crypt/mit-krb5 || epatch "${FILESDIR}"/${P}-heimdal.patch |
208 |
|
209 |
eautoreconf |
210 |
} |
211 |
|
212 |
src_compile() { |
213 |
local basic_modules="getpwnam,NCSA,MSNT" |
214 |
use samba && basic_modules="SMB,multi-domain-NTLM,${basic_modules}" |
215 |
use ldap && basic_modules="LDAP,${basic_modules}" |
216 |
use pam && basic_modules="PAM,${basic_modules}" |
217 |
use sasl && basic_modules="SASL,${basic_modules}" |
218 |
use nis && ! use elibc_uclibc && basic_modules="YP,${basic_modules}" |
219 |
use radius && basic_modules="squid_radius_auth,${basic_modules}" |
220 |
if use mysql || use postgres || use sqlite ; then |
221 |
basic_modules="DB,${basic_modules}" |
222 |
fi |
223 |
|
224 |
local ext_helpers="ip_user,session,unix_group" |
225 |
use samba && ext_helpers="wbinfo_group,${ext_helpers}" |
226 |
use ldap && ext_helpers="ldap_group,${ext_helpers}" |
227 |
|
228 |
local ntlm_helpers="fakeauth" |
229 |
use samba && ntlm_helpers="SMB,${ntlm_helpers}" |
230 |
|
231 |
local negotiate_helpers= |
232 |
use kerberos && local negotiate_helpers="squid_kerb_auth" |
233 |
|
234 |
local myconf="" |
235 |
|
236 |
# coss support has been disabled |
237 |
# If it is re-enabled again, make sure you don't enable it for elibc_uclibc (#61175) |
238 |
myconf="${myconf} --enable-storeio=ufs,diskd,aufs,null" |
239 |
|
240 |
if use kernel_linux; then |
241 |
myconf="${myconf} --enable-linux-netfilter |
242 |
$(use_enable epoll)" |
243 |
elif use kernel_FreeBSD || use kernel_OpenBSD || use kernel_NetBSD ; then |
244 |
myconf="${myconf} $(use_enable kqueue)" |
245 |
if use pf-transparent; then |
246 |
myconf="${myconf} --enable-pf-transparent" |
247 |
elif use ipf-transparent; then |
248 |
myconf="${myconf} --enable-ipf-transparent" |
249 |
fi |
250 |
fi |
251 |
|
252 |
export CC=$(tc-getCC) |
253 |
|
254 |
econf \ |
255 |
--sysconfdir=/etc/squid \ |
256 |
--libexecdir=/usr/libexec/squid \ |
257 |
--localstatedir=/var \ |
258 |
--datadir=/usr/share/squid \ |
259 |
--with-default-user=squid \ |
260 |
--enable-auth="basic,digest,negotiate,ntlm" \ |
261 |
--enable-removal-policies="lru,heap" \ |
262 |
--enable-digest-auth-helpers="password" \ |
263 |
--enable-basic-auth-helpers="${basic_modules}" \ |
264 |
--enable-external-acl-helpers="${ext_helpers}" \ |
265 |
--enable-ntlm-auth-helpers="${ntlm_helpers}" \ |
266 |
--enable-negotiate-auth-helpers="${negotiate_helpers}" \ |
267 |
--enable-useragent-log \ |
268 |
--enable-cache-digests \ |
269 |
--enable-delay-pools \ |
270 |
--enable-referer-log \ |
271 |
--enable-arp-acl \ |
272 |
--with-large-files \ |
273 |
--with-filedescriptors=8192 \ |
274 |
$(use_enable snmp) \ |
275 |
$(use_enable ssl) \ |
276 |
$(use_enable icap-client) \ |
277 |
${myconf} || die "econf failed" |
278 |
|
279 |
emake || die "emake failed" |
280 |
} |
281 |
|
282 |
src_install() { |
283 |
make DESTDIR="${D}" install || die "make install failed" |
284 |
|
285 |
# need suid root for looking into /etc/shadow |
286 |
fowners root:squid /usr/libexec/squid/ncsa_auth |
287 |
fowners root:squid /usr/libexec/squid/pam_auth |
288 |
fperms 4750 /usr/libexec/squid/ncsa_auth |
289 |
fperms 4750 /usr/libexec/squid/pam_auth |
290 |
|
291 |
# some cleanups |
292 |
rm -f "${D}"/usr/bin/Run* |
293 |
|
294 |
dodoc CONTRIBUTORS CREDITS ChangeLog QUICKSTART SPONSORS doc/*.txt \ |
295 |
helpers/ntlm_auth/no_check/README.no_check_ntlm_auth |
296 |
newdoc helpers/basic_auth/SMB/README README.auth_smb |
297 |
dohtml helpers/basic_auth/MSNT/README.html RELEASENOTES.html |
298 |
newdoc helpers/basic_auth/LDAP/README README.auth_ldap |
299 |
doman helpers/basic_auth/LDAP/*.8 |
300 |
dodoc helpers/basic_auth/SASL/squid_sasl_auth* |
301 |
|
302 |
newpamd "${FILESDIR}/squid.pam" squid |
303 |
newconfd "${FILESDIR}/squid.confd" squid |
304 |
if use logrotate; then |
305 |
newinitd "${FILESDIR}/squid.initd-logrotate" squid |
306 |
insinto /etc/logrotate.d |
307 |
newins "${FILESDIR}/squid.logrotate" squid |
308 |
else |
309 |
newinitd "${FILESDIR}/squid.initd" squid |
310 |
exeinto /etc/cron.weekly |
311 |
newexe "${FILESDIR}/squid.cron" squid.cron |
312 |
fi |
313 |
|
314 |
rm -rf "${D}"/var |
315 |
diropts -m0755 -o squid -g squid |
316 |
keepdir /var/cache/squid /var/log/squid |
317 |
} |
318 |
|
319 |
pkg_postinst() { |
320 |
echo |
321 |
ewarn "Squid authentication helpers have been installed suid root." |
322 |
ewarn "This allows shadow based authentication (see bug #52977 for more)." |
323 |
echo |
324 |
ewarn "Be careful what type of cache_dir you select!" |
325 |
ewarn " 'diskd' is optimized for high levels of traffic, but it might seem slow" |
326 |
ewarn "when there isn't sufficient traffic to keep squid reasonably busy." |
327 |
ewarn " If your traffic level is low to moderate, use 'aufs' or 'ufs'." |
328 |
echo |
329 |
ewarn "Squid can be configured to run in transparent mode like this:" |
330 |
ewarn " ${HILITE}http_port internal-addr:3128 transparent${NORMAL}" |
331 |
if use zero-penalty-hit; then |
332 |
echo |
333 |
ewarn "In order for zph_preserve_miss_tos to work, you will have to alter your kernel" |
334 |
ewarn "with the patch that can be found on http://zph.bratcheda.org site." |
335 |
fi |
336 |
} |
337 |
|
338 |
|
339 |
|
340 |
1.1 net-proxy/squid/squid-2.7.5-r1.ebuild |
341 |
|
342 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/squid-2.7.5-r1.ebuild?rev=1.1&view=markup |
343 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/squid-2.7.5-r1.ebuild?rev=1.1&content-type=text/plain |
344 |
|
345 |
Index: squid-2.7.5-r1.ebuild |
346 |
=================================================================== |
347 |
# Copyright 1999-2008 Gentoo Foundation |
348 |
# Distributed under the terms of the GNU General Public License v2 |
349 |
# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/squid-2.7.5-r1.ebuild,v 1.1 2008/11/30 19:20:44 mrness Exp $ |
350 |
|
351 |
WANT_AUTOCONF="latest" |
352 |
WANT_AUTOMAKE="latest" |
353 |
|
354 |
inherit eutils pam toolchain-funcs autotools linux-info |
355 |
|
356 |
#lame archive versioning scheme.. |
357 |
S_PMV="${PV%%.*}" |
358 |
S_PV="${PV%.*}" |
359 |
S_PL="${PV##*.}" |
360 |
S_PL="${S_PL/_rc/-RC}" |
361 |
S_PP="${PN}-${S_PV}.STABLE${S_PL}" |
362 |
|
363 |
DESCRIPTION="A full-featured web proxy cache" |
364 |
HOMEPAGE="http://www.squid-cache.org/" |
365 |
SRC_URI="http://www.squid-cache.org/Versions/v${S_PMV}/${S_PV}/${S_PP}.tar.gz" |
366 |
|
367 |
LICENSE="GPL-2" |
368 |
SLOT="0" |
369 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
370 |
IUSE="pam ldap samba sasl kerberos nis ssl snmp selinux logrotate \ |
371 |
mysql postgres sqlite \ |
372 |
zero-penalty-hit \ |
373 |
pf-transparent ipf-transparent kqueue \ |
374 |
elibc_uclibc kernel_linux epoll" |
375 |
|
376 |
DEPEND="pam? ( virtual/pam ) |
377 |
ldap? ( net-nds/openldap ) |
378 |
kerberos? ( || ( app-crypt/mit-krb5 app-crypt/heimdal ) ) |
379 |
ssl? ( dev-libs/openssl ) |
380 |
sasl? ( dev-libs/cyrus-sasl ) |
381 |
selinux? ( sec-policy/selinux-squid ) |
382 |
!x86-fbsd? ( logrotate? ( app-admin/logrotate ) ) |
383 |
>=sys-libs/db-4 |
384 |
dev-lang/perl" |
385 |
RDEPEND="${DEPEND} |
386 |
samba? ( net-fs/samba ) |
387 |
mysql? ( dev-perl/DBD-mysql ) |
388 |
postgres? ( dev-perl/DBD-Pg ) |
389 |
sqlite? ( dev-perl/DBD-SQLite )" |
390 |
|
391 |
S="${WORKDIR}/${S_PP}" |
392 |
|
393 |
pkg_setup() { |
394 |
if use zero-penalty-hit; then |
395 |
ewarn "This version supports natively IP TOS/Priority mangling," |
396 |
ewarn "but it does not support zph_preserve_miss_tos." |
397 |
ewarn "If you need that, please use squid-3.0.6-r2 or higher." |
398 |
fi |
399 |
enewgroup squid 31 |
400 |
enewuser squid 31 -1 /var/cache/squid squid |
401 |
} |
402 |
|
403 |
src_unpack() { |
404 |
unpack ${A} || die "unpack failed" |
405 |
|
406 |
cd "${S}" || die "source dir not found" |
407 |
epatch "${FILESDIR}"/${P}-gentoo.patch |
408 |
has_version app-crypt/mit-krb5 || epatch "${FILESDIR}"/${P}-heimdal.patch |
409 |
eautoreconf |
410 |
} |
411 |
|
412 |
src_compile() { |
413 |
local basic_modules="getpwnam,NCSA,MSNT" |
414 |
use samba && basic_modules="SMB,multi-domain-NTLM,${basic_modules}" |
415 |
use ldap && basic_modules="LDAP,${basic_modules}" |
416 |
use pam && basic_modules="PAM,${basic_modules}" |
417 |
use sasl && basic_modules="SASL,${basic_modules}" |
418 |
use nis && ! use elibc_uclibc && basic_modules="YP,${basic_modules}" |
419 |
if use mysql || use postgres || use sqlite ; then |
420 |
basic_modules="DB,${basic_modules}" |
421 |
fi |
422 |
|
423 |
local ext_helpers="ip_user,session,unix_group" |
424 |
use samba && ext_helpers="wbinfo_group,${ext_helpers}" |
425 |
use ldap && ext_helpers="ldap_group,${ext_helpers}" |
426 |
|
427 |
local ntlm_helpers="fakeauth" |
428 |
use samba && ntlm_helpers="SMB,${ntlm_helpers}" |
429 |
|
430 |
local negotiate_helpers= |
431 |
use kerberos && local negotiate_helpers="squid_kerb_auth" |
432 |
|
433 |
local myconf="" |
434 |
|
435 |
# Support for uclibc #61175 |
436 |
if use elibc_uclibc; then |
437 |
myconf="${myconf} --enable-storeio=ufs,diskd,aufs,null" |
438 |
myconf="${myconf} --disable-async-io" |
439 |
else |
440 |
myconf="${myconf} --enable-storeio=ufs,diskd,coss,aufs,null" |
441 |
myconf="${myconf} --enable-async-io" |
442 |
fi |
443 |
|
444 |
if use kernel_linux; then |
445 |
myconf="${myconf} --enable-linux-netfilter |
446 |
$(use_enable epoll)" |
447 |
elif use kernel_FreeBSD || use kernel_OpenBSD || use kernel_NetBSD ; then |
448 |
myconf="${myconf} $(use_enable kqueue)" |
449 |
if use pf-transparent; then |
450 |
myconf="${myconf} --enable-pf-transparent" |
451 |
elif use ipf-transparent; then |
452 |
myconf="${myconf} --enable-ipf-transparent" |
453 |
fi |
454 |
fi |
455 |
|
456 |
export CC=$(tc-getCC) |
457 |
|
458 |
econf \ |
459 |
--sysconfdir=/etc/squid \ |
460 |
--libexecdir=/usr/libexec/squid \ |
461 |
--localstatedir=/var \ |
462 |
--datadir=/usr/share/squid \ |
463 |
--enable-auth="basic,digest,ntlm" \ |
464 |
--enable-removal-policies="lru,heap" \ |
465 |
--enable-digest-auth-helpers="password" \ |
466 |
--enable-basic-auth-helpers="${basic_modules}" \ |
467 |
--enable-external-acl-helpers="${ext_helpers}" \ |
468 |
--enable-ntlm-auth-helpers="${ntlm_helpers}" \ |
469 |
--enable-negotiate-auth-helpers="${negotiate_helpers}" \ |
470 |
--enable-ident-lookups \ |
471 |
--enable-useragent-log \ |
472 |
--enable-cache-digests \ |
473 |
--enable-delay-pools \ |
474 |
--enable-referer-log \ |
475 |
--enable-arp-acl \ |
476 |
--with-pthreads \ |
477 |
--with-large-files \ |
478 |
--enable-htcp \ |
479 |
--enable-carp \ |
480 |
--enable-follow-x-forwarded-for \ |
481 |
--with-maxfd=8192 \ |
482 |
$(use_enable snmp) \ |
483 |
$(use_enable ssl) \ |
484 |
${myconf} || die "econf failed" |
485 |
|
486 |
emake || die "emake failed" |
487 |
} |
488 |
|
489 |
src_install() { |
490 |
make DESTDIR="${D}" install || die "make install failed" |
491 |
|
492 |
# need suid root for looking into /etc/shadow |
493 |
fowners root:squid /usr/libexec/squid/ncsa_auth |
494 |
fowners root:squid /usr/libexec/squid/pam_auth |
495 |
fperms 4750 /usr/libexec/squid/ncsa_auth |
496 |
fperms 4750 /usr/libexec/squid/pam_auth |
497 |
|
498 |
# some cleanups |
499 |
rm -f "${D}"/usr/bin/Run* |
500 |
|
501 |
dodoc CONTRIBUTORS CREDITS ChangeLog QUICKSTART SPONSORS doc/*.txt \ |
502 |
helpers/ntlm_auth/no_check/README.no_check_ntlm_auth |
503 |
newdoc helpers/basic_auth/SMB/README README.auth_smb |
504 |
dohtml helpers/basic_auth/MSNT/README.html RELEASENOTES.html |
505 |
newdoc helpers/basic_auth/LDAP/README README.auth_ldap |
506 |
doman helpers/basic_auth/LDAP/*.8 |
507 |
dodoc helpers/basic_auth/SASL/squid_sasl_auth* |
508 |
|
509 |
newpamd "${FILESDIR}/squid.pam" squid |
510 |
newconfd "${FILESDIR}/squid.confd" squid |
511 |
if use logrotate; then |
512 |
newinitd "${FILESDIR}/squid.initd-logrotate" squid |
513 |
insinto /etc/logrotate.d |
514 |
newins "${FILESDIR}/squid.logrotate" squid |
515 |
else |
516 |
newinitd "${FILESDIR}/squid.initd" squid |
517 |
exeinto /etc/cron.weekly |
518 |
newexe "${FILESDIR}/squid.cron" squid.cron |
519 |
fi |
520 |
|
521 |
rm -rf "${D}"/var |
522 |
diropts -m0755 -o squid -g squid |
523 |
keepdir /var/cache/squid /var/log/squid |
524 |
} |
525 |
|
526 |
pkg_postinst() { |
527 |
echo |
528 |
ewarn "Squid authentication helpers have been installed suid root." |
529 |
ewarn "This allows shadow based authentication (see bug #52977 for more)." |
530 |
echo |
531 |
ewarn "Be careful what type of cache_dir you select!" |
532 |
ewarn " 'diskd' is optimized for high levels of traffic, but it might seem slow" |
533 |
ewarn "when there isn't sufficient traffic to keep squid reasonably busy." |
534 |
ewarn " If your traffic level is low to moderate, use 'aufs' or 'ufs'." |
535 |
echo |
536 |
ewarn "Squid can be configured to run in transparent mode like this:" |
537 |
ewarn " ${HILITE}http_port internal-addr:3128 transparent${NORMAL}" |
538 |
} |