summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-12-11 01:04:36 +0000
committerSam James <sam@gentoo.org>2022-12-11 22:50:24 +0000
commit13c4058a167d8061a2f5615bc19a5333855d8b0c (patch)
tree4b95292233d197bb78db8933d2b25c3e272b70dd
parentprofiles/desc: add rustls for curl_ssl (diff)
downloadgentoo-13c4058a167d8061a2f5615bc19a5333855d8b0c.tar.gz
gentoo-13c4058a167d8061a2f5615bc19a5333855d8b0c.tar.bz2
gentoo-13c4058a167d8061a2f5615bc19a5333855d8b0c.zip
net-misc/curl: add rustls support
Bug: https://bugs.gentoo.org/885099 Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--net-misc/curl/curl-7.86.0-r3.ebuild16
-rw-r--r--net-misc/curl/metadata.xml1
-rw-r--r--profiles/arch/amd64/package.use.mask4
-rw-r--r--profiles/arch/amd64/package.use.stable.mask4
-rw-r--r--profiles/arch/base/package.use.mask4
-rw-r--r--profiles/features/wd40/package.use.mask4
6 files changed, 30 insertions, 3 deletions
diff --git a/net-misc/curl/curl-7.86.0-r3.ebuild b/net-misc/curl/curl-7.86.0-r3.ebuild
index 50c94270b54b..c66e10b796b0 100644
--- a/net-misc/curl/curl-7.86.0-r3.ebuild
+++ b/net-misc/curl/curl-7.86.0-r3.ebuild
@@ -13,8 +13,8 @@ SRC_URI="https://curl.haxx.se/download/${P}.tar.xz
LICENSE="curl"
SLOT="0"
KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="+adns alt-svc brotli +ftp gnutls gopher hsts +http2 idn +imap ipv6 kerberos ldap mbedtls nss +openssl +pop3 +progress-meter rtmp samba +smtp ssh ssl sslv3 static-libs test telnet +tftp websockets zstd"
-IUSE+=" curl_ssl_gnutls curl_ssl_mbedtls curl_ssl_nss +curl_ssl_openssl"
+IUSE="+adns alt-svc brotli +ftp gnutls gopher hsts +http2 idn +imap ipv6 kerberos ldap mbedtls nss +openssl +pop3 +progress-meter rtmp rustls samba +smtp ssh ssl sslv3 static-libs test telnet +tftp websockets zstd"
+IUSE+=" curl_ssl_gnutls curl_ssl_mbedtls curl_ssl_nss +curl_ssl_openssl curl_ssl_rustls"
IUSE+=" nghttp3 quiche"
VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/danielstenberg.asc
@@ -26,6 +26,7 @@ REQUIRED_USE="
curl_ssl_mbedtls
curl_ssl_nss
curl_ssl_openssl
+ curl_ssl_rustls
)
)"
@@ -52,6 +53,9 @@ RDEPEND="ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
dev-libs/nss-pem
app-misc/ca-certificates
)
+ rustls? (
+ net-libs/rustls-ffi:=[${MULTILIB_USEDEP}]
+ )
)
http2? ( net-libs/nghttp2:=[${MULTILIB_USEDEP}] )
nghttp3? (
@@ -134,6 +138,10 @@ multilib_src_configure() {
einfo "SSL provided by openssl"
myconf+=( --with-ssl --with-ca-path="${EPREFIX}"/etc/ssl/certs )
fi
+ if use rustls || use curl_ssl_rustls; then
+ einfo "SSL provided by rustls"
+ myconf+=( --with-rustls )
+ fi
if use curl_ssl_gnutls; then
einfo "Default SSL provided by gnutls"
@@ -147,6 +155,9 @@ multilib_src_configure() {
elif use curl_ssl_openssl; then
einfo "Default SSL provided by openssl"
myconf+=( --with-default-ssl-backend=openssl )
+ elif use curl_ssl_rustls; then
+ einfo "Default SSL provided by rustls"
+ myconf+=( --with-default-ssl-backend=rustls )
else
eerror "We can't be here because of REQUIRED_USE."
fi
@@ -224,7 +235,6 @@ multilib_src_configure() {
$(use_with nghttp3 ngtcp2)
$(use_with quiche)
$(use_with rtmp librtmp)
- --without-rustls
--without-schannel
--without-secure-transport
$(use_enable websockets)
diff --git a/net-misc/curl/metadata.xml b/net-misc/curl/metadata.xml
index 1ed68e6f5340..e33f2001ba38 100644
--- a/net-misc/curl/metadata.xml
+++ b/net-misc/curl/metadata.xml
@@ -22,6 +22,7 @@
<flag name="pop3">Enable Post Office Protocol 3 support</flag>
<flag name="progress-meter">Enable the progress meter</flag>
<flag name="rtmp">Enable RTMP Streaming Media support</flag>
+ <flag name="rustls">Enable Rustls ssl backend</flag>
<flag name="smtp">Enable Simple Mail Transfer Protocol support</flag>
<flag name="ssh">Enable SSH urls in curl using libssh2</flag>
<flag name="ssl">Enable crypto engine support (via openssl if USE='-gnutls -nss')</flag>
diff --git a/profiles/arch/amd64/package.use.mask b/profiles/arch/amd64/package.use.mask
index 28b8e5f5dfe1..1508843cecf7 100644
--- a/profiles/arch/amd64/package.use.mask
+++ b/profiles/arch/amd64/package.use.mask
@@ -17,6 +17,10 @@
#--- END OF EXAMPLES ---
+# Sam James <sam@gentoo.org> (2022-12-11)
+# net-libs/rustls-ffi is keyworded here
+net-misc/curl -rustls -curl_ssl_rustls
+
# Andrew Ammerlaan <andrewammerlaan@gentoo.org> (2022-12-06)
# Quick Sync Video (through intel-mediasdk or oneVPL) is
# only keyworded on amd64
diff --git a/profiles/arch/amd64/package.use.stable.mask b/profiles/arch/amd64/package.use.stable.mask
index 212a3c74ea9f..06a6b1164832 100644
--- a/profiles/arch/amd64/package.use.stable.mask
+++ b/profiles/arch/amd64/package.use.stable.mask
@@ -17,6 +17,10 @@
#--- END OF EXAMPLES ---
+# Sam James <sam@gentoo.org> (2022-12-11)
+# net-libs/rustls-ffi is not yet marked stable
+net-misc/curl rustls curl_ssl_rustls
+
# Sam James <sam@gentoo.org> (2022-12-07)
# Needs unstable media-libs/oneVPL
media-libs/gst-plugins-bad qsv
diff --git a/profiles/arch/base/package.use.mask b/profiles/arch/base/package.use.mask
index 309971ea4bfd..b0af11dbc968 100644
--- a/profiles/arch/base/package.use.mask
+++ b/profiles/arch/base/package.use.mask
@@ -1,6 +1,10 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
+# Sam James <sam@gentoo.org> (2022-12-11)
+# Unkeyworded dependencies
+net-misc/curl rustls curl_ssl_rustls
+
# Andrew Ammerlaan <andrewammerlaan@gentoo.org> (2022-12-06)
# Quick Sync Video (through intel-mediasdk or oneVPL) is
# only keyworded on amd64
diff --git a/profiles/features/wd40/package.use.mask b/profiles/features/wd40/package.use.mask
index c86a7036962d..a61e76346525 100644
--- a/profiles/features/wd40/package.use.mask
+++ b/profiles/features/wd40/package.use.mask
@@ -1,6 +1,10 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
+# Sam James <sam@gentoo.org> (2022-12-11)
+# net-libs/rustls-ffi needs Rust.
+net-misc/curl rustls curl_ssl_rustls
+
# matoro <matoro_gentoo@matoro.tk> (2022-12-01)
# tree-sitter-grammar.eclass adds dev-util/tree-sitter-cli as test dep
dev-libs/tree-sitter-bash test