From 6a78e221ef7f3df40417dcd2e51285300bef55b9 Mon Sep 17 00:00:00 2001 From: Marc Fournier Date: Mon, 3 Oct 2016 22:16:23 +0200 Subject: [PATCH] collectd.spec: add dpdk plugin --- contrib/redhat/collectd.spec | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/contrib/redhat/collectd.spec b/contrib/redhat/collectd.spec index 73e69c75..722de15b 100644 --- a/contrib/redhat/collectd.spec +++ b/contrib/redhat/collectd.spec @@ -166,6 +166,8 @@ %define with_barometer 0%{!?_without_barometer:0} # plugin grpc disabled, requires protobuf-compiler >= 3.0 %define with_grpc 0%{!?_without_grpc:0} +# plugin dpdk disabled, requires libdpdk +%define with_dpdk 0%{!?_without_dpdk:0} # plugin lpar disabled, requires AIX %define with_lpar 0%{!?_without_lpar:0} # plugin mic disabled, requires Mic @@ -1069,6 +1071,12 @@ Collectd utilities %define _with_drbd --disable-drbd %endif +%if %{with_dpdk} +%define _with_dpdk --enable-dpdk +%else +%define _with_dpdk --disable-dpdk +%endif + %if %{with_email} %define _with_email --enable-email %else @@ -1758,6 +1766,7 @@ Collectd utilities %{?_with_disk} \ %{?_with_dns} \ %{?_with_drbd} \ + %{?_with_dpdk} \ %{?_with_email} \ %{?_with_entropy} \ %{?_with_ethstat} \ @@ -2035,6 +2044,9 @@ fi %if %{with_drbd} %{_libdir}/%{name}/drbd.so %endif +%if %{with_dpdk} +%{_libdir}/%{name}/dpdk.so +%endif %if %{with_ethstat} %{_libdir}/%{name}/ethstat.so %endif @@ -2526,6 +2538,7 @@ fi * Tue Aug 23 2016 Marc Fournier - 5.7.0-1 - New PRE-RELEASE version - New plugins enabled by default: hugepages +- New plugins disabled by default: dpdk * Sun Aug 14 2016 Ruben Kerkhof - 5.6.0-1 - New PRE-RELEASE version -- 2.30.2