blob: f904c8ad40b5c6d4ce65e4f3db4212cea00c9369 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
description="POSIX.1e capabilities library."
packager="CRUX System Team <core-ports AT crux DOT nu>"
maintainer="Lukc <lukc AT upyum DOT com>"
url="http://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/README"
depends=(attr)
name=libcap
version=2.19
release=1
source=(ftp://ftp.kernel.org/pub/linux/libs/security/linux-privs/libcap2/$name-$version.tar.bz2)
build ()
{
cd libcap-$version;
sed -i -e '/^CFLAGS :=/s/:/\?/' Make.Rules;
sed -i -e '/^CC .=/s/.*/CC = '"${CHOST:+$CHOST-}gcc"'/' Make.Rules;
make;
make ${CHOST:+CC=$CHOST-gcc} DESTDIR=$PKG man_prefix=$mandir install;
install -d $PKG$libdir;
mv $PKG/lib/libcap.a $PKG$libdir;
rm $PKG/lib/libcap.so;
ln -s ../../lib/libcap.so.$version $PKG$libdir/libcap.so
}
|