1 |
eras 15/07/07 10:58:39 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: squid-3.5.6.ebuild |
5 |
Log: |
6 |
Version bump |
7 |
|
8 |
(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0x77F1F175586A3B1F) |
9 |
|
10 |
Revision Changes Path |
11 |
1.533 net-proxy/squid/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/squid/ChangeLog?rev=1.533&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/squid/ChangeLog?rev=1.533&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/squid/ChangeLog?r1=1.532&r2=1.533 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v |
20 |
retrieving revision 1.532 |
21 |
retrieving revision 1.533 |
22 |
diff -u -r1.532 -r1.533 |
23 |
--- ChangeLog 3 Jul 2015 10:04:04 -0000 1.532 |
24 |
+++ ChangeLog 7 Jul 2015 10:58:39 -0000 1.533 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for net-proxy/squid |
27 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v 1.532 2015/07/03 10:04:04 ago Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v 1.533 2015/07/07 10:58:39 eras Exp $ |
30 |
+ |
31 |
+*squid-3.5.6 (07 Jul 2015) |
32 |
+ |
33 |
+ 07 Jul 2015; Eray Aslan <eras@g.o> +squid-3.5.6.ebuild: |
34 |
+ Version bump |
35 |
|
36 |
03 Jul 2015; Agostino Sarubbo <ago@g.o> squid-3.5.4.ebuild: |
37 |
Stable for alpha, wrt bug #548228 |
38 |
|
39 |
|
40 |
|
41 |
1.1 net-proxy/squid/squid-3.5.6.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/squid/squid-3.5.6.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/squid/squid-3.5.6.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: squid-3.5.6.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2015 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.5.6.ebuild,v 1.1 2015/07/07 10:58:39 eras Exp $ |
51 |
|
52 |
EAPI=5 |
53 |
inherit autotools eutils linux-info pam toolchain-funcs user versionator |
54 |
|
55 |
DESCRIPTION="A full-featured web proxy cache" |
56 |
HOMEPAGE="http://www.squid-cache.org/" |
57 |
SRC_URI="http://www.squid-cache.org/Versions/v3/3.5/${P}.tar.xz" |
58 |
|
59 |
LICENSE="GPL-2" |
60 |
SLOT="0" |
61 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
62 |
IUSE="caps ipv6 pam ldap samba sasl kerberos nis radius ssl snmp selinux logrotate test \ |
63 |
ecap esi ssl-crtd \ |
64 |
mysql postgres sqlite \ |
65 |
qos tproxy \ |
66 |
+htcp +wccp +wccpv2 \ |
67 |
pf-transparent ipf-transparent kqueue \ |
68 |
elibc_uclibc kernel_linux" |
69 |
|
70 |
COMMON_DEPEND="caps? ( >=sys-libs/libcap-2.16 ) |
71 |
pam? ( virtual/pam ) |
72 |
ldap? ( net-nds/openldap ) |
73 |
kerberos? ( virtual/krb5 ) |
74 |
qos? ( net-libs/libnetfilter_conntrack ) |
75 |
ssl? ( dev-libs/openssl:* dev-libs/nettle >=net-libs/gnutls-3.1.5 ) |
76 |
sasl? ( dev-libs/cyrus-sasl ) |
77 |
ecap? ( net-libs/libecap:1 ) |
78 |
esi? ( dev-libs/expat dev-libs/libxml2 ) |
79 |
!x86-fbsd? ( logrotate? ( app-admin/logrotate ) ) |
80 |
>=sys-libs/db-4:* |
81 |
dev-lang/perl |
82 |
dev-libs/libltdl:0" |
83 |
DEPEND="${COMMON_DEPEND} |
84 |
ecap? ( virtual/pkgconfig ) |
85 |
sys-apps/ed |
86 |
test? ( dev-util/cppunit )" |
87 |
RDEPEND="${COMMON_DEPEND} |
88 |
samba? ( net-fs/samba ) |
89 |
mysql? ( dev-perl/DBD-mysql ) |
90 |
postgres? ( dev-perl/DBD-Pg ) |
91 |
selinux? ( sec-policy/selinux-squid ) |
92 |
sqlite? ( dev-perl/DBD-SQLite ) |
93 |
!<=sci-biology/meme-4.8.1-r1" |
94 |
|
95 |
REQUIRED_USE="tproxy? ( caps ) |
96 |
qos? ( caps )" |
97 |
|
98 |
pkg_pretend() { |
99 |
if use tproxy; then |
100 |
local CONFIG_CHECK="~NF_CONNTRACK ~NETFILTER_XT_MATCH_SOCKET ~NETFILTER_XT_TARGET_TPROXY" |
101 |
linux-info_pkg_setup |
102 |
fi |
103 |
} |
104 |
|
105 |
pkg_setup() { |
106 |
enewgroup squid |
107 |
enewuser squid -1 -1 /var/cache/squid squid |
108 |
} |
109 |
|
110 |
src_prepare() { |
111 |
epatch "${FILESDIR}/${PN}-3.3.4-gentoo.patch" |
112 |
sed -i -e 's:/usr/local/squid/etc:/etc/squid:' \ |
113 |
INSTALL QUICKSTART \ |
114 |
scripts/fileno-to-pathname.pl \ |
115 |
scripts/check_cache.pl \ |
116 |
tools/cachemgr.cgi.8 \ |
117 |
tools/purge/conffile.hh \ |
118 |
tools/purge/README || die |
119 |
sed -i -e 's:/usr/local/squid/sbin:/usr/sbin:' \ |
120 |
INSTALL QUICKSTART || die |
121 |
sed -i -e 's:/usr/local/squid/var/cache:/var/cache/squid:' \ |
122 |
QUICKSTART || die |
123 |
sed -i -e 's:/usr/local/squid/var/logs:/var/log/squid:' \ |
124 |
QUICKSTART \ |
125 |
src/log/access_log.cc || die |
126 |
sed -i -e 's:/usr/local/squid/logs:/var/log/squid:' \ |
127 |
src/log/access_log.cc || die |
128 |
sed -i -e 's:/usr/local/squid/libexec:/usr/libexec/squid:' \ |
129 |
helpers/external_acl/unix_group/ext_unix_group_acl.8 \ |
130 |
helpers/external_acl/session/ext_session_acl.8 \ |
131 |
src/ssl/ssl_crtd.8 || die |
132 |
sed -i -e 's:/usr/local/squid/cache:/var/cache/squid:' \ |
133 |
scripts/check_cache.pl || die |
134 |
sed -i -e 's:/usr/local/squid/ssl_cert:/etc/ssl/squid:' \ |
135 |
src/ssl/ssl_crtd.8 || die |
136 |
sed -i -e 's:/usr/local/squid/var/lib/ssl_db:/var/lib/squid/ssl_db:' \ |
137 |
src/ssl/ssl_crtd.8 || die |
138 |
sed -i -e 's:/var/lib/ssl_db:/var/lib/squid/ssl_db:' \ |
139 |
src/ssl/ssl_crtd.8 || die |
140 |
# /var/run/squid to /run/squid |
141 |
sed -i -e 's:$(localstatedir)::' \ |
142 |
src/ipc/Makefile.am || die |
143 |
sed -i -e 's:_LTDL_SETUP:LTDL_INIT([installable]):' \ |
144 |
libltdl/configure.ac || die |
145 |
|
146 |
epatch_user |
147 |
|
148 |
eautoreconf |
149 |
} |
150 |
|
151 |
src_configure() { |
152 |
local basic_modules="MSNT-multi-domain,NCSA,POP3,getpwnam" |
153 |
use samba && basic_modules+=",SMB" |
154 |
use ldap && basic_modules+=",LDAP" |
155 |
use pam && basic_modules+=",PAM" |
156 |
use sasl && basic_modules+=",SASL" |
157 |
use nis && ! use elibc_uclibc && basic_modules+=",NIS" |
158 |
use radius && basic_modules+=",RADIUS" |
159 |
if use mysql || use postgres || use sqlite ; then |
160 |
basic_modules+=",DB" |
161 |
fi |
162 |
|
163 |
local digest_modules="file" |
164 |
use ldap && digest_modules+=",LDAP,eDirectory" |
165 |
|
166 |
local negotiate_modules="none" |
167 |
local myconf="--without-mit-krb5 --without-heimdal-krb5" |
168 |
if use kerberos ; then |
169 |
negotiate_modules="kerberos,wrapper" |
170 |
if has_version app-crypt/heimdal ; then |
171 |
myconf="--without-mit-krb5 --with-heimdal-krb5" |
172 |
else |
173 |
myconf="--with-mit-krb5 --without-heimdal-krb5" |
174 |
fi |
175 |
fi |
176 |
|
177 |
local ntlm_modules="none" |
178 |
use samba && ntlm_modules="smb_lm" |
179 |
|
180 |
local ext_helpers="file_userip,session,unix_group" |
181 |
use samba && ext_helpers+=",wbinfo_group" |
182 |
use ldap && ext_helpers+=",LDAP_group,eDirectory_userip" |
183 |
use ldap && use kerberos && ext_helpers+=",kerberos_ldap_group" |
184 |
|
185 |
local storeio_modules="aufs,diskd,rock,ufs" |
186 |
|
187 |
local transparent |
188 |
if use kernel_linux ; then |
189 |
transparent+=" --enable-linux-netfilter" |
190 |
use qos && transparent+=" --enable-zph-qos --with-netfilter-conntrack" |
191 |
fi |
192 |
|
193 |
if use kernel_FreeBSD || use kernel_OpenBSD || use kernel_NetBSD ; then |
194 |
transparent+=" $(use_enable kqueue)" |
195 |
if use pf-transparent; then |
196 |
transparent+=" --enable-pf-transparent" |
197 |
elif use ipf-transparent; then |
198 |
transparent+=" --enable-ipf-transparent" |
199 |
fi |
200 |
fi |
201 |
|
202 |
tc-export CC AR |
203 |
|
204 |
econf \ |
205 |
--sysconfdir=/etc/squid \ |
206 |
--libexecdir=/usr/libexec/squid \ |
207 |
--localstatedir=/var \ |
208 |
--with-pidfile=/run/squid.pid \ |
209 |
--datadir=/usr/share/squid \ |
210 |
--with-logdir=/var/log/squid \ |
211 |
--with-default-user=squid \ |
212 |
--enable-removal-policies="lru,heap" \ |
213 |
--enable-storeio="${storeio_modules}" \ |
214 |
--enable-disk-io \ |
215 |
--enable-auth-basic="${basic_modules}" \ |
216 |
--enable-auth-digest="${digest_modules}" \ |
217 |
--enable-auth-ntlm="${ntlm_modules}" \ |
218 |
--enable-auth-negotiate="${negotiate_modules}" \ |
219 |
--enable-external-acl-helpers="${ext_helpers}" \ |
220 |
--enable-log-daemon-helpers \ |
221 |
--enable-url-rewrite-helpers \ |
222 |
--enable-cache-digests \ |
223 |
--enable-delay-pools \ |
224 |
--enable-eui \ |
225 |
--enable-icmp \ |
226 |
--enable-follow-x-forwarded-for \ |
227 |
--with-large-files \ |
228 |
--disable-strict-error-checking \ |
229 |
--disable-arch-native \ |
230 |
$(use_with caps libcap) \ |
231 |
$(use_enable ipv6) \ |
232 |
$(use_enable snmp) \ |
233 |
$(use_with ssl openssl) \ |
234 |
$(use_with ssl nettle) \ |
235 |
$(use_with ssl gnutls) \ |
236 |
$(use_enable ssl-crtd) \ |
237 |
$(use_enable ecap) \ |
238 |
$(use_enable esi) \ |
239 |
$(use_enable htcp) \ |
240 |
$(use_enable wccp) \ |
241 |
$(use_enable wccpv2) \ |
242 |
${transparent} \ |
243 |
${myconf} |
244 |
} |
245 |
|
246 |
src_install() { |
247 |
emake DESTDIR="${D}" install |
248 |
|
249 |
# need suid root for looking into /etc/shadow |
250 |
fowners root:squid /usr/libexec/squid/basic_ncsa_auth |
251 |
fperms 4750 /usr/libexec/squid/basic_ncsa_auth |
252 |
if use pam; then |
253 |
fowners root:squid /usr/libexec/squid/basic_pam_auth |
254 |
fperms 4750 /usr/libexec/squid/basic_pam_auth |
255 |
fi |
256 |
# pinger needs suid as well |
257 |
fowners root:squid /usr/libexec/squid/pinger |
258 |
fperms 4750 /usr/libexec/squid/pinger |
259 |
|
260 |
# cleanup |
261 |
rm -f "${D}"/usr/bin/Run* |
262 |
rm -rf "${D}"/run/squid "${D}"/var/cache/squid |
263 |
|
264 |
dodoc CONTRIBUTORS CREDITS ChangeLog INSTALL QUICKSTART README SPONSORS doc/*.txt |
265 |
newdoc helpers/negotiate_auth/kerberos/README README.kerberos |
266 |
newdoc helpers/basic_auth/RADIUS/README README.RADIUS |
267 |
newdoc helpers/external_acl/kerberos_ldap_group/README README.kerberos_ldap_group |
268 |
newdoc tools/purge/README README.purge |
269 |
newdoc tools/helper-mux.README README.helper-mux |
270 |
dohtml RELEASENOTES.html |
271 |
|
272 |
newpamd "${FILESDIR}/squid.pam" squid |
273 |
newconfd "${FILESDIR}/squid.confd-r1" squid |
274 |
newinitd "${FILESDIR}/squid.initd-r4" squid |
275 |
if use logrotate; then |
276 |
insinto /etc/logrotate.d |
277 |
newins "${FILESDIR}/squid.logrotate" squid |
278 |
else |
279 |
exeinto /etc/cron.weekly |
280 |
newexe "${FILESDIR}/squid.cron" squid.cron |
281 |
fi |
282 |
|
283 |
diropts -m0750 -o squid -g squid |
284 |
keepdir /var/log/squid /etc/ssl/squid /var/lib/squid |
285 |
} |
286 |
|
287 |
pkg_postinst() { |
288 |
if [[ $(get_version_component_range 1 ${REPLACING_VERSIONS}) -lt 3 ]] || \ |
289 |
[[ $(get_version_component_range 2 ${REPLACING_VERSIONS}) -lt 5 ]]; then |
290 |
elog "Please read the release notes at:" |
291 |
elog " http://www.squid-cache.org/Versions/v3/3.5/RELEASENOTES.html" |
292 |
echo |
293 |
fi |
294 |
} |