commit:     28efa0b57547e2784ae33d273b500fe4aab84e52
Author:     Craig Andrews <candrews <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 19 18:42:29 2019 +0000
Commit:     Craig Andrews <candrews <AT> gentoo <DOT> org>
CommitDate: Fri Apr 19 18:42:58 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28efa0b5

net-analyzer/netdata: Make xen and cups plugins optional

Closes: https://bugs.gentoo.org/683838
Package-Manager: Portage-2.3.64, Repoman-2.3.12
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>

 net-analyzer/netdata/metadata.xml                                | 1 +
 .../netdata/{netdata-9999.ebuild => netdata-1.14.0-r1.ebuild}    | 9 ++++++++-
 net-analyzer/netdata/netdata-9999.ebuild                         | 9 ++++++++-
 3 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/net-analyzer/netdata/metadata.xml 
b/net-analyzer/netdata/metadata.xml
index 04af360a6e2..06a8ae53618 100644
--- a/net-analyzer/netdata/metadata.xml
+++ b/net-analyzer/netdata/metadata.xml
@@ -11,6 +11,7 @@
         <flag name="nfacct">Enable the nfacct plugin</flag>
         <flag name="nodejs">Enable use of nodejs (which some plugins 
use)</flag>
         <flag name="tor">Enable monitoring of tor</flag>
+        <flag name="xen">Enable monitoring of xen</flag>
     </use>
     <upstream>
         <remote-id type="github">netdata/netdata</remote-id>

diff --git a/net-analyzer/netdata/netdata-9999.ebuild 
b/net-analyzer/netdata/netdata-1.14.0-r1.ebuild
similarity index 91%
copy from net-analyzer/netdata/netdata-9999.ebuild
copy to net-analyzer/netdata/netdata-1.14.0-r1.ebuild
index 59396a96cc0..54d150969d3 100644
--- a/net-analyzer/netdata/netdata-9999.ebuild
+++ b/net-analyzer/netdata/netdata-1.14.0-r1.ebuild
@@ -19,7 +19,7 @@ HOMEPAGE="https://github.com/netdata/netdata 
https://my-netdata.io/";
 
 LICENSE="GPL-3+ MIT BSD"
 SLOT="0"
-IUSE="caps +compression cpu_flags_x86_sse2 ipmi mysql nfacct nodejs postgres 
+python tor"
+IUSE="caps +compression cpu_flags_x86_sse2 cups ipmi mysql nfacct nodejs 
postgres +python tor xen"
 REQUIRED_USE="
        mysql? ( python )
        python? ( ${PYTHON_REQUIRED_USE} )
@@ -40,6 +40,7 @@ RDEPEND="
        sys-apps/util-linux
        virtual/awk
        caps? ( sys-libs/libcap )
+       cups? ( net-print/cups )
        compression? ( sys-libs/zlib )
        ipmi? ( sys-libs/freeipmi )
        nfacct? (
@@ -58,6 +59,10 @@ RDEPEND="
                )
                postgres? ( dev-python/psycopg:2[${PYTHON_USEDEP}] )
                tor? ( net-libs/stem[${PYTHON_USEDEP}] )
+       )
+       xen? (
+               app-emulation/xen-tools
+               dev-libs/yajl
        )"
 DEPEND="${RDEPEND}
        virtual/pkgconfig"
@@ -85,8 +90,10 @@ src_configure() {
        econf \
                --localstatedir="${EPREFIX}"/var \
                --with-user=${NETDATA_USER} \
+               $(use_enable cups plugin-cups) \
                $(use_enable nfacct plugin-nfacct) \
                $(use_enable ipmi plugin-freeipmi) \
+               $(use_enable xen plugin-xenstat) \
                $(use_enable cpu_flags_x86_sse2 x86-sse) \
                $(use_with compression zlib)
 }

diff --git a/net-analyzer/netdata/netdata-9999.ebuild 
b/net-analyzer/netdata/netdata-9999.ebuild
index 59396a96cc0..54d150969d3 100644
--- a/net-analyzer/netdata/netdata-9999.ebuild
+++ b/net-analyzer/netdata/netdata-9999.ebuild
@@ -19,7 +19,7 @@ HOMEPAGE="https://github.com/netdata/netdata 
https://my-netdata.io/";
 
 LICENSE="GPL-3+ MIT BSD"
 SLOT="0"
-IUSE="caps +compression cpu_flags_x86_sse2 ipmi mysql nfacct nodejs postgres 
+python tor"
+IUSE="caps +compression cpu_flags_x86_sse2 cups ipmi mysql nfacct nodejs 
postgres +python tor xen"
 REQUIRED_USE="
        mysql? ( python )
        python? ( ${PYTHON_REQUIRED_USE} )
@@ -40,6 +40,7 @@ RDEPEND="
        sys-apps/util-linux
        virtual/awk
        caps? ( sys-libs/libcap )
+       cups? ( net-print/cups )
        compression? ( sys-libs/zlib )
        ipmi? ( sys-libs/freeipmi )
        nfacct? (
@@ -58,6 +59,10 @@ RDEPEND="
                )
                postgres? ( dev-python/psycopg:2[${PYTHON_USEDEP}] )
                tor? ( net-libs/stem[${PYTHON_USEDEP}] )
+       )
+       xen? (
+               app-emulation/xen-tools
+               dev-libs/yajl
        )"
 DEPEND="${RDEPEND}
        virtual/pkgconfig"
@@ -85,8 +90,10 @@ src_configure() {
        econf \
                --localstatedir="${EPREFIX}"/var \
                --with-user=${NETDATA_USER} \
+               $(use_enable cups plugin-cups) \
                $(use_enable nfacct plugin-nfacct) \
                $(use_enable ipmi plugin-freeipmi) \
+               $(use_enable xen plugin-xenstat) \
                $(use_enable cpu_flags_x86_sse2 x86-sse) \
                $(use_with compression zlib)
 }

Reply via email to