2010-06-03 10:23:01 +00:00
|
|
|
# Description: POSIX.1e capabilities library
|
2011-11-19 17:48:24 +01:00
|
|
|
# URL: http://sites.google.com/site/fullycapable/
|
2010-06-03 10:23:01 +00:00
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
2019-04-16 13:25:23 +02:00
|
|
|
# Depends on: attr linux-pam
|
2010-06-03 10:23:01 +00:00
|
|
|
|
|
|
|
name=libcap
|
2020-01-05 21:19:39 +01:00
|
|
|
version=2.30
|
|
|
|
release=1
|
|
|
|
source=(https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/$name-$version.tar.xz)
|
2010-06-03 10:23:01 +00:00
|
|
|
|
|
|
|
build () {
|
2017-02-14 17:05:53 +01:00
|
|
|
cd $name-$version
|
2010-06-03 10:23:01 +00:00
|
|
|
|
2011-07-27 10:21:56 +02:00
|
|
|
sed -i "/^CFLAGS/s/-O2/$CFLAGS/" Make.Rules
|
2010-06-03 10:23:01 +00:00
|
|
|
|
2019-12-08 14:29:49 +01:00
|
|
|
make GOLANG=no RAISE_SETFCAP=no DESTDIR=$PKG install
|
2010-06-03 10:23:01 +00:00
|
|
|
|
|
|
|
install -d $PKG/usr/lib
|
|
|
|
mv $PKG/lib/libcap.a $PKG/usr/lib
|
|
|
|
rm $PKG/lib/libcap.so
|
|
|
|
ln -s ../../lib/libcap.so.$version $PKG/usr/lib/libcap.so
|
|
|
|
}
|