mirror of
https://github.com/outbackdingo/ports.git
synced 2026-02-05 00:26:01 +00:00
25 lines
761 B
Plaintext
Executable File
25 lines
761 B
Plaintext
Executable File
# description : Implements the user-space interfaces to the POSIX 1003.1e capabilities available in Linux kernels
|
|
|
|
name=libcap
|
|
version=2.69
|
|
release=1
|
|
source="https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/$name-$version.tar.xz"
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
# use our buildflags
|
|
sed -i "s/CFLAGS :=/CFLAGS += \$(CPPFLAGS) /" Make.Rules
|
|
sed -i "s/LDFLAGS :=/LDFLAGS +=/" Make.Rules
|
|
|
|
# Disable tests, as they cause cross-build failure
|
|
sed -e '/test:/,/.sh/d' -e '/tests/d' -i Makefile
|
|
|
|
make GOLANG=no RAISE_SETFCAP=no lib=lib prefix=/usr DESTDIR=$PKG install
|
|
chmod -v 755 $PKG/usr/lib/libcap.so
|
|
|
|
mkdir -p $PKG/lib
|
|
mv -v $PKG/usr/lib/libcap.so.* $PKG/lib
|
|
ln -sfv ../../lib/$(readlink $PKG/usr/lib/libcap.so) $PKG/usr/lib/libcap.so
|
|
}
|