milis/talimatname/temel/libcap/talimat

31 lines
653 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: POSIX 1003.1e capabilities library
# URL: http://www.kernel.org/pub/linux/libs/security/linux-privs/
# Paketçi: milisarge
# Gerekler:
isim=libcap
surum=2.25
devir=1
kaynak=( https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-$surum.tar.xz)
derle() {
cd libcap-$surum
sed -i 's:LIBDIR:PAM_&:g' pam_cap/Makefile
sed -i '/install.*STALIBNAME/d' libcap/Makefile
make
make RAISE_SETFCAP=no \
prefix=/usr \
LIBDIR=/usr/lib \
SBINDIR=/sbin \
PAM_LIBDIR=/lib \
DESTDIR=$PKG install
mkdir -p $PKG/lib
_lib=""
mv -v $PKG/usr/lib${_lib}/libcap.so.* \
$PKG/lib
ln -sfv ../../lib/libcap.so.2 $PKG/usr/lib${_lib}/libcap.so
}