1 |
mrness 07/09/08 07:28:04 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: squid-2.6.16.ebuild |
5 |
Log: |
6 |
Version bump (#191456). |
7 |
(Portage version: 2.1.2.12) |
8 |
|
9 |
Revision Changes Path |
10 |
1.152 net-proxy/squid/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/ChangeLog?rev=1.152&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/ChangeLog?rev=1.152&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/ChangeLog?r1=1.151&r2=1.152 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v |
19 |
retrieving revision 1.151 |
20 |
retrieving revision 1.152 |
21 |
diff -u -r1.151 -r1.152 |
22 |
--- ChangeLog 16 Aug 2007 17:35:03 -0000 1.151 |
23 |
+++ ChangeLog 8 Sep 2007 07:28:04 -0000 1.152 |
24 |
@@ -1,6 +1,14 @@ |
25 |
# ChangeLog for net-proxy/squid |
26 |
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v 1.151 2007/08/16 17:35:03 mrness Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v 1.152 2007/09/08 07:28:04 mrness Exp $ |
29 |
+ |
30 |
+*squid-2.6.16 (08 Sep 2007) |
31 |
+ |
32 |
+ 08 Sep 2007; Alin Năstac <mrness@g.o> |
33 |
+ +files/squid-2.6.16-ToS_Hit_ToS_Preserve.patch, |
34 |
+ +files/squid-2.6.16-gentoo.patch, +files/squid-2.6.16-qos.patch, |
35 |
+ +squid-2.6.16.ebuild: |
36 |
+ Version bump (#191456). |
37 |
|
38 |
*squid-2.6.14 (16 Aug 2007) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 net-proxy/squid/squid-2.6.16.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/squid-2.6.16.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/squid-2.6.16.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: squid-2.6.16.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2007 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.16.ebuild,v 1.1 2007/09/08 07:28:04 mrness Exp $ |
53 |
|
54 |
WANT_AUTOCONF="latest" |
55 |
WANT_AUTOMAKE="latest" |
56 |
|
57 |
inherit eutils pam toolchain-funcs flag-o-matic 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-2.1.26 ) |
79 |
ssl? ( >=dev-libs/openssl-0.9.7j ) |
80 |
sasl? ( >=dev-libs/cyrus-sasl-2.1.21 ) |
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 |
use zero-penalty-hit && epatch "${FILESDIR}"/${P}-ToS_Hit_ToS_Preserve.patch |
101 |
use qos && epatch "${FILESDIR}"/${P}-qos.patch |
102 |
|
103 |
sed -i -e 's%LDFLAGS="-g"%LDFLAGS=""%' configure.in |
104 |
|
105 |
# disable lazy bindings on (some at least) suided basic auth programs |
106 |
sed -i -e '$aAM_LDFLAGS = '$(bindnow-flags) \ |
107 |
helpers/basic_auth/*/Makefile.am |
108 |
|
109 |
eautoreconf |
110 |
} |
111 |
|
112 |
src_compile() { |
113 |
local basic_modules="getpwnam,NCSA,MSNT" |
114 |
use samba && basic_modules="SMB,multi-domain-NTLM,${basic_modules}" |
115 |
use ldap && basic_modules="LDAP,${basic_modules}" |
116 |
use pam && basic_modules="PAM,${basic_modules}" |
117 |
use sasl && basic_modules="SASL,${basic_modules}" |
118 |
use nis && ! use elibc_uclibc && basic_modules="YP,${basic_modules}" |
119 |
|
120 |
local ext_helpers="ip_user,session,unix_group" |
121 |
use samba && ext_helpers="wbinfo_group,${ext_helpers}" |
122 |
use ldap && ext_helpers="ldap_group,${ext_helpers}" |
123 |
|
124 |
local ntlm_helpers="fakeauth" |
125 |
use samba && ntlm_helpers="SMB,${ntlm_helpers}" |
126 |
|
127 |
local myconf="" |
128 |
|
129 |
# Support for uclibc #61175 |
130 |
if use elibc_uclibc; then |
131 |
myconf="${myconf} --enable-storeio=ufs,diskd,aufs,null" |
132 |
myconf="${myconf} --disable-async-io" |
133 |
else |
134 |
myconf="${myconf} --enable-storeio=ufs,diskd,coss,aufs,null" |
135 |
myconf="${myconf} --enable-async-io" |
136 |
fi |
137 |
|
138 |
if use kernel_linux; then |
139 |
myconf="${myconf} --enable-linux-netfilter" |
140 |
if kernel_is ge 2 6 && linux_chkconfig_present EPOLL ; then |
141 |
myconf="${myconf} --enable-epoll" |
142 |
fi |
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 |
--enable-auth="basic,digest,ntlm" \ |
160 |
--enable-removal-policies="lru,heap" \ |
161 |
--enable-digest-auth-helpers="password" \ |
162 |
--enable-basic-auth-helpers="${basic_modules}" \ |
163 |
--enable-external-acl-helpers="${ext_helpers}" \ |
164 |
--enable-ntlm-auth-helpers="${ntlm_helpers}" \ |
165 |
--enable-ident-lookups \ |
166 |
--enable-useragent-log \ |
167 |
--enable-cache-digests \ |
168 |
--enable-delay-pools \ |
169 |
--enable-referer-log \ |
170 |
--enable-arp-acl \ |
171 |
--with-pthreads \ |
172 |
--with-large-files \ |
173 |
--enable-htcp \ |
174 |
--enable-carp \ |
175 |
--enable-follow-x-forwarded-for \ |
176 |
$(use_enable snmp) \ |
177 |
$(use_enable ssl) \ |
178 |
${myconf} || die "econf failed" |
179 |
|
180 |
sed -i -e "s:^#define SQUID_MAXFD.*:#define SQUID_MAXFD 8192:" \ |
181 |
include/autoconf.h |
182 |
|
183 |
emake || die "emake failed" |
184 |
} |
185 |
|
186 |
src_install() { |
187 |
make DESTDIR="${D}" install || die "make install failed" |
188 |
|
189 |
# need suid root for looking into /etc/shadow |
190 |
fowners root:squid /usr/libexec/squid/ncsa_auth |
191 |
fowners root:squid /usr/libexec/squid/pam_auth |
192 |
fperms 4750 /usr/libexec/squid/ncsa_auth |
193 |
fperms 4750 /usr/libexec/squid/pam_auth |
194 |
|
195 |
# some cleanups |
196 |
rm -f "${D}"/usr/bin/Run* |
197 |
|
198 |
dodoc CONTRIBUTORS CREDITS ChangeLog QUICKSTART SPONSORS doc/*.txt \ |
199 |
helpers/ntlm_auth/no_check/README.no_check_ntlm_auth |
200 |
newdoc helpers/basic_auth/SMB/README README.auth_smb |
201 |
dohtml helpers/basic_auth/MSNT/README.html RELEASENOTES.html |
202 |
newdoc helpers/basic_auth/LDAP/README README.auth_ldap |
203 |
doman helpers/basic_auth/LDAP/*.8 |
204 |
dodoc helpers/basic_auth/SASL/squid_sasl_auth* |
205 |
|
206 |
newpamd "${FILESDIR}/squid.pam.1" squid |
207 |
newconfd "${FILESDIR}/squid.confd" squid |
208 |
if use logrotate; then |
209 |
newinitd "${FILESDIR}/squid.initd-logrotate" squid |
210 |
insinto /etc/logrotate.d |
211 |
newins "${FILESDIR}/squid.logrotate" squid |
212 |
else |
213 |
newinitd "${FILESDIR}/squid.initd" squid |
214 |
exeinto /etc/cron.weekly |
215 |
newexe "${FILESDIR}/squid.cron" squid.cron |
216 |
fi |
217 |
|
218 |
rm -rf "${D}"/var |
219 |
diropts -m0755 -o squid -g squid |
220 |
keepdir /var/cache/squid /var/log/squid |
221 |
} |
222 |
|
223 |
pkg_preinst() { |
224 |
enewgroup squid 31 |
225 |
enewuser squid 31 -1 /var/cache/squid squid |
226 |
} |
227 |
|
228 |
pkg_postinst() { |
229 |
echo |
230 |
ewarn "Squid authentication helpers have been installed suid root." |
231 |
ewarn "This allows shadow based authentication (see bug #52977 for more)." |
232 |
echo |
233 |
ewarn "Be careful what type of cache_dir you select!" |
234 |
ewarn " 'diskd' is optimized for high levels of traffic, but it might seem slow" |
235 |
ewarn "when there isn't sufficient traffic to keep squid reasonably busy." |
236 |
ewarn " If your traffic level is low to moderate, use 'aufs' or 'ufs'." |
237 |
echo |
238 |
ewarn "/etc/squid/errors symlink has been removed from your system." |
239 |
ewarn "Error templates can be customized through ${HILITE}error_directory${NORMAL} directive." |
240 |
echo |
241 |
ewarn "Squid can be configured to run in transparent mode like this:" |
242 |
ewarn " ${HILITE}http_port internal-addr:3128 transparent${NORMAL}" |
243 |
} |
244 |
|
245 |
|
246 |
|
247 |
-- |
248 |
gentoo-commits@g.o mailing list |