[arch-commits] Commit in libvirt/trunk (PKGBUILD libvirt.install)

2020-05-06 Thread Robin Broda via arch-commits
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
===
--- PKGBUILD2020-05-06 22:34:10 UTC (rev 625215)
+++ PKGBUILD2020-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 '//d' "$pkgdir"/etc/libvirt/qemu/networks/default.xml
+  # Strip auto-generated UUID, so it will be generated per-install. 
(reproducible builds)
+  sed -i 's|.*||' 
"$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|" 
/etc/libvirt/qemu/networks/default.xml
+  fi
+}


[arch-commits] Commit in libvirt/trunk (PKGBUILD libvirt.install libvirt.sysusers.d)

2019-05-19 Thread Christian Rebischke via arch-commits
Date: Sunday, May 19, 2019 @ 15:42:58
  Author: shibumi
Revision: 467986

upgpkg: libvirt 5.3.0-1

This is supposed to fix:
#61977
#61537
#62219
#62234

Modified:
  libvirt/trunk/PKGBUILD
  libvirt/trunk/libvirt.sysusers.d
Deleted:
  libvirt/trunk/libvirt.install

+
 PKGBUILD   |   10 --
 libvirt.install|9 -
 libvirt.sysusers.d |1 -
 3 files changed, 4 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-05-19 14:41:25 UTC (rev 467985)
+++ PKGBUILD2019-05-19 15:42:58 UTC (rev 467986)
@@ -3,7 +3,7 @@
 # Contributor: Jonathan Wiersma 
 
 pkgname=libvirt
-pkgver=5.2.0
+pkgver=5.3.0
 pkgrel=1
 pkgdesc="API for controlling virtualization engines 
(openvz,kvm,qemu,virtualbox,xen,etc)"
 arch=('x86_64')
@@ -49,6 +49,7 @@
   'etc/libvirt/nwfilter/no-other-rarp-traffic.xml'
   'etc/libvirt/nwfilter/qemu-announce-self-rarp.xml'
   'etc/libvirt/nwfilter/qemu-announce-self.xml'
+  'etc/libvirt/nwfilter/clean-traffic-gateway.xml'
   'etc/libvirt/qemu-lockd.conf'
   'etc/libvirt/qemu.conf'
   'etc/libvirt/qemu/networks/default.xml'
@@ -57,10 +58,7 @@
   'etc/logrotate.d/libvirtd'
   'etc/logrotate.d/libvirtd.lxc'
   'etc/logrotate.d/libvirtd.qemu'
-  'etc/logrotate.d/libvirtd.uml'
   'etc/sasl2/libvirt.conf')
-install="libvirt.install"
-
 options=('emptydirs')
 validpgpkeys=('C74415BA7C9C7F78F02E1DC34606B8A5DE95BC1F')
 source=("https://libvirt.org/sources/${pkgname}-${pkgver}.tar.xz"{,.asc}
@@ -67,11 +65,11 @@
 'libvirtd.conf.d'
 'libvirtd-guests.conf.d'
 'libvirt.sysusers.d')
