app-emulation/libvirt: Use zeroconf instead of avahi USE flag (#477620)
authorPacho Ramos <pacho@gentoo.org>
Sun, 2 Oct 2016 11:14:23 +0000 (13:14 +0200)
committerPacho Ramos <pacho@gentoo.org>
Sun, 2 Oct 2016 12:36:17 +0000 (14:36 +0200)
Package-Manager: portage-2.3.1

app-emulation/libvirt/libvirt-2.2.0.ebuild

index aef26b7a9a6d844b426d1da2b8a800afbcf0d362..245c61b4e6ae27c82e31cdfec5827194cd3df563 100644 (file)
@@ -32,10 +32,10 @@ DESCRIPTION="C toolkit to manipulate virtual machines"
 HOMEPAGE="http://www.libvirt.org/"
 LICENSE="LGPL-2.1"
 IUSE="
-       apparmor audit avahi +caps firewalld fuse glusterfs iscsi +libvirtd lvm
+       apparmor audit +caps firewalld fuse glusterfs iscsi +libvirtd lvm
        lxc +macvtap nfs nls numa openvz parted pcap phyp policykit +qemu rbd
        sasl selinux +udev uml +vepa virtualbox virt-network wireshark-plugins
-       xen elibc_glibc
+       xen zeroconf elibc_glibc
 "
 
 REQUIRED_USE="
@@ -71,7 +71,6 @@ RDEPEND="
        sys-libs/readline:=
        apparmor? ( sys-libs/libapparmor )
        audit? ( sys-process/audit )
-       avahi? ( >=net-dns/avahi-0.6[dbus] )
        caps? ( sys-libs/libcap-ng )
        elibc_glibc? ( sys-libs/glibc[rpc(+)] )
        firewalld? ( net-firewall/firewalld )
@@ -114,7 +113,9 @@ RDEPEND="
        udev? (
                virtual/udev
                >=x11-libs/libpciaccess-0.10.9
-       )"
+       )
+       zeroconf? ( >=net-dns/avahi-0.6[dbus] )
+"
 
 DEPEND="${RDEPEND}
        app-text/xhtml1
@@ -237,7 +238,7 @@ src_prepare() {
        # 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 avahi 'use avahi-daemon' '')/" \
+               -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"
@@ -251,7 +252,6 @@ src_configure() {
                $(use_with apparmor)
                $(use_with apparmor apparmor-profiles)
                $(use_with audit)
-               $(use_with avahi)
                $(use_with caps capng)
                $(use_with firewalld)
                $(use_with fuse)
@@ -284,6 +284,7 @@ src_configure() {
                $(use_with xen)
                $(use_with xen xen-inotify)
                $(usex xen --with-libxl '')
+               $(use_with zeroconf avahi)
 
                --without-hal
                --without-netcf