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