forked from pool/collectd
Autobuild autoformatter for 77989
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/collectd?expand=0&rev=5
This commit is contained in:
parent
f605ba4b85
commit
0e7c19e986
@ -1,10 +1,20 @@
|
|||||||
# vim: set ts=4 sw=4 et:
|
#
|
||||||
|
# spec file for package collectd
|
||||||
|
#
|
||||||
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
# TODO:
|
|
||||||
# libtokyotyrant (tcrdb.h)
|
|
||||||
# libupsclient (.pc)
|
|
||||||
# ? oracle ($ORACLE_HOME)
|
|
||||||
# gmond
|
|
||||||
|
|
||||||
%if 0%{?_with_xmms:1}0
|
%if 0%{?_with_xmms:1}0
|
||||||
%define xmms 1
|
%define xmms 1
|
||||||
@ -105,7 +115,7 @@
|
|||||||
|
|
||||||
Name: collectd
|
Name: collectd
|
||||||
Version: 4.10.3
|
Version: 4.10.3
|
||||||
Release: 0
|
Release: 1
|
||||||
Summary: Statistics Collection Daemon for filling RRD Files
|
Summary: Statistics Collection Daemon for filling RRD Files
|
||||||
Source: http://collectd.org/files/collectd-%{version}.tar.bz2
|
Source: http://collectd.org/files/collectd-%{version}.tar.bz2
|
||||||
Source1: collectd.suse.init
|
Source1: collectd.suse.init
|
||||||
@ -137,13 +147,13 @@ Patch25: collectd-df-remove-duplicates.patch
|
|||||||
Patch26: collectd-libip4tc.patch
|
Patch26: collectd-libip4tc.patch
|
||||||
Patch27: collectd-libnotify_070.patch
|
Patch27: collectd-libnotify_070.patch
|
||||||
Source99: collectd-rpmlintrc
|
Source99: collectd-rpmlintrc
|
||||||
URL: http://collectd.org/
|
Url: http://collectd.org/
|
||||||
Group: System/Monitoring
|
Group: System/Monitoring
|
||||||
License: GNU General Public License (GPL)
|
License: GNU General Public License (GPL)
|
||||||
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
Requires: sensors rrdtool
|
Requires: sensors rrdtool
|
||||||
BuildRequires: sensors rrdtool libpng-devel zlib-devel perl
|
BuildRequires: libpng-devel perl rrdtool sensors zlib-devel
|
||||||
BuildRequires: libstatgrab-devel gettext gettext-devel intltool bind-devel
|
BuildRequires: bind-devel gettext gettext-devel intltool libstatgrab-devel
|
||||||
%if 0%{?suse_version} > 1020
|
%if 0%{?suse_version} > 1020
|
||||||
BuildRequires: libdb-4_5-devel
|
BuildRequires: libdb-4_5-devel
|
||||||
%else
|
%else
|
||||||
@ -155,11 +165,11 @@ BuildRequires: libgcrypt-devel
|
|||||||
BuildRequires: libgcrypt
|
BuildRequires: libgcrypt
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: liboping-devel
|
BuildRequires: liboping-devel
|
||||||
BuildRequires: make gcc autoconf automake libtool pkgconfig
|
BuildRequires: autoconf automake gcc libtool make pkgconfig
|
||||||
BuildRequires: freetype2-devel libart_lgpl-devel
|
BuildRequires: freetype2-devel libart_lgpl-devel
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
%if %libnotify
|
%if %libnotify
|
||||||
BuildRequires: libnotify-devel gtk2-devel
|
BuildRequires: gtk2-devel libnotify-devel
|
||||||
%endif
|
%endif
|
||||||
%if %java
|
%if %java
|
||||||
BuildRequires: java-devel
|
BuildRequires: java-devel
|
||||||
@ -197,7 +207,7 @@ BuildRequires: OpenIPMI-devel gdbm-devel
|
|||||||
BuildRequires: net-snmp-devel
|
BuildRequires: net-snmp-devel
|
||||||
%endif #snmp
|
%endif #snmp
|
||||||
# for ipvs and madwifi:
|
# for ipvs and madwifi:
|
||||||
BuildRequires: linux-kernel-headers kernel-source
|
BuildRequires: kernel-source linux-kernel-headers
|
||||||
%if %suse_version >= 1030
|
%if %suse_version >= 1030
|
||||||
BuildRequires: libpcap-devel
|
BuildRequires: libpcap-devel
|
||||||
%endif
|
%endif
|
||||||
@ -245,6 +255,7 @@ Authors:
|
|||||||
Florian octo Forster <octo@verplant.org>
|
Florian octo Forster <octo@verplant.org>
|
||||||
|
|
||||||
%package web
|
%package web
|
||||||
|
|
||||||
Summary: Web Frontend for watching the %{name} Statistics
|
Summary: Web Frontend for watching the %{name} Statistics
|
||||||
Group: System/Monitoring
|
Group: System/Monitoring
|
||||||
Requires: perl apache2 rrdtool
|
Requires: perl apache2 rrdtool
|
||||||
@ -260,6 +271,7 @@ Web frontend CGI for watching %{name} statistics from a browser.
|
|||||||
Please look at /etc/apache2/conf.d/%{name}.conf on how to enable.
|
Please look at /etc/apache2/conf.d/%{name}.conf on how to enable.
|
||||||
|
|
||||||
%package web-js
|
%package web-js
|
||||||
|
|
||||||
Summary: Web/JavaScript Frontend for watching %{name} Statistics
|
Summary: Web/JavaScript Frontend for watching %{name} Statistics
|
||||||
Group: System/Monitoring
|
Group: System/Monitoring
|
||||||
Requires: perl apache2 rrdtool
|
Requires: perl apache2 rrdtool
|
||||||
@ -278,7 +290,9 @@ Please look at /etc/apache2/conf.d/%{name}-js.conf on how to
|
|||||||
enable.
|
enable.
|
||||||
|
|
||||||
%if %libnotify
|
%if %libnotify
|
||||||
|
|
||||||
%package plugin-notify-desktop
|
%package plugin-notify-desktop
|
||||||
|
|
||||||
Summary: Desktop Notification Plugin for %{name}
|
Summary: Desktop Notification Plugin for %{name}
|
||||||
Group: System/Monitoring
|
Group: System/Monitoring
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
@ -288,7 +302,9 @@ Desktop Notification Support for %{name}
|
|||||||
%endif #libnotify
|
%endif #libnotify
|
||||||
|
|
||||||
%if %ipmi
|
%if %ipmi
|
||||||
|
|
||||||
%package plugin-ipmi
|
%package plugin-ipmi
|
||||||
|
|
||||||
Summary: OpenIPMI Monitoring Plugin for %{name}
|
Summary: OpenIPMI Monitoring Plugin for %{name}
|
||||||
Group: System/Monitoring
|
Group: System/Monitoring
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
@ -299,7 +315,9 @@ library, for IPMI enabled systems.
|
|||||||
%endif #ipmi
|
%endif #ipmi
|
||||||
|
|
||||||
%if %snmp
|
%if %snmp
|
||||||
|
|
||||||
%package plugin-snmp
|
%package plugin-snmp
|
||||||
|
|
||||||
Summary: SNMP Monitoring Plugin for %{name}
|
Summary: SNMP Monitoring Plugin for %{name}
|
||||||
Group: System/Monitoring
|
Group: System/Monitoring
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
@ -312,7 +330,9 @@ Optional %{name} plugin to monitor devices using SNMP.
|
|||||||
%endif #snmp
|
%endif #snmp
|
||||||
|
|
||||||
%if %with_mysql
|
%if %with_mysql
|
||||||
|
|
||||||
%package plugin-mysql
|
%package plugin-mysql
|
||||||
|
|
||||||
Summary: MySQL Monitoring Plugin for %{name}
|
Summary: MySQL Monitoring Plugin for %{name}
|
||||||
Group: System/Monitoring
|
Group: System/Monitoring
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
@ -322,7 +342,9 @@ Optional %{name} plugin to monitor MySQL server instances.
|
|||||||
%endif #with_mysql
|
%endif #with_mysql
|
||||||
|
|
||||||
%if %with_pgsql
|
%if %with_pgsql
|
||||||
|
|
||||||
%package plugin-postgresql
|
%package plugin-postgresql
|
||||||
|
|
||||||
Summary: PostgreSQL Monitoring Plugin for %{name}
|
Summary: PostgreSQL Monitoring Plugin for %{name}
|
||||||
Group: System/Monitoring
|
Group: System/Monitoring
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
@ -332,6 +354,7 @@ Optional %{name} plugin to monitor PostgreSQL server instances.
|
|||||||
%endif #with_pgsql
|
%endif #with_pgsql
|
||||||
|
|
||||||
%package plugin-python
|
%package plugin-python
|
||||||
|
|
||||||
Summary: Python API for %{name}
|
Summary: Python API for %{name}
|
||||||
Group: System/Monitoring
|
Group: System/Monitoring
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
@ -341,7 +364,9 @@ Optional %{name} Python API in order to write %{name} plugins in
|
|||||||
Python.
|
Python.
|
||||||
|
|
||||||
%if %java
|
%if %java
|
||||||
|
|
||||||
%package plugin-java
|
%package plugin-java
|
||||||
|
|
||||||
Summary: Java API for %{name}
|
Summary: Java API for %{name}
|
||||||
Group: System/Monitoring
|
Group: System/Monitoring
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
@ -352,7 +377,9 @@ Java.
|
|||||||
%endif #java
|
%endif #java
|
||||||
|
|
||||||
%if %virt
|
%if %virt
|
||||||
|
|
||||||
%package plugin-virt
|
%package plugin-virt
|
||||||
|
|
||||||
Summary: Virtual Machine Statistics Plugin for %{name}
|
Summary: Virtual Machine Statistics Plugin for %{name}
|
||||||
Group: System/Monitoring
|
Group: System/Monitoring
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
@ -363,7 +390,9 @@ machines using libvirt.
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %xmms
|
%if %xmms
|
||||||
|
|
||||||
%package plugin-xmms
|
%package plugin-xmms
|
||||||
|
|
||||||
Summary: XMMS Monitoring Plugin for %{name}
|
Summary: XMMS Monitoring Plugin for %{name}
|
||||||
Group: System/Monitoring
|
Group: System/Monitoring
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
@ -374,7 +403,9 @@ bitrates of files played with XMMS.
|
|||||||
%endif #xmms
|
%endif #xmms
|
||||||
|
|
||||||
%if %dbi
|
%if %dbi
|
||||||
|
|
||||||
%package plugin-dbi
|
%package plugin-dbi
|
||||||
|
|
||||||
Summary: DBI Storage Plugin for %{name}
|
Summary: DBI Storage Plugin for %{name}
|
||||||
Group: System/Monitoring
|
Group: System/Monitoring
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
@ -385,7 +416,9 @@ various databases as supported by libdbi.
|
|||||||
%endif #dbi
|
%endif #dbi
|
||||||
|
|
||||||
%if %memcachec
|
%if %memcachec
|
||||||
|
|
||||||
%package plugin-memcachec
|
%package plugin-memcachec
|
||||||
|
|
||||||
Summary: Memcache Daemon Monitoring Plugin for %{name}
|
Summary: Memcache Daemon Monitoring Plugin for %{name}
|
||||||
Group: System/Monitoring
|
Group: System/Monitoring
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
@ -395,7 +428,9 @@ Optional %{name} plugin to sample memcached statistics.
|
|||||||
%endif #memcachec
|
%endif #memcachec
|
||||||
|
|
||||||
%if %protobuf
|
%if %protobuf
|
||||||
|
|
||||||
%package plugin-pinba
|
%package plugin-pinba
|
||||||
|
|
||||||
Summary: Pinba Collector Plugin for %{name}
|
Summary: Pinba Collector Plugin for %{name}
|
||||||
Group: System/Monitoring
|
Group: System/Monitoring
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
@ -406,6 +441,7 @@ profiling extension for PHP.
|
|||||||
%endif #protobuf
|
%endif #protobuf
|
||||||
|
|
||||||
%package plugins-all
|
%package plugins-all
|
||||||
|
|
||||||
Summary: All Monitoring Plugins for %{name}
|
Summary: All Monitoring Plugins for %{name}
|
||||||
Group: System/Monitoring
|
Group: System/Monitoring
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
@ -448,6 +484,7 @@ Metapackage that installs %{name} and all the available
|
|||||||
monitoring plugin subpackages, except %{name}-plugin-xmms
|
monitoring plugin subpackages, except %{name}-plugin-xmms
|
||||||
|
|
||||||
%package spamassassin
|
%package spamassassin
|
||||||
|
|
||||||
Summary: Spamassassin Monitoring for %{name}
|
Summary: Spamassassin Monitoring for %{name}
|
||||||
Group: System/Monitoring
|
Group: System/Monitoring
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
@ -458,6 +495,7 @@ Plugin for filling %{name} with statistics from the
|
|||||||
SpamAsssassin anti-spam engine.
|
SpamAsssassin anti-spam engine.
|
||||||
|
|
||||||
%package -n libcollectdclient0
|
%package -n libcollectdclient0
|
||||||
|
|
||||||
Summary: Library for %{name} clients
|
Summary: Library for %{name} clients
|
||||||
Group: System/Monitoring
|
Group: System/Monitoring
|
||||||
Provides: libcollectdclient = %{version}-%{release}
|
Provides: libcollectdclient = %{version}-%{release}
|
||||||
@ -467,6 +505,7 @@ Library which abstracts communication with the %{name}
|
|||||||
unixsock plugin for clients.
|
unixsock plugin for clients.
|
||||||
|
|
||||||
%package -n libcollectdclient-devel
|
%package -n libcollectdclient-devel
|
||||||
|
|
||||||
Summary: Development Environment for %{name} clients
|
Summary: Development Environment for %{name} clients
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: libcollectdclient0 = %{version}-%{release}
|
Requires: libcollectdclient0 = %{version}-%{release}
|
||||||
@ -744,6 +783,7 @@ EOF
|
|||||||
%{fillup_only collectd}
|
%{fillup_only collectd}
|
||||||
|
|
||||||
%post -n libcollectdclient0 -p /sbin/ldconfig
|
%post -n libcollectdclient0 -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n libcollectdclient0 -p /sbin/ldconfig
|
%postun -n libcollectdclient0 -p /sbin/ldconfig
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
@ -802,6 +842,7 @@ EOF
|
|||||||
%{_usr}/lib/collectd-js
|
%{_usr}/lib/collectd-js
|
||||||
|
|
||||||
%if %libnotify
|
%if %libnotify
|
||||||
|
|
||||||
%files plugin-notify-desktop
|
%files plugin-notify-desktop
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/collectd/notify_desktop.so
|
%{_libdir}/collectd/notify_desktop.so
|
||||||
@ -809,6 +850,7 @@ EOF
|
|||||||
%endif #libnotify
|
%endif #libnotify
|
||||||
|
|
||||||
%if %ipmi
|
%if %ipmi
|
||||||
|
|
||||||
%files plugin-ipmi
|
%files plugin-ipmi
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/collectd/ipmi.so
|
%{_libdir}/collectd/ipmi.so
|
||||||
@ -816,6 +858,7 @@ EOF
|
|||||||
%endif #ipmi
|
%endif #ipmi
|
||||||
|
|
||||||
%if %snmp
|
%if %snmp
|
||||||
|
|
||||||
%files plugin-snmp
|
%files plugin-snmp
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc _rpmdoc_/snmp/*
|
%doc _rpmdoc_/snmp/*
|
||||||
@ -829,6 +872,7 @@ EOF
|
|||||||
%endif #snmp
|
%endif #snmp
|
||||||
|
|
||||||
%if %protobuf
|
%if %protobuf
|
||||||
|
|
||||||
%files plugin-pinba
|
%files plugin-pinba
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/collectd/pinba.so
|
%{_libdir}/collectd/pinba.so
|
||||||
@ -836,6 +880,7 @@ EOF
|
|||||||
%endif #protobuf
|
%endif #protobuf
|
||||||
|
|
||||||
%if %suse_version >= 930
|
%if %suse_version >= 930
|
||||||
|
|
||||||
%files plugin-mysql
|
%files plugin-mysql
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/collectd/mysql.so
|
%{_libdir}/collectd/mysql.so
|
||||||
@ -843,6 +888,7 @@ EOF
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %with_pgsql
|
%if %with_pgsql
|
||||||
|
|
||||||
%files plugin-postgresql
|
%files plugin-postgresql
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/collectd/postgresql.so
|
%{_libdir}/collectd/postgresql.so
|
||||||
@ -857,6 +903,7 @@ EOF
|
|||||||
%doc %{_mandir}/man5/collectd-python.5%{ext_man}
|
%doc %{_mandir}/man5/collectd-python.5%{ext_man}
|
||||||
|
|
||||||
%if %java
|
%if %java
|
||||||
|
|
||||||
%files plugin-java
|
%files plugin-java
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc _rpmdoc_/java/GenericJMX.conf
|
%doc _rpmdoc_/java/GenericJMX.conf
|
||||||
@ -867,6 +914,7 @@ EOF
|
|||||||
%endif #java
|
%endif #java
|
||||||
|
|
||||||
%if %virt
|
%if %virt
|
||||||
|
|
||||||
%files plugin-virt
|
%files plugin-virt
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/collectd/libvirt.so
|
%{_libdir}/collectd/libvirt.so
|
||||||
@ -874,6 +922,7 @@ EOF
|
|||||||
%endif #virt
|
%endif #virt
|
||||||
|
|
||||||
%if %xmms
|
%if %xmms
|
||||||
|
|
||||||
%files plugin-xmms
|
%files plugin-xmms
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/collectd/xmms.so
|
%{_libdir}/collectd/xmms.so
|
||||||
@ -881,6 +930,7 @@ EOF
|
|||||||
%endif #xmms
|
%endif #xmms
|
||||||
|
|
||||||
%if %dbi
|
%if %dbi
|
||||||
|
|
||||||
%files plugin-dbi
|
%files plugin-dbi
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/collectd/dbi.so
|
%{_libdir}/collectd/dbi.so
|
||||||
@ -888,6 +938,7 @@ EOF
|
|||||||
%endif #dbi
|
%endif #dbi
|
||||||
|
|
||||||
%if %memcachec
|
%if %memcachec
|
||||||
|
|
||||||
%files plugin-memcachec
|
%files plugin-memcachec
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/collectd/memcachec.so
|
%{_libdir}/collectd/memcachec.so
|
||||||
|
Loading…
Reference in New Issue
Block a user