libcap: move shlib to /usr/lib.

This commit is contained in:
Juan RP 2012-01-30 17:56:00 +01:00
parent 1816f2a965
commit 0af56dd507

View file

@ -1,7 +1,7 @@
# Template file for 'libcap'
pkgname=libcap
version=2.22
revision=2
revision=3
distfiles="${KERNEL_SITE}/libs/security/linux-privs/libcap2/$pkgname-$version.tar.bz2"
short_desc="POSIX.1e capabilities library"
maintainer="Juan RP <xtraeme@gmail.com>"
@ -17,15 +17,13 @@ Add_dependency build perl
Add_dependency build pam-devel
Add_dependency build attr-devel
do_build()
{
do_build() {
sed -i -e "s|LIBDIR=\$(FAKEROOT)\$(lib_prefix)\/lib|LIBDIR=\$(FAKEROOT)/\$(lib)|g" \
Make.Rules
make ${makejobs}
}
do_install()
{
do_install() {
vmkdir lib
vmkdir usr/lib
if [ "$XBPS_MACHINE" = "x86_64" ]; then
@ -35,6 +33,6 @@ do_install()
rm -f ${DESTDIR}/lib64
vinstall pam_cap/capability.conf 644 etc/security
cd ${DESTDIR}/usr/lib && ln -sf ../../lib/libcap.so .
chmod 755 ${DESTDIR}/lib/libcap.so.*
vmove "lib/*.so*" usr/lib
chmod 755 ${DESTDIR}/usr/lib/libcap.so.*
}