projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9ea8cdc
)
Procevent RPM specfile
author
Andrew Bays
<andrew.bays@gmail.com>
Tue, 19 Jun 2018 15:23:01 +0000
(11:23 -0400)
committer
Andrew Bays
<andrew.bays@gmail.com>
Wed, 4 Sep 2019 19:50:44 +0000
(15:50 -0400)
contrib/redhat/collectd.spec
patch
|
blob
|
history
diff --git
a/contrib/redhat/collectd.spec
b/contrib/redhat/collectd.spec
index
4c566a2
..
8bde54c
100644
(file)
--- a/
contrib/redhat/collectd.spec
+++ b/
contrib/redhat/collectd.spec
@@
-123,6
+123,7
@@
%define with_postgresql 0%{!?_without_postgresql:1}
%define with_powerdns 0%{!?_without_powerdns:1}
%define with_processes 0%{!?_without_processes:1}
%define with_postgresql 0%{!?_without_postgresql:1}
%define with_powerdns 0%{!?_without_powerdns:1}
%define with_processes 0%{!?_without_processes:1}
+%define with_procevent 0%{!?_without_procevent:1}
%define with_protocols 0%{!?_without_protocols:1}
%define with_python 0%{!?_without_python:1}
%define with_redis 0%{!?_without_redis:1}
%define with_protocols 0%{!?_without_protocols:1}
%define with_python 0%{!?_without_python:1}
%define with_redis 0%{!?_without_redis:1}
@@
-252,6
+253,7
@@
%define with_mqtt 0
%define with_ovs_events 0
%define with_ovs_stats 0
%define with_mqtt 0
%define with_ovs_events 0
%define with_ovs_stats 0
+%define with_procevent 0
%define with_redis 0
%define with_rrdcached 0
%define with_sysevent 0
%define with_redis 0
%define with_rrdcached 0
%define with_sysevent 0
@@
-794,6
+796,16
@@
The PostgreSQL plugin connects to and executes SQL statements on a PostgreSQL
database.
%endif
database.
%endif
+%if %{with_procevent}
+%package procevent
+Summary: Processes event plugin for collectd
+Group: System Environment/Daemons
+Requires: %{name}%{?_isa} = %{version}-%{release}
+BuildRequires: yajl-devel
+%description procevent
+Monitors process starts/stops via netlink library.
+%endif
+
%if %{with_python}
%package python
Summary: Python plugin for collectd
%if %{with_python}
%package python
Summary: Python plugin for collectd
@@
-1646,6
+1658,12
@@
Collectd utilities
%define _with_processes --disable-processes
%endif
%define _with_processes --disable-processes
%endif
+%if %{with_procevent}
+%define _with_procevent --enable-procevent
+%else
+%define _with_procevent --disable-procevent
+%endif
+
%if %{with_protocols}
%define _with_protocols --enable-protocols
%else
%if %{with_protocols}
%define _with_protocols --enable-protocols
%else
@@
-2091,6
+2109,7
@@
Collectd utilities
%{?_with_postgresql} \
%{?_with_powerdns} \
%{?_with_processes} \
%{?_with_postgresql} \
%{?_with_powerdns} \
%{?_with_processes} \
+ %{?_with_procevent} \
%{?_with_protocols} \
%{?_with_python} \
%{?_with_redis} \
%{?_with_protocols} \
%{?_with_python} \
%{?_with_redis} \
@@
-2767,6
+2786,11
@@
fi
%{_libdir}/%{name}/postgresql.so
%endif
%{_libdir}/%{name}/postgresql.so
%endif
+%if %{with_procevent}
+%files procevent
+%{_libdir}/%{name}/procevent.so
+%endif
+
%if %{with_python}
%files python
%{_mandir}/man5/collectd-python*
%if %{with_python}
%files python
%{_mandir}/man5/collectd-python*