1 |
mrness 09/04/25 11:42:35 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: squid-3.0.14-r1.ebuild |
5 |
Removed: squid-2.7.6.ebuild |
6 |
Log: |
7 |
Fix assertion failure (#267109). Fix gcc-4.3 and cross compilation issues (#266581). |
8 |
(Portage version: 2.1.6.7/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.242 net-proxy/squid/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/ChangeLog?rev=1.242&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/ChangeLog?rev=1.242&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/ChangeLog?r1=1.241&r2=1.242 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v |
20 |
retrieving revision 1.241 |
21 |
retrieving revision 1.242 |
22 |
diff -u -r1.241 -r1.242 |
23 |
--- ChangeLog 22 Apr 2009 20:19:01 -0000 1.241 |
24 |
+++ ChangeLog 25 Apr 2009 11:42:35 -0000 1.242 |
25 |
@@ -1,6 +1,15 @@ |
26 |
# ChangeLog for net-proxy/squid |
27 |
# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v 1.241 2009/04/22 20:19:01 maekke Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v 1.242 2009/04/25 11:42:35 mrness Exp $ |
30 |
+ |
31 |
+*squid-3.0.14-r1 (25 Apr 2009) |
32 |
+ |
33 |
+ 25 Apr 2009; Alin Năstac <mrness@g.o> |
34 |
+ +files/squid-3.0.14-cross-compile.patch, +files/squid-3.0.14-gcc43.patch, |
35 |
+ +files/squid-3.0.14-max-forwards.patch, -squid-2.7.6.ebuild, |
36 |
+ +squid-3.0.14-r1.ebuild: |
37 |
+ Fix assertion failure (#267109). Fix gcc-4.3 and cross compilation issues |
38 |
+ (#266581). |
39 |
|
40 |
22 Apr 2009; Markus Meier <maekke@g.o> squid-2.7.6-r1: |
41 |
amd64 stable, bug #263777 |
42 |
|
43 |
|
44 |
|
45 |
1.1 net-proxy/squid/squid-3.0.14-r1.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/squid-3.0.14-r1.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/squid-3.0.14-r1.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: squid-3.0.14-r1.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2009 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/squid-3.0.14-r1.ebuild,v 1.1 2009/04/25 11:42:35 mrness Exp $ |
55 |
|
56 |
EAPI="2" |
57 |
WANT_AUTOCONF="latest" |
58 |
WANT_AUTOMAKE="latest" |
59 |
|
60 |
inherit eutils pam toolchain-funcs autotools linux-info |
61 |
|
62 |
# lame archive versioning scheme.. |
63 |
S_PMV="${PV%%.*}" |
64 |
S_PV="${PV%.*}" |
65 |
S_PL="${PV##*.}" |
66 |
S_PP="${PN}-${S_PV}.STABLE${S_PL}" |
67 |
|
68 |
RESTRICT="test" # check if test works in next bump |
69 |
|
70 |
DESCRIPTION="A full-featured web proxy cache" |
71 |
HOMEPAGE="http://www.squid-cache.org/" |
72 |
SRC_URI="http://www.squid-cache.org/Versions/v${S_PMV}/${S_PV}/${S_PP}.tar.gz" |
73 |
|
74 |
LICENSE="GPL-2" |
75 |
SLOT="0" |
76 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
77 |
IUSE="pam ldap samba sasl kerberos nis radius ssl snmp selinux icap-client logrotate \ |
78 |
mysql postgres sqlite \ |
79 |
zero-penalty-hit \ |
80 |
pf-transparent ipf-transparent kqueue \ |
81 |
elibc_uclibc kernel_linux epoll" |
82 |
|
83 |
DEPEND="pam? ( virtual/pam ) |
84 |
ldap? ( net-nds/openldap ) |
85 |
kerberos? ( || ( app-crypt/mit-krb5 app-crypt/heimdal ) ) |
86 |
ssl? ( dev-libs/openssl ) |
87 |
sasl? ( dev-libs/cyrus-sasl ) |
88 |
selinux? ( sec-policy/selinux-squid ) |
89 |
!x86-fbsd? ( logrotate? ( app-admin/logrotate ) ) |
90 |
>=sys-libs/db-4 |
91 |
dev-lang/perl" |
92 |
RDEPEND="${DEPEND} |
93 |
samba? ( net-fs/samba ) |
94 |
mysql? ( dev-perl/DBD-mysql ) |
95 |
postgres? ( dev-perl/DBD-Pg ) |
96 |
sqlite? ( dev-perl/DBD-SQLite )" |
97 |
|
98 |
S="${WORKDIR}/${S_PP}" |
99 |
|
100 |
pkg_setup() { |
101 |
if grep -qs '^[[:space:]]*cache_dir[[:space:]]\+coss' "${ROOT}"etc/squid/squid.conf; then |
102 |
eerror "coss store IO has been disabled by upstream due to stability issues!" |
103 |
eerror "If you want to install this version, switch the store type to something else" |
104 |
eerror "before attempting to install this version again." |
105 |
|
106 |
die "/etc/squid/squid.conf: cache_dir use a disabled store type" |
107 |
fi |
108 |
|
109 |
enewgroup squid 31 |
110 |
enewuser squid 31 -1 /var/cache/squid squid |
111 |
} |
112 |
|
113 |
src_prepare() { |
114 |
epatch "${FILESDIR}"/${P}-gentoo.patch |
115 |
epatch "${FILESDIR}"/${P}-max-forwards.patch |
116 |
epatch "${FILESDIR}"/${P}-gcc43.patch |
117 |
epatch "${FILESDIR}"/${P}-cross-compile.patch |
118 |
use zero-penalty-hit && epatch "${FILESDIR}"/${P}-adapted-zph.patch |
119 |
has_version app-crypt/mit-krb5 || epatch "${FILESDIR}"/${P}-heimdal.patch |
120 |
|
121 |
eautoreconf |
122 |
} |
123 |
|
124 |
src_configure() { |
125 |
local basic_modules="getpwnam,NCSA,MSNT" |
126 |
use samba && basic_modules="SMB,multi-domain-NTLM,${basic_modules}" |
127 |
use ldap && basic_modules="LDAP,${basic_modules}" |
128 |
use pam && basic_modules="PAM,${basic_modules}" |
129 |
use sasl && basic_modules="SASL,${basic_modules}" |
130 |
use nis && ! use elibc_uclibc && basic_modules="YP,${basic_modules}" |
131 |
use radius && basic_modules="squid_radius_auth,${basic_modules}" |
132 |
if use mysql || use postgres || use sqlite ; then |
133 |
basic_modules="DB,${basic_modules}" |
134 |
fi |
135 |
|
136 |
local ext_helpers="ip_user,session,unix_group" |
137 |
use samba && ext_helpers="wbinfo_group,${ext_helpers}" |
138 |
use ldap && ext_helpers="ldap_group,${ext_helpers}" |
139 |
|
140 |
local ntlm_helpers="fakeauth" |
141 |
use samba && ntlm_helpers="SMB,${ntlm_helpers}" |
142 |
|
143 |
local negotiate_helpers= |
144 |
use kerberos && local negotiate_helpers="squid_kerb_auth" |
145 |
|
146 |
local myconf="" |
147 |
|
148 |
# coss support has been disabled |
149 |
# If it is re-enabled again, make sure you don't enable it for elibc_uclibc (#61175) |
150 |
myconf="${myconf} --enable-storeio=ufs,diskd,aufs,null" |
151 |
|
152 |
if use kernel_linux; then |
153 |
myconf="${myconf} --enable-linux-netfilter |
154 |
$(use_enable epoll)" |
155 |
elif use kernel_FreeBSD || use kernel_OpenBSD || use kernel_NetBSD ; then |
156 |
myconf="${myconf} $(use_enable kqueue)" |
157 |
if use pf-transparent; then |
158 |
myconf="${myconf} --enable-pf-transparent" |
159 |
elif use ipf-transparent; then |
160 |
myconf="${myconf} --enable-ipf-transparent" |
161 |
fi |
162 |
fi |
163 |
|
164 |
export CC=$(tc-getCC) |
165 |
|
166 |
econf \ |
167 |
--sysconfdir=/etc/squid \ |
168 |
--libexecdir=/usr/libexec/squid \ |
169 |
--localstatedir=/var \ |
170 |
--datadir=/usr/share/squid \ |
171 |
--with-default-user=squid \ |
172 |
--enable-auth="basic,digest,negotiate,ntlm" \ |
173 |
--enable-removal-policies="lru,heap" \ |
174 |
--enable-digest-auth-helpers="password" \ |
175 |
--enable-basic-auth-helpers="${basic_modules}" \ |
176 |
--enable-external-acl-helpers="${ext_helpers}" \ |
177 |
--enable-ntlm-auth-helpers="${ntlm_helpers}" \ |
178 |
--enable-negotiate-auth-helpers="${negotiate_helpers}" \ |
179 |
--enable-useragent-log \ |
180 |
--enable-cache-digests \ |
181 |
--enable-delay-pools \ |
182 |
--enable-referer-log \ |
183 |
--enable-arp-acl \ |
184 |
--with-large-files \ |
185 |
--with-filedescriptors=8192 \ |
186 |
$(use_enable snmp) \ |
187 |
$(use_enable ssl) \ |
188 |
$(use_enable icap-client) \ |
189 |
${myconf} || die "econf failed" |
190 |
} |
191 |
|
192 |
src_install() { |
193 |
emake DESTDIR="${D}" install || die "emake install failed" |
194 |
|
195 |
# need suid root for looking into /etc/shadow |
196 |
fowners root:squid /usr/libexec/squid/ncsa_auth |
197 |
fowners root:squid /usr/libexec/squid/pam_auth |
198 |
fperms 4750 /usr/libexec/squid/ncsa_auth |
199 |
fperms 4750 /usr/libexec/squid/pam_auth |
200 |
|
201 |
# some cleanups |
202 |
rm -f "${D}"/usr/bin/Run* |
203 |
|
204 |
dodoc CONTRIBUTORS CREDITS ChangeLog QUICKSTART SPONSORS doc/*.txt \ |
205 |
helpers/ntlm_auth/no_check/README.no_check_ntlm_auth |
206 |
newdoc helpers/basic_auth/SMB/README README.auth_smb |
207 |
dohtml helpers/basic_auth/MSNT/README.html RELEASENOTES.html |
208 |
newdoc helpers/basic_auth/LDAP/README README.auth_ldap |
209 |
doman helpers/basic_auth/LDAP/*.8 |
210 |
dodoc helpers/basic_auth/SASL/squid_sasl_auth* |
211 |
|
212 |
newpamd "${FILESDIR}/squid.pam" squid |
213 |
newconfd "${FILESDIR}/squid.confd" squid |
214 |
if use logrotate; then |
215 |
newinitd "${FILESDIR}/squid.initd-logrotate" squid |
216 |
insinto /etc/logrotate.d |
217 |
newins "${FILESDIR}/squid.logrotate" squid |
218 |
else |
219 |
newinitd "${FILESDIR}/squid.initd" squid |
220 |
exeinto /etc/cron.weekly |
221 |
newexe "${FILESDIR}/squid.cron" squid.cron |
222 |
fi |
223 |
|
224 |
rm -rf "${D}"/var |
225 |
diropts -m0755 -o squid -g squid |
226 |
keepdir /var/cache/squid /var/log/squid |
227 |
} |
228 |
|
229 |
pkg_postinst() { |
230 |
echo |
231 |
ewarn "Squid authentication helpers have been installed suid root." |
232 |
ewarn "This allows shadow based authentication (see bug #52977 for more)." |
233 |
echo |
234 |
ewarn "Be careful what type of cache_dir you select!" |
235 |
ewarn " 'diskd' is optimized for high levels of traffic, but it might seem slow" |
236 |
ewarn "when there isn't sufficient traffic to keep squid reasonably busy." |
237 |
ewarn " If your traffic level is low to moderate, use 'aufs' or 'ufs'." |
238 |
echo |
239 |
ewarn "Squid can be configured to run in transparent mode like this:" |
240 |
ewarn " ${HILITE}http_port internal-addr:3128 transparent${NORMAL}" |
241 |
if use zero-penalty-hit; then |
242 |
echo |
243 |
ewarn "In order for zph_preserve_miss_tos to work, you will have to alter your kernel" |
244 |
ewarn "with the patch that can be found on http://zph.bratcheda.org site." |
245 |
fi |
246 |
} |