36 lines
1.1 KiB
Text
36 lines
1.1 KiB
Text
# Template file for 'libcap'
|
|
pkgname=libcap
|
|
version=2.22
|
|
revision=5
|
|
subpackages="$pkgname-devel $pkgname-pam $pkgname-progs"
|
|
makedepends="perl pam-devel attr-devel"
|
|
short_desc="POSIX.1e capabilities library"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
homepage="http://sites.google.com/site/fullycapable/"
|
|
license="GPL-2"
|
|
distfiles="ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${version}.tar.gz"
|
|
#distfiles="${KERNEL_SITE}/libs/security/linux-privs/libcap2/$pkgname-$version.tar.bz2"
|
|
checksum=e1cae65d8febf2579be37c255d2e058715785ead481a4e6a4357a06aff84721f
|
|
long_desc="
|
|
libcap is a library for getting and setting POSIX.1e (formerly POSIX 6)
|
|
draft 15 capabilities."
|
|
|
|
do_build() {
|
|
sed -i -e "s|LIBDIR=\$(FAKEROOT)\$(lib_prefix)\/lib|LIBDIR=\$(FAKEROOT)/\$(lib)|g" \
|
|
Make.Rules
|
|
make ${makejobs}
|
|
}
|
|
|
|
do_install() {
|
|
vmkdir lib
|
|
vmkdir usr/lib
|
|
if [ "$XBPS_MACHINE" = "x86_64" ]; then
|
|
ln -sf lib ${DESTDIR}/lib64
|
|
fi
|
|
make DESTDIR=${DESTDIR} RAISE_SETFCAP=no install
|
|
rm -f ${DESTDIR}/lib64
|
|
|
|
vinstall pam_cap/capability.conf 644 etc/security
|
|
vmove "lib/*.so*" usr/lib
|
|
chmod 755 ${DESTDIR}/usr/lib/libcap.so.*
|
|
}
|