-sha512sums=('378dc1552263cce746117487abc0a1f3411e5be149331717158ba23825734ceae7ca474290264d71de798fdd089ad9672026bcb242fa5b3aef87294284d06f04'
+sha512sums=('de3888d448463ff1d981e8dcf1aaed39c8215c368d133ed03b8cc5d7e05a77d385287d388d9db109df21df9bf348a14e7c654ca509d41addaadaa199d16b162e'
 'SKIP'
 
'fc0e16e045a2c84d168d42c97d9e14ca32ba0d86025135967f4367cf3fa663882eefb6923ebf04676ae763f4f459e5156d7221b36b47c835f9e531c6b6e0cd9d'
 
'ef221bae994ad0a15ab5186b7469132896156d82bfdc3ef3456447d5cf1af347401ef33e8665d5b2f76451f5457aee7ea01064d7b9223d6691c90c4456763258'
-
'519a9f245bed077137a1b01dec07a178885ac2527b47a1bd883bbb908bf9b4fa0c039525600e09f7db636f8849870fe2ce8ffe5b75532ff9d3fa1a91115875f8')
+
'7d1d535aaf739a6753f6819c49272c8d9b5f488e0a8553797499334a76b8631474e222b6048f2125b858e5ecc21e602face45dd02121f833d605b9ae58322982')
 
 prepare() {
   cd "${srcdir}/${pkgname}-${pkgver}"

Deleted: libvirt.install
===
--- libvirt.install 2019-05-19 14:41:25 UTC (rev 467985)
+++ libvirt.install 2019-05-19 15:42:58 UTC (rev 467986)
@@ -1,9 +0,0 @@
-post_install() {
-  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"
-}
-
-post_upgrade() {
-  echo ">>> You may need to run 'rm -rf ~/.libvirt'"
-}

Modified: libvirt.sysusers.d
===
--- libvirt.sysusers.d  2019-05-19 14:41:25 UTC (rev 467985)
+++ libvirt.sysusers.d  2019-05-19 15:42:58 UTC (rev 467986)
@@ -1,2 +1 @@
 g libvirt - -
-g tss - -


[arch-commits] Commit in libvirt/trunk (PKGBUILD libvirt.install libvirt.sysusers.d)

2017-12-13 Thread Anatol Pomozov via arch-commits
Date: Wednesday, December 13, 2017 @ 22:40:28
  Author: anatolik
Revision: 274313

FS#54943 Move libvirt user definition to sysusers file

Added:
  libvirt/trunk/libvirt.sysusers.d
Modified:
  libvirt/trunk/PKGBUILD
  libvirt/trunk/libvirt.install

+
 PKGBUILD   |7 +--
 libvirt.install|1 -
 libvirt.sysusers.d |1 +
 3 files changed, 6 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2017-12-13 21:56:47 UTC (rev 274312)
+++ PKGBUILD2017-12-13 22:40:28 UTC (rev 274313)
@@ -61,11 +61,13 @@
 validpgpkeys=('C74415BA7C9C7F78F02E1DC34606B8A5DE95BC1F')
 source=("https://libvirt.org/sources/$pkgname-$pkgver.tar.xz; #{,.asc}
libvirtd.conf.d
-   libvirtd-guests.conf.d)
+   libvirtd-guests.conf.d
+   libvirt.sysusers.d)
 #  
