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() do_install()
{ {
mkdir -p ${DESTDIR}/usr/lib ${DESTDIR}/usr/share/man vmove usr/include usr
mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr vmove lib/libcap.a usr/lib
mv ${SRCPKGDESTDIR}/usr/lib/libcap.*a ${DESTDIR}/usr/lib vmove usr/share/man/man3 usr/share/man
mv ${SRCPKGDESTDIR}/usr/share/man/man3 ${DESTDIR}/usr/share/man
} }

View file

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

View file

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

View file

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