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