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