opt/libcap/Pkgfile

29 lines
755 B
Plaintext
Raw Normal View History

2008-10-14 12:24:03 +02:00
# Description: POSIX.1e capabilities library
# URL: http://linux.kernel.org/pub/linux/libs/security/linux-privs/
# Maintainer: Antti Nykanen, aon at iki dot fi
# Depends on: libattr
name=libcap
2009-01-12 16:18:51 +01:00
version=2.16
2009-06-06 11:59:59 +02:00
release=2
2008-10-14 12:24:03 +02:00
source=(ftp://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/libcap-$version.tar.gz
2009-06-06 11:59:59 +02:00
$name-$version-makefile.patch
$name-$version-drop-linux-workarounds.patch)
2008-10-14 12:24:03 +02:00
build () {
cd libcap-$version
2009-01-12 16:18:51 +01:00
patch -p0 -i $SRC/$name-$version-makefile.patch
2009-06-06 11:59:59 +02:00
patch -p0 -i $SRC/$name-$version-drop-linux-workarounds.patch
2008-10-14 12:24:03 +02:00
make
make \
INCDIR=$PKG/usr/include \
LIBDIR=$PKG/usr/lib \
SBINDIR=$PKG/usr/sbin \
MANDIR=$PKG/usr/man install
# man8 is empty, cap{set,get}(2) come from core/man-pages
rm -rf $PKG/usr/man/man{2,8}
}