opt/libxml2/Pkgfile
Juergen Daubert ee2b265f81 [notify] libxml2: apply several security fixes
Fix for CVE-2010-4494, CVE-2011-{0216,2821,2834,3905,3919}
2012-01-31 12:31:34 +01:00

29 lines
752 B
Plaintext

# Description: XML library version 2
# URL: http://xmlsoft.org/
# Maintainer: Juergen Daubert, jue at crux dot nu
# Packager: Daniel Mueller, daniel at danm dot de
# Depends on: zlib
name=libxml2
version=2.7.8
release=2
source=(ftp://xmlsoft.org/libxml2/$name-$version.tar.gz
CVE-2010-4494.patch
CVE-2011-{0216,2821,2834,3905,3919}.patch)
build () {
cd $name-$version
cat $SRC/CVE-201?-*.patch | patch -p1
# http://mail.gnome.org/archives/xml/2010-November/msg00016.html
sed -i '/VERSION_SCRIPT_FLAGS/s/-z/-n/' configure
./configure --prefix=/usr \
--mandir=/usr/man \
--without-python
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share/{doc,gtk-doc}
}