summaryrefslogtreecommitdiff
path: root/community-testing/libvirt/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community-testing/libvirt/PKGBUILD')
-rw-r--r--community-testing/libvirt/PKGBUILD25
1 files changed, 20 insertions, 5 deletions
diff --git a/community-testing/libvirt/PKGBUILD b/community-testing/libvirt/PKGBUILD
index 5000e9a3d..fd8b61ae9 100644
--- a/community-testing/libvirt/PKGBUILD
+++ b/community-testing/libvirt/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 71494 2012-05-27 13:14:57Z dreisner $
+# $Id: PKGBUILD 71546 2012-05-28 16:42:48Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Jonathan Wiersma <archaur at jonw dot org>
pkgname=libvirt
pkgver=0.9.12
-pkgrel=4
+pkgrel=8
pkgdesc="API for controlling virtualization engines (openvz,kvm,qemu,virtualbox,xen,etc)"
arch=('i686' 'x86_64')
url="http://libvirt.org/"
@@ -34,6 +34,7 @@ source=("http://libvirt.org/sources/$pkgname-$pkgver.tar.gz"
libvirtd.conf.d
libvirtd-guests.rc.d
libvirtd-guests.conf.d
+ libvirt.tmpfiles.d
openbsd-netcat-default.patch
libvirt-libnl3.patch)
md5sums=('5e842bc55733ceba60c64767580ff3e4'
@@ -41,6 +42,7 @@ md5sums=('5e842bc55733ceba60c64767580ff3e4'
'3ed0e24f5b5e25bf553f5427d64915e6'
'8297b1be794a24cc77f66af9380ace59'
'bc2971dacdbac967fc3474e50affc345'
+ '8d98e62915785686b0b6c8c070628392'
'b0be50eb9dfe4d133decf23b60880f7d'
'ba27fbcd989de8d84cfff98326f10c54')
@@ -64,8 +66,8 @@ build() {
export LDFLAGS=-lX11
export RADVD=/usr/sbin/radvd
[ -f Makefile ] || ./configure --prefix=/usr --libexec=/usr/lib/"$pkgname" \
- --with-storage-lvm --without-xen --with-udev --without-hal --disable-static
- find -name Makefile -exec sed -i 's#-L /usr#-L/usr#' {} \;
+ --with-storage-lvm --without-xen --with-udev --without-hal --disable-static \
+ --with-init-script=systemd
make -j1
}
@@ -80,5 +82,18 @@ package() {
install -D -m755 "$srcdir"/libvirtd-guests.rc.d "$pkgdir"/etc/rc.d/libvirtd-guests
install -D -m644 "$srcdir"/libvirtd-guests.conf.d "$pkgdir"/etc/conf.d/libvirtd-guests
- rm -rf $pkgdir/var/run
+
+ install -dm0755 $pkgdir/usr/lib/sysctl.d
+ mv $pkgdir/etc/sysctl.d/libvirtd $pkgdir/usr/lib/sysctl.d/libvirtd
+
+ # systemd stuff
+ install -D -m644 "$srcdir"/libvirt.tmpfiles.d "$pkgdir"/usr/lib/tmpfiles.d/libvirt.conf
+ mv $pkgdir/lib/* $pkgdir/usr/lib/
+
+ rm -rf \
+ $pkgdir/var/run \
+ $pkgdir/etc/rc.d/init.d \
+ $pkgdir/etc/sysconfig \
+ $pkgdir/lib \
+ $pkgdir/etc/sysctl.d
}