diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD index f8840b5..8ce462f 100644 --- a/trunk/PKGBUILD +++ b/trunk/PKGBUILD @@ -61,13 +61,11 @@ install="libvirt.install" validpgpkeys=('C74415BA7C9C7F78F02E1DC34606B8A5DE95BC1F') source=("https://libvirt.org/sources/$pkgname-$pkgver.tar.xz" #{,.asc} libvirtd.conf.d - libvirtd-guests.conf.d - libvirt.tmpfiles.d) + libvirtd-guests.conf.d) # "ae102b5d7bccd29bc6015a3e0acefeaa90d097ac.patch::https://libvirt.org/git/?p=libvirt.git;a=patch;h=ae102b5d7bccd29bc6015a3e0acefeaa90d097ac") sha256sums=('89fc63213291d329d537ea96e363fd609160da080322973bd1126d431ff63424' '9d0597bbf2bd7892420cebaf0563236fe1483b83ae95ee6263c1ce7f44a44134' - '0896c30100e9e40aee1eb4a2cf0cac2c0bdd5fd7b077b9d2680d90e77435ea66' - '5c26353833944db8dc97aa63843734519d6521bd8d88497d94d910ee9d3169d8') + '0896c30100e9e40aee1eb4a2cf0cac2c0bdd5fd7b077b9d2680d90e77435ea66') prepare() { cd "$srcdir/$pkgname-$pkgver" @@ -82,8 +80,6 @@ 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|/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 @@ -103,7 +99,7 @@ build() { [ -f Makefile ] || ./configure --prefix=/usr --libexec=/usr/lib/"$pkgname" --sbindir=/usr/bin \ --with-storage-lvm --without-xen --with-udev --without-hal --disable-static \ --with-init-script=systemd \ - --with-qemu-user=nobody --with-qemu-group=nobody \ + --with-qemu-user=nobody --with-qemu-group=kvm \ --with-netcf --with-interface --with-lxc --with-storage-iscsi # --with-audit make @@ -116,18 +112,15 @@ package() { install -D -m644 "$srcdir"/libvirtd.conf.d "$pkgdir"/etc/conf.d/libvirtd 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 chmod 0750 "$pkgdir"/usr/share/polkit-1/rules.d rm -rf \ "$pkgdir"/var/run \ - "$pkgdir"/etc/sysconfig \ - "$pkgdir"/etc/rc.d + "$pkgdir"/var/lib/libvirt/qemu \ + "$pkgdir"/var/cache/libvirt/qemu \ + "$pkgdir"/etc/sysconfig rm -f "$pkgdir"/etc/libvirt/qemu/networks/autostart/default.xml } diff --git a/trunk/libvirt.tmpfiles.d b/trunk/libvirt.tmpfiles.d deleted file mode 100644 index 2804c43..0000000 --- a/trunk/libvirt.tmpfiles.d +++ /dev/null @@ -1,4 +0,0 @@ -d /run/libvirt/qemu 0755 root root - -d /run/libvirt/lxc 0755 root root - -d /run/libvirt/uml 0755 root root - -d /run/libvirt/network 0755 root root -