diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD index c688f0a..e3def17 100644 --- a/trunk/PKGBUILD +++ b/trunk/PKGBUILD @@ -4,7 +4,7 @@ pkgname=libvirt pkgver=3.5.0 -pkgrel=1 +pkgrel=2 pkgdesc="API for controlling virtualization engines (openvz,kvm,qemu,virtualbox,xen,etc)" arch=('i686' 'x86_64') url="http://libvirt.org/" @@ -82,8 +82,7 @@ prepare() { tools/{libvirt-guests.service,libvirt-guests.sh,virt-pki-validate}.in \ src/locking/virtlockd.service.in sed -i 's|@sbindir@|/usr/bin|g' src/locking/virtlockd.service.in - # 78 is kvm group: https://wiki.archlinux.org/index.php/DeveloperWiki:UID_/_GID_Database - sed -i 's|#group =.*|group="78"|' src/qemu/qemu.conf + sed -i 's|#group =.*|group="kvm"|' src/qemu/qemu.conf sed -i 's|/usr/libexec/qemu-bridge-helper|/usr/lib/qemu/qemu-bridge-helper|g' \ src/qemu/qemu{.conf,_conf.c} \ src/qemu/test_libvirtd_qemu.aug.in @@ -118,7 +117,6 @@ package() { install -D -m644 "$srcdir"/libvirtd-guests.conf.d "$pkgdir"/etc/conf.d/libvirt-guests install -D -m644 "$srcdir"/libvirt.tmpfiles.d "$pkgdir"/usr/lib/tmpfiles.d/libvirt.conf - chown -R 0:78 "$pkgdir"/var/lib/libvirt/qemu chmod 0770 "$pkgdir"/var/lib/libvirt/qemu chown 0:102 "$pkgdir"/usr/share/polkit-1/rules.d diff --git a/trunk/libvirt.install b/trunk/libvirt.install index 398c1b3..0e28d6b 100644 --- a/trunk/libvirt.install +++ b/trunk/libvirt.install @@ -1,5 +1,6 @@ post_install() { groupadd -r -f libvirt + chown -R root:kvm /var/lib/libvirt/qemu echo ">>> libvirt runs qemu from nobody:kvm by default" echo ">>> change the USER if desired in /etc/libvirt/qemu.conf" echo ">>> See https://wiki.archlinux.org/index.php/Libvirt for more info"