CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
tar: updated to 1.30
[crossrootfs.git] / libcap / Pkgfile
index 23574d419179fbadc40f4c8276c2631f35886b79..3c5e714970e2c8df270d283b3a2cb4feb01aed38 100644 (file)
@@ -5,17 +5,19 @@
 # Depends on: attr
 
 name=libcap
-version=2.24
+version=2.25
 release=2
-source=(https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/$name-$version.tar.xz)
+source=(https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/$name-$version.tar.xz
+        $name-$version-gperf.patch)
 
 build () {
   cd libcap-$version
 
+  patch -p1 -i $SRC/$name-$version-gperf.patch
   sed -i "/^CFLAGS/s/-O2/$CFLAGS/" Make.Rules 
 
-  make CC="$CC" BUILD_CC="gcc" BUILD_CFLAGS="-O2 -pipe"
-  make RAISE_SETFCAP=no DESTDIR=$PKG man_prefix=/usr install
+  make CC="$CC" BUILD_CC="gcc" BUILD_CFLAGS="-O2 -pipe" PAM_CAP=no
+  make RAISE_SETFCAP=no PAM_CAP=no DESTDIR=$PKG man_prefix=/usr/share install
 
   install -d $PKG/usr/lib
   mv $PKG/lib/libcap.a $PKG/usr/lib