"ae102b5d7bccd29bc6015a3e0acefeaa90d097ac.patch::https://libvirt.org/git/?p=libvirt.git;a=patch;h=ae102b5d7bccd29bc6015a3e0acefeaa90d097ac;)
 sha256sums=('89fc63213291d329d537ea96e363fd609160da080322973bd1126d431ff63424'
 '9d0597bbf2bd7892420cebaf0563236fe1483b83ae95ee6263c1ce7f44a44134'
-'0896c30100e9e40aee1eb4a2cf0cac2c0bdd5fd7b077b9d2680d90e77435ea66')
+'0896c30100e9e40aee1eb4a2cf0cac2c0bdd5fd7b077b9d2680d90e77435ea66'
+'6dc7907d6d4d883ac5ea15c195af673c97cff13f4c0493d23196e94bc87f04db')
 
 prepare() {
   cd "$srcdir/$pkgname-$pkgver"
@@ -112,6 +114,7 @@
 
   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.sysusers.d 
"$pkgdir"/usr/lib/sysusers.d/libvirt.conf
 
   chown 0:102 "$pkgdir"/usr/share/polkit-1/rules.d
   chmod 0750 "$pkgdir"/usr/share/polkit-1/rules.d

Modified: libvirt.install
===
--- libvirt.install 2017-12-13 21:56:47 UTC (rev 274312)
+++ libvirt.install 2017-12-13 22:40:28 UTC (rev 274313)
@@ -1,5 +1,4 @@
 post_install() {
-  groupadd -r -f libvirt
   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"

Added: libvirt.sysusers.d
===
--- libvirt.sysusers.d  (rev 0)
+++ libvirt.sysusers.d  2017-12-13 22:40:28 UTC (rev 274313)
@@ -0,0 +1 @@
+g libvirt - -


[arch-commits] Commit in libvirt/trunk (PKGBUILD libvirt.install)

2016-01-29 Thread Sergej Pupykin
Date: Friday, January 29, 2016 @ 09:34:01
  Author: spupykin
Revision: 159408

upgpkg: libvirt 1.3.1-2

upd

Modified:
  libvirt/trunk/PKGBUILD
  libvirt/trunk/libvirt.install

-+
 PKGBUILD|2 +-
 libvirt.install |2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-01-29 08:20:54 UTC (rev 159407)
+++ PKGBUILD2016-01-29 08:34:01 UTC (rev 159408)
@@ -4,7 +4,7 @@
 
 pkgname=libvirt
 pkgver=1.3.1
-pkgrel=1
+pkgrel=2
 pkgdesc="API for controlling virtualization engines 
(openvz,kvm,qemu,virtualbox,xen,etc)"
 arch=('i686' 'x86_64')
 url="http://libvirt.org/;

Modified: libvirt.install
===
--- libvirt.install 2016-01-29 08:20:54 UTC (rev 159407)
+++ libvirt.install 2016-01-29 08:34:01 UTC (rev 159408)
@@ -4,7 +4,7 @@
 
 post_install() {
   _libvirt_setup || return 1
-  groupadd -f libvirt
+  groupadd -r -f libvirt
   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"


[arch-commits] Commit in libvirt/trunk (PKGBUILD libvirt.install)

2014-09-12 Thread Sergej Pupykin
Date: Friday, September 12, 2014 @ 15:07:30
  Author: spupykin
Revision: 118871

FS#41888

Modified:
  libvirt/trunk/PKGBUILD
  libvirt/trunk/libvirt.install

-+
 PKGBUILD|7 ---
 libvirt.install |4 ++--
 2 files changed, 6 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-09-12 12:56:38 UTC (rev 118870)
+++ PKGBUILD2014-09-12 13:07:30 UTC (rev 118871)
@@ -15,13 +15,13 @@
 'iproute2' 'libnl' 'libx11' 'numactl' 'gettext')
# 'audit'
 makedepends=('pkgconfig' 'lvm2' 'linux-api-headers' 'dnsmasq' 'lxc' 'libiscsi' 
'open-iscsi')
-optdepends=('bridge-utils: for briged networking (default)'
-   'dnsmasq: for NAT/DHCP for guests'
+optdepends=('ebtables: required for default NAT networking'
+   'dnsmasq: required for default NAT/DHCP for guests'
+   'bridge-utils: for brigded networking'
'openbsd-netcat: for remote management over ssh'
'qemu'
'radvd'
'dmidecode'
-   'ebtables: for networking'
'pm-utils: host power management')
 options=('emptydirs')
 backup=('etc/conf.d/libvirt-guests'
@@ -118,3 +118,4 @@
$pkgdir/etc/sysconfig \
$pkgdir/etc/rc.d
 }
+

Modified: libvirt.install
===
--- libvirt.install 2014-09-12 12:56:38 UTC (rev 118870)
+++ libvirt.install 2014-09-12 13:07:30 UTC (rev 118871)
@@ -10,6 +10,6 @@
 post_upgrade() {
   _libvirt_setup || return 1
   echo  You may need to run 'rm -rf ~/.libvirt'
-  echo  libvirt runs qemu from nobody:nobody by default
-  echo  change it in /etc/libvirt/qemu.conf
+  echo  libvirt runs qemu from nobody:kvm by default
+  echo  change the USER if desired in /etc/libvirt/qemu.conf
 }



[arch-commits] Commit in libvirt/trunk (PKGBUILD libvirt.install python.patch)

2013-01-31 Thread Sergej Pupykin
Date: Thursday, January 31, 2013 @ 16:59:29
  Author: spupykin
Revision: 83404

upgpkg: libvirt 1.0.2-2

upd

Added:
  libvirt/trunk/python.patch
Modified:
  libvirt/trunk/PKGBUILD
  libvirt/trunk/libvirt.install

-+
 PKGBUILD|2 +-
 libvirt.install |   27 ---
 python.patch|   22 ++
 3 files changed, 27 insertions(+), 24 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-01-31 12:12:11 UTC (rev 83403)
+++ PKGBUILD2013-01-31 15:59:29 UTC (rev 83404)
@@ -4,7 +4,7 @@
 
 pkgname=libvirt
 pkgver=1.0.2
-pkgrel=1
+pkgrel=2
 pkgdesc=API for controlling virtualization engines 
(openvz,kvm,qemu,virtualbox,xen,etc)
 arch=('i686' 'x86_64')
 url=http://libvirt.org/;

Modified: libvirt.install
===
--- libvirt.install 2013-01-31 12:12:11 UTC (rev 83403)
+++ libvirt.install 2013-01-31 15:59:29 UTC (rev 83404)
@@ -1,38 +1,19 @@
 _libvirt_setup() {
   systemd-tmpfiles --create libvirt.conf
-  rm -f /usr/lib/python?.?/site-packages/libvirt.pyc
-  echo  To use libvirt as a non-root user:
-  echo   Use polkit to grant access.
-  echo   ...or change the access model in /etc/libvirt/libvirtd.conf.
-  echo  (see unixperms.patch in PKGBUILD for help)
-  echo 
 }
 
 post_install() {
   _libvirt_setup || return 1
-  echo  Be sure to see optdepends as you may find some of them helpfull.
-  echo   Especially: bridge-utils, dnsmasq, and hal.
-  echo 
-  echo  To start libvirtd run: '/etc/rc.d/libvirtd start' as root.
-  echo  Add 'libvirtd' to daemons in /etc/rc.conf if you want it to load 
upon
-  echo   booting.
-  echo 
+  echo   See https://wiki.archlinux.org/index.php/Libvirt for more info
 }
 
 post_upgrade() {
   _libvirt_setup || return 1
-  echo  To finish the upgrade, restart libvirtd by:
-  echo   'systemctl restart libvirtd' as root (systemd) or
-  echo   '/etc/rc.d/libvirtd restart' as root (initscripts) or
-  echo   rebooting.
-  echo  You may also need to run 'rm -rf ~/.libvirt'
-  echo 
+  echo  You may need to run 'rm -rf ~/.libvirt'
+  echo  libvirt runs qemu from nobody:nobody by default
+  echo  change it in /etc/libvirt/qemu.conf
 }
 
 post_remove() {
rm -f /usr/lib/python[0-9].[0-9]/site-packages/libvirt.pyc
-   echo  You may wish to delete the group 'libvirt' if it still exists.
-   echo   It can be removed by running 'groupdel libvirt' as root.
-   echo 
-   depmod -a
 }

Added: python.patch
===
--- python.patch(rev 0)
+++ python.patch2013-01-31 15:59:29 UTC (rev 83404)
@@ -0,0 +1,22 @@
+diff --git a/python/generator.py b/python/generator.py
+index 5d27f66..71ca883 100755
+--- a/python/generator.py
 b/python/generator.py
+@@ -123,7 +123,7 @@ class docParser(xml.sax.handler.ContentHandler):
+ self.function_return_field = attrs['field']
+ elif tag == 'enum':
+ if (attrs['file'] == libvirt or
+-attrs['file'] == virterror):
++attrs['file'] == virerror):
+ enum(attrs['type'],attrs['name'],attrs['value'])
+ elif attrs['file'] == libvirt-lxc:
+ lxc_enum(attrs['type'],attrs['name'],attrs['value'])
+@@ -137,7 +137,7 @@ class docParser(xml.sax.handler.ContentHandler):
+ if self.function != None:
+ if (self.function_module == libvirt or
+ self.function_module == virevent or
+-self.function_module == virterror):
++self.function_module == virerror):
+ function(self.function, self.function_descr,
+  self.function_return, self.function_args,
+  self.function_file, self.function_module,