1 |
commit: 60bf3a67391b814d69983aa5b07e4a699d550beb |
2 |
Author: Eray Aslan <eras <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 14 10:35:10 2016 +0000 |
4 |
Commit: Eray Aslan <eras <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 14 10:38:32 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60bf3a67 |
7 |
|
8 |
net-proxy/squid: version bump to 3.5.22 |
9 |
|
10 |
punt REPLACING_VERSIONS while at it (bug 589508) |
11 |
|
12 |
Package-Manager: portage-2.3.2 |
13 |
|
14 |
net-proxy/squid/Manifest | 1 + |
15 |
net-proxy/squid/squid-3.5.22.ebuild | 241 ++++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 242 insertions(+) |
17 |
|
18 |
diff --git a/net-proxy/squid/Manifest b/net-proxy/squid/Manifest |
19 |
index b98dbc4..1c33cf4 100644 |
20 |
--- a/net-proxy/squid/Manifest |
21 |
+++ b/net-proxy/squid/Manifest |
22 |
@@ -1,3 +1,4 @@ |
23 |
DIST squid-3.5.19.tar.xz 2318720 SHA256 c4b8a2efb85acc600e506605f175298ce3324048e60f4708926d354fe4b5c7a0 SHA512 b2e70845d87a3a3d57b8ff08c6fb21137cedc75c8076a8e004a4b4031a7045d13f13de2b2aa98435e39770aefe1db838538ed62fc4169f83797c99fc0883f650 WHIRLPOOL 73ce9e63bbf5d494ff40b2379930e2723f01507782b3c332ea0e2b3d1c813c914fdfea47d22f9b004d0bac5a826928b5e47fa0fdb190c2be5235e1c51c25c575 |
24 |
DIST squid-3.5.20.tar.xz 2319780 SHA256 37db73bd33ddd3503fe375bc3f2b47d9fb7309042e439ad3651f21d5dcf2d395 SHA512 555e456d63bfe506e1cb84cd4857e900648382613181ff7fb70026e37d224b9b125b49e0a2e12cca63377427d33be7e9fbc3755c66a5370eab975e6ab3444bee WHIRLPOOL 37f8805e8601868cc6917e3d755ac6a42781267751379ef4f71bd3586a81292efceadd3c00defe8050c8f2e84b8dd2a81c167b3f0bb57e08517af9668e7f2147 |
25 |
DIST squid-3.5.21.tar.xz 2320896 SHA256 6fb537a1e4d746276e60856acd2398f88aab94ebd476ae2cc2bf16af5c7cc251 SHA512 17c541062c785effe091cedca7c5133f20280bf8a83efe0f04778a85b44d16c695f374cb8721c2fb4a241d4c7065f132e9e6bf7deca858944b22397fbf22b301 WHIRLPOOL 8b3de7de4d869cf6e9470063d2560ff1c96a0944fe996362258235db3314b15065243dc9f226d637545a523a2523a20a02b507bca5e521ca833fc1f5c27c4616 |
26 |
+DIST squid-3.5.22.tar.xz 2324164 SHA256 1ce95b469257abeb2ed8a1c0417812301c1ef5a4cc40ca504167daa470ad9358 SHA512 40925c8b4d7b05a580397b1adf24457b66514eea2e05c0685251370aea3e48e0ac52b36ec9ec5ef5b1564ac46fec89bc8842e24cced413b9f3b24eb7778f6ba5 WHIRLPOOL 041ccfceb4e4111254ffb410008b727a87551827a726865b5860e9f506afcaf4f76331845e2a1b291fef4db6f4f1e042da48be03a18d667a5b917a5b2ccb76a6 |
27 |
|
28 |
diff --git a/net-proxy/squid/squid-3.5.22.ebuild b/net-proxy/squid/squid-3.5.22.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000..d2965c6 |
31 |
--- /dev/null |
32 |
+++ b/net-proxy/squid/squid-3.5.22.ebuild |
33 |
@@ -0,0 +1,241 @@ |
34 |
+# Copyright 1999-2016 Gentoo Foundation |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+# $Id$ |
37 |
+ |
38 |
+EAPI=6 |
39 |
+inherit autotools linux-info pam toolchain-funcs user |
40 |
+ |
41 |
+DESCRIPTION="A full-featured web proxy cache" |
42 |
+HOMEPAGE="http://www.squid-cache.org/" |
43 |
+SRC_URI="http://www.squid-cache.org/Versions/v3/3.5/${P}.tar.xz" |
44 |
+ |
45 |
+LICENSE="GPL-2" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
48 |
+IUSE="caps ipv6 pam ldap libressl samba sasl kerberos nis radius ssl snmp selinux logrotate test \ |
49 |
+ ecap esi ssl-crtd \ |
50 |
+ mysql postgres sqlite \ |
51 |
+ qos tproxy \ |
52 |
+ +htcp +wccp +wccpv2 \ |
53 |
+ pf-transparent ipf-transparent kqueue \ |
54 |
+ elibc_uclibc kernel_linux" |
55 |
+ |
56 |
+COMMON_DEPEND="caps? ( >=sys-libs/libcap-2.16 ) |
57 |
+ pam? ( virtual/pam ) |
58 |
+ ldap? ( net-nds/openldap ) |
59 |
+ kerberos? ( virtual/krb5 ) |
60 |
+ qos? ( net-libs/libnetfilter_conntrack ) |
61 |
+ ssl? ( |
62 |
+ libressl? ( dev-libs/libressl:0 ) |
63 |
+ !libressl? ( dev-libs/openssl:0 ) |
64 |
+ dev-libs/nettle >=net-libs/gnutls-3.1.5 ) |
65 |
+ sasl? ( dev-libs/cyrus-sasl ) |
66 |
+ ecap? ( net-libs/libecap:1 ) |
67 |
+ esi? ( dev-libs/expat dev-libs/libxml2 ) |
68 |
+ !x86-fbsd? ( logrotate? ( app-admin/logrotate ) ) |
69 |
+ >=sys-libs/db-4:* |
70 |
+ dev-lang/perl |
71 |
+ dev-libs/libltdl:0" |
72 |
+DEPEND="${COMMON_DEPEND} |
73 |
+ ecap? ( virtual/pkgconfig ) |
74 |
+ test? ( dev-util/cppunit )" |
75 |
+RDEPEND="${COMMON_DEPEND} |
76 |
+ samba? ( net-fs/samba ) |
77 |
+ mysql? ( dev-perl/DBD-mysql ) |
78 |
+ postgres? ( dev-perl/DBD-Pg ) |
79 |
+ selinux? ( sec-policy/selinux-squid ) |
80 |
+ sqlite? ( dev-perl/DBD-SQLite ) |
81 |
+ !<=sci-biology/meme-4.8.1-r1" |
82 |
+ |
83 |
+REQUIRED_USE="tproxy? ( caps ) |
84 |
+ qos? ( caps )" |
85 |
+ |
86 |
+pkg_pretend() { |
87 |
+ if use tproxy; then |
88 |
+ local CONFIG_CHECK="~NF_CONNTRACK ~NETFILTER_XT_MATCH_SOCKET ~NETFILTER_XT_TARGET_TPROXY" |
89 |
+ linux-info_pkg_setup |
90 |
+ fi |
91 |
+} |
92 |
+ |
93 |
+pkg_setup() { |
94 |
+ enewgroup squid |
95 |
+ enewuser squid -1 -1 /var/cache/squid squid |
96 |
+} |
97 |
+ |
98 |
+src_prepare() { |
99 |
+ eapply "${FILESDIR}/${PN}-3.5.7-gentoo.patch" |
100 |
+ sed -i -e 's:/usr/local/squid/etc:/etc/squid:' \ |
101 |
+ INSTALL QUICKSTART \ |
102 |
+ scripts/fileno-to-pathname.pl \ |
103 |
+ scripts/check_cache.pl \ |
104 |
+ tools/cachemgr.cgi.8 \ |
105 |
+ tools/purge/conffile.hh \ |
106 |
+ tools/purge/README || die |
107 |
+ sed -i -e 's:/usr/local/squid/sbin:/usr/sbin:' \ |
108 |
+ INSTALL QUICKSTART || die |
109 |
+ sed -i -e 's:/usr/local/squid/var/cache:/var/cache/squid:' \ |
110 |
+ QUICKSTART || die |
111 |
+ sed -i -e 's:/usr/local/squid/var/logs:/var/log/squid:' \ |
112 |
+ QUICKSTART \ |
113 |
+ src/log/access_log.cc || die |
114 |
+ sed -i -e 's:/usr/local/squid/logs:/var/log/squid:' \ |
115 |
+ src/log/access_log.cc || die |
116 |
+ sed -i -e 's:/usr/local/squid/libexec:/usr/libexec/squid:' \ |
117 |
+ helpers/external_acl/unix_group/ext_unix_group_acl.8 \ |
118 |
+ helpers/external_acl/session/ext_session_acl.8 \ |
119 |
+ src/ssl/ssl_crtd.8 || die |
120 |
+ sed -i -e 's:/usr/local/squid/cache:/var/cache/squid:' \ |
121 |
+ scripts/check_cache.pl || die |
122 |
+ sed -i -e 's:/usr/local/squid/ssl_cert:/etc/ssl/squid:' \ |
123 |
+ src/ssl/ssl_crtd.8 || die |
124 |
+ sed -i -e 's:/usr/local/squid/var/lib/ssl_db:/var/lib/squid/ssl_db:' \ |
125 |
+ src/ssl/ssl_crtd.8 || die |
126 |
+ sed -i -e 's:/var/lib/ssl_db:/var/lib/squid/ssl_db:' \ |
127 |
+ src/ssl/ssl_crtd.8 || die |
128 |
+ # /var/run/squid to /run/squid |
129 |
+ sed -i -e 's:$(localstatedir)::' \ |
130 |
+ src/ipc/Makefile.am || die |
131 |
+ sed -i -e 's:_LTDL_SETUP:LTDL_INIT([installable]):' \ |
132 |
+ libltdl/configure.ac || die |
133 |
+ |
134 |
+ eapply_user |
135 |
+ eautoreconf |
136 |
+} |
137 |
+ |
138 |
+src_configure() { |
139 |
+ local basic_modules="MSNT-multi-domain,NCSA,POP3,getpwnam" |
140 |
+ use samba && basic_modules+=",SMB" |
141 |
+ use ldap && basic_modules+=",LDAP" |
142 |
+ use pam && basic_modules+=",PAM" |
143 |
+ use sasl && basic_modules+=",SASL" |
144 |
+ use nis && ! use elibc_uclibc && basic_modules+=",NIS" |
145 |
+ use radius && basic_modules+=",RADIUS" |
146 |
+ if use mysql || use postgres || use sqlite ; then |
147 |
+ basic_modules+=",DB" |
148 |
+ fi |
149 |
+ |
150 |
+ local digest_modules="file" |
151 |
+ use ldap && digest_modules+=",LDAP,eDirectory" |
152 |
+ |
153 |
+ local negotiate_modules="none" |
154 |
+ local myconf="--without-mit-krb5 --without-heimdal-krb5" |
155 |
+ if use kerberos ; then |
156 |
+ negotiate_modules="kerberos,wrapper" |
157 |
+ if has_version app-crypt/heimdal ; then |
158 |
+ myconf="--without-mit-krb5 --with-heimdal-krb5" |
159 |
+ else |
160 |
+ myconf="--with-mit-krb5 --without-heimdal-krb5" |
161 |
+ fi |
162 |
+ fi |
163 |
+ |
164 |
+ local ntlm_modules="none" |
165 |
+ use samba && ntlm_modules="smb_lm" |
166 |
+ |
167 |
+ local ext_helpers="file_userip,session,unix_group" |
168 |
+ use samba && ext_helpers+=",wbinfo_group" |
169 |
+ use ldap && ext_helpers+=",LDAP_group,eDirectory_userip" |
170 |
+ use ldap && use kerberos && ext_helpers+=",kerberos_ldap_group" |
171 |
+ |
172 |
+ local storeio_modules="aufs,diskd,rock,ufs" |
173 |
+ |
174 |
+ local transparent |
175 |
+ if use kernel_linux ; then |
176 |
+ transparent+=" --enable-linux-netfilter" |
177 |
+ use qos && transparent+=" --enable-zph-qos --with-netfilter-conntrack" |
178 |
+ fi |
179 |
+ |
180 |
+ if use kernel_FreeBSD || use kernel_OpenBSD || use kernel_NetBSD ; then |
181 |
+ transparent+=" $(use_enable kqueue)" |
182 |
+ if use pf-transparent; then |
183 |
+ transparent+=" --enable-pf-transparent" |
184 |
+ elif use ipf-transparent; then |
185 |
+ transparent+=" --enable-ipf-transparent" |
186 |
+ fi |
187 |
+ fi |
188 |
+ |
189 |
+ tc-export CC AR |
190 |
+ |
191 |
+ econf \ |
192 |
+ --sysconfdir=/etc/squid \ |
193 |
+ --libexecdir=/usr/libexec/squid \ |
194 |
+ --localstatedir=/var \ |
195 |
+ --with-pidfile=/run/squid.pid \ |
196 |
+ --datadir=/usr/share/squid \ |
197 |
+ --with-logdir=/var/log/squid \ |
198 |
+ --with-default-user=squid \ |
199 |
+ --enable-removal-policies="lru,heap" \ |
200 |
+ --enable-storeio="${storeio_modules}" \ |
201 |
+ --enable-disk-io \ |
202 |
+ --enable-auth-basic="${basic_modules}" \ |
203 |
+ --enable-auth-digest="${digest_modules}" \ |
204 |
+ --enable-auth-ntlm="${ntlm_modules}" \ |
205 |
+ --enable-auth-negotiate="${negotiate_modules}" \ |
206 |
+ --enable-external-acl-helpers="${ext_helpers}" \ |
207 |
+ --enable-log-daemon-helpers \ |
208 |
+ --enable-url-rewrite-helpers \ |
209 |
+ --enable-cache-digests \ |
210 |
+ --enable-delay-pools \ |
211 |
+ --enable-eui \ |
212 |
+ --enable-icmp \ |
213 |
+ --enable-follow-x-forwarded-for \ |
214 |
+ --with-large-files \ |
215 |
+ --disable-strict-error-checking \ |
216 |
+ --disable-arch-native \ |
217 |
+ --with-ltdl-includedir=/usr/include \ |
218 |
+ --with-ltdl-libdir=/usr/$(get_libdir) \ |
219 |
+ $(use_with caps libcap) \ |
220 |
+ $(use_enable ipv6) \ |
221 |
+ $(use_enable snmp) \ |
222 |
+ $(use_with ssl openssl) \ |
223 |
+ $(use_with ssl nettle) \ |
224 |
+ $(use_with ssl gnutls) \ |
225 |
+ $(use_enable ssl-crtd) \ |
226 |
+ $(use_enable ecap) \ |
227 |
+ $(use_enable esi) \ |
228 |
+ $(use_enable htcp) \ |
229 |
+ $(use_enable wccp) \ |
230 |
+ $(use_enable wccpv2) \ |
231 |
+ ${transparent} \ |
232 |
+ ${myconf} |
233 |
+} |
234 |
+ |
235 |
+src_install() { |
236 |
+ emake DESTDIR="${D}" install |
237 |
+ |
238 |
+ # need suid root for looking into /etc/shadow |
239 |
+ fowners root:squid /usr/libexec/squid/basic_ncsa_auth |
240 |
+ fperms 4750 /usr/libexec/squid/basic_ncsa_auth |
241 |
+ if use pam; then |
242 |
+ fowners root:squid /usr/libexec/squid/basic_pam_auth |
243 |
+ fperms 4750 /usr/libexec/squid/basic_pam_auth |
244 |
+ fi |
245 |
+ # pinger needs suid as well |
246 |
+ fowners root:squid /usr/libexec/squid/pinger |
247 |
+ fperms 4750 /usr/libexec/squid/pinger |
248 |
+ |
249 |
+ # cleanup |
250 |
+ rm -f "${D}"/usr/bin/Run* |
251 |
+ rm -rf "${D}"/run/squid "${D}"/var/cache/squid |
252 |
+ |
253 |
+ dodoc CONTRIBUTORS CREDITS ChangeLog INSTALL QUICKSTART README SPONSORS doc/*.txt |
254 |
+ newdoc helpers/negotiate_auth/kerberos/README README.kerberos |
255 |
+ newdoc helpers/basic_auth/RADIUS/README README.RADIUS |
256 |
+ newdoc helpers/external_acl/kerberos_ldap_group/README README.kerberos_ldap_group |
257 |
+ newdoc tools/purge/README README.purge |
258 |
+ newdoc tools/helper-mux.README README.helper-mux |
259 |
+ dodoc RELEASENOTES.html |
260 |
+ |
261 |
+ newpamd "${FILESDIR}/squid.pam" squid |
262 |
+ newconfd "${FILESDIR}/squid.confd-r1" squid |
263 |
+ newinitd "${FILESDIR}/squid.initd-r4" squid |
264 |
+ if use logrotate; then |
265 |
+ insinto /etc/logrotate.d |
266 |
+ newins "${FILESDIR}/squid.logrotate" squid |
267 |
+ else |
268 |
+ exeinto /etc/cron.weekly |
269 |
+ newexe "${FILESDIR}/squid.cron" squid.cron |
270 |
+ fi |
271 |
+ |
272 |
+ diropts -m0750 -o squid -g squid |
273 |
+ keepdir /var/log/squid /etc/ssl/squid /var/lib/squid |
274 |
+} |