Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 1 | SUMMARY = "Command line tool and library for client-side URL transfers" |
| 2 | HOMEPAGE = "http://curl.haxx.se/" |
| 3 | BUGTRACKER = "http://curl.haxx.se/mail/list.cgi?list=curl-tracker" |
| 4 | SECTION = "console/network" |
| 5 | LICENSE = "MIT" |
Brad Bishop | 6f8dcde | 2018-10-16 10:47:12 +0800 | [diff] [blame] | 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=ef889a37a5a874490ac7ce116396f29a" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 7 | |
| 8 | SRC_URI = "http://curl.haxx.se/download/curl-${PV}.tar.bz2 \ |
| 9 | file://0001-replace-krb5-config-with-pkg-config.patch \ |
Brad Bishop | 6f8dcde | 2018-10-16 10:47:12 +0800 | [diff] [blame] | 10 | file://CVE-2018-14618.patch \ |
Brad Bishop | c4ea075 | 2018-11-15 14:30:15 -0800 | [diff] [blame] | 11 | file://CVE-2018-16839.patch \ |
| 12 | file://CVE-2018-16840.patch \ |
| 13 | file://CVE-2018-16842.patch \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 14 | " |
| 15 | |
Brad Bishop | d5ae7d9 | 2018-06-14 09:52:03 -0700 | [diff] [blame] | 16 | SRC_URI[md5sum] = "31d0a9f48dc796a7db351898a1e5058a" |
| 17 | SRC_URI[sha256sum] = "5f6f336921cf5b84de56afbd08dfb70adeef2303751ffb3e570c936c6d656c9c" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 18 | |
Brad Bishop | 6f8dcde | 2018-10-16 10:47:12 +0800 | [diff] [blame] | 19 | CVE_PRODUCT = "curl libcurl" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 20 | inherit autotools pkgconfig binconfig multilib_header |
| 21 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 22 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} gnutls libidn proxy threaded-resolver verbose zlib" |
| 23 | PACKAGECONFIG_class-native = "ipv6 proxy ssl threaded-resolver verbose zlib" |
| 24 | PACKAGECONFIG_class-nativesdk = "ipv6 proxy ssl threaded-resolver verbose zlib" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 25 | |
| 26 | # 'ares' and 'threaded-resolver' are mutually exclusive |
| 27 | PACKAGECONFIG[ares] = "--enable-ares,--disable-ares,c-ares" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 28 | PACKAGECONFIG[brotli] = "--with-brotli,--without-brotli,brotli" |
| 29 | PACKAGECONFIG[builtinmanual] = "--enable-manual,--disable-manual" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 30 | PACKAGECONFIG[dict] = "--enable-dict,--disable-dict," |
| 31 | PACKAGECONFIG[gnutls] = "--with-gnutls,--without-gnutls,gnutls" |
| 32 | PACKAGECONFIG[gopher] = "--enable-gopher,--disable-gopher," |
| 33 | PACKAGECONFIG[imap] = "--enable-imap,--disable-imap," |
| 34 | PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," |
| 35 | PACKAGECONFIG[krb5] = "--with-gssapi,--without-gssapi,krb5" |
| 36 | PACKAGECONFIG[ldap] = "--enable-ldap,--disable-ldap," |
| 37 | PACKAGECONFIG[ldaps] = "--enable-ldaps,--disable-ldaps," |
| 38 | PACKAGECONFIG[libidn] = "--with-libidn2,--without-libidn2,libidn2" |
| 39 | PACKAGECONFIG[libssh2] = "--with-libssh2,--without-libssh2,libssh2" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 40 | PACKAGECONFIG[mbedtls] = "--with-mbedtls=${STAGING_DIR_TARGET},--without-mbedtls,mbedtls" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 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[telnet] = "--enable-telnet,--disable-telnet," |
| 50 | PACKAGECONFIG[tftp] = "--enable-tftp,--disable-tftp," |
| 51 | PACKAGECONFIG[threaded-resolver] = "--enable-threaded-resolver,--disable-threaded-resolver" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 52 | PACKAGECONFIG[verbose] = "--enable-verbose,--disable-verbose" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 53 | PACKAGECONFIG[zlib] = "--with-zlib=${STAGING_LIBDIR}/../,--without-zlib,zlib" |
| 54 | |
| 55 | EXTRA_OECONF = " \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 56 | --disable-libcurl-option \ |
| 57 | --disable-ntlm-wb \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 58 | --enable-crypto-auth \ |
| 59 | --with-ca-bundle=${sysconfdir}/ssl/certs/ca-certificates.crt \ |
| 60 | --without-libmetalink \ |
| 61 | --without-libpsl \ |
| 62 | " |
| 63 | |
| 64 | do_install_append_class-target() { |
| 65 | # cleanup buildpaths from curl-config |
| 66 | sed -i \ |
| 67 | -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \ |
| 68 | -e 's,--with-libtool-sysroot=${STAGING_DIR_TARGET},,g' \ |
| 69 | -e 's|${DEBUG_PREFIX_MAP}||g' \ |
| 70 | ${D}${bindir}/curl-config |
| 71 | } |
| 72 | |
| 73 | PACKAGES =+ "lib${BPN}" |
| 74 | |
| 75 | FILES_lib${BPN} = "${libdir}/lib*.so.*" |
| 76 | RRECOMMENDS_lib${BPN} += "ca-certificates" |
| 77 | |
| 78 | FILES_${PN} += "${datadir}/zsh" |
| 79 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 80 | inherit multilib_script |
| 81 | MULTILIB_SCRIPTS = "${PN}-dev:${bindir}/curl-config" |
| 82 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 83 | BBCLASSEXTEND = "native nativesdk" |