From: Laura Hild Date: Mon, 23 Oct 2023 20:36:32 +0000 (-0400) Subject: Add RAS plugin to redhat specfile X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5af6679f2047ac06e5757b6692ee4069d7a6cf3c;p=thirdparty%2Fcollectd.git Add RAS plugin to redhat specfile --- diff --git a/contrib/redhat/collectd.spec b/contrib/redhat/collectd.spec index ec4a779b5..e79fd2308 100644 --- a/contrib/redhat/collectd.spec +++ b/contrib/redhat/collectd.spec @@ -137,6 +137,7 @@ %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