kind: autotools
depends:
- libsoup-common.bst
- python2-core.bst
- python-pygobject.bst
- connman-common.bst
- unmaintained/lvm.bst
- xorg-util-macros-common.bst
- unmaintained/networking-utils.bst
- docutils.bst
- unmaintained/virtualization/libpciaccess.bst
- unmaintained/virtualization/dnsmasq.bst
- unmaintained/virtualization/qemu.bst
- unmaintained/virtualization/yajl.bst
- unmaintained/virtualization/dmidecode.bst
sources:
- kind: git
  url: upstream:libvirt
  track: baserock/v1.2.10
  ref: 7b1ceec1e2f141d36ed9b7ef3a660ff8bb34fc53
  submodules:
    gnulib:
      url: upstream:gnulib
config:
  configure-commands:
  - |
    GNULIB_SRCDIR=.gnulib \
    ./autogen.sh \
    --without-apparmor --with-attr --without-audit --without-avahi --with-blkid \
    --without-capng --with-curl --with-dbus --with-fuse --without-glusterfs \
    --without-hal --without-netcf --without-numactl --without-openwsman \
    --with-pciaccess --without-readline --without-sanlock --without-sasl \
    --without-selinux --without-ssh2 --with-systemd-daemon --with-udev \
    --with-yajl --without-xen --with-qemu --without-uml --without-openvz \
    --without-vmware --without-phyp --without-xenapi --without-libxl \
    --without-vbox --without-lxc --without-esx --without-hyperv \
    --without-parallels --with-test --with-remote --with-libvirtd \
    --with-init-script=systemd --without-bhyve --without-gnutls --without-polkit \
    --without-firewalld --without-dtrace --without-numad --with-network \
    --with-secrets --with-storage-dir --with-storage-fs --with-storage-lvm \
    --without-storage-iscsi --without-storage-scsi --without-storage-mpath \
    --without-storage-disk --with-storage-rbd --without-storage-sheepdog \
    --without-storage-gluster --without-wireshark-dissector --disable-werror \
    --prefix="%{prefix}"
  install-commands:
    (>):
    - rm -f "%{install-root}"/etc/libvirt/qemu/networks/autostart/default.xml
public:
  bst:
    integration-commands:
    - groupadd libvirt
    - sed -i 's/#unix_sock_group = "libvirt"/unix_sock_group = "libvirt"/' /etc/libvirt/libvirtd.conf
    - sed -i 's/#unix_sock_rw_perms = "0770"/unix_sock_rw_perms = "0770"/' /etc/libvirt/libvirtd.conf
    - sed -i 's/#unix_sock_ro_perms = "0777"/unix_sock_ro_perms = "0777"/' /etc/libvirt/libvirtd.conf
