app-emulation/lxd: Make dnsmasq dependency optional
authorVirgil Dupras <hsoft@hardcoded.net>
Sat, 23 Sep 2017 13:15:12 +0000 (09:15 -0400)
committerAgostino Sarubbo <ago@gentoo.org>
Sun, 24 Sep 2017 11:17:57 +0000 (13:17 +0200)
Gentoo-Bug: 624096

Package-Manager: Portage-2.3.8, Repoman-2.3.1

app-emulation/lxd/lxd-2.18.ebuild
app-emulation/lxd/metadata.xml

index c18c43f6dae4c0efb640c16799f295f60e0df4cd..cfc21bd24259e4745694eae8a187517b17c2dc76 100644 (file)
@@ -45,7 +45,7 @@ LICENSE="Apache-2.0"
 SLOT="0"
 KEYWORDS="~amd64"
 
-IUSE="+daemon +ipv6 nls test"
+IUSE="+daemon +ipv6 +dnsmasq nls test"
 
 inherit bash-completion-r1 linux-info systemd user golang-vcs-snapshot
 
@@ -68,7 +68,9 @@ RDEPEND="
        daemon? (
                app-arch/xz-utils
                >=app-emulation/lxc-2.0.7[seccomp]
-               net-dns/dnsmasq[dhcp,ipv6?]
+               dnsmasq? (
+                       net-dns/dnsmasq[dhcp,ipv6?]
+               )
                net-misc/rsync[xattr]
                sys-apps/iproute2[ipv6?]
                sys-fs/squashfs-tools
index 15e487b88b1c9cd385ff74df9e5b8237a3fe63db..d4ab64b98a189a33e9a1eac50e620ce7c5f6c3bb 100644 (file)
@@ -26,5 +26,8 @@
                <flag name="daemon">
                        Build the system daemon, not just the client tool
                </flag>
+               <flag name="dnsmasq">
+                       Depend on dnsmasq to provide DHCP and DNS.
+               </flag>
        </use>
 </pkgmetadata>