From: "Matthias Maier" <tamiko@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/libvirt/
Date: Fri, 29 Jun 2018 04:50:30 +0000 (UTC) [thread overview]
Message-ID: <1530245472.12680e5c04fa5d5bdb7a04ff9f0e6f9b040a7fc2.tamiko@gentoo> (raw)
commit: 12680e5c04fa5d5bdb7a04ff9f0e6f9b040a7fc2
Author: Matthias Maier <tamiko <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 29 04:11:12 2018 +0000
Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org>
CommitDate: Fri Jun 29 04:11:12 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12680e5c
app-emulation/libvirt: drop old versions
Package-Manager: Portage-2.3.41, Repoman-2.3.9
app-emulation/libvirt/Manifest | 2 -
app-emulation/libvirt/libvirt-4.1.0-r3.ebuild | 383 --------------------------
app-emulation/libvirt/libvirt-4.2.0.ebuild | 382 -------------------------
3 files changed, 767 deletions(-)
diff --git a/app-emulation/libvirt/Manifest b/app-emulation/libvirt/Manifest
index 1b8bec44164..a62d33f2a7b 100644
--- a/app-emulation/libvirt/Manifest
+++ b/app-emulation/libvirt/Manifest
@@ -1,3 +1 @@
-DIST libvirt-4.1.0.tar.xz 15046956 BLAKE2B e5d4fb47d6308b2f74d464b8a4b236fcda96ca71357847ce7bc9c787e89111ed99538e9f7815287d14af24db1bc774012682843edc1e067cdf710e82d0b349c9 SHA512 62d1a228adf3270cc6defe3cbf92dac8c4ce2c434c4d97219571ccef799a4f6304cfd1ba9938338356641285f53ac71145d7b398523021c5ea1dc8e3d49cf894
-DIST libvirt-4.2.0.tar.xz 15180120 BLAKE2B 0df6caef7f377e627a7ca1d169e1c8032d02fdfb5cc32a3036fbedd021063672114fcef09aa34e7218b56eef0fe64509024fbcd674a0c5f312a7afb9aa3e34a5 SHA512 ced3a7408e95f1663deec03b095780d0f805126506a064a11063d1f313f923eb0ff0ea95f99826514d8cb4e51c850f6f02904e06e5ef8106c38898a0cfe7f9ed
DIST libvirt-4.3.0.tar.xz 14667860 BLAKE2B bd4dfbcfba3b11036be979caf938ec7ca4fc04cc4bd6dfd5eec05c054ba4ebf953c0e86a080e65ab8a880f2bcc2f4d018283e870afcb64bd0b750247f3c96357 SHA512 cc61497121931019a8cc3fa8234d7cf95b0f0e1d77ab6fcd089db92759617b099eb83c57aa91768ae6ccf92c345cf72e1d9b202acb5132a159476fb86f1a6999
diff --git a/app-emulation/libvirt/libvirt-4.1.0-r3.ebuild b/app-emulation/libvirt/libvirt-4.1.0-r3.ebuild
deleted file mode 100644
index a033deaacb0..00000000000
--- a/app-emulation/libvirt/libvirt-4.1.0-r3.ebuild
+++ /dev/null
@@ -1,383 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit autotools eutils user linux-info systemd readme.gentoo-r1 bash-completion-r1
-
-if [[ ${PV} = *9999* ]]; then
- inherit git-r3
- EGIT_REPO_URI="git://libvirt.org/libvirt.git"
- SRC_URI=""
- KEYWORDS="amd64"
- SLOT="0"
-else
- # Versions with 4 numbers are stable updates:
- if [[ ${PV} =~ ^[0-9]+(\.[0-9]+){3} ]]; then
- SRC_URI="http://libvirt.org/sources/stable_updates/${P}.tar.xz"
- else
- SRC_URI="http://libvirt.org/sources/${P}.tar.xz"
- fi
- KEYWORDS="amd64 ~arm64 x86"
- SLOT="0/${PV}"
-fi
-
-DESCRIPTION="C toolkit to manipulate virtual machines"
-HOMEPAGE="http://www.libvirt.org/"
-LICENSE="LGPL-2.1"
-IUSE="
- apparmor audit +caps +dbus firewalld fuse glusterfs iscsi +libvirtd lvm
- libssh lxc +macvtap nfs nls numa openvz parted pcap phyp policykit
- +qemu rbd sasl selinux +udev uml +vepa virtualbox virt-network
- wireshark-plugins xen zeroconf zfs
-"
-
-REQUIRED_USE="
- firewalld? ( virt-network )
- libvirtd? ( || ( lxc openvz qemu uml virtualbox xen ) )
- lxc? ( caps libvirtd )
- openvz? ( libvirtd )
- policykit? ( dbus )
- qemu? ( libvirtd )
- uml? ( libvirtd )
- vepa? ( macvtap )
- virt-network? ( libvirtd )
- virtualbox? ( libvirtd )
- xen? ( libvirtd )"
-
-# gettext.sh command is used by the libvirt command wrappers, and it's
-# non-optional, so put it into RDEPEND.
-# We can use both libnl:1.1 and libnl:3, but if you have both installed, the
-# package will use 3 by default. Since we don't have slot pinning in an API,
-# we must go with the most recent
-RDEPEND="
- app-misc/scrub
- dev-libs/libgcrypt:0
- dev-libs/libnl:3
- >=dev-libs/libxml2-2.7.6
- || ( >=net-analyzer/netcat6-1.0-r2 >=net-analyzer/openbsd-netcat-1.105-r1 )
- >=net-libs/gnutls-1.0.25:0=
- net-libs/libssh2
- net-libs/libtirpc
- net-libs/rpcsvc-proto
- >=net-misc/curl-7.18.0
- sys-apps/dmidecode
- >=sys-apps/util-linux-2.17
- sys-devel/gettext
- sys-libs/ncurses:0=
- sys-libs/readline:=
- apparmor? ( sys-libs/libapparmor )
- audit? ( sys-process/audit )
- caps? ( sys-libs/libcap-ng )
- dbus? ( sys-apps/dbus )
- firewalld? ( net-firewall/firewalld )
- fuse? ( >=sys-fs/fuse-2.8.6:= )
- glusterfs? ( >=sys-cluster/glusterfs-3.4.1 )
- iscsi? ( sys-block/open-iscsi )
- libssh? ( net-libs/libssh )
- lvm? ( >=sys-fs/lvm2-2.02.48-r2[-device-mapper-only(-)] )
- nfs? ( net-fs/nfs-utils )
- numa? (
- >sys-process/numactl-2.0.2
- sys-process/numad
- )
- parted? (
- >=sys-block/parted-1.8[device-mapper]
- sys-fs/lvm2[-device-mapper-only(-)]
- )
- pcap? ( >=net-libs/libpcap-1.0.0 )
- policykit? ( >=sys-auth/polkit-0.9 )
- qemu? (
- >=app-emulation/qemu-0.13.0
- dev-libs/yajl
- )
- rbd? ( sys-cluster/ceph )
- sasl? ( dev-libs/cyrus-sasl )
- selinux? ( >=sys-libs/libselinux-2.0.85 )
- virt-network? (
- net-dns/dnsmasq[script]
- net-firewall/ebtables
- >=net-firewall/iptables-1.4.10[ipv6]
- net-misc/radvd
- sys-apps/iproute2[-minimal]
- )
- virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) )
- wireshark-plugins? ( net-analyzer/wireshark:= )
- xen? (
- app-emulation/xen
- app-emulation/xen-tools:=
- )
- udev? (
- virtual/udev
- >=x11-libs/libpciaccess-0.10.9
- )
- zeroconf? ( >=net-dns/avahi-0.6[dbus] )
- zfs? ( sys-fs/zfs )"
-
-DEPEND="${RDEPEND}
- app-text/xhtml1
- dev-lang/perl
- dev-libs/libxslt
- dev-perl/XML-XPath
- virtual/pkgconfig"
-
-PATCHES=(
- "${FILESDIR}"/${PN}-4.1.0-do_not_use_sysconf.patch
- "${FILESDIR}"/${PN}-1.2.16-fix_paths_in_libvirt-guests_sh.patch
- "${FILESDIR}"/${PN}-3.10.0-r2-fix_paths_for_apparmor.patch
- "${FILESDIR}"/${PN}-3.1.0-musl-fix-includes.patch # bug #609488
- "${FILESDIR}"/${P}-unbreak_my_bridge.patch # bug 650660
-)
-
-pkg_setup() {
- if use qemu; then
- enewgroup qemu 77
- enewuser qemu 77 -1 -1 "qemu,kvm"
- fi
-
- use policykit && enewgroup libvirt
-
- # Check kernel configuration:
- CONFIG_CHECK=""
- use fuse && CONFIG_CHECK+="
- ~FUSE_FS"
-
- use lvm && CONFIG_CHECK+="
- ~BLK_DEV_DM
- ~DM_MULTIPATH
- ~DM_SNAPSHOT"
-
- use lxc && CONFIG_CHECK+="
- ~BLK_CGROUP
- ~CGROUP_CPUACCT
- ~CGROUP_DEVICE
- ~CGROUP_FREEZER
- ~CGROUP_NET_PRIO
- ~CGROUP_PERF
- ~CGROUPS
- ~CGROUP_SCHED
- ~CPUSETS
- ~IPC_NS
- ~MACVLAN
- ~NAMESPACES
- ~NET_CLS_CGROUP
- ~NET_NS
- ~PID_NS
- ~POSIX_MQUEUE
- ~SECURITYFS
- ~USER_NS
- ~UTS_NS
- ~VETH
- ~!GRKERNSEC_CHROOT_MOUNT
- ~!GRKERNSEC_CHROOT_DOUBLE
- ~!GRKERNSEC_CHROOT_PIVOT
- ~!GRKERNSEC_CHROOT_CHMOD
- ~!GRKERNSEC_CHROOT_CAPS"
-
- kernel_is lt 4 7 && use lxc && CONFIG_CHECK+="
- ~DEVPTS_MULTIPLE_INSTANCES"
-
- use macvtap && CONFIG_CHECK+="
- ~MACVTAP"
-
- use virt-network && CONFIG_CHECK+="
- ~BRIDGE_EBT_MARK_T
- ~BRIDGE_NF_EBTABLES
- ~NETFILTER_ADVANCED
- ~NETFILTER_XT_CONNMARK
- ~NETFILTER_XT_MARK
- ~NETFILTER_XT_TARGET_CHECKSUM"
- # Bandwidth Limiting Support
- use virt-network && CONFIG_CHECK+="
- ~BRIDGE_EBT_T_NAT
- ~NET_ACT_POLICE
- ~NET_CLS_FW
- ~NET_CLS_U32
- ~NET_SCH_HTB
- ~NET_SCH_INGRESS
- ~NET_SCH_SFQ"
-
- # Handle specific kernel versions for different features
- kernel_is lt 3 6 && CONFIG_CHECK+=" ~CGROUP_MEM_RES_CTLR"
- if kernel_is ge 3 6; then
- CONFIG_CHECK+=" ~MEMCG ~MEMCG_SWAP "
- kernel_is lt 4 5 && CONFIG_CHECK+=" ~MEMCG_KMEM "
- fi
-
- ERROR_USER_NS="Optional depending on LXC configuration."
-
- if [[ -n ${CONFIG_CHECK} ]]; then
- linux-info_pkg_setup
- fi
-}
-
-src_prepare() {
- touch "${S}/.mailmap"
-
- default
-
- if [[ ${PV} = *9999* ]]; then
- # git checkouts require bootstrapping to create the configure script.
- # Additionally the submodules must be cloned to the right locations
- # bug #377279
- ./bootstrap || die "bootstrap failed"
- (
- git submodule status | sed 's/^[ +-]//;s/ .*//'
- git hash-object bootstrap.conf
- ) >.git-module-status
- fi
-
- # Tweak the init script:
- cp "${FILESDIR}/libvirtd.init-r16" "${S}/libvirtd.init" || die
- sed -e "s/USE_FLAG_FIREWALLD/$(usex firewalld 'need firewalld' '')/" \
- -e "s/USE_FLAG_AVAHI/$(usex zeroconf 'use avahi-daemon' '')/" \
- -e "s/USE_FLAG_ISCSI/$(usex iscsi 'use iscsid' '')/" \
- -e "s/USE_FLAG_RBD/$(usex rbd 'use ceph' '')/" \
- -i "${S}/libvirtd.init" || die "sed failed"
-
- eautoreconf
-}
-
-src_configure() {
- local myeconfargs=(
- $(use_with apparmor)
- $(use_with apparmor apparmor-profiles)
- $(use_with audit)
- $(use_with caps capng)
- $(use_with dbus)
- $(use_with firewalld)
- $(use_with fuse)
- $(use_with glusterfs)
- $(use_with glusterfs storage-gluster)
- $(use_with iscsi storage-iscsi)
- $(use_with libvirtd)
- $(use_with libssh)
- $(use_with lvm storage-lvm)
- $(use_with lvm storage-mpath)
- $(use_with lxc)
- $(use_with macvtap)
- $(use_enable nls)
- $(use_with numa numactl)
- $(use_with numa numad)
- $(use_with openvz)
- $(use_with parted storage-disk)
- $(use_with pcap libpcap)
- $(use_with phyp)
- $(use_with policykit polkit)
- $(use_with qemu)
- $(use_with qemu yajl)
- $(use_with rbd storage-rbd)
- $(use_with sasl)
- $(use_with selinux)
- $(use_with udev)
- $(use_with uml)
- $(use_with vepa virtualport)
- $(use_with virt-network network)
- $(use_with wireshark-plugins wireshark-dissector)
- $(use_with xen)
- $(use_with xen xen-inotify)
- $(use_with xen libxl)
- $(use_with zeroconf avahi)
- $(use_with zfs storage-zfs)
-
- --without-hal
- --without-netcf
- --without-sanlock
- --without-xenapi
-
- --with-esx
- --with-init-script=systemd
- --with-qemu-group=$(usex caps qemu root)
- --with-qemu-user=$(usex caps qemu root)
- --with-remote
- --with-storage-fs
- --with-vmware
-
- --disable-static
- --disable-werror
-
- --with-html-subdir=${PF}/html
- --localstatedir=/var
- )
-
- if use virtualbox && has_version app-emulation/virtualbox-ose; then
- myeconfargs+=( --with-vbox=/usr/lib/virtualbox-ose/ )
- else
- myeconfargs+=( $(use_with virtualbox vbox) )
- fi
-
- econf "${myeconfargs[@]}"
-
- if [[ ${PV} = *9999* ]]; then
- # Restore gnulib's config.sub and config.guess
- # bug #377279
- (cd .gnulib && git reset --hard > /dev/null)
- fi
-}
-
-src_test() {
- cd "${BUILD_DIR}"
-
- # remove problematic tests, bug #591416, bug #591418
- sed -i -e 's#commandtest$(EXEEXT) # #' \
- -e 's#virfirewalltest$(EXEEXT) # #' \
- -e 's#nwfilterebiptablestest$(EXEEXT) # #' \
- -e 's#nwfilterxml2firewalltest$(EXEEXT)$##' \
- tests/Makefile
-
- export VIR_TEST_DEBUG=1
- HOME="${T}" emake check || die "tests failed"
-}
-
-src_install() {
- emake DESTDIR="${D}" \
- SYSTEMD_UNIT_DIR="$(systemd_get_systemunitdir)" install
-
- find "${D}" -name '*.la' -delete || die
-
- # Remove bogus, empty directories. They are either not used, or
- # libvirtd is able to create them on demand
- rm -rf "${D}"/etc/sysconfig
- rm -rf "${D}"/var
-
- use libvirtd || return 0
- # From here, only libvirtd-related instructions, be warned!
-
- systemd_install_serviced \
- "${FILESDIR}"/libvirtd.service.conf libvirtd.service
-
- systemd_newtmpfilesd "${FILESDIR}"/libvirtd.tmpfiles.conf libvirtd.conf
-
- newinitd "${S}/libvirtd.init" libvirtd || die
- newinitd "${FILESDIR}/libvirt-guests.init-r2" libvirt-guests || die
- newinitd "${FILESDIR}/virtlockd.init-r1" virtlockd || die
- newinitd "${FILESDIR}/virtlogd.init-r1" virtlogd || die
-
- newconfd "${FILESDIR}/libvirtd.confd-r5" libvirtd || die
- newconfd "${FILESDIR}/libvirt-guests.confd" libvirt-guests || die
-
- newbashcomp "${S}/tools/bash-completion/vsh" vsh
- bashcomp_alias vsh virsh virt-admin
-
- DOC_CONTENTS=$(<"${FILESDIR}/README.gentoo-r2")
- DISABLE_AUTOFORMATTING=true
- readme.gentoo_create_doc
-}
-
-pkg_preinst() {
- # we only ever want to generate this once
- if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then
- rm -rf "${D}"/etc/libvirt/qemu/networks/default.xml
- fi
-}
-
-pkg_postinst() {
- if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then
- touch "${ROOT}"/etc/libvirt/qemu/networks/default.xml
- fi
-
- use libvirtd || return 0
- # From here, only libvirtd-related instructions, be warned!
-
- readme.gentoo_print_elog
-}
diff --git a/app-emulation/libvirt/libvirt-4.2.0.ebuild b/app-emulation/libvirt/libvirt-4.2.0.ebuild
deleted file mode 100644
index d93ae1d82ca..00000000000
--- a/app-emulation/libvirt/libvirt-4.2.0.ebuild
+++ /dev/null
@@ -1,382 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit autotools eutils user linux-info systemd readme.gentoo-r1 bash-completion-r1
-
-if [[ ${PV} = *9999* ]]; then
- inherit git-r3
- EGIT_REPO_URI="git://libvirt.org/libvirt.git"
- SRC_URI=""
- KEYWORDS=""
- SLOT="0"
-else
- # Versions with 4 numbers are stable updates:
- if [[ ${PV} =~ ^[0-9]+(\.[0-9]+){3} ]]; then
- SRC_URI="http://libvirt.org/sources/stable_updates/${P}.tar.xz"
- else
- SRC_URI="http://libvirt.org/sources/${P}.tar.xz"
- fi
- KEYWORDS="~amd64 ~arm64 ~x86"
- SLOT="0/${PV}"
-fi
-
-DESCRIPTION="C toolkit to manipulate virtual machines"
-HOMEPAGE="http://www.libvirt.org/"
-LICENSE="LGPL-2.1"
-IUSE="
- apparmor audit +caps +dbus firewalld fuse glusterfs iscsi +libvirtd lvm
- libssh lxc +macvtap nfs nls numa openvz parted pcap phyp policykit
- +qemu rbd sasl selinux +udev uml +vepa virtualbox virt-network
- wireshark-plugins xen zeroconf zfs
-"
-
-REQUIRED_USE="
- firewalld? ( virt-network )
- libvirtd? ( || ( lxc openvz qemu uml virtualbox xen ) )
- lxc? ( caps libvirtd )
- openvz? ( libvirtd )
- policykit? ( dbus )
- qemu? ( libvirtd )
- uml? ( libvirtd )
- vepa? ( macvtap )
- virt-network? ( libvirtd )
- virtualbox? ( libvirtd )
- xen? ( libvirtd )"
-
-# gettext.sh command is used by the libvirt command wrappers, and it's
-# non-optional, so put it into RDEPEND.
-# We can use both libnl:1.1 and libnl:3, but if you have both installed, the
-# package will use 3 by default. Since we don't have slot pinning in an API,
-# we must go with the most recent
-RDEPEND="
- app-misc/scrub
- dev-libs/libgcrypt:0
- dev-libs/libnl:3
- >=dev-libs/libxml2-2.7.6
- || ( >=net-analyzer/netcat6-1.0-r2 >=net-analyzer/openbsd-netcat-1.105-r1 )
- >=net-libs/gnutls-1.0.25:0=
- net-libs/libssh2
- net-libs/libtirpc
- net-libs/rpcsvc-proto
- >=net-misc/curl-7.18.0
- sys-apps/dmidecode
- >=sys-apps/util-linux-2.17
- sys-devel/gettext
- sys-libs/ncurses:0=
- sys-libs/readline:=
- apparmor? ( sys-libs/libapparmor )
- audit? ( sys-process/audit )
- caps? ( sys-libs/libcap-ng )
- dbus? ( sys-apps/dbus )
- firewalld? ( net-firewall/firewalld )
- fuse? ( >=sys-fs/fuse-2.8.6:= )
- glusterfs? ( >=sys-cluster/glusterfs-3.4.1 )
- iscsi? ( sys-block/open-iscsi )
- libssh? ( net-libs/libssh )
- lvm? ( >=sys-fs/lvm2-2.02.48-r2[-device-mapper-only(-)] )
- nfs? ( net-fs/nfs-utils )
- numa? (
- >sys-process/numactl-2.0.2
- sys-process/numad
- )
- parted? (
- >=sys-block/parted-1.8[device-mapper]
- sys-fs/lvm2[-device-mapper-only(-)]
- )
- pcap? ( >=net-libs/libpcap-1.0.0 )
- policykit? ( >=sys-auth/polkit-0.9 )
- qemu? (
- >=app-emulation/qemu-0.13.0
- dev-libs/yajl
- )
- rbd? ( sys-cluster/ceph )
- sasl? ( dev-libs/cyrus-sasl )
- selinux? ( >=sys-libs/libselinux-2.0.85 )
- virt-network? (
- net-dns/dnsmasq[script]
- net-firewall/ebtables
- >=net-firewall/iptables-1.4.10[ipv6]
- net-misc/radvd
- sys-apps/iproute2[-minimal]
- )
- virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) )
- wireshark-plugins? ( net-analyzer/wireshark:= )
- xen? (
- app-emulation/xen
- app-emulation/xen-tools:=
- )
- udev? (
- virtual/udev
- >=x11-libs/libpciaccess-0.10.9
- )
- zeroconf? ( >=net-dns/avahi-0.6[dbus] )
- zfs? ( sys-fs/zfs )"
-
-DEPEND="${RDEPEND}
- app-text/xhtml1
- dev-lang/perl
- dev-libs/libxslt
- dev-perl/XML-XPath
- virtual/pkgconfig"
-
-PATCHES=(
- "${FILESDIR}"/${PN}-4.2.0-do_not_use_sysconf.patch
- "${FILESDIR}"/${PN}-1.2.16-fix_paths_in_libvirt-guests_sh.patch
- "${FILESDIR}"/${PN}-3.10.0-r2-fix_paths_for_apparmor.patch
- "${FILESDIR}"/${PN}-3.1.0-musl-fix-includes.patch # bug #609488
-)
-
-pkg_setup() {
- if use qemu; then
- enewgroup qemu 77
- enewuser qemu 77 -1 -1 "qemu,kvm"
- fi
-
- use policykit && enewgroup libvirt
-
- # Check kernel configuration:
- CONFIG_CHECK=""
- use fuse && CONFIG_CHECK+="
- ~FUSE_FS"
-
- use lvm && CONFIG_CHECK+="
- ~BLK_DEV_DM
- ~DM_MULTIPATH
- ~DM_SNAPSHOT"
-
- use lxc && CONFIG_CHECK+="
- ~BLK_CGROUP
- ~CGROUP_CPUACCT
- ~CGROUP_DEVICE
- ~CGROUP_FREEZER
- ~CGROUP_NET_PRIO
- ~CGROUP_PERF
- ~CGROUPS
- ~CGROUP_SCHED
- ~CPUSETS
- ~IPC_NS
- ~MACVLAN
- ~NAMESPACES
- ~NET_CLS_CGROUP
- ~NET_NS
- ~PID_NS
- ~POSIX_MQUEUE
- ~SECURITYFS
- ~USER_NS
- ~UTS_NS
- ~VETH
- ~!GRKERNSEC_CHROOT_MOUNT
- ~!GRKERNSEC_CHROOT_DOUBLE
- ~!GRKERNSEC_CHROOT_PIVOT
- ~!GRKERNSEC_CHROOT_CHMOD
- ~!GRKERNSEC_CHROOT_CAPS"
-
- kernel_is lt 4 7 && use lxc && CONFIG_CHECK+="
- ~DEVPTS_MULTIPLE_INSTANCES"
-
- use macvtap && CONFIG_CHECK+="
- ~MACVTAP"
-
- use virt-network && CONFIG_CHECK+="
- ~BRIDGE_EBT_MARK_T
- ~BRIDGE_NF_EBTABLES
- ~NETFILTER_ADVANCED
- ~NETFILTER_XT_CONNMARK
- ~NETFILTER_XT_MARK
- ~NETFILTER_XT_TARGET_CHECKSUM"
- # Bandwidth Limiting Support
- use virt-network && CONFIG_CHECK+="
- ~BRIDGE_EBT_T_NAT
- ~NET_ACT_POLICE
- ~NET_CLS_FW
- ~NET_CLS_U32
- ~NET_SCH_HTB
- ~NET_SCH_INGRESS
- ~NET_SCH_SFQ"
-
- # Handle specific kernel versions for different features
- kernel_is lt 3 6 && CONFIG_CHECK+=" ~CGROUP_MEM_RES_CTLR"
- if kernel_is ge 3 6; then
- CONFIG_CHECK+=" ~MEMCG ~MEMCG_SWAP "
- kernel_is lt 4 5 && CONFIG_CHECK+=" ~MEMCG_KMEM "
- fi
-
- ERROR_USER_NS="Optional depending on LXC configuration."
-
- if [[ -n ${CONFIG_CHECK} ]]; then
- linux-info_pkg_setup
- fi
-}
-
-src_prepare() {
- touch "${S}/.mailmap"
-
- default
-
- if [[ ${PV} = *9999* ]]; then
- # git checkouts require bootstrapping to create the configure script.
- # Additionally the submodules must be cloned to the right locations
- # bug #377279
- ./bootstrap || die "bootstrap failed"
- (
- git submodule status | sed 's/^[ +-]//;s/ .*//'
- git hash-object bootstrap.conf
- ) >.git-module-status
- fi
-
- # Tweak the init script:
- cp "${FILESDIR}/libvirtd.init-r16" "${S}/libvirtd.init" || die
- sed -e "s/USE_FLAG_FIREWALLD/$(usex firewalld 'need firewalld' '')/" \
- -e "s/USE_FLAG_AVAHI/$(usex zeroconf 'use avahi-daemon' '')/" \
- -e "s/USE_FLAG_ISCSI/$(usex iscsi 'use iscsid' '')/" \
- -e "s/USE_FLAG_RBD/$(usex rbd 'use ceph' '')/" \
- -i "${S}/libvirtd.init" || die "sed failed"
-
- eautoreconf
-}
-
-src_configure() {
- local myeconfargs=(
- $(use_with apparmor)
- $(use_with apparmor apparmor-profiles)
- $(use_with audit)
- $(use_with caps capng)
- $(use_with dbus)
- $(use_with firewalld)
- $(use_with fuse)
- $(use_with glusterfs)
- $(use_with glusterfs storage-gluster)
- $(use_with iscsi storage-iscsi)
- $(use_with libvirtd)
- $(use_with libssh)
- $(use_with lvm storage-lvm)
- $(use_with lvm storage-mpath)
- $(use_with lxc)
- $(use_with macvtap)
- $(use_enable nls)
- $(use_with numa numactl)
- $(use_with numa numad)
- $(use_with openvz)
- $(use_with parted storage-disk)
- $(use_with pcap libpcap)
- $(use_with phyp)
- $(use_with policykit polkit)
- $(use_with qemu)
- $(use_with qemu yajl)
- $(use_with rbd storage-rbd)
- $(use_with sasl)
- $(use_with selinux)
- $(use_with udev)
- $(use_with uml)
- $(use_with vepa virtualport)
- $(use_with virt-network network)
- $(use_with wireshark-plugins wireshark-dissector)
- $(use_with xen)
- $(use_with xen xen-inotify)
- $(use_with xen libxl)
- $(use_with zeroconf avahi)
- $(use_with zfs storage-zfs)
-
- --without-hal
- --without-netcf
- --without-sanlock
- --without-xenapi
-
- --with-esx
- --with-init-script=systemd
- --with-qemu-group=$(usex caps qemu root)
- --with-qemu-user=$(usex caps qemu root)
- --with-remote
- --with-storage-fs
- --with-vmware
-
- --disable-static
- --disable-werror
-
- --with-html-subdir=${PF}/html
- --localstatedir=/var
- )
-
- if use virtualbox && has_version app-emulation/virtualbox-ose; then
- myeconfargs+=( --with-vbox=/usr/lib/virtualbox-ose/ )
- else
- myeconfargs+=( $(use_with virtualbox vbox) )
- fi
-
- econf "${myeconfargs[@]}"
-
- if [[ ${PV} = *9999* ]]; then
- # Restore gnulib's config.sub and config.guess
- # bug #377279
- (cd .gnulib && git reset --hard > /dev/null)
- fi
-}
-
-src_test() {
- cd "${BUILD_DIR}"
-
- # remove problematic tests, bug #591416, bug #591418
- sed -i -e 's#commandtest$(EXEEXT) # #' \
- -e 's#virfirewalltest$(EXEEXT) # #' \
- -e 's#nwfilterebiptablestest$(EXEEXT) # #' \
- -e 's#nwfilterxml2firewalltest$(EXEEXT)$##' \
- tests/Makefile
-
- export VIR_TEST_DEBUG=1
- HOME="${T}" emake check || die "tests failed"
-}
-
-src_install() {
- emake DESTDIR="${D}" \
- SYSTEMD_UNIT_DIR="$(systemd_get_systemunitdir)" install
-
- find "${D}" -name '*.la' -delete || die
-
- # Remove bogus, empty directories. They are either not used, or
- # libvirtd is able to create them on demand
- rm -rf "${D}"/etc/sysconfig
- rm -rf "${D}"/var
-
- use libvirtd || return 0
- # From here, only libvirtd-related instructions, be warned!
-
- systemd_install_serviced \
- "${FILESDIR}"/libvirtd.service.conf libvirtd.service
-
- systemd_newtmpfilesd "${FILESDIR}"/libvirtd.tmpfiles.conf libvirtd.conf
-
- newinitd "${S}/libvirtd.init" libvirtd || die
- newinitd "${FILESDIR}/libvirt-guests.init-r2" libvirt-guests || die
- newinitd "${FILESDIR}/virtlockd.init-r1" virtlockd || die
- newinitd "${FILESDIR}/virtlogd.init-r1" virtlogd || die
-
- newconfd "${FILESDIR}/libvirtd.confd-r5" libvirtd || die
- newconfd "${FILESDIR}/libvirt-guests.confd" libvirt-guests || die
-
- newbashcomp "${S}/tools/bash-completion/vsh" vsh
- bashcomp_alias vsh virsh virt-admin
-
- DOC_CONTENTS=$(<"${FILESDIR}/README.gentoo-r2")
- DISABLE_AUTOFORMATTING=true
- readme.gentoo_create_doc
-}
-
-pkg_preinst() {
- # we only ever want to generate this once
- if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then
- rm -rf "${D}"/etc/libvirt/qemu/networks/default.xml
- fi
-}
-
-pkg_postinst() {
- if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then
- touch "${ROOT}"/etc/libvirt/qemu/networks/default.xml
- fi
-
- use libvirtd || return 0
- # From here, only libvirtd-related instructions, be warned!
-
- readme.gentoo_print_elog
-}
next reply other threads:[~2018-06-29 4:50 UTC|newest]
Thread overview: 344+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-29 4:50 Matthias Maier [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-10-17 5:01 [gentoo-commits] repo/gentoo:master commit in: app-emulation/libvirt/ Sam James
2024-10-17 5:01 Sam James
2024-10-14 4:29 Viorel Munteanu
2024-10-05 14:19 Sam James
2024-09-11 0:15 Sam James
2024-08-31 14:10 Joonas Niilola
2024-08-30 19:12 Sam James
2024-08-25 18:59 Sam James
2024-08-25 18:59 Sam James
2024-07-11 16:29 Eli Schwartz
2024-07-11 0:34 Eli Schwartz
2024-07-07 7:39 Sam James
2024-07-07 7:39 Sam James
2024-07-03 21:21 Matthias Maier
2024-06-10 7:24 Arthur Zamarin
2024-06-09 3:31 Ionen Wolkens
2024-06-09 3:31 Ionen Wolkens
2024-06-09 3:31 Ionen Wolkens
2024-06-08 9:55 Arthur Zamarin
2024-05-28 1:59 Sam James
2024-05-03 3:32 Sam James
2024-04-13 18:49 Sam James
2024-04-13 18:49 Sam James
2024-03-14 5:54 Sam James
2024-01-30 4:05 Ionen Wolkens
2024-01-30 4:05 Ionen Wolkens
2024-01-03 18:52 Arthur Zamarin
2023-11-12 7:42 Sam James
2023-11-12 7:42 Sam James
2023-10-31 19:21 Sam James
2023-10-04 17:46 Matthias Maier
2023-10-03 1:55 Sam James
2023-08-02 17:59 Sam James
2023-07-21 15:29 Arthur Zamarin
2023-07-21 15:29 Arthur Zamarin
2023-07-12 9:17 Sam James
2023-07-12 9:17 Sam James
2023-06-18 12:56 Joonas Niilola
2023-06-18 12:56 Joonas Niilola
2023-06-18 1:54 Matthias Maier
2023-06-07 19:21 Arthur Zamarin
2023-06-04 1:09 Sam James
2023-06-01 7:26 Joonas Niilola
2023-06-01 6:46 Joonas Niilola
2023-05-05 10:14 Sam James
2023-05-05 4:44 Sam James
2023-04-13 15:16 Matthias Maier
2023-04-11 19:04 Sam James
2023-02-26 18:33 Arthur Zamarin
2023-02-14 2:56 Sam James
2023-02-14 2:56 Sam James
2023-02-12 8:33 Joonas Niilola
2023-02-12 7:42 Joonas Niilola
2023-01-27 0:30 Sam James
2023-01-27 0:17 Sam James
2022-11-22 7:50 Arthur Zamarin
2022-11-11 15:14 Matthias Maier
2022-11-11 15:14 Matthias Maier
2022-10-17 3:07 John Helmert III
2022-10-12 23:11 Sam James
2022-09-23 7:04 Agostino Sarubbo
2022-09-23 7:03 Agostino Sarubbo
2022-09-23 7:02 Agostino Sarubbo
2022-09-01 21:49 Sam James
2022-07-04 23:24 Sam James
2022-06-24 20:57 Jakov Smolić
2022-06-03 3:08 Sam James
2022-05-31 8:03 Sam James
2022-05-31 7:29 Sam James
2022-05-05 7:07 Jakov Smolić
2022-05-02 10:22 Joonas Niilola
2022-05-02 7:33 Joonas Niilola
2022-04-19 20:17 Sam James
2022-04-04 1:34 Sam James
2022-04-03 4:36 Sam James
2022-02-18 2:44 Sam James
2022-01-25 12:33 Matthias Maier
2022-01-15 2:10 Sam James
2022-01-15 1:47 Sam James
2021-12-11 1:20 Sam James
2021-12-10 0:22 Sam James
2021-12-10 0:20 Sam James
2021-12-08 3:23 Matthias Maier
2021-11-06 6:48 Arthur Zamarin
2021-10-16 14:02 Agostino Sarubbo
2021-10-16 7:10 Agostino Sarubbo
2021-10-15 23:49 Sam James
2021-10-15 23:49 Sam James
2021-10-15 23:49 Sam James
2021-10-15 23:49 Sam James
2021-10-13 2:54 Matthias Maier
2021-09-10 15:32 Matthias Maier
2021-07-31 13:40 Michał Górny
2021-07-14 17:56 Joonas Niilola
2021-07-14 17:56 Joonas Niilola
2021-06-16 10:34 Sam James
2021-06-16 10:34 Sam James
2021-06-10 6:44 Matthias Maier
2021-06-09 23:46 Matthias Maier
2021-06-09 20:43 Matthias Maier
2021-06-05 11:09 Sergei Trofimovich
2021-05-17 4:54 Matthias Maier
2021-05-17 4:54 Matthias Maier
2021-04-22 13:41 Matthias Maier
2021-04-22 13:41 Matthias Maier
2021-04-04 17:39 Matthias Maier
2021-04-04 17:39 Matthias Maier
2021-03-15 19:47 Joonas Niilola
2021-03-12 8:15 Mikle Kolyada
2021-03-11 15:14 Matthias Maier
2021-03-11 4:26 Matthias Maier
2021-02-19 19:32 Thomas Deutschmann
2021-02-11 18:02 Matthias Maier
2021-02-11 18:02 Matthias Maier
2021-02-11 18:02 Matthias Maier
2021-02-11 18:02 Matthias Maier
2021-02-11 18:02 Matthias Maier
2021-02-11 18:02 Matthias Maier
2021-02-11 18:02 Matthias Maier
2021-01-17 4:34 Sam James
2021-01-17 4:34 Sam James
2020-12-25 20:03 Matthias Maier
2020-12-22 22:46 Matthias Maier
2020-12-05 17:22 Matthias Maier
2020-12-04 5:53 Matthias Maier
2020-11-10 18:13 Sam James
2020-11-10 18:12 Sam James
2020-11-06 1:17 Matthias Maier
2020-11-01 21:47 Matthias Maier
2020-10-05 23:24 Sam James
2020-10-05 23:24 Sam James
2020-10-01 23:47 Matthias Maier
2020-10-01 23:47 Matthias Maier
2020-10-01 23:47 Matthias Maier
2020-10-01 23:47 Matthias Maier
2020-10-01 23:47 Matthias Maier
2020-10-01 23:47 Matthias Maier
2020-09-21 14:12 Michał Górny
2020-09-13 7:53 Sam James
2020-09-09 21:31 Sam James
2020-08-20 13:20 Sam James
2020-08-18 6:43 Sergei Trofimovich
2020-08-18 6:43 Sergei Trofimovich
2020-08-09 15:04 Sergei Trofimovich
2020-08-09 15:04 Sergei Trofimovich
2020-05-09 7:39 Agostino Sarubbo
2020-04-27 6:42 Matthias Maier
2020-04-26 23:44 Thomas Deutschmann
2020-04-15 18:19 Matthias Maier
2020-04-05 17:19 Matthias Maier
2020-03-19 3:37 Matthias Maier
2020-03-15 18:41 Agostino Sarubbo
2020-03-14 19:46 Agostino Sarubbo
2020-03-13 16:40 Matthias Maier
2020-03-13 16:40 Matthias Maier
2020-02-10 16:04 Matthias Maier
2020-02-10 16:04 Matthias Maier
2020-02-10 16:04 Matthias Maier
2020-02-06 15:52 Matthias Maier
2020-02-06 15:52 Matthias Maier
2020-02-06 15:52 Matthias Maier
2020-02-06 15:52 Matthias Maier
2020-02-06 15:52 Matthias Maier
2020-02-03 15:24 Agostino Sarubbo
2020-02-03 12:38 Agostino Sarubbo
2020-01-03 14:30 Agostino Sarubbo
2020-01-01 15:30 Agostino Sarubbo
2019-12-31 22:01 Matthias Maier
2019-12-28 21:32 Georgy Yakovlev
2019-12-28 21:32 Georgy Yakovlev
2019-12-03 18:49 Matthias Maier
2019-12-02 14:42 Doug Goldstein
2019-12-02 14:42 Doug Goldstein
2019-12-02 14:42 Doug Goldstein
2019-10-15 16:09 Matthias Maier
2019-10-15 16:09 Matthias Maier
2019-10-15 16:09 Matthias Maier
2019-08-13 5:52 Matthias Maier
2019-08-12 4:03 Matthias Maier
2019-08-06 10:02 Agostino Sarubbo
2019-08-06 9:39 Agostino Sarubbo
2019-08-02 19:48 Matthias Maier
2019-08-02 19:48 Matthias Maier
2019-07-30 13:44 Mike Gilbert
2019-07-09 19:06 Matthias Maier
2019-07-09 12:14 Matthias Maier
2019-07-09 12:14 Matthias Maier
2019-07-09 12:14 Matthias Maier
2019-07-02 6:31 Matthias Maier
2019-07-01 17:12 Matthias Maier
2019-07-01 15:07 Matthias Maier
2019-05-26 22:27 Thomas Deutschmann
2019-05-20 23:29 Matthias Maier
2019-05-20 11:07 Mikle Kolyada
2019-05-19 23:42 Matthias Maier
2019-05-19 23:42 Matthias Maier
2019-04-08 2:52 Matthias Maier
2019-04-08 2:52 Matthias Maier
2019-04-08 2:52 Matthias Maier
2019-04-08 2:52 Matthias Maier
2019-04-04 14:55 Matthias Maier
2019-03-17 7:27 Matthias Maier
2019-03-17 7:27 Matthias Maier
2019-03-17 7:27 Matthias Maier
2019-03-17 7:27 Matthias Maier
2019-03-17 7:27 Matthias Maier
2019-03-02 23:46 Matthias Maier
2019-01-25 16:28 Matthias Maier
2019-01-10 15:13 Doug Goldstein
2019-01-02 10:02 Mikle Kolyada
2018-12-29 19:12 Thomas Deutschmann
2018-12-18 15:50 Matthias Maier
2018-12-03 2:43 Jonathan Callen
2018-11-04 22:39 Matthias Maier
2018-11-04 22:39 Matthias Maier
2018-11-04 5:13 Matthias Maier
2018-11-04 5:13 Matthias Maier
2018-09-24 11:57 Matthias Maier
2018-09-24 11:57 Matthias Maier
2018-08-23 2:38 Mikle Kolyada
2018-08-23 1:41 Thomas Deutschmann
2018-08-19 18:54 Matthias Maier
2018-08-19 18:54 Matthias Maier
2018-07-23 16:13 Matthias Maier
2018-07-03 14:12 Matthias Maier
2018-07-03 13:13 Matthias Maier
2018-07-03 7:44 Matthias Maier
2018-07-03 7:44 Matthias Maier
2018-07-03 7:44 Matthias Maier
2018-07-01 16:52 Matthias Maier
2018-07-01 16:44 Matthias Maier
2018-06-29 4:50 Matthias Maier
2018-06-05 14:52 Mikle Kolyada
2018-05-11 21:39 Matthias Maier
2018-04-14 23:50 Matthias Maier
2018-04-14 23:50 Matthias Maier
2018-04-09 16:06 Matthias Maier
2018-04-01 16:10 Aaron Bauman
2018-03-28 19:33 Matthias Maier
2018-03-20 16:48 Matthias Maier
2018-03-20 16:42 Matthias Maier
2018-03-18 0:40 Thomas Deutschmann
2018-03-15 10:03 Mikle Kolyada
2018-03-14 18:18 Matthias Maier
2018-02-12 21:36 Thomas Deutschmann
2018-02-12 11:47 Agostino Sarubbo
2018-01-30 17:55 Matthias Maier
2017-12-11 4:15 Matthias Maier
2017-12-07 16:08 Matthias Maier
2017-11-13 18:49 Manuel Rüger
2017-10-25 19:52 Matthias Maier
2017-10-25 19:48 Matthias Maier
2017-10-25 19:39 Matthias Maier
2017-09-27 15:15 Matthias Maier
2017-09-27 15:15 Matthias Maier
2017-09-27 15:15 Matthias Maier
2017-09-23 14:15 Thomas Deutschmann
2017-09-20 9:59 Agostino Sarubbo
2017-09-11 20:20 Michał Górny
2017-09-05 23:23 Matthias Maier
2017-07-26 19:37 Matthias Maier
2017-07-07 10:33 Alexis Ballier
2017-06-11 22:11 Matthias Maier
2017-06-04 10:42 Agostino Sarubbo
2017-06-04 10:34 Agostino Sarubbo
2017-05-07 10:36 Agostino Sarubbo
2017-05-07 10:34 Agostino Sarubbo
2017-05-06 18:27 Matthias Maier
2017-04-14 15:55 Matthias Maier
2017-03-17 20:25 Matthias Maier
2017-03-04 21:27 Matthias Maier
2017-01-23 15:46 Agostino Sarubbo
2017-01-23 13:51 Agostino Sarubbo
2017-01-22 22:05 Manuel Rüger
2017-01-22 16:28 Matthias Maier
2017-01-22 15:34 Matthias Maier
2017-01-20 2:43 Matthias Maier
2017-01-20 2:43 Matthias Maier
2016-12-20 12:59 Matthias Maier
2016-12-20 7:36 Yixun Lan
2016-12-09 2:16 Matthias Maier
2016-12-08 23:13 Yixun Lan
2016-12-07 7:37 Yixun Lan
2016-11-18 20:42 Matthias Maier
2016-11-18 20:42 Matthias Maier
2016-10-17 5:54 Matthias Maier
2016-10-05 3:02 Matthias Maier
2016-10-05 3:02 Matthias Maier
2016-10-04 7:14 Matthias Maier
2016-10-04 7:14 Matthias Maier
2016-09-14 21:40 Matthias Maier
2016-09-02 14:41 Matthias Maier
2016-08-16 7:38 Matthias Maier
2016-08-16 7:38 Matthias Maier
2016-08-16 7:38 Matthias Maier
2016-08-08 4:45 Matthias Maier
2016-08-08 4:45 Matthias Maier
2016-08-08 4:44 Matthias Maier
2016-07-28 1:32 Matthias Maier
2016-07-09 15:10 Matthias Maier
2016-07-09 15:10 Matthias Maier
2016-07-09 15:10 Matthias Maier
2016-07-09 15:10 Matthias Maier
2016-07-09 15:10 Matthias Maier
2016-07-09 15:10 Matthias Maier
2016-07-01 9:35 Matthias Maier
2016-07-01 8:30 Agostino Sarubbo
2016-07-01 8:29 Agostino Sarubbo
2016-06-14 10:19 Agostino Sarubbo
2016-06-14 6:32 Matthias Maier
2016-06-14 6:32 Matthias Maier
2016-06-14 5:51 Fabian Groffen
2016-05-31 21:24 Matthias Maier
2016-05-01 19:15 Matthias Maier
2016-05-01 19:15 Matthias Maier
2016-04-20 3:21 Michał Górny
2016-04-14 14:23 Doug Goldstein
2016-03-16 14:30 Doug Goldstein
2016-03-13 20:26 Matthias Maier
2016-03-11 15:09 Patrick Lauer
2016-02-03 4:32 Matthias Maier
2016-02-03 4:30 Matthias Maier
2015-12-26 23:02 Matthias Maier
2015-12-22 9:08 Agostino Sarubbo
2015-12-22 9:01 Agostino Sarubbo
2015-12-22 6:16 Matthias Maier
2015-12-22 6:16 Matthias Maier
2015-12-07 2:07 Doug Goldstein
2015-11-15 8:06 Matthias Maier
2015-10-10 16:07 Matthias Maier
2015-10-10 16:07 Matthias Maier
2015-10-04 14:07 Matthias Maier
2015-10-03 18:29 Matthias Maier
2015-10-03 18:16 Matthias Maier
2015-10-03 18:16 Matthias Maier
2015-10-03 18:16 Matthias Maier
2015-09-09 16:00 Doug Goldstein
2015-09-08 7:20 Agostino Sarubbo
2015-09-08 7:19 Agostino Sarubbo
2015-09-02 16:03 Doug Goldstein
2015-09-02 16:03 Doug Goldstein
2015-08-20 1:44 Matthias Maier
2015-08-20 1:13 Matthias Maier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1530245472.12680e5c04fa5d5bdb7a04ff9f0e6f9b040a7fc2.tamiko@gentoo \
--to=tamiko@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox