1 |
mrness 08/08/01 22:13:41 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: squid-3.0.8.ebuild |
5 |
Removed: squid-2.7.2.ebuild squid-3.0.5.ebuild |
6 |
squid-3.0.6-r2.ebuild squid-3.0.6-r1.ebuild |
7 |
Log: |
8 |
Remove obsolete test versions. Version bump (#233001). |
9 |
(Portage version: 2.1.4.4) |
10 |
|
11 |
Revision Changes Path |
12 |
1.193 net-proxy/squid/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/ChangeLog?rev=1.193&view=markup |
15 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/ChangeLog?rev=1.193&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/ChangeLog?r1=1.192&r2=1.193 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v |
21 |
retrieving revision 1.192 |
22 |
retrieving revision 1.193 |
23 |
diff -u -r1.192 -r1.193 |
24 |
--- ChangeLog 26 Jun 2008 19:32:15 -0000 1.192 |
25 |
+++ ChangeLog 1 Aug 2008 22:13:41 -0000 1.193 |
26 |
@@ -1,6 +1,16 @@ |
27 |
# ChangeLog for net-proxy/squid |
28 |
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v 1.192 2008/06/26 19:32:15 mrness Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v 1.193 2008/08/01 22:13:41 mrness Exp $ |
31 |
+ |
32 |
+*squid-3.0.8 (01 Aug 2008) |
33 |
+ |
34 |
+ 01 Aug 2008; Alin Năstac <mrness@g.o> |
35 |
+ -files/squid-2.7.2-gentoo.patch, -files/squid-3.0.5-gentoo.patch, |
36 |
+ -files/squid-3.0.6-adapted-zph.patch, -files/squid-3.0.6-gentoo.patch, |
37 |
+ -files/squid-3.0.6-lincapver.patch, +files/squid-3.0.8-adapted-zph.patch, |
38 |
+ +files/squid-3.0.8-gentoo.patch, -squid-2.7.2.ebuild, -squid-3.0.5.ebuild, |
39 |
+ -squid-3.0.6-r1.ebuild, -squid-3.0.6-r2.ebuild, +squid-3.0.8.ebuild: |
40 |
+ Remove obsolete test versions. Version bump (#233001). |
41 |
|
42 |
*squid-3.0.7 (26 Jun 2008) |
43 |
*squid-2.7.3 (26 Jun 2008) |
44 |
|
45 |
|
46 |
|
47 |
1.1 net-proxy/squid/squid-3.0.8.ebuild |
48 |
|
49 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/squid-3.0.8.ebuild?rev=1.1&view=markup |
50 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/squid-3.0.8.ebuild?rev=1.1&content-type=text/plain |
51 |
|
52 |
Index: squid-3.0.8.ebuild |
53 |
=================================================================== |
54 |
# Copyright 1999-2008 Gentoo Foundation |
55 |
# Distributed under the terms of the GNU General Public License v2 |
56 |
# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/squid-3.0.8.ebuild,v 1.1 2008/08/01 22:13:41 mrness Exp $ |
57 |
|
58 |
WANT_AUTOCONF="latest" |
59 |
WANT_AUTOMAKE="latest" |
60 |
|
61 |
inherit eutils pam toolchain-funcs autotools linux-info |
62 |
|
63 |
# lame archive versioning scheme.. |
64 |
S_PMV="${PV%%.*}" |
65 |
S_PV="${PV%.*}" |
66 |
S_PL="${PV##*.}" |
67 |
S_PP="${PN}-${S_PV}.STABLE${S_PL}" |
68 |
|
69 |
RESTRICT="test" # check if test works in next bump |
70 |
|
71 |
DESCRIPTION="A full-featured web proxy cache" |
72 |
HOMEPAGE="http://www.squid-cache.org/" |
73 |
SRC_URI="http://www.squid-cache.org/Versions/v${S_PMV}/${S_PV}/${S_PP}.tar.gz" |
74 |
|
75 |
LICENSE="GPL-2" |
76 |
SLOT="0" |
77 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
78 |
IUSE="pam ldap samba sasl nis radius ssl snmp selinux icap-client logrotate \ |
79 |
qos zero-penalty-hit \ |
80 |
pf-transparent ipf-transparent \ |
81 |
elibc_uclibc kernel_linux" |
82 |
|
83 |
DEPEND="pam? ( virtual/pam ) |
84 |
ldap? ( net-nds/openldap ) |
85 |
ssl? ( dev-libs/openssl ) |
86 |
sasl? ( dev-libs/cyrus-sasl ) |
87 |
selinux? ( sec-policy/selinux-squid ) |
88 |
!x86-fbsd? ( logrotate? ( app-admin/logrotate ) ) |
89 |
>=sys-libs/db-4 |
90 |
dev-lang/perl" |
91 |
RDEPEND="${DEPEND} |
92 |
samba? ( net-fs/samba )" |
93 |
|
94 |
S="${WORKDIR}/${S_PP}" |
95 |
|
96 |
pkg_setup() { |
97 |
if use qos; then |
98 |
eerror "qos patch is no longer supported by us!" |
99 |
eerror "Please remove qos from your USE and select zero-penalty-hit flag instead." |
100 |
die "unsupported USE flags detected" |
101 |
fi |
102 |
enewgroup squid 31 |
103 |
enewuser squid 31 -1 /var/cache/squid squid |
104 |
} |
105 |
|
106 |
src_unpack() { |
107 |
unpack ${A} || die "unpack failed" |
108 |
|
109 |
cd "${S}" || die "source dir not found" |
110 |
epatch "${FILESDIR}"/${P}-gentoo.patch |
111 |
use zero-penalty-hit && epatch "${FILESDIR}"/${P}-adapted-zph.patch |
112 |
|
113 |
eautoreconf |
114 |
} |
115 |
|
116 |
src_compile() { |
117 |
local basic_modules="getpwnam,NCSA,MSNT" |
118 |
use samba && basic_modules="SMB,multi-domain-NTLM,${basic_modules}" |
119 |
use ldap && basic_modules="LDAP,${basic_modules}" |
120 |
use pam && basic_modules="PAM,${basic_modules}" |
121 |
use sasl && basic_modules="SASL,${basic_modules}" |
122 |
use nis && ! use elibc_uclibc && basic_modules="YP,${basic_modules}" |
123 |
use radius && basic_modules="squid_radius_auth,${basic_modules}" |
124 |
|
125 |
local ext_helpers="ip_user,session,unix_group" |
126 |
use samba && ext_helpers="wbinfo_group,${ext_helpers}" |
127 |
use ldap && ext_helpers="ldap_group,${ext_helpers}" |
128 |
|
129 |
local ntlm_helpers="fakeauth" |
130 |
use samba && ntlm_helpers="SMB,${ntlm_helpers}" |
131 |
|
132 |
local myconf="" |
133 |
|
134 |
# Support for uclibc #61175 |
135 |
if use elibc_uclibc; then |
136 |
myconf="${myconf} --enable-storeio=ufs,diskd,aufs,null" |
137 |
else |
138 |
myconf="${myconf} --enable-storeio=ufs,diskd,coss,aufs,null" |
139 |
fi |
140 |
|
141 |
if use kernel_linux; then |
142 |
myconf="${myconf} --enable-linux-netfilter" |
143 |
elif use kernel_FreeBSD || use kernel_OpenBSD || use kernel_NetBSD ; then |
144 |
myconf="${myconf} --enable-kqueue" |
145 |
if use pf-transparent; then |
146 |
myconf="${myconf} --enable-pf-transparent" |
147 |
elif use ipf-transparent; then |
148 |
myconf="${myconf} --enable-ipf-transparent" |
149 |
fi |
150 |
fi |
151 |
|
152 |
export CC=$(tc-getCC) |
153 |
|
154 |
econf \ |
155 |
--sysconfdir=/etc/squid \ |
156 |
--libexecdir=/usr/libexec/squid \ |
157 |
--localstatedir=/var \ |
158 |
--datadir=/usr/share/squid \ |
159 |
--with-default-user=squid \ |
160 |
--enable-auth="basic,digest,negotiate,ntlm" \ |
161 |
--enable-removal-policies="lru,heap" \ |
162 |
--enable-digest-auth-helpers="password" \ |
163 |
--enable-basic-auth-helpers="${basic_modules}" \ |
164 |
--enable-external-acl-helpers="${ext_helpers}" \ |
165 |
--enable-ntlm-auth-helpers="${ntlm_helpers}" \ |
166 |
--enable-useragent-log \ |
167 |
--enable-cache-digests \ |
168 |
--enable-delay-pools \ |
169 |
--enable-referer-log \ |
170 |
--enable-arp-acl \ |
171 |
--with-large-files \ |
172 |
--with-filedescriptors=8192 \ |
173 |
$(use_enable snmp) \ |
174 |
$(use_enable ssl) \ |
175 |
$(use_enable icap-client) \ |
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 |
if use zero-penalty-hit; then |
231 |
echo |
232 |
ewarn "In order for zph_preserve_miss_tos to work, you will have to alter your kernel" |
233 |
ewarn "with the patch that can be found on http://zph.bratcheda.org site." |
234 |
fi |
235 |
} |