1 |
mrness 07/10/15 10:48:36 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: squid-3.0_rc1.ebuild |
5 |
Log: |
6 |
Version bump (#195617) |
7 |
(Portage version: 2.1.2.12) |
8 |
|
9 |
Revision Changes Path |
10 |
1.155 net-proxy/squid/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/ChangeLog?rev=1.155&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/ChangeLog?rev=1.155&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/ChangeLog?r1=1.154&r2=1.155 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v |
19 |
retrieving revision 1.154 |
20 |
retrieving revision 1.155 |
21 |
diff -u -r1.154 -r1.155 |
22 |
--- ChangeLog 23 Sep 2007 09:23:40 -0000 1.154 |
23 |
+++ ChangeLog 15 Oct 2007 10:48:36 -0000 1.155 |
24 |
@@ -1,6 +1,12 @@ |
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.154 2007/09/23 09:23:40 mrness Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v 1.155 2007/10/15 10:48:36 mrness Exp $ |
29 |
+ |
30 |
+*squid-3.0_rc1 (15 Oct 2007) |
31 |
+ |
32 |
+ 15 Oct 2007; Alin Năstac <mrness@g.o> |
33 |
+ +files/squid-3.0_rc1-gentoo.patch, +squid-3.0_rc1.ebuild: |
34 |
+ Version bump (#195617). |
35 |
|
36 |
23 Sep 2007; Alin Năstac <mrness@g.o> |
37 |
-files/squid-2.6.12-ToS_Hit_ToS_Preserve.patch, |
38 |
|
39 |
|
40 |
|
41 |
1.1 net-proxy/squid/squid-3.0_rc1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/squid-3.0_rc1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/squid-3.0_rc1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: squid-3.0_rc1.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2007 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.0_rc1.ebuild,v 1.1 2007/10/15 10:48:36 mrness Exp $ |
51 |
|
52 |
WANT_AUTOCONF="latest" |
53 |
WANT_AUTOMAKE="latest" |
54 |
|
55 |
inherit eutils pam toolchain-funcs flag-o-matic autotools linux-info |
56 |
|
57 |
#lame archive versioning scheme.. |
58 |
S_PMV="${PV%%.*}" |
59 |
S_PV="${PV%_*}" |
60 |
S_PL="${PV#*_rc}" |
61 |
S_PP="${PN}-${S_PV}.RC${S_PL}" |
62 |
|
63 |
RESTRICT="test" # check if test works in next bump |
64 |
|
65 |
DESCRIPTION="A full-featured web proxy cache" |
66 |
HOMEPAGE="http://www.squid-cache.org/" |
67 |
SRC_URI="http://www.squid-cache.org/Versions/v${S_PMV}/${S_PV}/${S_PP}.tar.gz" |
68 |
|
69 |
LICENSE="GPL-2" |
70 |
SLOT="0" |
71 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
72 |
IUSE="pam ldap samba sasl nis radius ssl snmp selinux logrotate \ |
73 |
pf-transparent ipf-transparent \ |
74 |
elibc_uclibc kernel_linux" |
75 |
|
76 |
DEPEND="pam? ( virtual/pam ) |
77 |
ldap? ( >=net-nds/openldap-2.3.35 ) |
78 |
ssl? ( >=dev-libs/openssl-0.9.8d ) |
79 |
sasl? ( >=dev-libs/cyrus-sasl-2.1.22 ) |
80 |
selinux? ( sec-policy/selinux-squid ) |
81 |
!x86-fbsd? ( logrotate? ( app-admin/logrotate ) ) |
82 |
>=sys-libs/db-4 |
83 |
dev-lang/perl" |
84 |
RDEPEND="${DEPEND} |
85 |
samba? ( net-fs/samba )" |
86 |
|
87 |
S="${WORKDIR}/${S_PP}" |
88 |
|
89 |
pkg_setup() { |
90 |
if hasq qos ${USE} || hasq zero-penalty-hit ${USE} ; then |
91 |
eerror "qos and zero-penalty-hit useflags are not supported by squid-3." |
92 |
eerror "Please remove them from your USE or use =net-proxy/squid-2.6* instead." |
93 |
die "unsupported USE flags detected" |
94 |
fi |
95 |
enewgroup squid 31 |
96 |
enewuser squid 31 -1 /var/cache/squid squid |
97 |
} |
98 |
|
99 |
src_unpack() { |
100 |
unpack ${A} || die "unpack failed" |
101 |
cd "${S}" || die "dir ${S} not found" |
102 |
|
103 |
epatch "${FILESDIR}"/${P}-gentoo.patch |
104 |
|
105 |
sed -i -e 's%LDFLAGS="-g"%LDFLAGS=""%' configure.in |
106 |
|
107 |
eautoreconf |
108 |
} |
109 |
|
110 |
src_compile() { |
111 |
local basic_modules="getpwnam,NCSA,MSNT" |
112 |
use samba && basic_modules="SMB,multi-domain-NTLM,${basic_modules}" |
113 |
use ldap && basic_modules="LDAP,${basic_modules}" |
114 |
use pam && basic_modules="PAM,${basic_modules}" |
115 |
use sasl && basic_modules="SASL,${basic_modules}" |
116 |
use nis && ! use elibc_uclibc && basic_modules="YP,${basic_modules}" |
117 |
use radius && basic_modules="squid_radius_auth,${basic_modules}" |
118 |
|
119 |
local ext_helpers="ip_user,session,unix_group" |
120 |
use samba && ext_helpers="wbinfo_group,${ext_helpers}" |
121 |
use ldap && ext_helpers="ldap_group,${ext_helpers}" |
122 |
|
123 |
local ntlm_helpers="fakeauth" |
124 |
use samba && ntlm_helpers="SMB,${ntlm_helpers}" |
125 |
|
126 |
local myconf="" |
127 |
|
128 |
# Support for uclibc #61175 |
129 |
if use elibc_uclibc; then |
130 |
myconf="${myconf} --enable-storeio=ufs,diskd,aufs,null" |
131 |
else |
132 |
myconf="${myconf} --enable-storeio=ufs,diskd,coss,aufs,null" |
133 |
fi |
134 |
|
135 |
if use kernel_linux; then |
136 |
myconf="${myconf} --enable-linux-netfilter" |
137 |
elif use kernel_FreeBSD || use kernel_OpenBSD || use kernel_NetBSD ; then |
138 |
myconf="${myconf} --enable-kqueue" |
139 |
if use pf-transparent; then |
140 |
myconf="${myconf} --enable-pf-transparent" |
141 |
elif use ipf-transparent; then |
142 |
myconf="${myconf} --enable-ipf-transparent" |
143 |
fi |
144 |
fi |
145 |
|
146 |
export CC=$(tc-getCC) |
147 |
|
148 |
econf \ |
149 |
--sysconfdir=/etc/squid \ |
150 |
--libexecdir=/usr/libexec/squid \ |
151 |
--localstatedir=/var \ |
152 |
--datadir=/usr/share/squid \ |
153 |
--with-default-user=squid \ |
154 |
--enable-auth="basic,digest,negotiate,ntlm" \ |
155 |
--enable-removal-policies="lru,heap" \ |
156 |
--enable-digest-auth-helpers="password" \ |
157 |
--enable-basic-auth-helpers="${basic_modules}" \ |
158 |
--enable-external-acl-helpers="${ext_helpers}" \ |
159 |
--enable-ntlm-auth-helpers="${ntlm_helpers}" \ |
160 |
--enable-useragent-log \ |
161 |
--enable-cache-digests \ |
162 |
--enable-delay-pools \ |
163 |
--enable-referer-log \ |
164 |
--enable-arp-acl \ |
165 |
--with-large-files \ |
166 |
$(use_enable snmp) \ |
167 |
$(use_enable ssl) \ |
168 |
${myconf} || die "econf failed" |
169 |
|
170 |
sed -i -e "s:^#define SQUID_MAXFD.*:#define SQUID_MAXFD 8192:" \ |
171 |
include/autoconf.h |
172 |
|
173 |
emake || die "emake failed" |
174 |
} |
175 |
|
176 |
src_install() { |
177 |
make DESTDIR="${D}" install || die "make install failed" |
178 |
|
179 |
# need suid root for looking into /etc/shadow |
180 |
fowners root:squid /usr/libexec/squid/ncsa_auth |
181 |
fowners root:squid /usr/libexec/squid/pam_auth |
182 |
fperms 4750 /usr/libexec/squid/ncsa_auth |
183 |
fperms 4750 /usr/libexec/squid/pam_auth |
184 |
|
185 |
# some cleanups |
186 |
rm -f "${D}"/usr/bin/Run* |
187 |
|
188 |
dodoc CONTRIBUTORS CREDITS ChangeLog QUICKSTART SPONSORS doc/*.txt \ |
189 |
helpers/ntlm_auth/no_check/README.no_check_ntlm_auth |
190 |
newdoc helpers/basic_auth/SMB/README README.auth_smb |
191 |
dohtml helpers/basic_auth/MSNT/README.html RELEASENOTES.html |
192 |
newdoc helpers/basic_auth/LDAP/README README.auth_ldap |
193 |
doman helpers/basic_auth/LDAP/*.8 |
194 |
dodoc helpers/basic_auth/SASL/squid_sasl_auth* |
195 |
|
196 |
newpamd "${FILESDIR}/squid.pam" squid |
197 |
newconfd "${FILESDIR}/squid.confd" squid |
198 |
if use logrotate; then |
199 |
newinitd "${FILESDIR}/squid.initd-logrotate" squid |
200 |
insinto /etc/logrotate.d |
201 |
newins "${FILESDIR}/squid.logrotate" squid |
202 |
else |
203 |
newinitd "${FILESDIR}/squid.initd" squid |
204 |
exeinto /etc/cron.weekly |
205 |
newexe "${FILESDIR}/squid.cron" squid.cron |
206 |
fi |
207 |
|
208 |
rm -rf "${D}"/var |
209 |
diropts -m0755 -o squid -g squid |
210 |
keepdir /var/cache/squid /var/log/squid |
211 |
} |
212 |
|
213 |
pkg_preinst() { |
214 |
enewgroup squid 31 |
215 |
enewuser squid 31 -1 /var/cache/squid 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 |
-- |
235 |
gentoo-commits@g.o mailing list |