diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-01-17 12:07:11 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-01-17 12:07:11 +0000 |
commit | 1b5e6df3780f0db6124afb1b3d114dbfecf7627c (patch) | |
tree | 4992b3911479e978834ef0a85a8ec6c0baeac596 /main/expat/APKBUILD | |
parent | 026984a0c0bdab7eea63727eced374b77bd56bf2 (diff) | |
download | aports-1b5e6df3780f0db6124afb1b3d114dbfecf7627c.tar.bz2 aports-1b5e6df3780f0db6124afb1b3d114dbfecf7627c.tar.xz |
main/expat: security fixes
Diffstat (limited to 'main/expat/APKBUILD')
-rw-r--r-- | main/expat/APKBUILD | 33 |
1 files changed, 26 insertions, 7 deletions
diff --git a/main/expat/APKBUILD b/main/expat/APKBUILD index 3f81d3256..e49d99074 100644 --- a/main/expat/APKBUILD +++ b/main/expat/APKBUILD @@ -1,22 +1,41 @@ # Maintainer: Carlo Landmeter <clandmeter at gmail.com> pkgname=expat pkgver=2.0.1 -pkgrel=0 +pkgrel=1 pkgdesc="An XML Parser library written in C" url="http://www.libexpat.org/" license='AS IS' -depends="uclibc" -makedepends="" -source="http://surfnet.dl.sourceforge.net/sourceforge/expat/expat-2.0.1.tar.gz" +depends= +makedepends= +source="http://surfnet.dl.sourceforge.net/sourceforge/expat/expat-2.0.1.tar.gz + CVE-2009-3560.patch + CVE-2009-3720.patch + " subpackages="$pkgname-dev $pkgname-doc" -build() { - cd "$srcdir/$pkgname-$pkgver" +_builddir="$srcdir/$pkgname-$pkgver" +prepare() { + cd "$_builddir" + for i in "$srcdir"/*.patch; do + [ -f "$i" ] || continue + msg "Applying $i" + patch -p1 -i "$i" || return 1 + done + +} +build() { + cd "$_builddir" ./configure --prefix=/usr \ --mandir=/usr/share/man make || return 1 +} + +package() { + cd "$_builddir" make DESTDIR="$pkgdir/" install } -md5sums="ee8b492592568805593f81f8cdf2a04c expat-2.0.1.tar.gz" +md5sums="ee8b492592568805593f81f8cdf2a04c expat-2.0.1.tar.gz +50603cac0f03aabc7087415251f592be CVE-2009-3560.patch +f3eeb796f28945899216b815e5901996 CVE-2009-3720.patch" |