projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bcd5282
)
Sysevent RPM specfile
author
Andrew Bays
<andrew.bays@gmail.com>
Tue, 19 Jun 2018 15:27:46 +0000
(11:27 -0400)
committer
GitHub
<noreply@github.com>
Tue, 19 Jun 2018 15:27:46 +0000
(11:27 -0400)
contrib/redhat/collectd.spec
patch
|
blob
|
history
diff --git
a/contrib/redhat/collectd.spec
b/contrib/redhat/collectd.spec
index
d84b457
..
61163c0
100644
(file)
--- a/
contrib/redhat/collectd.spec
+++ b/
contrib/redhat/collectd.spec
@@
-131,6
+131,7
@@
%define with_statsd 0%{!?_without_statsd:1}
%define with_swap 0%{!?_without_swap:1}
%define with_synproxy 0%{!?_without_synproxy:0}
%define with_statsd 0%{!?_without_statsd:1}
%define with_swap 0%{!?_without_swap:1}
%define with_synproxy 0%{!?_without_synproxy:0}
+%define with_sysevent 0%{!?_without_sysevent:1}
%define with_syslog 0%{!?_without_syslog:1}
%define with_table 0%{!?_without_table:1}
%define with_tail 0%{!?_without_tail:1}
%define with_syslog 0%{!?_without_syslog:1}
%define with_table 0%{!?_without_table:1}
%define with_tail 0%{!?_without_tail:1}
@@
-240,6
+241,7
@@
%define with_ovs_stats 0
%define with_redis 0
%define with_rrdcached 0
%define with_ovs_stats 0
%define with_redis 0
%define with_rrdcached 0
+%define with_sysevent 0
%define with_write_redis 0
%define with_write_riemann 0
%define with_xmms 0
%define with_write_redis 0
%define with_write_riemann 0
%define with_xmms 0
@@
-857,6
+859,16
@@
BuildRequires: net-snmp-devel
This plugin for collectd to support AgentX integration.
%endif
This plugin for collectd to support AgentX integration.
%endif
+%if %{with_sysevent}
+%package sysevent
+Summary: Rsyslog event plugin for collectd
+Group: System Environment/Daemons
+Requires: %{name}%{?_isa} = %{version}-%{release}
+BuildRequires: yajl-devel
+%description sysevent
+Monitors rsyslog for system events.
+%endif
+
%if %{with_varnish}
%package varnish
Summary: Varnish plugin for collectd
%if %{with_varnish}
%package varnish
Summary: Varnish plugin for collectd
@@
-1662,6
+1674,12
@@
Collectd utilities
%define _with_synproxy --disable-synproxy
%endif
%define _with_synproxy --disable-synproxy
%endif
+%if %{with_sysevent}
+%define _with_sysevent --enable-sysevent
+%else
+%define _with_sysevent --disable-sysevent
+%endif
+
%if %{with_syslog}
%define _with_syslog --enable-syslog
%else
%if %{with_syslog}
%define _with_syslog --enable-syslog
%else
@@
-1994,6
+2012,7
@@
Collectd utilities
%{?_with_statsd} \
%{?_with_swap} \
%{?_with_synproxy} \
%{?_with_statsd} \
%{?_with_swap} \
%{?_with_synproxy} \
+ %{?_with_sysevent} \
%{?_with_syslog} \
%{?_with_table} \
%{?_with_tail_csv} \
%{?_with_syslog} \
%{?_with_table} \
%{?_with_tail_csv} \
@@
-2685,6
+2704,11
@@
fi
%{_libdir}/%{name}/snmp_agent.so
%endif
%{_libdir}/%{name}/snmp_agent.so
%endif
+%if %{with_sysevent}
+%files sysevent
+%{_libdir}/%{name}/sysevent.so
+%endif
+
%if %{with_varnish}
%files varnish
%{_libdir}/%{name}/varnish.so
%if %{with_varnish}
%files varnish
%{_libdir}/%{name}/varnish.so