[arch-commits] Commit in libvirt/trunk (PKGBUILD libvirt.install)
Robin Broda
coderobe at archlinux.org
Wed May 6 22:34:35 UTC 2020
Date: Wednesday, May 6, 2020 @ 22:34:34
Author: coderobe
Revision: 625216
upgpkg: libvirt 6.3.0-3: Fix FS#66565 (again)
Added:
libvirt/trunk/libvirt.install
Modified:
libvirt/trunk/PKGBUILD
-----------------+
PKGBUILD | 7 ++++---
libvirt.install | 7 +++++++
2 files changed, 11 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-05-06 22:34:10 UTC (rev 625215)
+++ PKGBUILD 2020-05-06 22:34:34 UTC (rev 625216)
@@ -5,11 +5,12 @@
pkgname=(libvirt libvirt-storage-gluster libvirt-storage-iscsi-direct libvirt-storage-rbd)
pkgver=6.3.0
-pkgrel=2
+pkgrel=3
pkgdesc="API for controlling virtualization engines (openvz,kvm,qemu,virtualbox,xen,etc)"
arch=('x86_64')
url="https://libvirt.org/"
license=('LGPL' 'GPL3') #libvirt_parthelper links to libparted which is GPL3 only
+install=libvirt.install
depends=('libpciaccess' 'yajl' 'fuse2' 'gnutls' 'parted' 'libssh' 'libxml2' 'numactl' 'polkit')
makedepends=('libxslt' 'python-docutils' 'lvm2' 'open-iscsi' 'libiscsi' 'ceph-libs' 'glusterfs'
'bash-completion' 'rpcsvc-proto' 'dnsmasq' 'iproute2' 'qemu-headless')
@@ -137,8 +138,8 @@
chmod 600 "$pkgdir"/etc/libvirt/nwfilter/*.xml \
"$pkgdir/etc/libvirt/qemu/networks/default.xml"
- # Strip auto-generated UUID, so it will be generated per-install. (reproducible builds)
- sed -i '/<uuid>/d' "$pkgdir"/etc/libvirt/qemu/networks/default.xml
+ # Strip auto-generated UUID, so it will be generated per-install. (reproducible builds)
+ sed -i 's|<uuid>.*</uuid>|<uuid></uuid>|' "$pkgdir"/etc/libvirt/qemu/networks/default.xml
rm -rf \
"$pkgdir/run" \
Added: libvirt.install
===================================================================
--- libvirt.install (rev 0)
+++ libvirt.install 2020-05-06 22:34:34 UTC (rev 625216)
@@ -0,0 +1,7 @@
+post_install() {
+ if [[ -f /etc/libvirt/qemu/networks/default.xml ]]
+ then
+ UUID=$(/usr/bin/uuidgen)
+ sed -i "s|<uuid></uuid>|<uuid>$UUID</uuid>|" /etc/libvirt/qemu/networks/default.xml
+ fi
+}
More information about the arch-commits
mailing list