X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=contrib%2Fredhat%2Fcollectd.spec;h=3322059899d6cdde7423aa750242b466debf1a7c;hb=68108d7b5688f4db5257a90437e50428a88d594a;hp=6af91e8ad6ea7b3a3a1709f500e8ff91e6564887;hpb=68ac98ed21d932fc80dd2d296543564b7a06dac2;p=collectd.git diff --git a/contrib/redhat/collectd.spec b/contrib/redhat/collectd.spec index 6af91e8a..33220598 100644 --- a/contrib/redhat/collectd.spec +++ b/contrib/redhat/collectd.spec @@ -45,6 +45,7 @@ %{?el6:%global _has_ip_vs_h 1} %{?el6:%global _has_lvm2app_h 1} %{?el6:%global _has_perl_extutils_embed 1} +%{?el6:%global _has_libmodbus 1} # plugins enabled by default %define with_aggregation 0%{!?_without_aggregation:1} @@ -92,6 +93,7 @@ %define with_memcached 0%{!?_without_memcached:1} %define with_memory 0%{!?_without_memory:1} %define with_multimeter 0%{!?_without_multimeter:1} +%define with_modbus 0%{!?_without_modbus:0%{?_has_libmodbus}} %define with_mysql 0%{!?_without_mysql:1} %define with_netlink 0%{!?_without_netlink:1} %define with_network 0%{!?_without_network:1} @@ -138,6 +140,7 @@ %define with_write_graphite 0%{!?_without_write_graphite:1} %define with_write_http 0%{!?_without_write_http:1} %define with_write_riemann 0%{!?_without_write_riemann:1} +%define with_zfs_arc 0%{!?_without_zfs_arc:1} # Plugins not built by default because of dependencies on libraries not # available in RHEL or EPEL: @@ -178,8 +181,6 @@ %define with_write_redis 0%{!?_without_write_redis:0} # plugin xmms disabled, requires xmms %define with_xmms 0%{!?_without_xmms:0} -# plugin zfs_arc disabled, requires FreeBSD/Solaris -%define with_zfs_arc 0%{!?_without_zfs_arc:0} Summary: Statistics collection daemon for filling RRD files Name: collectd @@ -422,6 +423,16 @@ The mic plugin collects CPU usage, memory usage, temperatures and power consumption from Intel Many Integrated Core (MIC) CPUs. %endif +%if %{with_modbus} +%package modbus +Summary: modbus plugin for collectd +Group: System Environment/Daemons +Requires: %{name}%{?_isa} = %{version}-%{release} +BuildRequires: libmodbus-devel +%description modbus +The modbus plugin collects values from Modbus/TCP enabled devices +%endif + %if %{with_mysql} %package mysql Summary: MySQL plugin for collectd @@ -997,6 +1008,12 @@ Development files for libcollectdclient %define _with_multimeter --disable-multimeter %endif +%if %{with_modbus} +%define _with_modbus --enable-modbus +%else +%define _with_modbus --disable-modbus +%endif + %if %{with_mysql} %define _with_mysql --enable-mysql %else @@ -2013,6 +2030,9 @@ fi - Enable cgroups, lvm and statsd plugins - Enable (but don't build by default) mic, aquaero and sigrok plugins +* Wed Aug 06 2014 Marc Fournier 5.3.1-2 +- Enabled modbus plugin + * Tue Aug 06 2013 Marc Fournier 5.3.1-1 - New upstream version - Added RHEL5 support: