1 |
commit: 828055f6f393e89f3f9a0c65d07e5d3f562e56aa |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 2 22:04:17 2015 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 2 22:04:39 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=828055f6 |
7 |
|
8 |
net-misc/curl: remove vulnerable versions, bug #552618. |
9 |
|
10 |
Package-Manager: portage-2.2.20.1 |
11 |
|
12 |
net-misc/curl/Manifest | 1 - |
13 |
net-misc/curl/curl-7.42.1-r1.ebuild | 243 ------------------------------------ |
14 |
net-misc/curl/curl-7.42.1.ebuild | 243 ------------------------------------ |
15 |
3 files changed, 487 deletions(-) |
16 |
|
17 |
diff --git a/net-misc/curl/Manifest b/net-misc/curl/Manifest |
18 |
index 4409f48..d1476ae 100644 |
19 |
--- a/net-misc/curl/Manifest |
20 |
+++ b/net-misc/curl/Manifest |
21 |
@@ -1,4 +1,3 @@ |
22 |
-DIST curl-7.42.1.tar.bz2 3327304 SHA256 e2905973391ec2dfd7743a8034ad10eeb58dab8b3a297e7892a41a7999cac887 SHA512 846c2d2bc73d39240686bf54e4c02553a1ca1640123fef30538cfc8a6317650f4cb9f1cc882016b7826ef9c84cb92adbfa24e55d59d2e7203bdcb12835fb474f WHIRLPOOL ff826e11812334ebca650c54788bf1b81b2927f7b9607b10e79cc70f6d1f9b893aebc816914158243510ffaead3b15a21ce10e7180eeb175b0b503e9ac8b0c6e |
23 |
DIST curl-7.43.0.tar.bz2 3363770 SHA256 baa654a1122530483ccc1c58cc112fec3724a82c11c6a389f1e6a37dc8858df9 SHA512 0b06ec078680619f56a458ac115142546134917331b71b73ed2c0371c480034dac7ed848814be0dd1e752154c53e48b9e0276b83f75a690df6cfb480ab331272 WHIRLPOOL e5c97b3cbf0f9915f62a100ce2972e6cffcabae753770c2f0a1fc3bcef3a66c0a2d4d7e361b00f442d62eca3b0d9526eb34f6b043fb655648180e81ef630a527 |
24 |
DIST curl-7.44.0.tar.bz2 3398814 SHA256 1e2541bae6582bb697c0fbae49e1d3e6fad5d05d5aa80dbd6f072e0a44341814 SHA512 250a0aa6ba9917cd7666ff180efb02d994d1040759b94370b8c3bb215467d632b867f111b555228ab7f9a7ecd1e5d205204b29cbc003797dd315f628376a376d WHIRLPOOL 6725c44667016365f6c83a75cae1fc1f4d310256194a7f6b2738f642250b5229a565047c9f4882f07dd2daf0a4b5149e22ce91d62c26a52d73c087e50c64f6cd |
25 |
DIST curl-7.45.0.tar.bz2 3473632 SHA256 65154e66b9f8a442b57c436904639507b4ac37ec13d6f8a48248f1b4012b98ea SHA512 71c557c69eb8d160f74a9b76ef83a46ce33ef4e8a66a261699329583dadf10205b4ba4783f92d4e6c8724f6610ffade5b0a9f189b0a7b9169ff839dfc8980481 WHIRLPOOL afc1627cebb64c9111f943fe63d95c8a998934fd02e3b8d12f061d23b174b7475c48451ecc1713ce54771455a6465238aa3b818b0eb9ba5c86ffd06eb1f2bc76 |
26 |
|
27 |
diff --git a/net-misc/curl/curl-7.42.1-r1.ebuild b/net-misc/curl/curl-7.42.1-r1.ebuild |
28 |
deleted file mode 100644 |
29 |
index 91232b6..0000000 |
30 |
--- a/net-misc/curl/curl-7.42.1-r1.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,243 +0,0 @@ |
33 |
-# Copyright 1999-2015 Gentoo Foundation |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
-# $Id$ |
36 |
- |
37 |
-EAPI="5" |
38 |
- |
39 |
-inherit autotools eutils prefix multilib-minimal |
40 |
- |
41 |
-DESCRIPTION="A Client that groks URLs" |
42 |
-HOMEPAGE="http://curl.haxx.se/" |
43 |
-SRC_URI="http://curl.haxx.se/download/${P}.tar.bz2" |
44 |
- |
45 |
-LICENSE="MIT" |
46 |
-SLOT="0" |
47 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
48 |
-IUSE="adns idn ipv6 kerberos ldap metalink rtmp samba ssh ssl static-libs test threads" |
49 |
-IUSE+=" curl_ssl_axtls curl_ssl_gnutls curl_ssl_nss +curl_ssl_openssl curl_ssl_polarssl curl_ssl_winssl" |
50 |
-IUSE+=" elibc_Winnt" |
51 |
- |
52 |
-#lead to lots of false negatives, bug #285669 |
53 |
-RESTRICT="test" |
54 |
- |
55 |
-RDEPEND="ldap? ( >=net-nds/openldap-2.4.38-r1[${MULTILIB_USEDEP}] ) |
56 |
- ssl? ( |
57 |
- curl_ssl_axtls? ( |
58 |
- >=net-libs/axtls-1.4.9-r1[${MULTILIB_USEDEP}] |
59 |
- app-misc/ca-certificates |
60 |
- ) |
61 |
- curl_ssl_gnutls? ( |
62 |
- || ( |
63 |
- ( |
64 |
- >=net-libs/gnutls-3.2.15[static-libs?,${MULTILIB_USEDEP}] |
65 |
- >=dev-libs/nettle-2.6[${MULTILIB_USEDEP}] |
66 |
- ) |
67 |
- ( |
68 |
- =net-libs/gnutls-2.12*[nettle,static-libs?,${MULTILIB_USEDEP}] |
69 |
- >=dev-libs/nettle-2.6[${MULTILIB_USEDEP}] |
70 |
- ) |
71 |
- ( |
72 |
- =net-libs/gnutls-2.12*[-nettle,static-libs?,${MULTILIB_USEDEP}] |
73 |
- >=dev-libs/libgcrypt-1.5.3[static-libs?,${MULTILIB_USEDEP}] |
74 |
- ) |
75 |
- ) |
76 |
- app-misc/ca-certificates |
77 |
- ) |
78 |
- curl_ssl_openssl? ( |
79 |
- >=dev-libs/openssl-1.0.1h-r2[static-libs?,${MULTILIB_USEDEP}] |
80 |
- ) |
81 |
- curl_ssl_nss? ( |
82 |
- >=dev-libs/nss-3.15.4[${MULTILIB_USEDEP}] |
83 |
- app-misc/ca-certificates |
84 |
- ) |
85 |
- curl_ssl_polarssl? ( |
86 |
- >=net-libs/polarssl-1.3.4:=[${MULTILIB_USEDEP}] |
87 |
- app-misc/ca-certificates |
88 |
- ) |
89 |
- ) |
90 |
- idn? ( >=net-dns/libidn-1.28[static-libs?,${MULTILIB_USEDEP}] ) |
91 |
- adns? ( >=net-dns/c-ares-1.10.0-r1[${MULTILIB_USEDEP}] ) |
92 |
- kerberos? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] ) |
93 |
- metalink? ( >=media-libs/libmetalink-0.1.1[${MULTILIB_USEDEP}] ) |
94 |
- rtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] ) |
95 |
- ssh? ( >=net-libs/libssh2-1.4.3[static-libs?,${MULTILIB_USEDEP}] ) |
96 |
- >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] |
97 |
- abi_x86_32? ( |
98 |
- !<=app-emulation/emul-linux-x86-baselibs-20140508-r13 |
99 |
- !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] |
100 |
- )" |
101 |
- |
102 |
-# Do we need to enforce the same ssl backend for curl and rtmpdump? Bug #423303 |
103 |
-# rtmp? ( |
104 |
-# media-video/rtmpdump |
105 |
-# curl_ssl_gnutls? ( media-video/rtmpdump[gnutls] ) |
106 |
-# curl_ssl_openssl? ( media-video/rtmpdump[-gnutls,ssl] ) |
107 |
-# ) |
108 |
- |
109 |
-# ssl providers to be added: |
110 |
-# fbopenssl $(use_with spnego) |
111 |
- |
112 |
-# krb4 http://web.mit.edu/kerberos/www/krb4-end-of-life.html |
113 |
- |
114 |
-DEPEND="${RDEPEND} |
115 |
- >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] |
116 |
- test? ( |
117 |
- sys-apps/diffutils |
118 |
- dev-lang/perl |
119 |
- )" |
120 |
- |
121 |
-# c-ares must be disabled for threads |
122 |
-# only one ssl provider can be enabled |
123 |
-REQUIRED_USE=" |
124 |
- curl_ssl_winssl? ( elibc_Winnt ) |
125 |
- threads? ( !adns ) |
126 |
- ssl? ( |
127 |
- ^^ ( |
128 |
- curl_ssl_axtls |
129 |
- curl_ssl_gnutls |
130 |
- curl_ssl_openssl |
131 |
- curl_ssl_nss |
132 |
- curl_ssl_polarssl |
133 |
- curl_ssl_winssl |
134 |
- ) |
135 |
- )" |
136 |
- |
137 |
-DOCS=( CHANGES README docs/FEATURES docs/INTERNALS \ |
138 |
- docs/MANUAL docs/FAQ docs/BUGS docs/CONTRIBUTE) |
139 |
- |
140 |
-MULTILIB_WRAPPED_HEADERS=( |
141 |
- /usr/include/curl/curlbuild.h |
142 |
-) |
143 |
- |
144 |
-MULTILIB_CHOST_TOOLS=( |
145 |
- /usr/bin/curl-config |
146 |
-) |
147 |
- |
148 |
-src_prepare() { |
149 |
- epatch \ |
150 |
- "${FILESDIR}"/${PN}-7.30.0-prefix.patch \ |
151 |
- "${FILESDIR}"/${PN}-respect-cflags-3.patch \ |
152 |
- "${FILESDIR}"/${PN}-fix-gnutls-nettle.patch |
153 |
- |
154 |
- sed -i '/LD_LIBRARY_PATH=/d' configure.ac || die #382241 |
155 |
- |
156 |
- epatch_user |
157 |
- eprefixify curl-config.in |
158 |
- eautoreconf |
159 |
-} |
160 |
- |
161 |
-multilib_src_configure() { |
162 |
- einfo "\033[1;32m**************************************************\033[00m" |
163 |
- |
164 |
- # We make use of the fact that later flags override earlier ones |
165 |
- # So start with all ssl providers off until proven otherwise |
166 |
- local myconf=() |
167 |
- myconf+=( --without-axtls --without-gnutls --without-nss --without-polarssl --without-ssl --without-winssl ) |
168 |
- myconf+=( --with-ca-bundle="${EPREFIX}"/etc/ssl/certs/ca-certificates.crt ) |
169 |
- if use ssl ; then |
170 |
- if use curl_ssl_axtls; then |
171 |
- einfo "SSL provided by axtls" |
172 |
- einfo "NOTE: axtls is meant for embedded systems and" |
173 |
- einfo "may not be the best choice as an ssl provider" |
174 |
- myconf+=( --with-axtls ) |
175 |
- fi |
176 |
- if use curl_ssl_gnutls; then |
177 |
- einfo "SSL provided by gnutls" |
178 |
- if has_version ">=net-libs/gnutls-3.2.15[${MULTILIB_USEDEP}]" || has_version "=net-libs/gnutls-2.12*[nettle,${MULTILIB_USEDEP}]"; then |
179 |
- einfo "gnutls compiled with dev-libs/nettle" |
180 |
- myconf+=( --with-gnutls --with-nettle ) |
181 |
- else |
182 |
- einfo "gnutls compiled with dev-libs/libgcrypt" |
183 |
- myconf+=( --with-gnutls --without-nettle ) |
184 |
- fi |
185 |
- fi |
186 |
- if use curl_ssl_nss; then |
187 |
- einfo "SSL provided by nss" |
188 |
- myconf+=( --with-nss ) |
189 |
- fi |
190 |
- if use curl_ssl_polarssl; then |
191 |
- einfo "SSL provided by polarssl" |
192 |
- einfo "NOTE: polarssl is meant for embedded systems and" |
193 |
- einfo "may not be the best choice as an ssl provider" |
194 |
- myconf+=( --with-polarssl ) |
195 |
- fi |
196 |
- if use curl_ssl_openssl; then |
197 |
- einfo "SSL provided by openssl" |
198 |
- myconf+=( --with-ssl --with-ca-path="${EPREFIX}"/etc/ssl/certs ) |
199 |
- fi |
200 |
- if use curl_ssl_winssl; then |
201 |
- einfo "SSL provided by Windows" |
202 |
- myconf+=( --with-winssl ) |
203 |
- fi |
204 |
- else |
205 |
- einfo "SSL disabled" |
206 |
- fi |
207 |
- einfo "\033[1;32m**************************************************\033[00m" |
208 |
- |
209 |
- # These configuration options are organized alphabetically |
210 |
- # within each category. This should make it easier if we |
211 |
- # ever decide to make any of them contingent on USE flags: |
212 |
- # 1) protocols first. To see them all do |
213 |
- # 'grep SUPPORT_PROTOCOLS configure.ac' |
214 |
- # 2) --enable/disable options second. |
215 |
- # 'grep -- --enable configure | grep Check | awk '{ print $4 }' | sort |
216 |
- # 3) --with/without options third. |
217 |
- # grep -- --with configure | grep Check | awk '{ print $4 }' | sort |
218 |
- ECONF_SOURCE="${S}" \ |
219 |
- econf \ |
220 |
- --enable-dict \ |
221 |
- --enable-file \ |
222 |
- --enable-ftp \ |
223 |
- --enable-gopher \ |
224 |
- --enable-http \ |
225 |
- --enable-imap \ |
226 |
- $(use_enable ldap) \ |
227 |
- $(use_enable ldap ldaps) \ |
228 |
- --enable-pop3 \ |
229 |
- --enable-rtsp \ |
230 |
- $(use_enable samba smb) \ |
231 |
- $(use_with ssh libssh2) \ |
232 |
- --enable-smtp \ |
233 |
- --enable-telnet \ |
234 |
- --enable-tftp \ |
235 |
- $(use_enable adns ares) \ |
236 |
- --enable-cookies \ |
237 |
- --enable-hidden-symbols \ |
238 |
- $(use_enable ipv6) \ |
239 |
- --enable-largefile \ |
240 |
- --enable-manual \ |
241 |
- --enable-proxy \ |
242 |
- --disable-soname-bump \ |
243 |
- --disable-sspi \ |
244 |
- $(use_enable static-libs static) \ |
245 |
- $(use_enable threads threaded-resolver) \ |
246 |
- --disable-versioned-symbols \ |
247 |
- --without-cyassl \ |
248 |
- --without-darwinssl \ |
249 |
- $(use_with idn libidn) \ |
250 |
- $(use_with kerberos gssapi "${EPREFIX}"/usr) \ |
251 |
- --without-krb4 \ |
252 |
- $(use_with metalink libmetalink) \ |
253 |
- --without-nghttp2 \ |
254 |
- $(use_with rtmp librtmp) \ |
255 |
- --without-spnego \ |
256 |
- --without-winidn \ |
257 |
- --with-zlib \ |
258 |
- "${myconf[@]}" |
259 |
- |
260 |
- if ! multilib_is_native_abi; then |
261 |
- # avoid building the client |
262 |
- sed -i -e '/SUBDIRS/s:src::' Makefile || die |
263 |
- fi |
264 |
-} |
265 |
- |
266 |
-multilib_src_install_all() { |
267 |
- einstalldocs |
268 |
- prune_libtool_files --all |
269 |
- |
270 |
- rm -rf "${ED}"/etc/ |
271 |
- |
272 |
- # https://sourceforge.net/tracker/index.php?func=detail&aid=1705197&group_id=976&atid=350976 |
273 |
- insinto /usr/share/aclocal |
274 |
- doins docs/libcurl/libcurl.m4 |
275 |
-} |
276 |
|
277 |
diff --git a/net-misc/curl/curl-7.42.1.ebuild b/net-misc/curl/curl-7.42.1.ebuild |
278 |
deleted file mode 100644 |
279 |
index 93e5bc5..0000000 |
280 |
--- a/net-misc/curl/curl-7.42.1.ebuild |
281 |
+++ /dev/null |
282 |
@@ -1,243 +0,0 @@ |
283 |
-# Copyright 1999-2015 Gentoo Foundation |
284 |
-# Distributed under the terms of the GNU General Public License v2 |
285 |
-# $Id$ |
286 |
- |
287 |
-EAPI="5" |
288 |
- |
289 |
-inherit autotools eutils prefix multilib-minimal |
290 |
- |
291 |
-DESCRIPTION="A Client that groks URLs" |
292 |
-HOMEPAGE="http://curl.haxx.se/" |
293 |
-SRC_URI="http://curl.haxx.se/download/${P}.tar.bz2" |
294 |
- |
295 |
-LICENSE="MIT" |
296 |
-SLOT="0" |
297 |
-KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
298 |
-IUSE="adns idn ipv6 kerberos ldap metalink rtmp samba ssh ssl static-libs test threads" |
299 |
-IUSE="${IUSE} curl_ssl_axtls curl_ssl_gnutls curl_ssl_nss +curl_ssl_openssl curl_ssl_polarssl curl_ssl_winssl" |
300 |
-IUSE="${IUSE} elibc_Winnt" |
301 |
- |
302 |
-#lead to lots of false negatives, bug #285669 |
303 |
-RESTRICT="test" |
304 |
- |
305 |
-RDEPEND="ldap? ( >=net-nds/openldap-2.4.38-r1[${MULTILIB_USEDEP}] ) |
306 |
- ssl? ( |
307 |
- curl_ssl_axtls? ( |
308 |
- >=net-libs/axtls-1.4.9-r1[${MULTILIB_USEDEP}] |
309 |
- app-misc/ca-certificates |
310 |
- ) |
311 |
- curl_ssl_gnutls? ( |
312 |
- || ( |
313 |
- ( |
314 |
- >=net-libs/gnutls-3.2.15[static-libs?,${MULTILIB_USEDEP}] |
315 |
- >=dev-libs/nettle-2.6[${MULTILIB_USEDEP}] |
316 |
- ) |
317 |
- ( |
318 |
- =net-libs/gnutls-2.12*[nettle,static-libs?,${MULTILIB_USEDEP}] |
319 |
- >=dev-libs/nettle-2.6[${MULTILIB_USEDEP}] |
320 |
- ) |
321 |
- ( |
322 |
- =net-libs/gnutls-2.12*[-nettle,static-libs?,${MULTILIB_USEDEP}] |
323 |
- >=dev-libs/libgcrypt-1.5.3[static-libs?,${MULTILIB_USEDEP}] |
324 |
- ) |
325 |
- ) |
326 |
- app-misc/ca-certificates |
327 |
- ) |
328 |
- curl_ssl_openssl? ( |
329 |
- >=dev-libs/openssl-1.0.1h-r2[static-libs?,${MULTILIB_USEDEP}] |
330 |
- ) |
331 |
- curl_ssl_nss? ( |
332 |
- >=dev-libs/nss-3.15.4[${MULTILIB_USEDEP}] |
333 |
- app-misc/ca-certificates |
334 |
- ) |
335 |
- curl_ssl_polarssl? ( |
336 |
- >=net-libs/polarssl-1.3.4:=[${MULTILIB_USEDEP}] |
337 |
- app-misc/ca-certificates |
338 |
- ) |
339 |
- ) |
340 |
- idn? ( >=net-dns/libidn-1.28[static-libs?,${MULTILIB_USEDEP}] ) |
341 |
- adns? ( >=net-dns/c-ares-1.10.0-r1[${MULTILIB_USEDEP}] ) |
342 |
- kerberos? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] ) |
343 |
- metalink? ( >=media-libs/libmetalink-0.1.1[${MULTILIB_USEDEP}] ) |
344 |
- rtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] ) |
345 |
- ssh? ( >=net-libs/libssh2-1.4.3[static-libs?,${MULTILIB_USEDEP}] ) |
346 |
- >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] |
347 |
- abi_x86_32? ( |
348 |
- !<=app-emulation/emul-linux-x86-baselibs-20140508-r13 |
349 |
- !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] |
350 |
- )" |
351 |
- |
352 |
-# Do we need to enforce the same ssl backend for curl and rtmpdump? Bug #423303 |
353 |
-# rtmp? ( |
354 |
-# media-video/rtmpdump |
355 |
-# curl_ssl_gnutls? ( media-video/rtmpdump[gnutls] ) |
356 |
-# curl_ssl_openssl? ( media-video/rtmpdump[-gnutls,ssl] ) |
357 |
-# ) |
358 |
- |
359 |
-# ssl providers to be added: |
360 |
-# fbopenssl $(use_with spnego) |
361 |
- |
362 |
-# krb4 http://web.mit.edu/kerberos/www/krb4-end-of-life.html |
363 |
- |
364 |
-DEPEND="${RDEPEND} |
365 |
- >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] |
366 |
- test? ( |
367 |
- sys-apps/diffutils |
368 |
- dev-lang/perl |
369 |
- )" |
370 |
- |
371 |
-# c-ares must be disabled for threads |
372 |
-# only one ssl provider can be enabled |
373 |
-REQUIRED_USE=" |
374 |
- curl_ssl_winssl? ( elibc_Winnt ) |
375 |
- threads? ( !adns ) |
376 |
- ssl? ( |
377 |
- ^^ ( |
378 |
- curl_ssl_axtls |
379 |
- curl_ssl_gnutls |
380 |
- curl_ssl_openssl |
381 |
- curl_ssl_nss |
382 |
- curl_ssl_polarssl |
383 |
- curl_ssl_winssl |
384 |
- ) |
385 |
- )" |
386 |
- |
387 |
-DOCS=( CHANGES README docs/FEATURES docs/INTERNALS \ |
388 |
- docs/MANUAL docs/FAQ docs/BUGS docs/CONTRIBUTE) |
389 |
- |
390 |
-MULTILIB_WRAPPED_HEADERS=( |
391 |
- /usr/include/curl/curlbuild.h |
392 |
-) |
393 |
- |
394 |
-MULTILIB_CHOST_TOOLS=( |
395 |
- /usr/bin/curl-config |
396 |
-) |
397 |
- |
398 |
-src_prepare() { |
399 |
- epatch \ |
400 |
- "${FILESDIR}"/${PN}-7.30.0-prefix.patch \ |
401 |
- "${FILESDIR}"/${PN}-respect-cflags-3.patch \ |
402 |
- "${FILESDIR}"/${PN}-fix-gnutls-nettle.patch |
403 |
- |
404 |
- sed -i '/LD_LIBRARY_PATH=/d' configure.ac || die #382241 |
405 |
- |
406 |
- epatch_user |
407 |
- eprefixify curl-config.in |
408 |
- eautoreconf |
409 |
-} |
410 |
- |
411 |
-multilib_src_configure() { |
412 |
- einfo "\033[1;32m**************************************************\033[00m" |
413 |
- |
414 |
- # We make use of the fact that later flags override earlier ones |
415 |
- # So start with all ssl providers off until proven otherwise |
416 |
- local myconf=() |
417 |
- myconf+=( --without-axtls --without-gnutls --without-nss --without-polarssl --without-ssl --without-winssl ) |
418 |
- myconf+=( --with-ca-bundle="${EPREFIX}"/etc/ssl/certs/ca-certificates.crt ) |
419 |
- if use ssl ; then |
420 |
- if use curl_ssl_axtls; then |
421 |
- einfo "SSL provided by axtls" |
422 |
- einfo "NOTE: axtls is meant for embedded systems and" |
423 |
- einfo "may not be the best choice as an ssl provider" |
424 |
- myconf+=( --with-axtls ) |
425 |
- fi |
426 |
- if use curl_ssl_gnutls; then |
427 |
- einfo "SSL provided by gnutls" |
428 |
- if has_version ">=net-libs/gnutls-3.2.15[${MULTILIB_USEDEP}]" || has_version "=net-libs/gnutls-2.12*[nettle,${MULTILIB_USEDEP}]"; then |
429 |
- einfo "gnutls compiled with dev-libs/nettle" |
430 |
- myconf+=( --with-gnutls --with-nettle ) |
431 |
- else |
432 |
- einfo "gnutls compiled with dev-libs/libgcrypt" |
433 |
- myconf+=( --with-gnutls --without-nettle ) |
434 |
- fi |
435 |
- fi |
436 |
- if use curl_ssl_nss; then |
437 |
- einfo "SSL provided by nss" |
438 |
- myconf+=( --with-nss ) |
439 |
- fi |
440 |
- if use curl_ssl_polarssl; then |
441 |
- einfo "SSL provided by polarssl" |
442 |
- einfo "NOTE: polarssl is meant for embedded systems and" |
443 |
- einfo "may not be the best choice as an ssl provider" |
444 |
- myconf+=( --with-polarssl ) |
445 |
- fi |
446 |
- if use curl_ssl_openssl; then |
447 |
- einfo "SSL provided by openssl" |
448 |
- myconf+=( --with-ssl --with-ca-path="${EPREFIX}"/etc/ssl/certs ) |
449 |
- fi |
450 |
- if use curl_ssl_winssl; then |
451 |
- einfo "SSL provided by Windows" |
452 |
- myconf+=( --with-winssl ) |
453 |
- fi |
454 |
- else |
455 |
- einfo "SSL disabled" |
456 |
- fi |
457 |
- einfo "\033[1;32m**************************************************\033[00m" |
458 |
- |
459 |
- # These configuration options are organized alphabetically |
460 |
- # within each category. This should make it easier if we |
461 |
- # ever decide to make any of them contingent on USE flags: |
462 |
- # 1) protocols first. To see them all do |
463 |
- # 'grep SUPPORT_PROTOCOLS configure.ac' |
464 |
- # 2) --enable/disable options second. |
465 |
- # 'grep -- --enable configure | grep Check | awk '{ print $4 }' | sort |
466 |
- # 3) --with/without options third. |
467 |
- # grep -- --with configure | grep Check | awk '{ print $4 }' | sort |
468 |
- ECONF_SOURCE="${S}" \ |
469 |
- econf \ |
470 |
- --enable-dict \ |
471 |
- --enable-file \ |
472 |
- --enable-ftp \ |
473 |
- --enable-gopher \ |
474 |
- --enable-http \ |
475 |
- --enable-imap \ |
476 |
- $(use_enable ldap) \ |
477 |
- $(use_enable ldap ldaps) \ |
478 |
- --enable-pop3 \ |
479 |
- --enable-rtsp \ |
480 |
- $(use_enable samba smb) \ |
481 |
- $(use_with ssh libssh2) \ |
482 |
- --enable-smtp \ |
483 |
- --enable-telnet \ |
484 |
- --enable-tftp \ |
485 |
- $(use_enable adns ares) \ |
486 |
- --enable-cookies \ |
487 |
- --enable-hidden-symbols \ |
488 |
- $(use_enable ipv6) \ |
489 |
- --enable-largefile \ |
490 |
- --enable-manual \ |
491 |
- --enable-proxy \ |
492 |
- --disable-soname-bump \ |
493 |
- --disable-sspi \ |
494 |
- $(use_enable static-libs static) \ |
495 |
- $(use_enable threads threaded-resolver) \ |
496 |
- --disable-versioned-symbols \ |
497 |
- --without-cyassl \ |
498 |
- --without-darwinssl \ |
499 |
- $(use_with idn libidn) \ |
500 |
- $(use_with kerberos gssapi "${EPREFIX}"/usr) \ |
501 |
- --without-krb4 \ |
502 |
- $(use_with metalink libmetalink) \ |
503 |
- --without-nghttp2 \ |
504 |
- $(use_with rtmp librtmp) \ |
505 |
- --without-spnego \ |
506 |
- --without-winidn \ |
507 |
- --with-zlib \ |
508 |
- "${myconf[@]}" |
509 |
- |
510 |
- if ! multilib_is_native_abi; then |
511 |
- # avoid building the client |
512 |
- sed -i -e '/SUBDIRS/s:src::' Makefile || die |
513 |
- fi |
514 |
-} |
515 |
- |
516 |
-multilib_src_install_all() { |
517 |
- einstalldocs |
518 |
- prune_libtool_files --all |
519 |
- |
520 |
- rm -rf "${ED}"/etc/ |
521 |
- |
522 |
- # https://sourceforge.net/tracker/index.php?func=detail&aid=1705197&group_id=976&atid=350976 |
523 |
- insinto /usr/share/aclocal |
524 |
- doins docs/libcurl/libcurl.m4 |
525 |
-} |