]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
Add RAS plugin to redhat specfile
authorLaura Hild <lsh@jlab.org>
Mon, 23 Oct 2023 20:36:32 +0000 (16:36 -0400)
committerMatthias Runge <mrunge@matthias-runge.de>
Sat, 28 Oct 2023 17:17:03 +0000 (19:17 +0200)
contrib/redhat/collectd.spec

index ec4a779b5cb2207a3834c167708c89d9cb684dbe..e79fd2308ee901c65a088f28527595d8624bbaf1 100644 (file)
 %define with_procevent 0%{!?_without_procevent:1}
 %define with_protocols 0%{!?_without_protocols:1}
 %define with_python 0%{!?_without_python:1}
+%define with_ras 0%{!?_without_ras:1}
 %define with_redis 0%{!?_without_redis:1}
 %define with_rrdcached 0%{!?_without_rrdcached:1}
 %define with_rrdtool 0%{!?_without_rrdtool:1}
@@ -848,6 +849,16 @@ The Python plugin embeds a Python interpreter into collectd and exposes the
 application programming interface (API) to Python-scripts.
 %endif
 
+%if %{with_ras}
+%package ras
+Summary:       RAS plugin for collectd
+Group:         System Environment/Daemons
+Requires:      %{name}%{?_isa} = %{version}-%{release}
+BuildRequires: sqlite-devel
+%description ras
+The RAS plugin gathers and counts errors provided by RASDaemon.
+%endif
+
 %if %{with_redis}
 %package redis
 Summary:       Redis plugin for collectd
@@ -1782,6 +1793,12 @@ Collectd utilities
 %define _with_redfish --disable-redfish
 %endif
 
+%if %{with_ras}
+%define _with_ras --enable-ras
+%else
+%define _with_ras --disable-ras
+%endif
+
 %if %{with_redis}
 %define _with_redis --enable-redis
 %else
@@ -2228,6 +2245,7 @@ Collectd utilities
        %{?_with_procevent} \
        %{?_with_protocols} \
        %{?_with_python} \
+       %{?_with_ras} \
        %{?_with_redfish} \
        %{?_with_redis} \
        %{?_with_routeros} \
@@ -2934,6 +2952,11 @@ fi
 %{_libdir}/%{name}/python.so
 %endif
 
+%if %{with_ras}
+%files ras
+%{_libdir}/%{name}/ras.so
+%endif
+
 %if %{with_redis}
 %files redis
 %{_libdir}/%{name}/redis.so