1 |
commit: c4145f39836e4bb206d6d9cf0dfc7be6a7635bd8 |
2 |
Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 17 20:07:01 2019 +0000 |
4 |
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 17 20:07:16 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4145f39 |
7 |
|
8 |
net-misc/curl: Security cleanup |
9 |
|
10 |
Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
12 |
|
13 |
net-misc/curl/Manifest | 1 - |
14 |
net-misc/curl/curl-7.61.1-r1.ebuild | 247 ------------------------------------ |
15 |
net-misc/curl/curl-7.61.1.ebuild | 247 ------------------------------------ |
16 |
3 files changed, 495 deletions(-) |
17 |
|
18 |
diff --git a/net-misc/curl/Manifest b/net-misc/curl/Manifest |
19 |
index f0e7034a4c2..f3837df849f 100644 |
20 |
--- a/net-misc/curl/Manifest |
21 |
+++ b/net-misc/curl/Manifest |
22 |
@@ -1,3 +1,2 @@ |
23 |
-DIST curl-7.61.1.tar.bz2 2965173 BLAKE2B 16ef6962f64e18a4b67c3cccff78120084a2660207f512974f9827c53037a95b935a6020620f926eee85339fbc558be5585f2a4c001bd287c4d33795e6a6dab5 SHA512 484d33c0d32109539a95309cdb4404c03c0e7164fdbf7a4724a5b01aa20e2d48fbe6363c7cc53060d4d28050cfa6b43f9ed220ab65d4d389eb00efff5db1bfb5 |
24 |
DIST curl-7.62.0.tar.bz2 3014762 BLAKE2B 0cc9ef5d19004dc5cc69444cac3b2fb4fd82ba470a831b761c147e45826fc26087f4e07da76ee0b6a070f6125a1423927607a257786387326f4c9f4e3953d5f7 SHA512 83ca5c2757745f763316eefdd4c3f0e8a211a7f0db6a708b67ae2133ad41fdf17dd2230f9283a4778c9c866126d407454a090291cd2bf274371d0a214c1c13f5 |
25 |
DIST curl-7.63.0.tar.bz2 3001355 BLAKE2B 7925825f606d7eb474fb73aeec52353d3a3bf8827b34457493003ef2e3c1aed5350d849fdbd5624f148c6bb776aad318f1f49ec1ca57690f5dfb21b12fcbdc16 SHA512 2873ef57b15cf12e508626f4546f6e06450cb87b239be1d26d9b3a22f7533d76eebabb5fa00e7b8c5d7fc9854356997ce164afb069411d079b2b9f0bdb00db25 |
26 |
|
27 |
diff --git a/net-misc/curl/curl-7.61.1-r1.ebuild b/net-misc/curl/curl-7.61.1-r1.ebuild |
28 |
deleted file mode 100644 |
29 |
index 29e3e461883..00000000000 |
30 |
--- a/net-misc/curl/curl-7.61.1-r1.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,247 +0,0 @@ |
33 |
-# Copyright 1999-2019 Gentoo Authors |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
- |
36 |
-EAPI="6" |
37 |
- |
38 |
-inherit autotools eutils prefix multilib-minimal |
39 |
- |
40 |
-DESCRIPTION="A Client that groks URLs" |
41 |
-HOMEPAGE="https://curl.haxx.se/" |
42 |
-SRC_URI="https://curl.haxx.se/download/${P}.tar.bz2" |
43 |
- |
44 |
-LICENSE="MIT" |
45 |
-SLOT="0" |
46 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
47 |
-IUSE="adns brotli http2 idn ipv6 kerberos ldap metalink rtmp samba ssh ssl static-libs test threads" |
48 |
-IUSE+=" curl_ssl_axtls curl_ssl_gnutls curl_ssl_libressl curl_ssl_mbedtls curl_ssl_nss +curl_ssl_openssl curl_ssl_winssl" |
49 |
-IUSE+=" elibc_Winnt" |
50 |
- |
51 |
-#lead to lots of false negatives, bug #285669 |
52 |
-RESTRICT="test" |
53 |
- |
54 |
-RDEPEND="ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] ) |
55 |
- brotli? ( app-arch/brotli:=[${MULTILIB_USEDEP}] ) |
56 |
- ssl? ( |
57 |
- curl_ssl_axtls? ( |
58 |
- net-libs/axtls:0=[${MULTILIB_USEDEP}] |
59 |
- app-misc/ca-certificates |
60 |
- ) |
61 |
- curl_ssl_gnutls? ( |
62 |
- net-libs/gnutls:0=[static-libs?,${MULTILIB_USEDEP}] |
63 |
- dev-libs/nettle:0=[${MULTILIB_USEDEP}] |
64 |
- app-misc/ca-certificates |
65 |
- ) |
66 |
- curl_ssl_libressl? ( |
67 |
- dev-libs/libressl:0=[static-libs?,${MULTILIB_USEDEP}] |
68 |
- ) |
69 |
- curl_ssl_mbedtls? ( |
70 |
- net-libs/mbedtls:0=[${MULTILIB_USEDEP}] |
71 |
- app-misc/ca-certificates |
72 |
- ) |
73 |
- curl_ssl_openssl? ( |
74 |
- dev-libs/openssl:0=[static-libs?,${MULTILIB_USEDEP}] |
75 |
- ) |
76 |
- curl_ssl_nss? ( |
77 |
- dev-libs/nss:0[${MULTILIB_USEDEP}] |
78 |
- app-misc/ca-certificates |
79 |
- ) |
80 |
- ) |
81 |
- http2? ( net-libs/nghttp2[${MULTILIB_USEDEP}] ) |
82 |
- idn? ( net-dns/libidn2:0=[static-libs?,${MULTILIB_USEDEP}] ) |
83 |
- adns? ( net-dns/c-ares:0[${MULTILIB_USEDEP}] ) |
84 |
- kerberos? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] ) |
85 |
- metalink? ( >=media-libs/libmetalink-0.1.1[${MULTILIB_USEDEP}] ) |
86 |
- rtmp? ( media-video/rtmpdump[${MULTILIB_USEDEP}] ) |
87 |
- ssh? ( net-libs/libssh2[static-libs?,${MULTILIB_USEDEP}] ) |
88 |
- sys-libs/zlib[${MULTILIB_USEDEP}]" |
89 |
- |
90 |
-# Do we need to enforce the same ssl backend for curl and rtmpdump? Bug #423303 |
91 |
-# rtmp? ( |
92 |
-# media-video/rtmpdump |
93 |
-# curl_ssl_gnutls? ( media-video/rtmpdump[gnutls] ) |
94 |
-# curl_ssl_openssl? ( media-video/rtmpdump[-gnutls,ssl] ) |
95 |
-# ) |
96 |
- |
97 |
-# ssl providers to be added: |
98 |
-# fbopenssl $(use_with spnego) |
99 |
- |
100 |
-DEPEND="${RDEPEND} |
101 |
- >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] |
102 |
- test? ( |
103 |
- sys-apps/diffutils |
104 |
- dev-lang/perl |
105 |
- )" |
106 |
- |
107 |
-# c-ares must be disabled for threads |
108 |
-# only one ssl provider can be enabled |
109 |
-REQUIRED_USE=" |
110 |
- curl_ssl_winssl? ( elibc_Winnt ) |
111 |
- threads? ( !adns ) |
112 |
- ssl? ( |
113 |
- ^^ ( |
114 |
- curl_ssl_axtls |
115 |
- curl_ssl_gnutls |
116 |
- curl_ssl_libressl |
117 |
- curl_ssl_mbedtls |
118 |
- curl_ssl_nss |
119 |
- curl_ssl_openssl |
120 |
- curl_ssl_winssl |
121 |
- ) |
122 |
- )" |
123 |
- |
124 |
-DOCS=( CHANGES README docs/FEATURES docs/INTERNALS.md \ |
125 |
- docs/MANUAL docs/FAQ docs/BUGS docs/CONTRIBUTE.md ) |
126 |
- |
127 |
-MULTILIB_WRAPPED_HEADERS=( |
128 |
- /usr/include/curl/curlbuild.h |
129 |
-) |
130 |
- |
131 |
-MULTILIB_CHOST_TOOLS=( |
132 |
- /usr/bin/curl-config |
133 |
-) |
134 |
- |
135 |
-src_prepare() { |
136 |
- eapply "${FILESDIR}"/${PN}-7.30.0-prefix.patch |
137 |
- eapply "${FILESDIR}"/${PN}-respect-cflags-3.patch |
138 |
- eapply "${FILESDIR}"/${PN}-fix-gnutls-nettle.patch |
139 |
- |
140 |
- sed -i '/LD_LIBRARY_PATH=/d' configure.ac || die #382241 |
141 |
- |
142 |
- eapply_user |
143 |
- eprefixify curl-config.in |
144 |
- eautoreconf |
145 |
- |
146 |
- if [[ ${CHOST} == *-darwin17 ]] ; then |
147 |
- # https://bugs.gentoo.org/show_bug.cgi?id=637252 |
148 |
- sed -i -e '/-Werror=partial-availability/s/Werror/Wno-error/g' \ |
149 |
- configure || die |
150 |
- fi |
151 |
-} |
152 |
- |
153 |
-multilib_src_configure() { |
154 |
- # We make use of the fact that later flags override earlier ones |
155 |
- # So start with all ssl providers off until proven otherwise |
156 |
- # TODO: in the future, we may want to add wolfssl (https://www.wolfssl.com/) |
157 |
- local myconf=() |
158 |
- myconf+=( --without-axtls --without-gnutls --without-mbedtls --without-nss --without-polarssl --without-ssl --without-winssl ) |
159 |
- myconf+=( --without-ca-fallback --with-ca-bundle="${EPREFIX}"/etc/ssl/certs/ca-certificates.crt ) |
160 |
- if use ssl ; then |
161 |
- if use curl_ssl_axtls; then |
162 |
- einfo "SSL provided by axtls" |
163 |
- myconf+=( --with-axtls ) |
164 |
- elif use curl_ssl_gnutls; then |
165 |
- einfo "SSL provided by gnutls" |
166 |
- myconf+=( --with-gnutls --with-nettle ) |
167 |
- elif use curl_ssl_libressl; then |
168 |
- einfo "SSL provided by LibreSSL" |
169 |
- myconf+=( --with-ssl --with-ca-path="${EPREFIX}"/etc/ssl/certs ) |
170 |
- elif use curl_ssl_mbedtls; then |
171 |
- einfo "SSL provided by mbedtls" |
172 |
- myconf+=( --with-mbedtls ) |
173 |
- elif use curl_ssl_nss; then |
174 |
- einfo "SSL provided by nss" |
175 |
- myconf+=( --with-nss ) |
176 |
- elif use curl_ssl_openssl; then |
177 |
- einfo "SSL provided by openssl" |
178 |
- myconf+=( --with-ssl --with-ca-path="${EPREFIX}"/etc/ssl/certs ) |
179 |
- elif use curl_ssl_winssl; then |
180 |
- einfo "SSL provided by Windows" |
181 |
- myconf+=( --with-winssl ) |
182 |
- else |
183 |
- eerror "We can't be here because of REQUIRED_USE." |
184 |
- fi |
185 |
- else |
186 |
- einfo "SSL disabled" |
187 |
- fi |
188 |
- |
189 |
- # These configuration options are organized alphabetically |
190 |
- # within each category. This should make it easier if we |
191 |
- # ever decide to make any of them contingent on USE flags: |
192 |
- # 1) protocols first. To see them all do |
193 |
- # 'grep SUPPORT_PROTOCOLS configure.ac' |
194 |
- # 2) --enable/disable options second. |
195 |
- # 'grep -- --enable configure | grep Check | awk '{ print $4 }' | sort |
196 |
- # 3) --with/without options third. |
197 |
- # grep -- --with configure | grep Check | awk '{ print $4 }' | sort |
198 |
- ECONF_SOURCE="${S}" \ |
199 |
- econf \ |
200 |
- --enable-crypto-auth \ |
201 |
- --enable-dict \ |
202 |
- --enable-file \ |
203 |
- --enable-ftp \ |
204 |
- --enable-gopher \ |
205 |
- --enable-http \ |
206 |
- --enable-imap \ |
207 |
- $(use_enable ldap) \ |
208 |
- $(use_enable ldap ldaps) \ |
209 |
- --disable-ntlm-wb \ |
210 |
- --enable-pop3 \ |
211 |
- --enable-rt \ |
212 |
- --enable-rtsp \ |
213 |
- $(use_enable samba smb) \ |
214 |
- $(use_with ssh libssh2) \ |
215 |
- --enable-smtp \ |
216 |
- --enable-telnet \ |
217 |
- --enable-tftp \ |
218 |
- --enable-tls-srp \ |
219 |
- $(use_enable adns ares) \ |
220 |
- --enable-cookies \ |
221 |
- --enable-hidden-symbols \ |
222 |
- $(use_enable ipv6) \ |
223 |
- --enable-largefile \ |
224 |
- --without-libpsl \ |
225 |
- --enable-manual \ |
226 |
- --enable-proxy \ |
227 |
- --disable-sspi \ |
228 |
- $(use_enable static-libs static) \ |
229 |
- $(use_enable threads threaded-resolver) \ |
230 |
- $(use_enable threads pthreads) \ |
231 |
- --disable-versioned-symbols \ |
232 |
- --without-cyassl \ |
233 |
- --without-darwinssl \ |
234 |
- $(use_with idn libidn2) \ |
235 |
- $(use_with kerberos gssapi "${EPREFIX}"/usr) \ |
236 |
- $(use_with metalink libmetalink) \ |
237 |
- $(use_with http2 nghttp2) \ |
238 |
- $(use_with rtmp librtmp) \ |
239 |
- $(use_with brotli) \ |
240 |
- --without-spnego \ |
241 |
- --without-winidn \ |
242 |
- --without-wolfssl \ |
243 |
- --with-zlib \ |
244 |
- "${myconf[@]}" |
245 |
- |
246 |
- if ! multilib_is_native_abi; then |
247 |
- # avoid building the client |
248 |
- sed -i -e '/SUBDIRS/s:src::' Makefile || die |
249 |
- sed -i -e '/SUBDIRS/s:scripts::' Makefile || die |
250 |
- fi |
251 |
- |
252 |
- # Fix up the pkg-config file to be more robust. |
253 |
- # https://github.com/curl/curl/issues/864 |
254 |
- local priv=() libs=() |
255 |
- # We always enable zlib. |
256 |
- libs+=( "-lz" ) |
257 |
- priv+=( "zlib" ) |
258 |
- if use http2; then |
259 |
- libs+=( "-lnghttp2" ) |
260 |
- priv+=( "libnghttp2" ) |
261 |
- fi |
262 |
- if use ssl && use curl_ssl_openssl; then |
263 |
- libs+=( "-lssl" "-lcrypto" ) |
264 |
- priv+=( "openssl" ) |
265 |
- fi |
266 |
- grep -q Requires.private libcurl.pc && die "need to update ebuild" |
267 |
- libs=$(printf '|%s' "${libs[@]}") |
268 |
- sed -i -r \ |
269 |
- -e "/^Libs.private/s:(${libs#|})( |$)::g" \ |
270 |
- libcurl.pc || die |
271 |
- echo "Requires.private: ${priv[*]}" >> libcurl.pc |
272 |
-} |
273 |
- |
274 |
-multilib_src_install_all() { |
275 |
- einstalldocs |
276 |
- prune_libtool_files --all |
277 |
- |
278 |
- rm -rf "${ED}"/etc/ |
279 |
-} |
280 |
|
281 |
diff --git a/net-misc/curl/curl-7.61.1.ebuild b/net-misc/curl/curl-7.61.1.ebuild |
282 |
deleted file mode 100644 |
283 |
index 726cd4a808b..00000000000 |
284 |
--- a/net-misc/curl/curl-7.61.1.ebuild |
285 |
+++ /dev/null |
286 |
@@ -1,247 +0,0 @@ |
287 |
-# Copyright 1999-2019 Gentoo Authors |
288 |
-# Distributed under the terms of the GNU General Public License v2 |
289 |
- |
290 |
-EAPI="6" |
291 |
- |
292 |
-inherit autotools eutils prefix multilib-minimal |
293 |
- |
294 |
-DESCRIPTION="A Client that groks URLs" |
295 |
-HOMEPAGE="https://curl.haxx.se/" |
296 |
-SRC_URI="https://curl.haxx.se/download/${P}.tar.bz2" |
297 |
- |
298 |
-LICENSE="MIT" |
299 |
-SLOT="0" |
300 |
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
301 |
-IUSE="adns brotli http2 idn ipv6 kerberos ldap metalink rtmp samba ssh ssl static-libs test threads" |
302 |
-IUSE+=" curl_ssl_axtls curl_ssl_gnutls curl_ssl_libressl curl_ssl_mbedtls curl_ssl_nss +curl_ssl_openssl curl_ssl_winssl" |
303 |
-IUSE+=" elibc_Winnt" |
304 |
- |
305 |
-#lead to lots of false negatives, bug #285669 |
306 |
-RESTRICT="test" |
307 |
- |
308 |
-RDEPEND="ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] ) |
309 |
- brotli? ( app-arch/brotli:= ) |
310 |
- ssl? ( |
311 |
- curl_ssl_axtls? ( |
312 |
- net-libs/axtls:0=[${MULTILIB_USEDEP}] |
313 |
- app-misc/ca-certificates |
314 |
- ) |
315 |
- curl_ssl_gnutls? ( |
316 |
- net-libs/gnutls:0=[static-libs?,${MULTILIB_USEDEP}] |
317 |
- dev-libs/nettle:0=[${MULTILIB_USEDEP}] |
318 |
- app-misc/ca-certificates |
319 |
- ) |
320 |
- curl_ssl_libressl? ( |
321 |
- dev-libs/libressl:0=[static-libs?,${MULTILIB_USEDEP}] |
322 |
- ) |
323 |
- curl_ssl_mbedtls? ( |
324 |
- net-libs/mbedtls:0=[${MULTILIB_USEDEP}] |
325 |
- app-misc/ca-certificates |
326 |
- ) |
327 |
- curl_ssl_openssl? ( |
328 |
- dev-libs/openssl:0=[static-libs?,${MULTILIB_USEDEP}] |
329 |
- ) |
330 |
- curl_ssl_nss? ( |
331 |
- dev-libs/nss:0[${MULTILIB_USEDEP}] |
332 |
- app-misc/ca-certificates |
333 |
- ) |
334 |
- ) |
335 |
- http2? ( net-libs/nghttp2[${MULTILIB_USEDEP}] ) |
336 |
- idn? ( net-dns/libidn2:0=[static-libs?,${MULTILIB_USEDEP}] ) |
337 |
- adns? ( net-dns/c-ares:0[${MULTILIB_USEDEP}] ) |
338 |
- kerberos? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] ) |
339 |
- metalink? ( >=media-libs/libmetalink-0.1.1[${MULTILIB_USEDEP}] ) |
340 |
- rtmp? ( media-video/rtmpdump[${MULTILIB_USEDEP}] ) |
341 |
- ssh? ( net-libs/libssh2[static-libs?,${MULTILIB_USEDEP}] ) |
342 |
- sys-libs/zlib[${MULTILIB_USEDEP}]" |
343 |
- |
344 |
-# Do we need to enforce the same ssl backend for curl and rtmpdump? Bug #423303 |
345 |
-# rtmp? ( |
346 |
-# media-video/rtmpdump |
347 |
-# curl_ssl_gnutls? ( media-video/rtmpdump[gnutls] ) |
348 |
-# curl_ssl_openssl? ( media-video/rtmpdump[-gnutls,ssl] ) |
349 |
-# ) |
350 |
- |
351 |
-# ssl providers to be added: |
352 |
-# fbopenssl $(use_with spnego) |
353 |
- |
354 |
-DEPEND="${RDEPEND} |
355 |
- >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] |
356 |
- test? ( |
357 |
- sys-apps/diffutils |
358 |
- dev-lang/perl |
359 |
- )" |
360 |
- |
361 |
-# c-ares must be disabled for threads |
362 |
-# only one ssl provider can be enabled |
363 |
-REQUIRED_USE=" |
364 |
- curl_ssl_winssl? ( elibc_Winnt ) |
365 |
- threads? ( !adns ) |
366 |
- ssl? ( |
367 |
- ^^ ( |
368 |
- curl_ssl_axtls |
369 |
- curl_ssl_gnutls |
370 |
- curl_ssl_libressl |
371 |
- curl_ssl_mbedtls |
372 |
- curl_ssl_nss |
373 |
- curl_ssl_openssl |
374 |
- curl_ssl_winssl |
375 |
- ) |
376 |
- )" |
377 |
- |
378 |
-DOCS=( CHANGES README docs/FEATURES docs/INTERNALS.md \ |
379 |
- docs/MANUAL docs/FAQ docs/BUGS docs/CONTRIBUTE.md ) |
380 |
- |
381 |
-MULTILIB_WRAPPED_HEADERS=( |
382 |
- /usr/include/curl/curlbuild.h |
383 |
-) |
384 |
- |
385 |
-MULTILIB_CHOST_TOOLS=( |
386 |
- /usr/bin/curl-config |
387 |
-) |
388 |
- |
389 |
-src_prepare() { |
390 |
- eapply "${FILESDIR}"/${PN}-7.30.0-prefix.patch |
391 |
- eapply "${FILESDIR}"/${PN}-respect-cflags-3.patch |
392 |
- eapply "${FILESDIR}"/${PN}-fix-gnutls-nettle.patch |
393 |
- |
394 |
- sed -i '/LD_LIBRARY_PATH=/d' configure.ac || die #382241 |
395 |
- |
396 |
- eapply_user |
397 |
- eprefixify curl-config.in |
398 |
- eautoreconf |
399 |
- |
400 |
- if [[ ${CHOST} == *-darwin17 ]] ; then |
401 |
- # https://bugs.gentoo.org/show_bug.cgi?id=637252 |
402 |
- sed -i -e '/-Werror=partial-availability/s/Werror/Wno-error/g' \ |
403 |
- configure || die |
404 |
- fi |
405 |
-} |
406 |
- |
407 |
-multilib_src_configure() { |
408 |
- # We make use of the fact that later flags override earlier ones |
409 |
- # So start with all ssl providers off until proven otherwise |
410 |
- # TODO: in the future, we may want to add wolfssl (https://www.wolfssl.com/) |
411 |
- local myconf=() |
412 |
- myconf+=( --without-axtls --without-gnutls --without-mbedtls --without-nss --without-polarssl --without-ssl --without-winssl ) |
413 |
- myconf+=( --without-ca-fallback --with-ca-bundle="${EPREFIX}"/etc/ssl/certs/ca-certificates.crt ) |
414 |
- if use ssl ; then |
415 |
- if use curl_ssl_axtls; then |
416 |
- einfo "SSL provided by axtls" |
417 |
- myconf+=( --with-axtls ) |
418 |
- elif use curl_ssl_gnutls; then |
419 |
- einfo "SSL provided by gnutls" |
420 |
- myconf+=( --with-gnutls --with-nettle ) |
421 |
- elif use curl_ssl_libressl; then |
422 |
- einfo "SSL provided by LibreSSL" |
423 |
- myconf+=( --with-ssl --with-ca-path="${EPREFIX}"/etc/ssl/certs ) |
424 |
- elif use curl_ssl_mbedtls; then |
425 |
- einfo "SSL provided by mbedtls" |
426 |
- myconf+=( --with-mbedtls ) |
427 |
- elif use curl_ssl_nss; then |
428 |
- einfo "SSL provided by nss" |
429 |
- myconf+=( --with-nss ) |
430 |
- elif use curl_ssl_openssl; then |
431 |
- einfo "SSL provided by openssl" |
432 |
- myconf+=( --with-ssl --with-ca-path="${EPREFIX}"/etc/ssl/certs ) |
433 |
- elif use curl_ssl_winssl; then |
434 |
- einfo "SSL provided by Windows" |
435 |
- myconf+=( --with-winssl ) |
436 |
- else |
437 |
- eerror "We can't be here because of REQUIRED_USE." |
438 |
- fi |
439 |
- else |
440 |
- einfo "SSL disabled" |
441 |
- fi |
442 |
- |
443 |
- # These configuration options are organized alphabetically |
444 |
- # within each category. This should make it easier if we |
445 |
- # ever decide to make any of them contingent on USE flags: |
446 |
- # 1) protocols first. To see them all do |
447 |
- # 'grep SUPPORT_PROTOCOLS configure.ac' |
448 |
- # 2) --enable/disable options second. |
449 |
- # 'grep -- --enable configure | grep Check | awk '{ print $4 }' | sort |
450 |
- # 3) --with/without options third. |
451 |
- # grep -- --with configure | grep Check | awk '{ print $4 }' | sort |
452 |
- ECONF_SOURCE="${S}" \ |
453 |
- econf \ |
454 |
- --enable-crypto-auth \ |
455 |
- --enable-dict \ |
456 |
- --enable-file \ |
457 |
- --enable-ftp \ |
458 |
- --enable-gopher \ |
459 |
- --enable-http \ |
460 |
- --enable-imap \ |
461 |
- $(use_enable ldap) \ |
462 |
- $(use_enable ldap ldaps) \ |
463 |
- --disable-ntlm-wb \ |
464 |
- --enable-pop3 \ |
465 |
- --enable-rt \ |
466 |
- --enable-rtsp \ |
467 |
- $(use_enable samba smb) \ |
468 |
- $(use_with ssh libssh2) \ |
469 |
- --enable-smtp \ |
470 |
- --enable-telnet \ |
471 |
- --enable-tftp \ |
472 |
- --enable-tls-srp \ |
473 |
- $(use_enable adns ares) \ |
474 |
- --enable-cookies \ |
475 |
- --enable-hidden-symbols \ |
476 |
- $(use_enable ipv6) \ |
477 |
- --enable-largefile \ |
478 |
- --without-libpsl \ |
479 |
- --enable-manual \ |
480 |
- --enable-proxy \ |
481 |
- --disable-sspi \ |
482 |
- $(use_enable static-libs static) \ |
483 |
- $(use_enable threads threaded-resolver) \ |
484 |
- $(use_enable threads pthreads) \ |
485 |
- --disable-versioned-symbols \ |
486 |
- --without-cyassl \ |
487 |
- --without-darwinssl \ |
488 |
- $(use_with idn libidn2) \ |
489 |
- $(use_with kerberos gssapi "${EPREFIX}"/usr) \ |
490 |
- $(use_with metalink libmetalink) \ |
491 |
- $(use_with http2 nghttp2) \ |
492 |
- $(use_with rtmp librtmp) \ |
493 |
- $(use_with brotli) \ |
494 |
- --without-spnego \ |
495 |
- --without-winidn \ |
496 |
- --without-wolfssl \ |
497 |
- --with-zlib \ |
498 |
- "${myconf[@]}" |
499 |
- |
500 |
- if ! multilib_is_native_abi; then |
501 |
- # avoid building the client |
502 |
- sed -i -e '/SUBDIRS/s:src::' Makefile || die |
503 |
- sed -i -e '/SUBDIRS/s:scripts::' Makefile || die |
504 |
- fi |
505 |
- |
506 |
- # Fix up the pkg-config file to be more robust. |
507 |
- # https://github.com/curl/curl/issues/864 |
508 |
- local priv=() libs=() |
509 |
- # We always enable zlib. |
510 |
- libs+=( "-lz" ) |
511 |
- priv+=( "zlib" ) |
512 |
- if use http2; then |
513 |
- libs+=( "-lnghttp2" ) |
514 |
- priv+=( "libnghttp2" ) |
515 |
- fi |
516 |
- if use ssl && use curl_ssl_openssl; then |
517 |
- libs+=( "-lssl" "-lcrypto" ) |
518 |
- priv+=( "openssl" ) |
519 |
- fi |
520 |
- grep -q Requires.private libcurl.pc && die "need to update ebuild" |
521 |
- libs=$(printf '|%s' "${libs[@]}") |
522 |
- sed -i -r \ |
523 |
- -e "/^Libs.private/s:(${libs#|})( |$)::g" \ |
524 |
- libcurl.pc || die |
525 |
- echo "Requires.private: ${priv[*]}" >> libcurl.pc |
526 |
-} |
527 |
- |
528 |
-multilib_src_install_all() { |
529 |
- einstalldocs |
530 |
- prune_libtool_files --all |
531 |
- |
532 |
- rm -rf "${ED}"/etc/ |
533 |
-} |