2017-10-27 21:56:50 +02:00
|
|
|
|
# Tanım: POSIX 1003.1e capabilities library
|
2016-02-24 01:27:23 +01:00
|
|
|
|
# URL: http://www.kernel.org/pub/linux/libs/security/linux-privs/
|
2017-10-27 21:56:50 +02:00
|
|
|
|
# Paketçi: milisarge
|
|
|
|
|
# Gerekler:
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-28 14:15:02 +02:00
|
|
|
|
isim=libcap
|
|
|
|
|
surum=2.25
|
|
|
|
|
devir=1
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-28 14:15:02 +02:00
|
|
|
|
kaynak=( https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-$surum.tar.xz)
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-27 23:59:41 +02:00
|
|
|
|
derle() {
|
2017-10-28 14:15:02 +02:00
|
|
|
|
cd libcap-$surum
|
2016-02-24 01:27:23 +01:00
|
|
|
|
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
|
|
|
|
|
}
|
|
|
|
|
|