1 |
mrness 08/10/19 10:00:35 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: squid-2.7.5.ebuild |
5 |
Removed: squid-2.7.4-r1.ebuild |
6 |
Log: |
7 |
Version bump (#242646). |
8 |
(Portage version: 2.1.4.4) |
9 |
|
10 |
Revision Changes Path |
11 |
1.208 net-proxy/squid/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/ChangeLog?rev=1.208&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/ChangeLog?rev=1.208&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/ChangeLog?r1=1.207&r2=1.208 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v |
20 |
retrieving revision 1.207 |
21 |
retrieving revision 1.208 |
22 |
diff -u -r1.207 -r1.208 |
23 |
--- ChangeLog 18 Oct 2008 17:01:12 -0000 1.207 |
24 |
+++ ChangeLog 19 Oct 2008 10:00:35 -0000 1.208 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for net-proxy/squid |
27 |
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v 1.207 2008/10/18 17:01:12 nixnut Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v 1.208 2008/10/19 10:00:35 mrness Exp $ |
30 |
+ |
31 |
+*squid-2.7.5 (19 Oct 2008) |
32 |
+ |
33 |
+ 19 Oct 2008; Alin Năstac <mrness@g.o> |
34 |
+ +files/squid-2.7.5-gentoo.patch, +files/squid-2.7.5-heimdal.patch, |
35 |
+ -squid-2.7.4-r1.ebuild, +squid-2.7.5.ebuild: |
36 |
+ Version bump (#242646). |
37 |
|
38 |
18 Oct 2008; nixnut <nixnut@g.o> squid-2.7.4-r2.ebuild: |
39 |
Stable on ppc wrt bug 242386 |
40 |
|
41 |
|
42 |
|
43 |
1.1 net-proxy/squid/squid-2.7.5.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/squid-2.7.5.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/squid-2.7.5.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: squid-2.7.5.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.7.5.ebuild,v 1.1 2008/10/19 10:00:35 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 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
73 |
IUSE="pam ldap samba sasl kerberos nis ssl snmp selinux logrotate \ |
74 |
mysql postgres sqlite \ |
75 |
qos zero-penalty-hit \ |
76 |
pf-transparent ipf-transparent \ |
77 |
elibc_uclibc kernel_linux" |
78 |
|
79 |
DEPEND="pam? ( virtual/pam ) |
80 |
ldap? ( net-nds/openldap ) |
81 |
kerberos? ( || ( app-crypt/mit-krb5 app-crypt/heimdal ) ) |
82 |
ssl? ( dev-libs/openssl ) |
83 |
sasl? ( dev-libs/cyrus-sasl ) |
84 |
selinux? ( sec-policy/selinux-squid ) |
85 |
!x86-fbsd? ( logrotate? ( app-admin/logrotate ) ) |
86 |
>=sys-libs/db-4 |
87 |
dev-lang/perl" |
88 |
RDEPEND="${DEPEND} |
89 |
samba? ( net-fs/samba ) |
90 |
mysql? ( dev-perl/DBD-mysql ) |
91 |
postgres? ( dev-perl/DBD-Pg ) |
92 |
sqlite? ( dev-perl/DBD-SQLite )" |
93 |
|
94 |
S="${WORKDIR}/${S_PP}" |
95 |
|
96 |
pkg_setup() { |
97 |
if use qos; then |
98 |
eerror "qos patch is no longer supported!" |
99 |
eerror "Please remove qos USE flag and use zph* config options instead." |
100 |
die "unsupported USE flags detected" |
101 |
fi |
102 |
if use zero-penalty-hit; then |
103 |
ewarn "This version supports natively IP TOS/Priority mangling," |
104 |
ewarn "but it does not support zph_preserve_miss_tos." |
105 |
ewarn "If you need that, please use squid-3.0.6-r2 or higher." |
106 |
fi |
107 |
enewgroup squid 31 |
108 |
enewuser squid 31 -1 /var/cache/squid squid |
109 |
} |
110 |
|
111 |
src_unpack() { |
112 |
unpack ${A} || die "unpack failed" |
113 |
|
114 |
cd "${S}" || die "source dir not found" |
115 |
epatch "${FILESDIR}"/${P}-gentoo.patch |
116 |
has_version app-crypt/mit-krb5 || epatch "${FILESDIR}"/${P}-heimdal.patch |
117 |
eautoreconf |
118 |
} |
119 |
|
120 |
src_compile() { |
121 |
local basic_modules="getpwnam,NCSA,MSNT" |
122 |
use samba && basic_modules="SMB,multi-domain-NTLM,${basic_modules}" |
123 |
use ldap && basic_modules="LDAP,${basic_modules}" |
124 |
use pam && basic_modules="PAM,${basic_modules}" |
125 |
use sasl && basic_modules="SASL,${basic_modules}" |
126 |
use nis && ! use elibc_uclibc && basic_modules="YP,${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,${ntlm_helpers}" |
137 |
|
138 |
local negotiate_helpers= |
139 |
use kerberos && local negotiate_helpers="squid_kerb_auth" |
140 |
|
141 |
local myconf="" |
142 |
|
143 |
# Support for uclibc #61175 |
144 |
if use elibc_uclibc; then |
145 |
myconf="${myconf} --enable-storeio=ufs,diskd,aufs,null" |
146 |
myconf="${myconf} --disable-async-io" |
147 |
else |
148 |
myconf="${myconf} --enable-storeio=ufs,diskd,coss,aufs,null" |
149 |
myconf="${myconf} --enable-async-io" |
150 |
fi |
151 |
|
152 |
if use kernel_linux; then |
153 |
myconf="${myconf} --enable-linux-netfilter" |
154 |
if kernel_is ge 2 6 && linux_chkconfig_present EPOLL ; then |
155 |
myconf="${myconf} --enable-epoll" |
156 |
fi |
157 |
elif use kernel_FreeBSD || use kernel_OpenBSD || use kernel_NetBSD ; then |
158 |
myconf="${myconf} --enable-kqueue" |
159 |
if use pf-transparent; then |
160 |
myconf="${myconf} --enable-pf-transparent" |
161 |
elif use ipf-transparent; then |
162 |
myconf="${myconf} --enable-ipf-transparent" |
163 |
fi |
164 |
fi |
165 |
|
166 |
export CC=$(tc-getCC) |
167 |
|
168 |
econf \ |
169 |
--sysconfdir=/etc/squid \ |
170 |
--libexecdir=/usr/libexec/squid \ |
171 |
--localstatedir=/var \ |
172 |
--datadir=/usr/share/squid \ |
173 |
--enable-auth="basic,digest,ntlm" \ |
174 |
--enable-removal-policies="lru,heap" \ |
175 |
--enable-digest-auth-helpers="password" \ |
176 |
--enable-basic-auth-helpers="${basic_modules}" \ |
177 |
--enable-external-acl-helpers="${ext_helpers}" \ |
178 |
--enable-ntlm-auth-helpers="${ntlm_helpers}" \ |
179 |
--enable-negotiate-auth-helpers="${negotiate_helpers}" \ |
180 |
--enable-ident-lookups \ |
181 |
--enable-useragent-log \ |
182 |
--enable-cache-digests \ |
183 |
--enable-delay-pools \ |
184 |
--enable-referer-log \ |
185 |
--enable-arp-acl \ |
186 |
--with-pthreads \ |
187 |
--with-large-files \ |
188 |
--enable-htcp \ |
189 |
--enable-carp \ |
190 |
--enable-follow-x-forwarded-for \ |
191 |
--with-maxfd=8192 \ |
192 |
$(use_enable snmp) \ |
193 |
$(use_enable ssl) \ |
194 |
${myconf} || die "econf failed" |
195 |
|
196 |
emake || die "emake failed" |
197 |
} |
198 |
|
199 |
src_install() { |
200 |
make DESTDIR="${D}" install || die "make install failed" |
201 |
|
202 |
# need suid root for looking into /etc/shadow |
203 |
fowners root:squid /usr/libexec/squid/ncsa_auth |
204 |
fowners root:squid /usr/libexec/squid/pam_auth |
205 |
fperms 4750 /usr/libexec/squid/ncsa_auth |
206 |
fperms 4750 /usr/libexec/squid/pam_auth |
207 |
|
208 |
# some cleanups |
209 |
rm -f "${D}"/usr/bin/Run* |
210 |
|
211 |
dodoc CONTRIBUTORS CREDITS ChangeLog QUICKSTART SPONSORS doc/*.txt \ |
212 |
helpers/ntlm_auth/no_check/README.no_check_ntlm_auth |
213 |
newdoc helpers/basic_auth/SMB/README README.auth_smb |
214 |
dohtml helpers/basic_auth/MSNT/README.html RELEASENOTES.html |
215 |
newdoc helpers/basic_auth/LDAP/README README.auth_ldap |
216 |
doman helpers/basic_auth/LDAP/*.8 |
217 |
dodoc helpers/basic_auth/SASL/squid_sasl_auth* |
218 |
|
219 |
newpamd "${FILESDIR}/squid.pam" squid |
220 |
newconfd "${FILESDIR}/squid.confd" squid |
221 |
if use logrotate; then |
222 |
newinitd "${FILESDIR}/squid.initd-logrotate" squid |
223 |
insinto /etc/logrotate.d |
224 |
newins "${FILESDIR}/squid.logrotate" squid |
225 |
else |
226 |
newinitd "${FILESDIR}/squid.initd" squid |
227 |
exeinto /etc/cron.weekly |
228 |
newexe "${FILESDIR}/squid.cron" squid.cron |
229 |
fi |
230 |
|
231 |
rm -rf "${D}"/var |
232 |
diropts -m0755 -o squid -g squid |
233 |
keepdir /var/cache/squid /var/log/squid |
234 |
} |
235 |
|
236 |
pkg_postinst() { |
237 |
echo |
238 |
ewarn "Squid authentication helpers have been installed suid root." |
239 |
ewarn "This allows shadow based authentication (see bug #52977 for more)." |
240 |
echo |
241 |
ewarn "Be careful what type of cache_dir you select!" |
242 |
ewarn " 'diskd' is optimized for high levels of traffic, but it might seem slow" |
243 |
ewarn "when there isn't sufficient traffic to keep squid reasonably busy." |
244 |
ewarn " If your traffic level is low to moderate, use 'aufs' or 'ufs'." |
245 |
echo |
246 |
ewarn "Squid can be configured to run in transparent mode like this:" |
247 |
ewarn " ${HILITE}http_port internal-addr:3128 transparent${NORMAL}" |
248 |
} |