sys-cluster/keepalived: make json support optional, fixes #643568
authorUltrabug <ultrabug@gentoo.org>
Fri, 5 Jan 2018 16:39:21 +0000 (17:39 +0100)
committerUltrabug <ultrabug@gentoo.org>
Fri, 5 Jan 2018 16:39:58 +0000 (17:39 +0100)
sys-cluster/keepalived/keepalived-1.4.0.ebuild
sys-cluster/keepalived/metadata.xml

index 2853960a82c25e370feffe5167dd939b9fa42446..e84c2f7736d9bd9960d5d13c968b6f9500da5191 100644 (file)
@@ -12,7 +12,7 @@ SRC_URI="http://www.keepalived.org/software/${P}.tar.gz"
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
-IUSE="dbus debug ipv6 snmp"
+IUSE="dbus debug ipv6 -json snmp"
 
 RDEPEND="dev-libs/libnl:=
        dev-libs/openssl:=
@@ -20,6 +20,7 @@ RDEPEND="dev-libs/libnl:=
        net-libs/libnfnetlink
        sys-apps/iproute2
        dbus? ( sys-apps/dbus )
+       json? ( dev-libs/json-c )
        snmp? ( net-analyzer/net-snmp )"
 DEPEND="${RDEPEND}
        >=sys-kernel/linux-headers-4.4"
@@ -36,12 +37,12 @@ src_configure() {
        STRIP=/bin/true \
        econf \
                --with-kernel-dir=/usr \
-               --enable-json \
                --enable-sha1 \
                --enable-vrrp \
                $(use_enable dbus) \
                $(use_enable dbus dbus-create-instance) \
                $(use_enable debug) \
+               $(use_enable json) \
                $(use_enable snmp)
 }
 
index 51b30f6d8f3fde34a9dc5081c3f8cba6cd4cb172..4de8679ae12915c71d1fa8da8d23f067551c5b92 100644 (file)
@@ -8,4 +8,7 @@
        <longdescription>
                VRRP2 implementation. Used for setting up high availability clusters.
        </longdescription>
+       <use>
+               <flag name="json">compile with signal to dump configuration and stats as JSON.</flag>
+       </use>
 </pkgmetadata>