libcap: fixed for x86_64.

--HG--
extra : convert_revision : 5532a12968ae70f26752cb890335bad61de87b41
This commit is contained in:
Juan RP 2009-12-19 05:02:13 +01:00
parent ed5a7e5a1c
commit 224a521645

View file

@ -22,10 +22,18 @@ pre_build()
${wrksrc}/Make.Rules
}
pre_install()
{
if [ "$xbps_machine" = "x86_64" ]; then
mkdir -vp ${DESTDIR}/usr/lib
cd ${DESTDIR}/usr && ln -sv lib lib64 && cd ${wrksrc}
fi
}
post_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
${DESTDIR}/etc/security/capability.conf || return 1
mkdir -p ${DESTDIR}/lib || return 1
mv ${DESTDIR}/usr/lib/security ${DESTDIR}/lib || return 1
}