diff options
author | Robert Joslyn <robert.joslyn@redrectangle.org> | 2022-01-09 11:08:03 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-01-11 15:48:11 +0000 |
commit | 9050f383b59c439569b60bc84aa4a02f4d9d2b8f (patch) | |
tree | 93d546c7849815489e40b20d6df67b2d76893560 /meta/recipes-support/curl/curl_7.81.0.bb | |
parent | 0071d909a589fef769f0067cbdb3c9e8b124f207 (diff) | |
download | poky-9050f383b59c439569b60bc84aa4a02f4d9d2b8f.tar.gz |
curl: Update to 7.81.0
Update URLs to refelct what upstream is presently using and add zstd
PACKAGECONFIG.
(From OE-Core rev: cc029e5e1331b3a8f4181bbfdbe72c547916f458)
Signed-off-by: Robert Joslyn <robert.joslyn@redrectangle.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/curl/curl_7.81.0.bb')
-rw-r--r-- | meta/recipes-support/curl/curl_7.81.0.bb | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/meta/recipes-support/curl/curl_7.81.0.bb b/meta/recipes-support/curl/curl_7.81.0.bb new file mode 100644 index 0000000000..30bd928751 --- /dev/null +++ b/meta/recipes-support/curl/curl_7.81.0.bb | |||
@@ -0,0 +1,88 @@ | |||
1 | SUMMARY = "Command line tool and library for client-side URL transfers" | ||
2 | DESCRIPTION = "It uses URL syntax to transfer data to and from servers. \ | ||
3 | curl is a widely used because of its ability to be flexible and complete \ | ||
4 | complex tasks. For example, you can use curl for things like user authentication, \ | ||
5 | HTTP post, SSL connections, proxy support, FTP uploads, and more!" | ||
6 | HOMEPAGE = "https://curl.se/" | ||
7 | BUGTRACKER = "https://github.com/curl/curl/issues" | ||
8 | SECTION = "console/network" | ||
9 | LICENSE = "MIT" | ||
10 | LIC_FILES_CHKSUM = "file://COPYING;md5=425f6fdc767cc067518eef9bbdf4ab7b" | ||
11 | |||
12 | SRC_URI = "https://curl.se/download/${BP}.tar.xz" | ||
13 | SRC_URI[sha256sum] = "a067b688d1645183febc31309ec1f3cdce9213d02136b6a6de3d50f69c95a7d3" | ||
14 | |||
15 | # Curl has used many names over the years... | ||
16 | CVE_PRODUCT = "haxx:curl haxx:libcurl curl:curl curl:libcurl libcurl:libcurl daniel_stenberg:curl" | ||
17 | |||
18 | inherit autotools pkgconfig binconfig multilib_header | ||
19 | |||
20 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} ssl libidn proxy threaded-resolver verbose zlib" | ||
21 | PACKAGECONFIG:class-native = "ipv6 proxy ssl threaded-resolver verbose zlib" | ||
22 | PACKAGECONFIG:class-nativesdk = "ipv6 proxy ssl threaded-resolver verbose zlib" | ||
23 | |||
24 | # 'ares' and 'threaded-resolver' are mutually exclusive | ||
25 | PACKAGECONFIG[ares] = "--enable-ares,--disable-ares,c-ares,,,threaded-resolver" | ||
26 | PACKAGECONFIG[brotli] = "--with-brotli,--without-brotli,brotli" | ||
27 | PACKAGECONFIG[builtinmanual] = "--enable-manual,--disable-manual" | ||
28 | PACKAGECONFIG[dict] = "--enable-dict,--disable-dict," | ||
29 | PACKAGECONFIG[gnutls] = "--with-gnutls,--without-gnutls,gnutls" | ||
30 | PACKAGECONFIG[gopher] = "--enable-gopher,--disable-gopher," | ||
31 | PACKAGECONFIG[imap] = "--enable-imap,--disable-imap," | ||
32 | PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," | ||
33 | PACKAGECONFIG[krb5] = "--with-gssapi,--without-gssapi,krb5" | ||
34 | PACKAGECONFIG[ldap] = "--enable-ldap,--disable-ldap," | ||
35 | PACKAGECONFIG[ldaps] = "--enable-ldaps,--disable-ldaps," | ||
36 | PACKAGECONFIG[libgsasl] = "--with-libgsasl,--without-libgsasl,libgsasl" | ||
37 | PACKAGECONFIG[libidn] = "--with-libidn2,--without-libidn2,libidn2" | ||
38 | PACKAGECONFIG[libssh2] = "--with-libssh2,--without-libssh2,libssh2" | ||
39 | PACKAGECONFIG[mbedtls] = "--with-mbedtls=${STAGING_DIR_TARGET},--without-mbedtls,mbedtls" | ||
40 | PACKAGECONFIG[mqtt] = "--enable-mqtt,--disable-mqtt," | ||
41 | PACKAGECONFIG[nghttp2] = "--with-nghttp2,--without-nghttp2,nghttp2" | ||
42 | PACKAGECONFIG[pop3] = "--enable-pop3,--disable-pop3," | ||
43 | PACKAGECONFIG[proxy] = "--enable-proxy,--disable-proxy," | ||
44 | PACKAGECONFIG[rtmpdump] = "--with-librtmp,--without-librtmp,rtmpdump" | ||
45 | PACKAGECONFIG[rtsp] = "--enable-rtsp,--disable-rtsp," | ||
46 | PACKAGECONFIG[smb] = "--enable-smb,--disable-smb," | ||
47 | PACKAGECONFIG[smtp] = "--enable-smtp,--disable-smtp," | ||
48 | PACKAGECONFIG[ssl] = "--with-ssl --with-random=/dev/urandom,--without-ssl,openssl" | ||
49 | PACKAGECONFIG[nss] = "--with-nss,--without-nss,nss" | ||
50 | PACKAGECONFIG[telnet] = "--enable-telnet,--disable-telnet," | ||
51 | PACKAGECONFIG[tftp] = "--enable-tftp,--disable-tftp," | ||
52 | PACKAGECONFIG[threaded-resolver] = "--enable-threaded-resolver,--disable-threaded-resolver,,,,ares" | ||
53 | PACKAGECONFIG[verbose] = "--enable-verbose,--disable-verbose" | ||
54 | PACKAGECONFIG[zlib] = "--with-zlib=${STAGING_LIBDIR}/../,--without-zlib,zlib" | ||
55 | PACKAGECONFIG[zstd] = "--with-zstd,--without-zstd,zstd" | ||
56 | |||
57 | EXTRA_OECONF = " \ | ||
58 | --disable-libcurl-option \ | ||
59 | --disable-ntlm-wb \ | ||
60 | --enable-crypto-auth \ | ||
61 | --with-ca-bundle=${sysconfdir}/ssl/certs/ca-certificates.crt \ | ||
62 | --without-libpsl \ | ||
63 | --enable-debug \ | ||
64 | --enable-optimize \ | ||
65 | --disable-curldebug \ | ||
66 | " | ||
67 | |||
68 | do_install:append:class-target() { | ||
69 | # cleanup buildpaths from curl-config | ||
70 | sed -i \ | ||
71 | -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \ | ||
72 | -e 's,--with-libtool-sysroot=${STAGING_DIR_TARGET},,g' \ | ||
73 | -e 's|${DEBUG_PREFIX_MAP}||g' \ | ||
74 | -e 's|${@" ".join(d.getVar("DEBUG_PREFIX_MAP").split())}||g' \ | ||
75 | ${D}${bindir}/curl-config | ||
76 | } | ||
77 | |||
78 | PACKAGES =+ "lib${BPN}" | ||
79 | |||
80 | FILES:lib${BPN} = "${libdir}/lib*.so.*" | ||
81 | RRECOMMENDS:lib${BPN} += "ca-certificates" | ||
82 | |||
83 | FILES:${PN} += "${datadir}/zsh" | ||
84 | |||
85 | inherit multilib_script | ||
86 | MULTILIB_SCRIPTS = "${PN}-dev:${bindir}/curl-config" | ||
87 | |||
88 | BBCLASSEXTEND = "native nativesdk" | ||