summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 524b856)
raw | patch | inline | side by side (parent: 524b856)
author | Marc Fournier <marc.fournier@camptocamp.com> | |
Wed, 6 Aug 2014 14:59:21 +0000 (16:59 +0200) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Wed, 6 Aug 2014 15:03:09 +0000 (17:03 +0200) |
... now that EPEL6 provides libmodbus
contrib/redhat/collectd.spec | patch | blob | history |
index 4f70fd694d8902caca6ce4377375d05696345dec..2e374c66481130b44b82ce7dd540e30496e1ee41 100644 (file)
%{?el6:%global _has_working_libiptc 1}
%{?el6:%global _has_ip_vs_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}
%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_network 0%{!?_without_network:1}
%define with_nfs 0%{!?_without_nfs:1}
%define with_apple_sensors 0%{!?_without_apple_sensors:0}
# plugin lpar disabled, requires AIX
%define with_lpar 0%{!?_without_lpar:0}
-# plugin modbus disabled, requires libmodbus
-%define with_modbus 0%{!?_without_modbus:0}
# plugin netapp disabled, requires libnetapp
%define with_netapp 0%{!?_without_netapp:0}
# plugin netlink disabled, requires libnetlink.h
similar job, without requiring the installation of libmemcached.
%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
%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
%doc contrib/
%changelog
+* Wed Aug 06 2014 Marc Fournier <marc.fournier@camptocamp.com> 5.3.1-2
+- Enabled modbus plugin
+
* Tue Aug 06 2013 Marc Fournier <marc.fournier@camptocamp.com> 5.3.1-1
- New upstream version
- Added RHEL5 support: