CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
webfs: initial import (verified compilation)
[attic/ports/opt-cross.git] / expat / Pkgfile
index 1e6f8220e663c22754aae12e6fa79451fa69076b..13531abc4e45ba1e7360fccf152c5556827b467d 100644 (file)
@@ -6,14 +6,17 @@
 
 name=expat
 version=2.0.1
-release=1
-source=(http://dl.sourceforge.net/$name/$name-$version.tar.gz)
+release=2
+source=(http://dl.sourceforge.net/$name/$name-$version.tar.gz \
+        expat-CVE-2009-3560.patch expat-CVE-2009-3720.patch)
 
 build() { 
-    cd $name-$version
-    ./configure --build=$CHOST \
-                --host=$CTARGET \
-                --prefix=/usr
-    make
-    make prefix=$PKG/usr install
+  cd $name-$version
+  patch -p0 -d lib -i $SRC/expat-CVE-2009-3560.patch
+  patch -p0 -d lib -i $SRC/expat-CVE-2009-3720.patch
+  ./configure --build=$CHOST \
+              --host=$CTARGET \
+              --prefix=/usr
+  make
+  make prefix=$PKG/usr install
 }