libvirt: fix installation.

This commit is contained in:
Juan RP 2013-04-16 09:10:11 +02:00
parent be6038d249
commit 7052463b92

View file

@ -23,7 +23,8 @@ makedepends="perl pkg-config readline-devel libcap-ng-devel libnl3-devel
post_install() { post_install() {
# Remove static files. # Remove static files.
rm -f ${DESTDIR}/usr/lib/libvirt/connection-driver/*.a rm -f ${DESTDIR}/usr/lib/libvirt/connection-driver/*.a
vmove "lib/*" usr/lib vmkdir usr/lib
mv ${DESTDIR}/lib/* ${DESTDIR}/usr/lib
rm -rf ${DESTDIR}/etc/sysconfig rm -rf ${DESTDIR}/etc/sysconfig
# Remove sysconfig specific stuff from systemd services. # Remove sysconfig specific stuff from systemd services.
sed -i -e "/EnvironmentFile.*/d;" ${DESTDIR}/usr/lib/systemd/system/*.service sed -i -e "/EnvironmentFile.*/d;" ${DESTDIR}/usr/lib/systemd/system/*.service