community/libvirt to 8.1.0-4

This commit is contained in:
Kevin Mihelich 2022-03-03 13:52:19 +00:00
parent 7d2297f4f3
commit 8e9744b84a

View file

@ -10,8 +10,8 @@
pkgname=(libvirt libvirt-storage-gluster libvirt-storage-iscsi-direct)
epoch=1
pkgver=8.0.0
pkgrel=2
pkgver=8.1.0
pkgrel=4
pkgdesc="API for controlling virtualization engines (openvz,kvm,qemu,virtualbox,xen,etc)"
arch=('x86_64')
url="https://libvirt.org/"
@ -31,21 +31,6 @@ optdepends=('libvirt-storage-gluster: Gluster storage backend'
'open-iscsi: iSCSI support via iscsiadm')
backup=(
'etc/conf.d/libvirtd'
'etc/conf.d/libvirt-guests'
'etc/conf.d/virtchd'
'etc/conf.d/virtinterfaced'
'etc/conf.d/virtlockd'
'etc/conf.d/virtlogd'
'etc/conf.d/virtlxcd'
'etc/conf.d/virtnetworkd'
'etc/conf.d/virtnodedevd'
'etc/conf.d/virtnwfilterd'
'etc/conf.d/virtproxyd'
'etc/conf.d/virtqemud'
'etc/conf.d/virtsecretd'
'etc/conf.d/virtstoraged'
'etc/conf.d/virtvboxd'
'etc/libvirt/libvirt-admin.conf'
'etc/libvirt/libvirt.conf'
'etc/libvirt/libvirtd.conf'
@ -96,13 +81,12 @@ backup=(
'etc/logrotate.d/libvirtd.qemu'
'etc/sasl2/libvirt.conf'
)
options=(debug)
source=("https://libvirt.org/sources/$pkgname-$pkgver.tar.xz"{,.asc}
"$pkgname"-fix-snapshot-revert.patch::https://gitlab.com/libvirt/libvirt/-/commit/76deb65.patch
"$pkgname"-fix-virProcessGetStatInfo.patch::https://gitlab.com/libvirt/libvirt/-/commit/105dace.patch)
sha256sums=('51e6e8ff04bafe96d7e314b213dcd41fb1163d9b4f0f75cdab01e663728f4cf6'
https://gitlab.com/libvirt/libvirt/-/commit/823a62ec.patch)
sha256sums=('3c6c43becffeb34a3f397c616206aa69a893ff8bf5e8208393c84e8e75352934'
'SKIP'
'06164af980ab2ece221de494f4da5a0d38c22c0f1ac527dd53aed2e2dbf1ed48'
'a7b0f7b2941c0fed41205c8db3d3d37ed9ccee910e44196d2d2bf5aa0eb986d8')
'a2cd86af7cea2ceef465e8ba8c9258804459a5f0800aaf873eeb707ce1fd1184')
validpgpkeys=('453B65310595562855471199CA68BE8010084C9C') # Jiří Denemark <jdenemar@redhat.com>
prepare() {
@ -117,9 +101,8 @@ prepare() {
src/qemu/qemu.conf \
src/qemu/test_libvirtd_qemu.aug.in
# bugs fixed post-release
patch -Np1 < ../libvirt-fix-snapshot-revert.patch
patch -Np1 < ../libvirt-fix-virProcessGetStatInfo.patch
# fix segfault on virsh undefine
patch -Np1 -i "${srcdir}"/823a62ec.patch
}
build() {
@ -128,7 +111,8 @@ build() {
arch-meson build \
--libexecdir=lib/libvirt \
-Drunstatedir=/run \
-Dqemu_group=kvm \
-Dqemu_user=libvirt-qemu \
-Dqemu_group=libvirt-qemu \
-Dnetcf=disabled \
-Dopenwsman=disabled \
-Dapparmor=disabled \
@ -163,10 +147,11 @@ package_libvirt() {
cd "$pkgname-$pkgver"
DESTDIR="$pkgdir" ninja -C build install
mv "$pkgdir"/etc/{sysconfig,conf.d}
mkdir "$pkgdir"/usr/lib/{sysusers,tmpfiles}.d
echo "g libvirt - -" > "$pkgdir/usr/lib/sysusers.d/libvirt.conf"
echo "z /var/lib/libvirt/qemu 0751" > "$pkgdir/usr/lib/tmpfiles.d/libvirt.conf"
echo 'g libvirt - -' > "$pkgdir/usr/lib/sysusers.d/libvirt.conf"
echo 'u libvirt-qemu /var/lib/libvirt "Libvirt QEMU user"' >> "$pkgdir/usr/lib/sysusers.d/libvirt.conf"
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"