libcap: move lib to /lib, programs to /sbin, cleanups.

This commit is contained in:
Juan RP 2011-07-02 15:26:54 +02:00
parent 6513a02ee0
commit dc3bf1d413
4 changed files with 21 additions and 20 deletions

View File

@ -10,8 +10,7 @@ Add_dependency run libcap
do_install()
{
mkdir -p ${DESTDIR}/usr/lib ${DESTDIR}/usr/share/man
mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr
mv ${SRCPKGDESTDIR}/usr/lib/libcap.*a ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/share/man/man3 ${DESTDIR}/usr/share/man
vmove usr/include usr
vmove lib/libcap.a usr/lib
vmove usr/share/man/man3 usr/share/man
}

View File

@ -5,15 +5,17 @@ long_desc="${long_desc}
This package contains a PAM module provided by the libcap package."
revision=1
conf_files="/etc/security/capability.conf"
Add_dependency run glibc
Add_dependency run attr
Add_dependency run libcap
Add_dependency run pam
do_install()
{
mkdir -p ${DESTDIR}
mv ${SRCPKGDESTDIR}/lib ${DESTDIR}
mv ${SRCPKGDESTDIR}/etc ${DESTDIR}
vmove lib/security lib
vmove etc
}

View File

@ -5,12 +5,13 @@ long_desc="${long_desc}
This package contains binary utilities provided by the libcap package."
revision=1
Add_dependency run glibc
Add_dependency run libcap
do_install()
{
mkdir -p ${DESTDIR}/usr
mv ${SRCPKGDESTDIR}/usr/sbin ${DESTDIR}/usr
mv ${SRCPKGDESTDIR}/usr/share ${DESTDIR}/usr
vmove sbin
vmove usr/share usr
}

View File

@ -1,6 +1,7 @@
# Template file for 'libcap'
pkgname=libcap
version=2.21
revision=1
distfiles="${KERNEL_SITE}/libs/security/linux-privs/libcap2/$pkgname-$version.tar.bz2"
build_style=custom-install
short_desc="POSIX.1e capabilities library"
@ -20,22 +21,20 @@ Add_dependency build attr-devel
do_build()
{
sed -i -e "s|LIBDIR=\$(FAKEROOT)\$(lib_prefix)\/lib|LIBDIR=\$(FAKEROOT)/\$(lib)|g" \
${wrksrc}/Make.Rules
Make.Rules
make ${makejobs}
}
do_install()
{
vmkdir lib
vmkdir usr/lib
if [ "$xbps_machine" = "x86_64" ]; then
mkdir -p ${DESTDIR}/usr/lib
cd ${DESTDIR}/usr && ln -s lib lib64 && cd ${wrksrc}
ln -sf lib ${DESTDIR}/lib64
fi
make DESTDIR=${DESTDIR} RAISE_SETFCAP=no install
rm -f ${DESTDIR}/lib64
make DESTDIR=${DESTDIR} prefix=/usr RAISE_SETFCAP=no install
install -D -m644 ${wrksrc}/pam_cap/capability.conf \
${DESTDIR}/etc/security/capability.conf
mkdir -p ${DESTDIR}/lib
mv ${DESTDIR}/usr/lib/security ${DESTDIR}/lib
rm -f ${DESTDIR}/usr/lib64
vinstall pam_cap/capability.conf 644 etc/security
ln -sf /lib/libcap.so ${DESTDIR}/usr/lib/libcap.so
}