2008-10-14 13:24:03 +03: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 17:18:51 +02:00
|
|
|
version=2.16
|
2009-06-06 12:59:59 +03:00
|
|
|
release=2
|
2008-10-14 13:24:03 +03:00
|
|
|
source=(ftp://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/libcap-$version.tar.gz
|
2009-06-06 12:59:59 +03:00
|
|
|
$name-$version-makefile.patch
|
|
|
|
$name-$version-drop-linux-workarounds.patch)
|
2008-10-14 13:24:03 +03:00
|
|
|
|
|
|
|
build () {
|
|
|
|
cd libcap-$version
|
|
|
|
|
2009-01-12 17:18:51 +02:00
|
|
|
patch -p0 -i $SRC/$name-$version-makefile.patch
|
2009-06-06 12:59:59 +03:00
|
|
|
patch -p0 -i $SRC/$name-$version-drop-linux-workarounds.patch
|
2008-10-14 13:24:03 +03: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}
|
|
|
|
}
|