2010-06-03 12:23:01 +02:00
|
|
|
# Description: POSIX.1e capabilities library
|
2020-07-04 13:49:03 +02:00
|
|
|
# URL: https://sites.google.com/site/fullycapable/
|
2010-06-03 12:23:01 +02: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 12:23:01 +02:00
|
|
|
|
|
|
|
name=libcap
|
2020-07-04 11:41:35 +02:00
|
|
|
version=2.37
|
2020-01-15 15:21:50 +01:00
|
|
|
release=1
|
2020-01-05 21:19:39 +01:00
|
|
|
source=(https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/$name-$version.tar.xz)
|
2010-06-03 12:23:01 +02:00
|
|
|
|
|
|
|
build () {
|
2020-05-04 14:53:36 +02:00
|
|
|
cd $name-$version
|
2010-06-03 12:23:01 +02:00
|
|
|
|
2020-05-04 14:53:36 +02:00
|
|
|
sed -i "/^CFLAGS/s/-O2/$CFLAGS/" Make.Rules
|
2010-06-03 12:23:01 +02:00
|
|
|
|
2020-05-04 14:53:36 +02:00
|
|
|
make install \
|
|
|
|
GOLANG=no \
|
|
|
|
RAISE_SETFCAP=no \
|
|
|
|
PKGCONFIGDIR=/usr/lib/pkgconfig \
|
|
|
|
DESTDIR=$PKG
|
2010-06-03 12:23:01 +02:00
|
|
|
|
2020-05-04 14:53:36 +02:00
|
|
|
install -d $PKG/usr/lib
|
|
|
|
mv $PKG/lib/lib{cap,psx}.a $PKG/usr/lib
|
|
|
|
rm $PKG/lib/libcap.so
|
|
|
|
ln -s ../../lib/libcap.so.$version $PKG/usr/lib/libcap.so
|
2020-01-06 15:47:46 +01:00
|
|
|
|
2020-05-04 14:53:36 +02:00
|
|
|
sed '/^libdir/s|/lib|/usr/lib|' -i $PKG/usr/lib/pkgconfig/*.pc
|
2010-06-03 12:23:01 +02:00
|
|
|
}
|