From c089df03816e9fb799f08ee4bc2df01d2d8a3e9f Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 4 Jun 2016 18:31:16 +0200 Subject: [PATCH] collectd.spec: add new gRPC plugin Disable it for now as the version of protobuf-compiler in RHEL and Fedora is too old. --- contrib/redhat/collectd.spec | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/contrib/redhat/collectd.spec b/contrib/redhat/collectd.spec index b2e931b7..072dd6bd 100644 --- a/contrib/redhat/collectd.spec +++ b/contrib/redhat/collectd.spec @@ -160,6 +160,8 @@ %define with_aquaero 0%{!?_without_aquaero:0} # plugin barometer disabled, requires a libi2c %define with_barometer 0%{!?_without_barometer:0} +# plugin grpc disabled, requires protobuf-compiler >= 3.0 +%define with_grpc 0%{!?_without_grpc:0} # plugin lpar disabled, requires AIX %define with_lpar 0%{!?_without_lpar:0} # plugin mic disabled, requires Mic @@ -414,6 +416,15 @@ The gmond plugin subscribes to a Multicast group to receive data from gmond, the client daemon of the Ganglia project. %endif +%if %{with_grpc} +%package grpc +Summary: GRPC plugin for collectd +Group: System Environment/Daemons +Requires: %{name}%{?_isa} = %{version}-%{release} +BuildRequires: protobuf-compiler +%description grpc +This plugin embeds a gRPC server into Collectd. + %if %{with_hddtemp} %package hddtemp Summary: Hddtemp plugin for collectd @@ -1072,6 +1083,12 @@ Collectd utilities %define _with_gmond --disable-gmond %endif +%if %{with_grpc} +%define _with_grpc --enable-grpc +%else +%define _with_grpc --disable-grpc +%endif + %if %{with_hddtemp} %define _with_hddtemp --enable-hddtemp %else @@ -1694,6 +1711,7 @@ Collectd utilities %{?_with_filecount} \ %{?_with_fscache} \ %{?_with_gmond} \ + %{?_with_grpc} \ %{?_with_hddtemp} \ %{?_with_interface} \ %{?_with_ipc} \ @@ -2214,6 +2232,11 @@ fi %{_libdir}/%{name}/gmond.so %endif +%if %{with_grpc} +%files grpc +%{_libdir}/%{name}/grpc.so +%endif + %if %{with_hddtemp} %files hddtemp %{_libdir}/%{name}/hddtemp.so @@ -2424,7 +2447,7 @@ fi * Sat Jun 04 2016 Ruben Kerkhof 5.5.1-1 - New upstream version - New plugins enabled by default: chrony, mqtt, notify_nagios -- New plugins disabled by default: zone, xencpu +- New plugins disabled by default: grpc, zone, xencpu * Wed May 27 2015 Marc Fournier 5.5.0-1 - New upstream version -- 2.11.0