projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b165cd1
)
allow configuration of snmp_agent in rpm builds
author
Brandon Arp
<brandon.arp@smartsheet.com>
Thu, 18 May 2017 21:38:33 +0000
(14:38 -0700)
committer
Brandon Arp
<brandon.arp@smartsheet.com>
Thu, 18 May 2017 21:39:53 +0000
(14:39 -0700)
contrib/redhat/collectd.spec
patch
|
blob
|
history
diff --git
a/contrib/redhat/collectd.spec
b/contrib/redhat/collectd.spec
index
bceaaf8
..
b36e2a2
100644
(file)
--- a/
contrib/redhat/collectd.spec
+++ b/
contrib/redhat/collectd.spec
@@
-127,6
+127,7
@@
%define with_serial 0%{!?_without_serial:1}
%define with_smart 0%{!?_without_smart:1}
%define with_snmp 0%{!?_without_snmp:1}
%define with_serial 0%{!?_without_serial:1}
%define with_smart 0%{!?_without_smart:1}
%define with_snmp 0%{!?_without_snmp:1}
+%define with_snmp_agent 0%{!?_without_snmp_agent:1}
%define with_statsd 0%{!?_without_statsd:1}
%define with_swap 0%{!?_without_swap:1}
%define with_syslog 0%{!?_without_syslog:1}
%define with_statsd 0%{!?_without_statsd:1}
%define with_swap 0%{!?_without_swap:1}
%define with_syslog 0%{!?_without_syslog:1}
@@
-833,6
+834,16
@@
BuildRequires: net-snmp-devel
This plugin for collectd allows querying of network equipment using SNMP.
%endif
This plugin for collectd allows querying of network equipment using SNMP.
%endif
+%if %{with_snmp_agent}
+%package snmp_agent
+Summary: SNMP AgentX plugin for collectd
+Group: System Environment/Daemons
+Requires: %{name}%{?_isa} = %{version}-%{release}
+BuildRequires: net-snmp-devel
+%description snmp_agent
+This plugin for collectd to support AgentX integration.
+%endif
+
%if %{with_varnish}
%package varnish
Summary: Varnish plugin for collectd
%if %{with_varnish}
%package varnish
Summary: Varnish plugin for collectd
@@
-1608,6
+1619,12
@@
Collectd utilities
%define _with_snmp --disable-snmp
%endif
%define _with_snmp --disable-snmp
%endif
+%if %{with_snmp_agent}
+%define _with_snmp_agent --enable-snmp_agent
+%else
+%define _with_snmp_agent --disable-snmp_agent
+%endif
+
%if %{with_statsd}
%define _with_statsd --enable-statsd
%else
%if %{with_statsd}
%define _with_statsd --enable-statsd
%else
@@
-1947,6
+1964,7
@@
Collectd utilities
%{?_with_sigrok} \
%{?_with_smart} \
%{?_with_snmp} \
%{?_with_sigrok} \
%{?_with_smart} \
%{?_with_snmp} \
+ %{?_with_snmp_agent} \
%{?_with_statsd} \
%{?_with_swap} \
%{?_with_syslog} \
%{?_with_statsd} \
%{?_with_swap} \
%{?_with_syslog} \
@@
-2624,6
+2642,11
@@
fi
%{_libdir}/%{name}/snmp.so
%endif
%{_libdir}/%{name}/snmp.so
%endif
+%if %{with_snmp_agent}
+%files snmp_agent
+%{_libdir}/%{name}/snmp_agent.so
+%endif
+
%if %{with_varnish}
%files varnish
%{_libdir}/%{name}/varnish.so
%if %{with_varnish}
%files varnish
%{_libdir}/%{name}/varnish.so