extra/libvirt to 10.0.0-2

This commit is contained in:
Kevin Mihelich 2024-01-18 15:44:54 +00:00
parent b25c249d3b
commit aa7935bafa
2 changed files with 5 additions and 7 deletions

View file

@ -1,7 +1,7 @@
pkgbase = libvirt
pkgdesc = API for controlling virtualization engines (openvz,kvm,qemu,virtualbox,xen,etc)
pkgver = 10.0.0
pkgrel = 1
pkgrel = 2
epoch = 1
url = https://libvirt.org/
arch = x86_64

View file

@ -10,7 +10,7 @@
pkgname=(libvirt libvirt-storage-gluster libvirt-storage-iscsi-direct)
epoch=1
pkgver=10.0.0
pkgrel=1
pkgrel=2
pkgdesc="API for controlling virtualization engines (openvz,kvm,qemu,virtualbox,xen,etc)"
arch=('x86_64')
url="https://libvirt.org/"
@ -130,19 +130,19 @@ build() {
-Dstorage_zfs=enabled\
-Dstorage_rbd=disabled
ninja -C build
meson compile -C build
}
check() {
cd "$pkgname-$pkgver"
ninja -C build test
meson test -C build --print-errorlogs
}
package_libvirt() {
provides=("libvirt=$pkgver" 'libvirt.so' 'libvirt-admin.so' 'libvirt-lxc.so' 'libvirt-qemu.so')
cd "$pkgname-$pkgver"
DESTDIR="$pkgdir" ninja -C build install
meson install -C build --destdir "$pkgdir"
mkdir "$pkgdir"/usr/lib/{sysusers,tmpfiles}.d
echo 'g libvirt - -' > "$pkgdir/usr/lib/sysusers.d/libvirt.conf"
@ -150,8 +150,6 @@ package_libvirt() {
echo 'm libvirt-qemu kvm' >> "$pkgdir/usr/lib/sysusers.d/libvirt.conf"
echo 'z /var/lib/libvirt/qemu 0751' > "$pkgdir/usr/lib/tmpfiles.d/libvirt.conf"
chown 0:102 "$pkgdir/usr/share/polkit-1/rules.d"
chmod 0750 "$pkgdir/usr/share/polkit-1/rules.d"
chmod 600 "$pkgdir"/etc/libvirt/nwfilter/*.xml \
"$pkgdir/etc/libvirt/qemu/networks/default.xml"
chmod 700 "$pkgdir"/etc/libvirt/secrets