diff options
Diffstat (limited to 'abs/core/libarchive/PKGBUILD')
-rw-r--r-- | abs/core/libarchive/PKGBUILD | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/abs/core/libarchive/PKGBUILD b/abs/core/libarchive/PKGBUILD index 182ea71..3b1540f 100644 --- a/abs/core/libarchive/PKGBUILD +++ b/abs/core/libarchive/PKGBUILD @@ -3,21 +3,26 @@ pkgname=libarchive pkgver=3.1.2 -pkgrel=3 +pkgrel=8 pkgdesc="library that can create and read several streaming archive formats" arch=('i686' 'x86_64') url="http://libarchive.org/" license=('BSD') -depends=('acl' 'attr' 'bzip2' 'expat' 'lzo2' 'openssl' 'xz' 'zlib' 'nettle') +depends=('acl' 'attr' 'bzip2' 'expat' 'lzo' 'nettle' 'openssl' 'xz' 'zlib') +options=('strip' 'debug' 'libtool') provides=('libarchive.so') source=("http://libarchive.org/downloads/$pkgname-$pkgver.tar.gz" '0001-mtree-fix-line-filename-length-calculation.patch' - 'libarchive-3.1.2-acl.patch') + '0001-Limit-write-requests-to-at-most-INT_MAX.patch' + 'libarchive-3.1.2-acl.patch' + 'libarchive-3.1.2-sparce-mtree.patch') md5sums=('efad5a503f66329bb9d2f4308b5de98a' 'fda89c145bbcd793a96b06b463ef6a72' - 'a5c995661c62429ceff2c23ea322393b') + '9bf80940bd3ce861137a0a8dcacf5705' + 'a5c995661c62429ceff2c23ea322393b' + 'cb344a879b3c4550fe3faf86c3826f23') -build() { +prepare() { cd "$pkgname-$pkgver" # https://code.google.com/p/libarchive/issues/detail?id=301 @@ -27,6 +32,15 @@ build() { # https://code.google.com/p/libarchive/issues/detail?id=329 patch -Np1 -i "$srcdir/libarchive-3.1.2-acl.patch" + # CVE-2013-0211 + patch -Np1 -i "$srcdir/0001-Limit-write-requests-to-at-most-INT_MAX.patch" + + # upstream commit 977bf2a4 - improved mtree support + patch -p1 -i $srcdir/libarchive-3.1.2-sparce-mtree.patch +} + +build() { + cd "$pkgname-$pkgver" ./configure --prefix=/usr --without-xml2 make } |