1 |
commit: 66b39df311c9a424fc199d69345bddb3b492b3df |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 8 16:11:57 2020 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 8 16:11:57 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=66b39df3 |
7 |
|
8 |
net-misc/curl: version bump to 7.68.0 |
9 |
|
10 |
Package-Manager: Portage-2.3.79, Repoman-2.3.16 |
11 |
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> |
12 |
|
13 |
net-misc/curl/Manifest | 1 + |
14 |
net-misc/curl/curl-7.68.0.ebuild | 265 +++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 266 insertions(+) |
16 |
|
17 |
diff --git a/net-misc/curl/Manifest b/net-misc/curl/Manifest |
18 |
index 448e6949dbc..f5160654120 100644 |
19 |
--- a/net-misc/curl/Manifest |
20 |
+++ b/net-misc/curl/Manifest |
21 |
@@ -2,3 +2,4 @@ DIST curl-7.65.0.tar.xz 2392324 BLAKE2B e5aec8c6cb6f6baabd035ce2ea159dba15410116 |
22 |
DIST curl-7.65.3.tar.xz 2392472 BLAKE2B 25726e1f1568fad6a8419b29dde41bed4d9de4be70740119879beeb08ff2a6ace7737efe1fb6d96ecaacaf8f90dc0142ceede2b90c84275ea8f72bcd09f21dba SHA512 fc4f041d3d6682378ce9eef2c6081e6ad83bb2502ea4c992c760266584c09e9ebca7c6d35958bd32a888702d9308cbce7aef69c431f97994107d7ff6b953941b |
23 |
DIST curl-7.66.0.tar.xz 2414840 BLAKE2B f5d731c304c826442a8509016d00b9c68438ef9102b3c844c15315181c307e338f79930dc548d7f189b944dd74cc7eeb19d130b5a967ea2efa9862d15ae78bab SHA512 81170e7e4fa9d99ee2038d96d7f2ab10dcf52435331c818c7565c1a733891720f845a08029915e52ba532c6a344c346e1678474624aac1cc333aea6d1eacde35 |
24 |
DIST curl-7.67.0.tar.xz 2418548 BLAKE2B 818b3d03ac8c4adb8a629147feccebcbd3d89164a77d7cb457924bd44c3069f1b03326861b73c51a6427d7169d40485a509f74edd89b99b760649e7adcdce693 SHA512 1d5a344be92dd61b1ba5189eff0fe337e492f2e850794943570fe71c985d0af60bd412082be646e07aaa8639908593e1ce4bb2d07db35394ec377e8ce8b9ae29 |
25 |
+DIST curl-7.68.0.tar.xz 2442788 BLAKE2B d72dbf3c4d6ef7259f0dc9b5347f9289067807246ce6aaab03f3a9c04c17328a8315261dbc08390096571bcad3bbb185a70d15ce83687d7e792bee37318bf269 SHA512 bf365609c9a66a05b3a263d02bcd3f81f905570c5739c8ec522a296b4b8e2a479d64d5524e8345e14eafad28995ee22d923522f1a45fa40eb46db38759c2eb2c |
26 |
|
27 |
diff --git a/net-misc/curl/curl-7.68.0.ebuild b/net-misc/curl/curl-7.68.0.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..31286cc893a |
30 |
--- /dev/null |
31 |
+++ b/net-misc/curl/curl-7.68.0.ebuild |
32 |
@@ -0,0 +1,265 @@ |
33 |
+# Copyright 1999-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI="7" |
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.xz" |
43 |
+ |
44 |
+LICENSE="MIT" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
47 |
+IUSE="adns alt-svc brotli http2 idn ipv6 kerberos ldap metalink +progress-meter rtmp samba ssh ssl static-libs test threads" |
48 |
+IUSE+=" curl_ssl_gnutls curl_ssl_libressl curl_ssl_mbedtls curl_ssl_nss +curl_ssl_openssl curl_ssl_winssl" |
49 |
+IUSE+=" nghttp3 quiche" |
50 |
+IUSE+=" elibc_Winnt" |
51 |
+ |
52 |
+#lead to lots of false negatives, bug #285669 |
53 |
+RESTRICT="test" |
54 |
+ |
55 |
+RDEPEND="ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] ) |
56 |
+ brotli? ( app-arch/brotli:=[${MULTILIB_USEDEP}] ) |
57 |
+ ssl? ( |
58 |
+ curl_ssl_gnutls? ( |
59 |
+ net-libs/gnutls:0=[static-libs?,${MULTILIB_USEDEP}] |
60 |
+ dev-libs/nettle:0=[${MULTILIB_USEDEP}] |
61 |
+ app-misc/ca-certificates |
62 |
+ ) |
63 |
+ curl_ssl_libressl? ( |
64 |
+ dev-libs/libressl:0=[static-libs?,${MULTILIB_USEDEP}] |
65 |
+ ) |
66 |
+ curl_ssl_mbedtls? ( |
67 |
+ net-libs/mbedtls:0=[${MULTILIB_USEDEP}] |
68 |
+ app-misc/ca-certificates |
69 |
+ ) |
70 |
+ curl_ssl_openssl? ( |
71 |
+ dev-libs/openssl:0=[static-libs?,${MULTILIB_USEDEP}] |
72 |
+ ) |
73 |
+ curl_ssl_nss? ( |
74 |
+ dev-libs/nss:0[${MULTILIB_USEDEP}] |
75 |
+ app-misc/ca-certificates |
76 |
+ ) |
77 |
+ ) |
78 |
+ http2? ( net-libs/nghttp2[${MULTILIB_USEDEP}] ) |
79 |
+ nghttp3? ( |
80 |
+ net-libs/nghttp3[${MULTILIB_USEDEP}] |
81 |
+ net-libs/ngtcp2[ssl,${MULTILIB_USEDEP}] |
82 |
+ ) |
83 |
+ quiche? ( net-libs/quiche[${MULTILIB_USEDEP}] ) |
84 |
+ idn? ( net-dns/libidn2:0=[static-libs?,${MULTILIB_USEDEP}] ) |
85 |
+ adns? ( net-dns/c-ares:0[${MULTILIB_USEDEP}] ) |
86 |
+ kerberos? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] ) |
87 |
+ metalink? ( >=media-libs/libmetalink-0.1.1[${MULTILIB_USEDEP}] ) |
88 |
+ rtmp? ( media-video/rtmpdump[${MULTILIB_USEDEP}] ) |
89 |
+ ssh? ( net-libs/libssh2[${MULTILIB_USEDEP}] ) |
90 |
+ sys-libs/zlib[${MULTILIB_USEDEP}]" |
91 |
+ |
92 |
+# Do we need to enforce the same ssl backend for curl and rtmpdump? Bug #423303 |
93 |
+# rtmp? ( |
94 |
+# media-video/rtmpdump |
95 |
+# curl_ssl_gnutls? ( media-video/rtmpdump[gnutls] ) |
96 |
+# curl_ssl_openssl? ( media-video/rtmpdump[-gnutls,ssl] ) |
97 |
+# ) |
98 |
+ |
99 |
+# ssl providers to be added: |
100 |
+# fbopenssl $(use_with spnego) |
101 |
+ |
102 |
+DEPEND="${RDEPEND}" |
103 |
+BDEPEND=">=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] |
104 |
+ test? ( |
105 |
+ sys-apps/diffutils |
106 |
+ dev-lang/perl |
107 |
+ )" |
108 |
+ |
109 |
+# c-ares must be disabled for threads |
110 |
+# only one ssl provider can be enabled |
111 |
+REQUIRED_USE=" |
112 |
+ curl_ssl_winssl? ( elibc_Winnt ) |
113 |
+ threads? ( !adns ) |
114 |
+ ssl? ( |
115 |
+ ^^ ( |
116 |
+ curl_ssl_gnutls |
117 |
+ curl_ssl_libressl |
118 |
+ curl_ssl_mbedtls |
119 |
+ curl_ssl_nss |
120 |
+ curl_ssl_openssl |
121 |
+ curl_ssl_winssl |
122 |
+ ) |
123 |
+ )" |
124 |
+ |
125 |
+DOCS=( CHANGES README docs/FEATURES docs/INTERNALS.md \ |
126 |
+ docs/FAQ docs/BUGS docs/CONTRIBUTE.md ) |
127 |
+ |
128 |
+MULTILIB_WRAPPED_HEADERS=( |
129 |
+ /usr/include/curl/curlbuild.h |
130 |
+) |
131 |
+ |
132 |
+MULTILIB_CHOST_TOOLS=( |
133 |
+ /usr/bin/curl-config |
134 |
+) |
135 |
+ |
136 |
+src_prepare() { |
137 |
+ eapply "${FILESDIR}"/${PN}-7.30.0-prefix.patch |
138 |
+ eapply "${FILESDIR}"/${PN}-respect-cflags-3.patch |
139 |
+ eapply "${FILESDIR}"/${PN}-fix-gnutls-nettle.patch |
140 |
+ |
141 |
+ sed -i '/LD_LIBRARY_PATH=/d' configure.ac || die #382241 |
142 |
+ sed -i '/CURL_MAC_CFLAGS/d' configure.ac || die #637252 |
143 |
+ |
144 |
+ eapply_user |
145 |
+ eprefixify curl-config.in |
146 |
+ eautoreconf |
147 |
+} |
148 |
+ |
149 |
+multilib_src_configure() { |
150 |
+ # We make use of the fact that later flags override earlier ones |
151 |
+ # So start with all ssl providers off until proven otherwise |
152 |
+ # TODO: in the future, we may want to add wolfssl (https://www.wolfssl.com/) |
153 |
+ local myconf=() |
154 |
+ myconf+=( --without-gnutls --without-mbedtls --without-nss --without-polarssl --without-ssl --without-winssl ) |
155 |
+ myconf+=( --without-ca-fallback --with-ca-bundle="${EPREFIX}"/etc/ssl/certs/ca-certificates.crt ) |
156 |
+ if use ssl ; then |
157 |
+ if use curl_ssl_gnutls; then |
158 |
+ einfo "SSL provided by gnutls" |
159 |
+ myconf+=( --with-gnutls --with-nettle ) |
160 |
+ elif use curl_ssl_libressl; then |
161 |
+ einfo "SSL provided by LibreSSL" |
162 |
+ myconf+=( --with-ssl --with-ca-path="${EPREFIX}"/etc/ssl/certs ) |
163 |
+ elif use curl_ssl_mbedtls; then |
164 |
+ einfo "SSL provided by mbedtls" |
165 |
+ myconf+=( --with-mbedtls ) |
166 |
+ elif use curl_ssl_nss; then |
167 |
+ einfo "SSL provided by nss" |
168 |
+ myconf+=( --with-nss ) |
169 |
+ elif use curl_ssl_openssl; then |
170 |
+ einfo "SSL provided by openssl" |
171 |
+ myconf+=( --with-ssl --with-ca-path="${EPREFIX}"/etc/ssl/certs ) |
172 |
+ elif use curl_ssl_winssl; then |
173 |
+ einfo "SSL provided by Windows" |
174 |
+ myconf+=( --with-winssl ) |
175 |
+ else |
176 |
+ eerror "We can't be here because of REQUIRED_USE." |
177 |
+ fi |
178 |
+ else |
179 |
+ einfo "SSL disabled" |
180 |
+ fi |
181 |
+ |
182 |
+ # These configuration options are organized alphabetically |
183 |
+ # within each category. This should make it easier if we |
184 |
+ # ever decide to make any of them contingent on USE flags: |
185 |
+ # 1) protocols first. To see them all do |
186 |
+ # 'grep SUPPORT_PROTOCOLS configure.ac' |
187 |
+ # 2) --enable/disable options second. |
188 |
+ # 'grep -- --enable configure | grep Check | awk '{ print $4 }' | sort |
189 |
+ # 3) --with/without options third. |
190 |
+ # grep -- --with configure | grep Check | awk '{ print $4 }' | sort |
191 |
+ |
192 |
+ ECONF_SOURCE="${S}" \ |
193 |
+ econf \ |
194 |
+ $(use_enable alt-svc) \ |
195 |
+ --enable-crypto-auth \ |
196 |
+ --enable-dict \ |
197 |
+ --disable-esni \ |
198 |
+ --enable-file \ |
199 |
+ --enable-ftp \ |
200 |
+ --enable-gopher \ |
201 |
+ --enable-http \ |
202 |
+ --enable-imap \ |
203 |
+ $(use_enable ldap) \ |
204 |
+ $(use_enable ldap ldaps) \ |
205 |
+ --disable-ntlm-wb \ |
206 |
+ --enable-pop3 \ |
207 |
+ --enable-rt \ |
208 |
+ --enable-rtsp \ |
209 |
+ $(use_enable samba smb) \ |
210 |
+ $(use_with ssh libssh2) \ |
211 |
+ --enable-smtp \ |
212 |
+ --enable-telnet \ |
213 |
+ --enable-tftp \ |
214 |
+ --enable-tls-srp \ |
215 |
+ $(use_enable adns ares) \ |
216 |
+ --enable-cookies \ |
217 |
+ --enable-dateparse \ |
218 |
+ --enable-dnsshuffle \ |
219 |
+ --enable-doh \ |
220 |
+ --enable-hidden-symbols \ |
221 |
+ --enable-http-auth \ |
222 |
+ $(use_enable ipv6) \ |
223 |
+ --enable-largefile \ |
224 |
+ --without-libpsl \ |
225 |
+ --enable-manual \ |
226 |
+ --enable-mime \ |
227 |
+ --enable-netrc \ |
228 |
+ $(use_enable progress-meter) \ |
229 |
+ --enable-proxy \ |
230 |
+ --disable-sspi \ |
231 |
+ $(use_enable static-libs static) \ |
232 |
+ $(use_enable threads threaded-resolver) \ |
233 |
+ $(use_enable threads pthreads) \ |
234 |
+ --disable-versioned-symbols \ |
235 |
+ --without-amissl \ |
236 |
+ --without-bearssl \ |
237 |
+ --without-cyassl \ |
238 |
+ --without-darwinssl \ |
239 |
+ --without-fish-functions-dir \ |
240 |
+ $(use_with idn libidn2) \ |
241 |
+ $(use_with kerberos gssapi "${EPREFIX}"/usr) \ |
242 |
+ $(use_with metalink libmetalink) \ |
243 |
+ $(use_with http2 nghttp2) \ |
244 |
+ $(use_with nghttp3) \ |
245 |
+ $(use_with nghttp3 ngtcp2) \ |
246 |
+ $(use_with quiche) \ |
247 |
+ $(use_with rtmp librtmp) \ |
248 |
+ $(use_with brotli) \ |
249 |
+ --without-schannel \ |
250 |
+ --without-secure-transport \ |
251 |
+ --without-spnego \ |
252 |
+ --without-winidn \ |
253 |
+ --without-wolfssl \ |
254 |
+ --with-zlib \ |
255 |
+ "${myconf[@]}" |
256 |
+ |
257 |
+ if ! multilib_is_native_abi; then |
258 |
+ # avoid building the client |
259 |
+ sed -i -e '/SUBDIRS/s:src::' Makefile || die |
260 |
+ sed -i -e '/SUBDIRS/s:scripts::' Makefile || die |
261 |
+ fi |
262 |
+ |
263 |
+ # Fix up the pkg-config file to be more robust. |
264 |
+ # https://github.com/curl/curl/issues/864 |
265 |
+ local priv=() libs=() |
266 |
+ # We always enable zlib. |
267 |
+ libs+=( "-lz" ) |
268 |
+ priv+=( "zlib" ) |
269 |
+ if use http2; then |
270 |
+ libs+=( "-lnghttp2" ) |
271 |
+ priv+=( "libnghttp2" ) |
272 |
+ fi |
273 |
+ if use quiche; then |
274 |
+ libs+=( "-lquiche" ) |
275 |
+ priv+=( "quiche" ) |
276 |
+ fi |
277 |
+ if use nghttp3; then |
278 |
+ libs+=( "-lnghttp3" "-lngtcp2" ) |
279 |
+ priv+=( "libnghttp3" "-libtcp2" ) |
280 |
+ fi |
281 |
+ if use ssl && use curl_ssl_openssl; then |
282 |
+ libs+=( "-lssl" "-lcrypto" ) |
283 |
+ priv+=( "openssl" ) |
284 |
+ fi |
285 |
+ grep -q Requires.private libcurl.pc && die "need to update ebuild" |
286 |
+ libs=$(printf '|%s' "${libs[@]}") |
287 |
+ sed -i -r \ |
288 |
+ -e "/^Libs.private/s:(${libs#|})( |$)::g" \ |
289 |
+ libcurl.pc || die |
290 |
+ echo "Requires.private: ${priv[*]}" >> libcurl.pc |
291 |
+} |
292 |
+ |
293 |
+multilib_src_install_all() { |
294 |
+ einstalldocs |
295 |
+ find "${ED}" -type f -name '*.la' -delete |
296 |
+ rm -rf "${ED}"/etc/ |
297 |
+} |