Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "Support for reading various archive formats" |
| 2 | DESCRIPTION = "C library and command-line tools for reading and writing tar, cpio, zip, ISO, and other archive formats" |
| 3 | HOMEPAGE = "http://www.libarchive.org/" |
| 4 | SECTION = "devel" |
| 5 | LICENSE = "BSD" |
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=b4e3ffd607d6686c6cb2f63394370841" |
| 7 | |
| 8 | DEPENDS = "e2fsprogs-native" |
| 9 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 10 | PACKAGECONFIG ?= "zlib bz2" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 11 | |
| 12 | PACKAGECONFIG_append_class-target = "\ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 13 | libxml2 \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 14 | ${@bb.utils.contains('DISTRO_FEATURES', 'acl', 'acl', '', d)} \ |
| 15 | ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'xattr', '', d)} \ |
| 16 | ${@bb.utils.contains('DISTRO_FEATURES', 'largefile', 'largefile', '', d)} \ |
| 17 | " |
| 18 | |
| 19 | PACKAGECONFIG_append_class-nativesdk = " largefile" |
| 20 | |
| 21 | PACKAGECONFIG[acl] = "--enable-acl,--disable-acl,acl," |
| 22 | PACKAGECONFIG[xattr] = "--enable-xattr,--disable-xattr,attr," |
| 23 | PACKAGECONFIG[largefile] = "--enable-largefile,--disable-largefile,," |
| 24 | PACKAGECONFIG[zlib] = "--with-zlib,--without-zlib,zlib," |
| 25 | PACKAGECONFIG[bz2] = "--with-bz2lib,--without-bz2lib,bzip2," |
| 26 | PACKAGECONFIG[xz] = "--with-lzmadec --with-lzma,--without-lzmadec --without-lzma,xz," |
| 27 | PACKAGECONFIG[openssl] = "--with-openssl,--without-openssl,openssl," |
| 28 | PACKAGECONFIG[libxml2] = "--with-xml2,--without-xml2,libxml2," |
| 29 | PACKAGECONFIG[expat] = "--with-expat,--without-expat,expat," |
| 30 | PACKAGECONFIG[lzo] = "--with-lzo2,--without-lzo2,lzo," |
| 31 | PACKAGECONFIG[nettle] = "--with-nettle,--without-nettle,nettle," |
| 32 | |
| 33 | SRC_URI = "http://libarchive.org/downloads/libarchive-${PV}.tar.gz \ |
| 34 | file://libarchive-CVE-2013-0211.patch \ |
| 35 | file://pkgconfig.patch \ |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 36 | file://libarchive-CVE-2015-2304.patch \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 37 | file://mkdir.patch \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 38 | file://0001-Set-xattrs-after-setting-times.patch \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 39 | " |
| 40 | |
| 41 | SRC_URI[md5sum] = "efad5a503f66329bb9d2f4308b5de98a" |
| 42 | SRC_URI[sha256sum] = "eb87eacd8fe49e8d90c8fdc189813023ccc319c5e752b01fb6ad0cc7b2c53d5e" |
| 43 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 44 | inherit autotools update-alternatives pkgconfig |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 45 | |
| 46 | CPPFLAGS += "-I${WORKDIR}/extra-includes" |
| 47 | |
| 48 | do_configure[cleandirs] += "${WORKDIR}/extra-includes" |
| 49 | do_configure_prepend() { |
| 50 | # We just need the headers for some type constants, so no need to |
| 51 | # build all of e2fsprogs for the target |
| 52 | cp -R ${STAGING_INCDIR_NATIVE}/ext2fs ${WORKDIR}/extra-includes/ |
| 53 | } |
| 54 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 55 | ALTERNATIVE_PRIORITY = "100" |
| 56 | |
| 57 | PACKAGES =+ "bsdtar" |
| 58 | FILES_bsdtar = "${bindir}/bsdtar" |
| 59 | |
| 60 | ALTERNATIVE_bsdtar = "tar" |
| 61 | ALTERNATIVE_LINK_NAME[tar] = "${base_bindir}/tar" |
| 62 | ALTERNATIVE_TARGET[tar] = "${bindir}/bsdtar" |
| 63 | |
| 64 | PACKAGES =+ "bsdcpio" |
| 65 | FILES_bsdcpio = "${bindir}/bsdcpio" |
| 66 | |
| 67 | ALTERNATIVE_bsdcpio = "cpio" |
| 68 | ALTERNATIVE_LINK_NAME[cpio] = "${base_bindir}/cpio" |
| 69 | ALTERNATIVE_TARGET[cpio] = "${bindir}/bsdcpio" |
| 70 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 71 | BBCLASSEXTEND = "native nativesdk" |