summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8aad25c)
raw | patch | inline | side by side (parent: 8aad25c)
author | Marc Fournier <marc.fournier@camptocamp.com> | |
Fri, 21 Dec 2012 15:55:15 +0000 (16:55 +0100) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Fri, 21 Dec 2012 21:05:32 +0000 (22:05 +0100) |
Also includes a couple of cleanups mentioned in github#186.
contrib/redhat/collectd.spec | patch | blob | history |
index 242ccf6614854365dfc3335aa0a04039c0838bda..adc6d078afa572dfaab898e67114e8a12be40aed 100644 (file)
%global _hardened_build 1
# enabled plugins
+%define with_aggregation 0%{!?_without_aggregation:1}
%define with_amqp 0%{!?_without_amqp:1}
%define with_apache 0%{!?_without_apache:1}
%define with_apcups 0%{!?_without_apcups:1}
%define with_netlink 0%{!?_without_netlink:0}
%define with_onewire 0%{!?_without_onewire:0}
%define with_oracle 0%{!?_without_oracle:0}
+%define with_pf 0%{!?_without_pf:0}
%define with_redis 0%{!?_without_redis:0}
%define with_routeros 0%{!?_without_routeros:0}
%define with_rrdcached 0%{!?_without_rrdcached:0}
Summary: Statistics collection daemon for filling RRD files
Name: collectd
-Version: 5.1.0
-Release: 3%{?dist}
+Version: 5.2.0
+Release: 1%{?dist}
URL: http://collectd.org
Source: http://collectd.org/files/%{name}-%{version}.tar.gz
License: GPLv2
Group: System Environment/Daemons
BuildRoot: %{_tmppath}/%{name}-%{version}-root
-BuildRequires: curl-devel, libgcrypt-devel, libxml2-devel, libstatgrab-devel
+BuildRequires: libgcrypt-devel, libstatgrab-devel
Vendor: collectd development team <collectd@verplant.org>
Requires(post): chkconfig
is written in C for performance. Since the daemon doesn't need to start up
every time it wants to update the values it's very fast and easy on the
system. Also, the statistics are very fine grained since the files are updated
-every 10 seconds.
+every 10 seconds by default.
%if %{with_amqp}
%package amqp
Summary: Apache plugin for collectd
Group: System Environment/Daemons
Requires: %{name}%{?_isa} = %{version}-%{release}
+BuildRequires: curl-devel
%description apache
This plugin collects data provided by Apache's `mod_status'.
%endif
Summary: Ascent plugin for collectd
Group: System Environment/Daemons
Requires: %{name}%{?_isa} = %{version}-%{release}
+BuildRequires: libxml2-devel, curl-devel
%description ascent
The Ascent plugin reads and parses the statistics page of Ascent, a free and
open-source server software for the game World of Warcraft by Blizzard
Summary: Bind plugin for collectd
Group: System Environment/Daemons
Requires: %{name}%{?_isa} = %{version}-%{release}
+BuildRequires: libxml2-devel, curl-devel
%description bind
The BIND plugin retrieves this information that's encoded in XML and provided
via HTTP and submits the values to collectd.
Summary: Curl plugin for collectd
Group: System Environment/Daemons
Requires: %{name}%{?_isa} = %{version}-%{release}
+BuildRequires: curl-devel
%description curl
The cURL plugin uses libcurl to read files and then parses them according to
the configuration.
%package curl_json
Summary: Curl_json plugin for collectd
Group: System Environment/Daemons
-Requires: %{name}%{?_isa} = %{version}-%{release}, curl, yajl
-Buildrequires: yajl-devel
+Requires: %{name}%{?_isa} = %{version}-%{release}
+Buildrequires: curl-devel, yajl-devel
%description curl_json
The cURL-JSON plugin queries JavaScript Object Notation (JSON) data using the
cURL library and parses it according to the user's configuration.
Summary: Curl_xml plugin for collectd
Group: System Environment/Daemons
Requires: %{name}%{?_isa} = %{version}-%{release}
+BuildRequires: curl-devel, libxml2-devel
%description curl_xml
The cURL-XML plugin reads files using libcurl and parses it as Extensible
Markup Language (XML).
Summary: Nginx plugin for collectd
Group: System Environment/Daemons
Requires: %{name}%{?_isa} = %{version}-%{release}
+BuildRequires: curl-devel
%description nginx
This plugin gets data provided by nginx.
%endif
application programming interface (API) to Python-scripts.
%endif
+%if %{with_redis}
+%package redis
+Summary: Redis plugin for collectd
+Group: System Environment/Daemons
+Requires: %{name}%{?_isa} = %{version}-%{release}
+BuildRequires: credis-devel
+%description redis
+The Redis plugin connects to one or more instances of Redis, a key-value store,
+and collects usage information using the credis library.
+%endif
+
+%if %{with_rrdcached}
+%package rrdcached
+Summary: RRDCached plugin for collectd
+Group: System Environment/Daemons
+Requires: %{name}%{?_isa} = %{version}-%{release}, rrdtool >= 1.4
+BuildRequires: rrdtool-devel
+%description rrdcached
+The RRDCacheD plugin connects to the “RRD caching daemon”, rrdcached and
+submits updates for RRD files to that daemon.
+%endif
+
%if %{with_rrdtool}
%package rrdtool
Summary: RRDtool plugin for collectd
Summary: Write-HTTP plugin for collectd
Group: System Environment/Daemons
Requires: %{name}%{?_isa} = %{version}-%{release}
+BuildRequires: curl-devel
%description write_http
The Write-HTTP plugin sends the values collected by collectd to a web-server
using HTTP POST requests.
%endif
+%if %{with_write_redis}
+%package write_redis
+Summary: Write-Redis plugin for collectd
+Group: System Environment/Daemons
+Requires: %{name}%{?_isa} = %{version}-%{release}
+BuildRequires: credis-devel
+%description write_redis
+The Write Redis plugin stores values in Redis, a “data structures server”.
+%endif
+
%package contrib
Summary: Contrib files for collectd
Group: System Environment/Daemons
%build
+%if %{with_aggregation}
+%define _with_aggregation --enable-aggregation
+%else
+%define _with_aggregation --disable-aggregation
+%endif
+
%if %{with_amqp}
%define _with_amqp --enable-amqp
%else
%define _with_perl --disable-perl --without-libperl
%endif
+%if %{with_pf}
+%define _with_pf --enable-pf
+%else
+%define _with_pf --disable-pf
+%endif
+
%if %{with_pinba}
%define _with_pinba --enable-pinba
%else
--disable-static \
--without-included-ltdl \
--enable-all-plugins=yes \
+ --enable-aggregation \
--enable-match_empty_counter \
--enable-match_hashed \
--enable-match_regex \
--enable-target_scale \
--enable-target_set \
--enable-target_v5upgrade \
+ %{?_with_aggregation} \
%{?_with_amqp} \
%{?_with_apache} \
%{?_with_apcups} \
%{?_with_onewire} \
%{?_with_oracle} \
%{?_with_perl} \
+ %{?_with_pf} \
%{?_with_pinba} \
%{?_with_ping} \
%{?_with_postgresql} \
%{_initrddir}/collectd
%{_sbindir}/collectd
%{_bindir}/collectd-nagios
+%{_bindir}/collectd-tg
%{_bindir}/collectdctl
%{_sbindir}/collectdmon
%{_datadir}/collectd/
%{_libdir}/%{name}/target_set.so
%{_libdir}/%{name}/target_v5upgrade.so
+%if %{with_aggregation}
+%{_libdir}/%{name}/aggregation.so
+%endif
%if %{with_apcups}
%{_libdir}/%{name}/apcups.so
%endif
%{_libdir}/%{name}/write_graphite.so
%endif
-# All plugins not built because of dependencies on libraries not available in
-# RHEL or EPEL:
+# All plugins not built by default because of dependencies on libraries not
+# available in RHEL or EPEL:
# plugin modbus disabled, requires libmodbus
# plugin netlink disabled, requires libnetlink.h
# plugin numa disabled, requires libnetapp
%files -n libcollectdclient-devel
%{_includedir}/collectd/client.h
+%{_includedir}/collectd/network.h
+%{_includedir}/collectd/network_buffer.h
%{_includedir}/collectd/lcc_features.h
-%{_libdir}/libcollectdclient.so
%{_libdir}/pkgconfig/libcollectdclient.pc
%files -n libcollectdclient
+%{_libdir}/libcollectdclient.so
%{_libdir}/libcollectdclient.so.*
%if %{with_amqp}
%{_libdir}/%{name}/python.so
%endif
+%if %{with_redis}
+%files redis
+%{_libdir}/%{name}/redis.so
+%endif
+
+%if %{with_rrdcached}
+%files rrdcached
+%{_libdir}/%{name}/rrdcached.so
+%endif
+
%if %{with_rrdtool}
%files rrdtool
%{_libdir}/%{name}/rrdtool.so
%{_libdir}/%{name}/write_http.so
%endif
+%if %{with_write_redis}
+%files write_redis
+%{_libdir}/%{name}/write_redis.so
+%endif
+
%files contrib
%doc contrib/
%changelog
+* Fri Dec 21 2012 Marc Fournier <marc.fournier@camptocamp.com> 5.2.0-1
+- New upstream version
+- Enabled aggregation plugin
+- Installed collectd-tc
+- Added network.h and network_buffer.h to libcollectdclient-devel
+- Moved libxml2-devel and libcurl-devel BRs to relevant plugins sections
+- Moved libcollectdclient.so from libcollectdclient-devel to libcollectdclient
+- Added rrdcached and redis plugin descriptions
+- Mentioned new pf plugin in disabled plugins list
+
* Sun Nov 18 2012 Ruben Kerkhof <ruben@tilaa.nl> 5.1.0-3
- Follow Fedora Packaging Guidelines in java subpackage