Gentoo Archives: gentoo-commits

From: "Alin Nastac (mrness)" <mrness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-proxy/squid: ChangeLog squid-2.6.20-r1.ebuild squid-3.0.6-r1.ebuild
Date: Wed, 28 May 2008 19:48:57
Message-Id: E1K1Rdm-0005ae-5e@stork.gentoo.org
1 mrness 08/05/28 19:48:54
2
3 Modified: ChangeLog
4 Added: squid-2.6.20-r1.ebuild squid-3.0.6-r1.ebuild
5 Log:
6 Fix issues with the new linux-headers-2.6.25 (#223051)
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.190 net-proxy/squid/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/ChangeLog?rev=1.190&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/ChangeLog?rev=1.190&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/ChangeLog?r1=1.189&r2=1.190
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v
19 retrieving revision 1.189
20 retrieving revision 1.190
21 diff -u -r1.189 -r1.190
22 --- ChangeLog 25 May 2008 20:46:50 -0000 1.189
23 +++ ChangeLog 28 May 2008 19:48:53 -0000 1.190
24 @@ -1,6 +1,14 @@
25 # ChangeLog for net-proxy/squid
26 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v 1.189 2008/05/25 20:46:50 mrness Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v 1.190 2008/05/28 19:48:53 mrness Exp $
29 +
30 +*squid-3.0.6-r1 (28 May 2008)
31 +*squid-2.6.20-r1 (28 May 2008)
32 +
33 + 28 May 2008; Alin Năstac <mrness@g.o>
34 + +files/squid-2.6.20-lincapver.patch, +files/squid-3.0.6-lincapver.patch,
35 + +squid-2.6.20-r1.ebuild, +squid-3.0.6-r1.ebuild:
36 + Fix issues with the new linux-headers-2.6.25 (#223051).
37
38 *squid-3.0.6 (25 May 2008)
39
40
41
42
43 1.1 net-proxy/squid/squid-2.6.20-r1.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/squid-2.6.20-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/squid-2.6.20-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: squid-2.6.20-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2008 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/squid-2.6.20-r1.ebuild,v 1.1 2008/05/28 19:48:53 mrness Exp $
53
54 WANT_AUTOCONF="latest"
55 WANT_AUTOMAKE="latest"
56
57 inherit eutils pam toolchain-funcs autotools linux-info
58
59 #lame archive versioning scheme..
60 S_PMV="${PV%%.*}"
61 S_PV="${PV%.*}"
62 S_PL="${PV##*.}"
63 S_PL="${S_PL/_rc/-RC}"
64 S_PP="${PN}-${S_PV}.STABLE${S_PL}"
65
66 DESCRIPTION="A full-featured web proxy cache"
67 HOMEPAGE="http://www.squid-cache.org/"
68 SRC_URI="http://www.squid-cache.org/Versions/v${S_PMV}/${S_PV}/${S_PP}.tar.gz"
69
70 LICENSE="GPL-2"
71 SLOT="0"
72 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
73 IUSE="pam ldap samba sasl nis ssl snmp selinux logrotate qos zero-penalty-hit \
74 pf-transparent ipf-transparent \
75 elibc_uclibc kernel_linux"
76
77 DEPEND="pam? ( virtual/pam )
78 ldap? ( net-nds/openldap )
79 ssl? ( dev-libs/openssl )
80 sasl? ( dev-libs/cyrus-sasl )
81 selinux? ( sec-policy/selinux-squid )
82 !x86-fbsd? ( logrotate? ( app-admin/logrotate ) )
83 >=sys-libs/db-4
84 dev-lang/perl"
85 RDEPEND="${DEPEND}
86 samba? ( net-fs/samba )"
87
88 S="${WORKDIR}/${S_PP}"
89
90 pkg_setup() {
91 enewgroup squid 31
92 enewuser squid 31 -1 /var/cache/squid squid
93 }
94
95 src_unpack() {
96 unpack ${A} || die "unpack failed"
97 cd "${S}" || die "dir ${S} not found"
98
99 epatch "${FILESDIR}"/${P}-gentoo.patch
100 epatch "${FILESDIR}"/${P}-lincapver.patch
101 use zero-penalty-hit && epatch "${FILESDIR}"/${P}-ToS_Hit_ToS_Preserve.patch
102 use qos && epatch "${FILESDIR}"/${P}-qos.patch
103
104 sed -i -e 's%LDFLAGS="-g"%LDFLAGS=""%' configure.in
105
106 eautoreconf
107 }
108
109 src_compile() {
110 local basic_modules="getpwnam,NCSA,MSNT"
111 use samba && basic_modules="SMB,multi-domain-NTLM,${basic_modules}"
112 use ldap && basic_modules="LDAP,${basic_modules}"
113 use pam && basic_modules="PAM,${basic_modules}"
114 use sasl && basic_modules="SASL,${basic_modules}"
115 use nis && ! use elibc_uclibc && basic_modules="YP,${basic_modules}"
116
117 local ext_helpers="ip_user,session,unix_group"
118 use samba && ext_helpers="wbinfo_group,${ext_helpers}"
119 use ldap && ext_helpers="ldap_group,${ext_helpers}"
120
121 local ntlm_helpers="fakeauth"
122 use samba && ntlm_helpers="SMB,${ntlm_helpers}"
123
124 local myconf=""
125
126 # Support for uclibc #61175
127 if use elibc_uclibc; then
128 myconf="${myconf} --enable-storeio=ufs,diskd,aufs,null"
129 myconf="${myconf} --disable-async-io"
130 else
131 myconf="${myconf} --enable-storeio=ufs,diskd,coss,aufs,null"
132 myconf="${myconf} --enable-async-io"
133 fi
134
135 if use kernel_linux; then
136 myconf="${myconf} --enable-linux-netfilter"
137 if kernel_is ge 2 6 && linux_chkconfig_present EPOLL ; then
138 myconf="${myconf} --enable-epoll"
139 fi
140 elif use kernel_FreeBSD || use kernel_OpenBSD || use kernel_NetBSD ; then
141 myconf="${myconf} --enable-kqueue"
142 if use pf-transparent; then
143 myconf="${myconf} --enable-pf-transparent"
144 elif use ipf-transparent; then
145 myconf="${myconf} --enable-ipf-transparent"
146 fi
147 fi
148
149 export CC=$(tc-getCC)
150
151 econf \
152 --sysconfdir=/etc/squid \
153 --libexecdir=/usr/libexec/squid \
154 --localstatedir=/var \
155 --datadir=/usr/share/squid \
156 --enable-auth="basic,digest,ntlm" \
157 --enable-removal-policies="lru,heap" \
158 --enable-digest-auth-helpers="password" \
159 --enable-basic-auth-helpers="${basic_modules}" \
160 --enable-external-acl-helpers="${ext_helpers}" \
161 --enable-ntlm-auth-helpers="${ntlm_helpers}" \
162 --enable-ident-lookups \
163 --enable-useragent-log \
164 --enable-cache-digests \
165 --enable-delay-pools \
166 --enable-referer-log \
167 --enable-arp-acl \
168 --with-pthreads \
169 --with-large-files \
170 --enable-htcp \
171 --enable-carp \
172 --enable-follow-x-forwarded-for \
173 --with-maxfd=8192 \
174 $(use_enable snmp) \
175 $(use_enable ssl) \
176 ${myconf} || die "econf failed"
177
178 emake || die "emake failed"
179 }
180
181 src_install() {
182 make DESTDIR="${D}" install || die "make install failed"
183
184 # need suid root for looking into /etc/shadow
185 fowners root:squid /usr/libexec/squid/ncsa_auth
186 fowners root:squid /usr/libexec/squid/pam_auth
187 fperms 4750 /usr/libexec/squid/ncsa_auth
188 fperms 4750 /usr/libexec/squid/pam_auth
189
190 # some cleanups
191 rm -f "${D}"/usr/bin/Run*
192
193 dodoc CONTRIBUTORS CREDITS ChangeLog QUICKSTART SPONSORS doc/*.txt \
194 helpers/ntlm_auth/no_check/README.no_check_ntlm_auth
195 newdoc helpers/basic_auth/SMB/README README.auth_smb
196 dohtml helpers/basic_auth/MSNT/README.html RELEASENOTES.html
197 newdoc helpers/basic_auth/LDAP/README README.auth_ldap
198 doman helpers/basic_auth/LDAP/*.8
199 dodoc helpers/basic_auth/SASL/squid_sasl_auth*
200
201 newpamd "${FILESDIR}/squid.pam" squid
202 newconfd "${FILESDIR}/squid.confd" squid
203 if use logrotate; then
204 newinitd "${FILESDIR}/squid.initd-logrotate" squid
205 insinto /etc/logrotate.d
206 newins "${FILESDIR}/squid.logrotate" squid
207 else
208 newinitd "${FILESDIR}/squid.initd" squid
209 exeinto /etc/cron.weekly
210 newexe "${FILESDIR}/squid.cron" squid.cron
211 fi
212
213 rm -rf "${D}"/var
214 diropts -m0755 -o squid -g squid
215 keepdir /var/cache/squid /var/log/squid
216 }
217
218 pkg_postinst() {
219 echo
220 ewarn "Squid authentication helpers have been installed suid root."
221 ewarn "This allows shadow based authentication (see bug #52977 for more)."
222 echo
223 ewarn "Be careful what type of cache_dir you select!"
224 ewarn " 'diskd' is optimized for high levels of traffic, but it might seem slow"
225 ewarn "when there isn't sufficient traffic to keep squid reasonably busy."
226 ewarn " If your traffic level is low to moderate, use 'aufs' or 'ufs'."
227 echo
228 ewarn "Squid can be configured to run in transparent mode like this:"
229 ewarn " ${HILITE}http_port internal-addr:3128 transparent${NORMAL}"
230 }
231
232
233
234 1.1 net-proxy/squid/squid-3.0.6-r1.ebuild
235
236 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/squid-3.0.6-r1.ebuild?rev=1.1&view=markup
237 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/squid-3.0.6-r1.ebuild?rev=1.1&content-type=text/plain
238
239 Index: squid-3.0.6-r1.ebuild
240 ===================================================================
241 # Copyright 1999-2008 Gentoo Foundation
242 # Distributed under the terms of the GNU General Public License v2
243 # $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/squid-3.0.6-r1.ebuild,v 1.1 2008/05/28 19:48:53 mrness Exp $
244
245 WANT_AUTOCONF="latest"
246 WANT_AUTOMAKE="latest"
247
248 inherit eutils pam toolchain-funcs autotools linux-info
249
250 # lame archive versioning scheme..
251 S_PMV="${PV%%.*}"
252 S_PV="${PV%.*}"
253 S_PL="${PV##*.}"
254 S_PP="${PN}-${S_PV}.STABLE${S_PL}"
255
256 RESTRICT="test" # check if test works in next bump
257
258 DESCRIPTION="A full-featured web proxy cache"
259 HOMEPAGE="http://www.squid-cache.org/"
260 SRC_URI="http://www.squid-cache.org/Versions/v${S_PMV}/${S_PV}/${S_PP}.tar.gz"
261
262 LICENSE="GPL-2"
263 SLOT="0"
264 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
265 IUSE="pam ldap samba sasl nis radius ssl snmp selinux icap-client logrotate \
266 pf-transparent ipf-transparent \
267 elibc_uclibc kernel_linux"
268
269 DEPEND="pam? ( virtual/pam )
270 ldap? ( net-nds/openldap )
271 ssl? ( dev-libs/openssl )
272 sasl? ( dev-libs/cyrus-sasl )
273 selinux? ( sec-policy/selinux-squid )
274 !x86-fbsd? ( logrotate? ( app-admin/logrotate ) )
275 >=sys-libs/db-4
276 dev-lang/perl"
277 RDEPEND="${DEPEND}
278 samba? ( net-fs/samba )"
279
280 S="${WORKDIR}/${S_PP}"
281
282 pkg_setup() {
283 if hasq qos ${USE} || hasq zero-penalty-hit ${USE} ; then
284 eerror "qos and zero-penalty-hit useflags are not supported by squid-3."
285 eerror "Please remove them from your USE or use =net-proxy/squid-2.6* instead."
286 die "unsupported USE flags detected"
287 fi
288 enewgroup squid 31
289 enewuser squid 31 -1 /var/cache/squid squid
290 }
291
292 src_unpack() {
293 unpack ${A} || die "unpack failed"
294 cd "${S}" || die "source dir not found"
295
296 epatch "${FILESDIR}"/${P}-gentoo.patch
297 epatch "${FILESDIR}"/${P}-lincapver.patch
298
299 sed -i -e 's%LDFLAGS="-g"%LDFLAGS=""%' configure.in
300
301 eautoreconf
302 }
303
304 src_compile() {
305 local basic_modules="getpwnam,NCSA,MSNT"
306 use samba && basic_modules="SMB,multi-domain-NTLM,${basic_modules}"
307 use ldap && basic_modules="LDAP,${basic_modules}"
308 use pam && basic_modules="PAM,${basic_modules}"
309 use sasl && basic_modules="SASL,${basic_modules}"
310 use nis && ! use elibc_uclibc && basic_modules="YP,${basic_modules}"
311 use radius && basic_modules="squid_radius_auth,${basic_modules}"
312
313 local ext_helpers="ip_user,session,unix_group"
314 use samba && ext_helpers="wbinfo_group,${ext_helpers}"
315 use ldap && ext_helpers="ldap_group,${ext_helpers}"
316
317 local ntlm_helpers="fakeauth"
318 use samba && ntlm_helpers="SMB,${ntlm_helpers}"
319
320 local myconf=""
321
322 # Support for uclibc #61175
323 if use elibc_uclibc; then
324 myconf="${myconf} --enable-storeio=ufs,diskd,aufs,null"
325 else
326 myconf="${myconf} --enable-storeio=ufs,diskd,coss,aufs,null"
327 fi
328
329 if use kernel_linux; then
330 myconf="${myconf} --enable-linux-netfilter"
331 elif use kernel_FreeBSD || use kernel_OpenBSD || use kernel_NetBSD ; then
332 myconf="${myconf} --enable-kqueue"
333 if use pf-transparent; then
334 myconf="${myconf} --enable-pf-transparent"
335 elif use ipf-transparent; then
336 myconf="${myconf} --enable-ipf-transparent"
337 fi
338 fi
339
340 export CC=$(tc-getCC)
341
342 econf \
343 --sysconfdir=/etc/squid \
344 --libexecdir=/usr/libexec/squid \
345 --localstatedir=/var \
346 --datadir=/usr/share/squid \
347 --with-default-user=squid \
348 --enable-auth="basic,digest,negotiate,ntlm" \
349 --enable-removal-policies="lru,heap" \
350 --enable-digest-auth-helpers="password" \
351 --enable-basic-auth-helpers="${basic_modules}" \
352 --enable-external-acl-helpers="${ext_helpers}" \
353 --enable-ntlm-auth-helpers="${ntlm_helpers}" \
354 --enable-useragent-log \
355 --enable-cache-digests \
356 --enable-delay-pools \
357 --enable-referer-log \
358 --enable-arp-acl \
359 --with-large-files \
360 --with-filedescriptors=8192 \
361 $(use_enable snmp) \
362 $(use_enable ssl) \
363 $(use_enable icap-client) \
364 ${myconf} || die "econf failed"
365
366 emake || die "emake failed"
367 }
368
369 src_install() {
370 make DESTDIR="${D}" install || die "make install failed"
371
372 # need suid root for looking into /etc/shadow
373 fowners root:squid /usr/libexec/squid/ncsa_auth
374 fowners root:squid /usr/libexec/squid/pam_auth
375 fperms 4750 /usr/libexec/squid/ncsa_auth
376 fperms 4750 /usr/libexec/squid/pam_auth
377
378 # some cleanups
379 rm -f "${D}"/usr/bin/Run*
380
381 dodoc CONTRIBUTORS CREDITS ChangeLog QUICKSTART SPONSORS doc/*.txt \
382 helpers/ntlm_auth/no_check/README.no_check_ntlm_auth
383 newdoc helpers/basic_auth/SMB/README README.auth_smb
384 dohtml helpers/basic_auth/MSNT/README.html RELEASENOTES.html
385 newdoc helpers/basic_auth/LDAP/README README.auth_ldap
386 doman helpers/basic_auth/LDAP/*.8
387 dodoc helpers/basic_auth/SASL/squid_sasl_auth*
388
389 newpamd "${FILESDIR}/squid.pam" squid
390 newconfd "${FILESDIR}/squid.confd" squid
391 if use logrotate; then
392 newinitd "${FILESDIR}/squid.initd-logrotate" squid
393 insinto /etc/logrotate.d
394 newins "${FILESDIR}/squid.logrotate" squid
395 else
396 newinitd "${FILESDIR}/squid.initd" squid
397 exeinto /etc/cron.weekly
398 newexe "${FILESDIR}/squid.cron" squid.cron
399 fi
400
401 rm -rf "${D}"/var
402 diropts -m0755 -o squid -g squid
403 keepdir /var/cache/squid /var/log/squid
404 }
405
406 pkg_postinst() {
407 echo
408 ewarn "Squid authentication helpers have been installed suid root."
409 ewarn "This allows shadow based authentication (see bug #52977 for more)."
410 echo
411 ewarn "Be careful what type of cache_dir you select!"
412 ewarn " 'diskd' is optimized for high levels of traffic, but it might seem slow"
413 ewarn "when there isn't sufficient traffic to keep squid reasonably busy."
414 ewarn " If your traffic level is low to moderate, use 'aufs' or 'ufs'."
415 echo
416 ewarn "Squid can be configured to run in transparent mode like this:"
417 ewarn " ${HILITE}http_port internal-addr:3128 transparent${NORMAL}"
418 }
419
420
421
422 --
423 gentoo-commits@l.g.o mailing list