community/libvirt to 4.6.0-1

This commit is contained in:
Kevin Mihelich 2018-08-13 18:36:37 +00:00
parent a9668dd845
commit bbb073577a

View file

@ -9,27 +9,26 @@
# - removed qemu makedepend # - removed qemu makedepend
pkgname=libvirt pkgname=libvirt
pkgver=4.5.0 pkgver=4.6.0
pkgrel=1 pkgrel=1
pkgdesc="API for controlling virtualization engines (openvz,kvm,qemu,virtualbox,xen,etc)" pkgdesc="API for controlling virtualization engines (openvz,kvm,qemu,virtualbox,xen,etc)"
arch=('x86_64') arch=('x86_64')
url="http://libvirt.org/" url="http://libvirt.org/"
license=('LGPL') license=('LGPL')
makedepends=('pkgconfig' 'lvm2' 'linux-api-headers' 'dnsmasq' 'lxc' makedepends=('lvm2' 'linux-api-headers' 'dnsmasq' 'lxc' 'libiscsi' 'open-iscsi'
'libiscsi' 'open-iscsi' 'perl-xml-xpath' 'libxslt' 'perl-xml-xpath' 'libxslt' 'parted' 'python')
'glusterfs' 'netcf' 'yajl' 'parted' 'python') depends=('e2fsprogs' 'gnutls' 'iptables' 'libxml2' 'parted' 'polkit' 'avahi'
depends=('e2fsprogs' 'gnutls' 'iptables' 'libxml2' 'parted' 'polkit' 'jansson' 'libpciaccess' 'udev' 'dbus' 'libxau' 'libxdmcp' 'libpcap'
'avahi' 'yajl' 'libpciaccess' 'udev' 'dbus' 'libxau' 'libxdmcp' 'libpcap' 'libcap-ng' 'libcap-ng' 'curl' 'libsasl' 'libgcrypt' 'libgpg-error' 'openssl'
'curl' 'libsasl' 'libgcrypt' 'libgpg-error' 'openssl' 'libxcb' 'gcc-libs' 'libxcb' 'gcc-libs' 'iproute2' 'libnl' 'libx11' 'gettext'
'iproute2' 'libnl' 'libx11' 'gettext' 'libssh2' 'libssh2' 'netcf' 'fuse2' 'glusterfs')
'netcf' 'fuse2' 'glusterfs')
optdepends=('ebtables: required for default NAT networking' optdepends=('ebtables: required for default NAT networking'
'dnsmasq: required for default NAT/DHCP for guests' 'dnsmasq: required for default NAT/DHCP for guests'
'bridge-utils: for bridged networking' 'bridge-utils: for bridged networking'
'netcat: for remote management over ssh' 'netcat: for remote management over ssh'
'radvd' 'radvd'
'dmidecode' 'dmidecode'
'parted') 'parted')
backup=('etc/conf.d/libvirt-guests' backup=('etc/conf.d/libvirt-guests'
'etc/conf.d/libvirtd' 'etc/conf.d/libvirtd'
'etc/libvirt/libvirt.conf' 'etc/libvirt/libvirt.conf'
@ -68,11 +67,10 @@ install="libvirt.install"
options=('emptydirs') options=('emptydirs')
validpgpkeys=('C74415BA7C9C7F78F02E1DC34606B8A5DE95BC1F') validpgpkeys=('C74415BA7C9C7F78F02E1DC34606B8A5DE95BC1F')
source=("https://libvirt.org/sources/${pkgname}-${pkgver}.tar.xz"{,.asc} source=("https://libvirt.org/sources/${pkgname}-${pkgver}.tar.xz"{,.asc}
'libvirtd.conf.d' 'libvirtd.conf.d'
'libvirtd-guests.conf.d' 'libvirtd-guests.conf.d'
'libvirt.sysusers.d') 'libvirt.sysusers.d')
# "ae102b5d7bccd29bc6015a3e0acefeaa90d097ac.patch::https://libvirt.org/git/?p=libvirt.git;a=patch;h=ae102b5d7bccd29bc6015a3e0acefeaa90d097ac") sha512sums=('beae0f1cafa73b9495d877979547bbc9b7ca2a7c3b213c5da92e6302b570d42df9d639f50380dbc0cebd6af983924dc27b1c81139c81dee0897f39a6a5158968'
sha512sums=('26710c7e5219f007524e9f93a642e55e4e8ea197afa6b2ca6a4b67b7028313f4b0d82924ee9a1e91ff688a4d2b53f89f3655fbeef0fa99a34f8418f37d787984'
'SKIP' 'SKIP'
'fc0e16e045a2c84d168d42c97d9e14ca32ba0d86025135967f4367cf3fa663882eefb6923ebf04676ae763f4f459e5156d7221b36b47c835f9e531c6b6e0cd9d' 'fc0e16e045a2c84d168d42c97d9e14ca32ba0d86025135967f4367cf3fa663882eefb6923ebf04676ae763f4f459e5156d7221b36b47c835f9e531c6b6e0cd9d'
'ef221bae994ad0a15ab5186b7469132896156d82bfdc3ef3456447d5cf1af347401ef33e8665d5b2f76451f5457aee7ea01064d7b9223d6691c90c4456763258' 'ef221bae994ad0a15ab5186b7469132896156d82bfdc3ef3456447d5cf1af347401ef33e8665d5b2f76451f5457aee7ea01064d7b9223d6691c90c4456763258'
@ -81,11 +79,6 @@ sha512sums=('26710c7e5219f007524e9f93a642e55e4e8ea197afa6b2ca6a4b67b7028313f4b0d
prepare() { prepare() {
cd "${srcdir}/${pkgname}-${pkgver}" cd "${srcdir}/${pkgname}-${pkgver}"
# for file in $(find . -name '*.py' -print); do
# sed -i 's_#!.*/usr/bin/python_#!/usr/bin/python2_' "${file}"
# sed -i 's_#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' "${file}"
# done
sed -i 's|/sysconfig/|/conf.d/|g' \ sed -i 's|/sysconfig/|/conf.d/|g' \
src/remote/libvirtd.service.in \ src/remote/libvirtd.service.in \
tools/{libvirt-guests.service,libvirt-guests.sh,virt-pki-validate}.in \ tools/{libvirt-guests.service,libvirt-guests.sh,virt-pki-validate}.in \
@ -97,22 +90,34 @@ prepare() {
sed -i 's|libsystemd-daemon|libsystemd|g' configure sed -i 's|libsystemd-daemon|libsystemd|g' configure
sed -i 's/notify/simple/' src/remote/libvirtd.service.in sed -i 's/notify/simple/' src/remote/libvirtd.service.in
# patch -p1 -i "${srcdir}"/ae102b5d7bccd29bc6015a3e0acefeaa90d097ac.patch
} }
build() { build() {
cd "${srcdir}/${pkgname}-${pkgver}" cd "${srcdir}/${pkgname}-${pkgver}"
export PYTHON=`which python` export PYTHON=$(command -v python)
export LDFLAGS=-lX11 export LDFLAGS=-lX11
export RADVD=/usr/bin/radvd export RADVD=/usr/bin/radvd
[ -f Makefile ] || ./configure --prefix=/usr --libexec=/usr/lib/"${pkgname}" --sbindir=/usr/bin \ [ -f Makefile ] || ZFS=/usr/bin/zfs ZPOOL=/usr/bin/zpool ./configure \
--with-storage-lvm --without-xen --with-udev --without-hal --disable-static \ --prefix=/usr \
--with-init-script=systemd --with-storage-gluster \ --libexec=/usr/lib/"${pkgname}" \
--with-qemu-user=nobody --with-qemu-group=kvm \ --sbindir=/usr/bin \
--with-netcf --with-interface --with-lxc --with-storage-iscsi --with-storage-disk --disable-static \
# --with-audit --with-init-script=systemd \
--with-qemu-user=nobody \
--with-qemu-group=kvm \
--without-hal \
--with-interface \
--with-lxc \
--with-netcf \
--with-udev \
--with-jansson \
--with-storage-disk \
--with-storage-gluster \
--with-storage-iscsi \
--with-storage-lvm \
--with-storage-zfs
# --with-audit
make make
} }
@ -129,10 +134,10 @@ package() {
chmod 0750 "${pkgdir}"/usr/share/polkit-1/rules.d chmod 0750 "${pkgdir}"/usr/share/polkit-1/rules.d
rm -rf \ rm -rf \
"${pkgdir}"/var/run \ "${pkgdir}"/var/run \
"${pkgdir}"/var/lib/libvirt/qemu \ "${pkgdir}"/var/lib/libvirt/qemu \
"${pkgdir}"/var/cache/libvirt/qemu \ "${pkgdir}"/var/cache/libvirt/qemu \
"${pkgdir}"/etc/sysconfig "${pkgdir}"/etc/sysconfig
rm -f "${pkgdir}"/etc/libvirt/qemu/networks/autostart/default.xml rm -f "${pkgdir}"/etc/libvirt/qemu/networks/autostart/default.xml
} }