forked from pool/collectd
Autobuild autoformatter for 59758
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/collectd?expand=0&rev=2
This commit is contained in:
committed by
Git OBS Bridge
parent
32073e0ab5
commit
0ff81c1d1c
@@ -1,13 +0,0 @@
|
||||
--- src/collectd.h.orig 2008-09-12 00:14:09.000000000 +0200
|
||||
+++ src/collectd.h 2008-09-12 00:14:55.000000000 +0200
|
||||
@@ -254,10 +254,6 @@
|
||||
# define __attribute__(x) /**/
|
||||
#endif
|
||||
|
||||
-#if __GNUC__
|
||||
-# pragma GCC poison strcpy strcat strtok
|
||||
-#endif
|
||||
-
|
||||
/*
|
||||
* Special hack for the perl plugin: Because the later included perl.h defines
|
||||
* a macro which is never used, but contains `sprintf', we cannot poison that
|
@@ -1,11 +0,0 @@
|
||||
--- src/perl.c.orig 2007-09-13 00:08:17.000000000 +0200
|
||||
+++ src/perl.c 2007-09-13 00:17:42.000000000 +0200
|
||||
@@ -333,7 +333,7 @@
|
||||
status = snprintf (buf, buf_len, "%s::%s", base_name, module);
|
||||
if ((status < 0) || (status >= buf_len))
|
||||
return (NULL);
|
||||
- buf[buf_len] = '\0';
|
||||
+ buf[buf_len - 1] = '\0';
|
||||
return (buf);
|
||||
} /* char *get_module_name */
|
||||
|
@@ -1,13 +0,0 @@
|
||||
--- src/multimeter.c.orig 2007-02-10 22:48:00.000000000 +0100
|
||||
+++ src/multimeter.c 2007-02-10 22:48:46.000000000 +0100
|
||||
@@ -90,8 +90,10 @@
|
||||
struct timeval timeout;
|
||||
struct timeval time_now;
|
||||
|
||||
- write(fd, "D", 1);
|
||||
+ if (write(fd, "D", 1) == -1) {
|
||||
+ perror("unable to write D on file descriptor: ");
|
||||
+ }
|
||||
|
||||
FD_ZERO(&rfds);
|
||||
FD_SET(fd, &rfds);
|
@@ -1,20 +0,0 @@
|
||||
--- libltdl/acinclude.m4.orig 2009-10-08 07:19:06.000000000 +0200
|
||||
+++ libltdl/acinclude.m4 2009-10-08 07:19:42.000000000 +0200
|
||||
@@ -8,6 +8,8 @@
|
||||
## modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 52 Debian 1.5.26-4 AC_PROG_LIBTOOL
|
||||
+# serial 9 AC_LIB_LTDL
|
||||
+
|
||||
|
||||
|
||||
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
|
||||
@@ -6677,8 +6679,6 @@
|
||||
## unlimited permission to copy and/or distribute it, with or without
|
||||
## modifications, as long as this notice is preserved.
|
||||
|
||||
-# serial 9 AC_LIB_LTDL
|
||||
-
|
||||
# AC_WITH_LTDL
|
||||
# ------------
|
||||
# Clients of libltdl can use this macro to allow the installer to
|
@@ -1,20 +0,0 @@
|
||||
--- src/teamspeak2.c.orig 2008-05-07 21:18:33.000000000 +0200
|
||||
+++ src/teamspeak2.c 2008-05-07 21:19:45.000000000 +0200
|
||||
@@ -389,7 +389,7 @@
|
||||
ERROR ("teamspeak2 plugin: tss2_receive_line failed.");
|
||||
return (-1);
|
||||
}
|
||||
- response[sizeof (response)] = 0;
|
||||
+ response[sizeof (response) - 1] = 0;
|
||||
|
||||
/* Check answer */
|
||||
if ((strncasecmp ("OK", response, 2) == 0)
|
||||
@@ -437,7 +437,7 @@
|
||||
ERROR ("teamspeak2 plugin: tss2_receive_line failed.");
|
||||
return (-1);
|
||||
}
|
||||
- buffer[sizeof (buffer)] = 0;
|
||||
+ buffer[sizeof (buffer) - 1] = 0;
|
||||
|
||||
if (strncmp ("average_packet_loss=", buffer,
|
||||
strlen ("average_packet_loss=")) == 0)
|
349
collectd.spec
349
collectd.spec
@@ -1,16 +1,21 @@
|
||||
# norootforbuild
|
||||
#
|
||||
# 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.
|
||||
|
||||
# TODO:
|
||||
# libtokyotyrant (tcrdb.h)
|
||||
# libkvm
|
||||
# libupsclient (.pc)
|
||||
# liboconfig
|
||||
# libyajl (yajl/yajl_parse.h)
|
||||
# ? oracle ($ORACLE_HOME)
|
||||
# curl_json
|
||||
# gmond
|
||||
# rrdcached
|
||||
#
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
%if 0%{?_with_xmms:1}0 || 0%{?suse_version} <= 1020
|
||||
%define xmms 1
|
||||
@@ -80,113 +85,113 @@
|
||||
|
||||
%define plugins apache apcups battery bind curl curl_xml conntrack contextswitch cpu cpufreq csv df disk dns email entropy exec filecount fscache hddtemp interface ipvs irq load logfile match_empty_counter match_hashed match_regex match_timediff match_value mbmon memcached memory multimeter netlink network nfs nginx ntpd olsrd openvpn perl ping protocols powerdns processes rrdtool sensors serial swap syslog table tail target_notification target_replace target_scale target_set tcpconns teamspeak2 ted thermal unixsock uptime users uuid vmem vserver wireless write_http %{expand:%ascent_plugin} %{expand:%iptables_plugin} %{expand:%madwifi_plugin} %{expand:%rrdcached_plugin}
|
||||
|
||||
Name: collectd
|
||||
Version: 4.10.2
|
||||
Release: 0
|
||||
Summary: Statistics Collection Daemon for filling RRD Files
|
||||
Source: http://collectd.org/files/collectd-%{version}.tar.bz2
|
||||
Source1: collectd.suse.init
|
||||
Source2: collectd.apache2.conf
|
||||
Source3: collectd-js.apache2.conf
|
||||
Name: collectd
|
||||
Version: 4.10.2
|
||||
Release: 1
|
||||
Summary: Statistics Collection Daemon for filling RRD Files
|
||||
Source: http://collectd.org/files/collectd-%{version}.tar.bz2
|
||||
Source1: collectd.suse.init
|
||||
Source2: collectd.apache2.conf
|
||||
Source3: collectd-js.apache2.conf
|
||||
# bundled/in-tree libnetlink.a, see http://mailman.verplant.org/pipermail/collectd/2007-October/001210.html
|
||||
Source10: http://devresources.linux-foundation.org/dev/iproute2/download/iproute2-%{libnetlink_version}.tar.bz2
|
||||
Source10: http://devresources.linux-foundation.org/dev/iproute2/download/iproute2-%{libnetlink_version}.tar.bz2
|
||||
# workaround for missing pthread.pc on openSUSE, required by OpenIPMIpthread.pc
|
||||
# see https://bugzilla.novell.com/show_bug.cgi?id=388026
|
||||
Source20: collectd-pthread.pc
|
||||
Patch4: collectd-lib64.patch
|
||||
Patch7: collectd-fix-config.patch
|
||||
Patch9: collectd-version.patch
|
||||
Patch10: collectd-perl-vendor.patch
|
||||
Source20: collectd-pthread.pc
|
||||
Patch4: collectd-lib64.patch
|
||||
Patch7: collectd-fix-config.patch
|
||||
Patch9: collectd-version.patch
|
||||
Patch10: collectd-perl-vendor.patch
|
||||
# see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=467072
|
||||
Patch11: collectd-fix_broken_perl-5.10.patch
|
||||
Patch12: collectd-fix-warnings.patch
|
||||
Patch14: collectd-iproute2-HZ.patch
|
||||
Patch16: iproute2-optflags.patch
|
||||
Patch17: collectd-fix_libltdl_autoreconf.patch
|
||||
Patch18: collectd-fix_collection_cgi.patch
|
||||
Patch19: collectd-fix_spamassassin_doc.patch
|
||||
Patch20: collectd-split_README.patch
|
||||
Patch21: collectd-fix_collectd_config_path_in_snmp_probe.patch
|
||||
Patch22: collectd-collection3.patch
|
||||
URL: http://collectd.org/
|
||||
Group: System/Monitoring
|
||||
License: GNU General Public License (GPL)
|
||||
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
||||
Requires: sensors rrdtool
|
||||
BuildRequires: sensors rrdtool libpng-devel zlib-devel perl
|
||||
BuildRequires: libstatgrab-devel gettext gettext-devel intltool bind-devel
|
||||
Patch11: collectd-fix_broken_perl-5.10.patch
|
||||
Patch12: collectd-fix-warnings.patch
|
||||
Patch14: collectd-iproute2-HZ.patch
|
||||
Patch16: iproute2-optflags.patch
|
||||
Patch17: collectd-fix_libltdl_autoreconf.patch
|
||||
Patch18: collectd-fix_collection_cgi.patch
|
||||
Patch19: collectd-fix_spamassassin_doc.patch
|
||||
Patch20: collectd-split_README.patch
|
||||
Patch21: collectd-fix_collectd_config_path_in_snmp_probe.patch
|
||||
Patch22: collectd-collection3.patch
|
||||
Url: http://collectd.org/
|
||||
Group: System/Monitoring
|
||||
License: GNU General Public License (GPL)
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Requires: sensors rrdtool
|
||||
BuildRequires: libpng-devel perl rrdtool sensors zlib-devel
|
||||
BuildRequires: bind-devel gettext gettext-devel intltool libstatgrab-devel
|
||||
%if 0%{?suse_version} > 1020
|
||||
BuildRequires: libdb-4_5-devel
|
||||
BuildRequires: libdb-4_5-devel
|
||||
%else
|
||||
BuildRequires: db-devel
|
||||
BuildRequires: db-devel
|
||||
%endif
|
||||
%if 0%{?suse_version} > 910
|
||||
BuildRequires: libgcrypt-devel
|
||||
BuildRequires: libgcrypt-devel
|
||||
%else
|
||||
BuildRequires: libgcrypt
|
||||
BuildRequires: libgcrypt
|
||||
%endif
|
||||
BuildRequires: liboping-devel
|
||||
BuildRequires: make gcc autoconf automake libtool pkgconfig
|
||||
BuildRequires: freetype2-devel libart_lgpl-devel
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: liboping-devel
|
||||
BuildRequires: autoconf automake gcc libtool make pkgconfig
|
||||
BuildRequires: freetype2-devel libart_lgpl-devel
|
||||
BuildRequires: python-devel
|
||||
%if %libnotify
|
||||
BuildRequires: libnotify-devel gtk2-devel
|
||||
BuildRequires: gtk2-devel libnotify-devel
|
||||
%endif
|
||||
%if %java
|
||||
BuildRequires: java-devel
|
||||
BuildRequires: java-devel
|
||||
%endif #java
|
||||
# for /etc/apache2/... ownership (rpmlint):
|
||||
BuildRequires: apache2
|
||||
%if %suse_version >= 1000
|
||||
BuildRequires: libesmtp-devel
|
||||
BuildRequires: libesmtp-devel
|
||||
%endif
|
||||
BuildRequires: xfsprogs-devel
|
||||
BuildRequires: xfsprogs-devel
|
||||
%if %suse_version >= 930
|
||||
BuildRequires: mysql-devel >= 4.1.0
|
||||
BuildRequires: mysql-devel >= 4.1.0
|
||||
%endif
|
||||
BuildRequires: postgresql-devel
|
||||
BuildRequires: postgresql-devel
|
||||
%if %suse_version >= 1030
|
||||
BuildRequires: rrdtool-devel
|
||||
BuildRequires: libcurl-devel
|
||||
BuildRequires: rrdtool-devel
|
||||
BuildRequires: libcurl-devel
|
||||
%else
|
||||
BuildRequires: curl-devel
|
||||
BuildRequires: curl-devel
|
||||
%endif
|
||||
BuildRequires: libxml2-devel
|
||||
BuildRequires: libxml2-devel
|
||||
%if %ipmi
|
||||
# for ipmi:
|
||||
BuildRequires: OpenIPMI-devel gdbm-devel
|
||||
BuildRequires: OpenIPMI-devel gdbm-devel
|
||||
%endif #ipmi
|
||||
%if %snmp
|
||||
# for snmp:
|
||||
BuildRequires: net-snmp-devel
|
||||
BuildRequires: net-snmp-devel
|
||||
%endif #snmp
|
||||
# for ipvs and madwifi:
|
||||
BuildRequires: linux-kernel-headers kernel-source
|
||||
BuildRequires: kernel-source linux-kernel-headers
|
||||
%if %suse_version >= 1030
|
||||
BuildRequires: libpcap-devel
|
||||
BuildRequires: libpcap-devel
|
||||
%endif
|
||||
BuildRequires: libpcap
|
||||
BuildRequires: libpcap
|
||||
%if %xmms
|
||||
# for xmms:
|
||||
BuildRequires: xmms-devel
|
||||
BuildRequires: xmms-devel
|
||||
%endif
|
||||
%if %virt
|
||||
# for libvirt:
|
||||
BuildRequires: libvirt-devel
|
||||
BuildRequires: libvirt-devel
|
||||
%endif
|
||||
%if %dbi
|
||||
BuildRequires: libdbi-devel
|
||||
BuildRequires: libdbi-devel
|
||||
%endif
|
||||
%if %memcachec
|
||||
BuildRequires: libmemcached-devel
|
||||
BuildRequires: libmemcached-devel
|
||||
%endif
|
||||
# in case we'd like to split it later:
|
||||
Provides: collectd-perl = %{version}-%{release}
|
||||
PreReq: %fillup_prereq
|
||||
PreReq: %insserv_prereq
|
||||
Provides: collectd-perl = %{version}-%{release}
|
||||
PreReq: %fillup_prereq
|
||||
PreReq: %insserv_prereq
|
||||
# play nice with collectd-beta:
|
||||
Obsoletes: collectd-beta < %{version}
|
||||
Provides: collectd-beta = %{version}-%{release}
|
||||
Obsoletes: collectd-beta < %{version}
|
||||
Provides: collectd-beta = %{version}-%{release}
|
||||
|
||||
%description
|
||||
collectd is a small daemon written in C for performance. It reads various
|
||||
@@ -203,14 +208,15 @@ Authors:
|
||||
Florian octo Forster <octo@verplant.org>
|
||||
|
||||
%package web
|
||||
Summary: Web Frontend for watching the %{name} Statistics
|
||||
Group: System/Monitoring
|
||||
Requires: perl apache2 rrdtool
|
||||
Requires: perl(Data::Dumper)
|
||||
Requires: perl(CGI)
|
||||
Requires: perl(HTML::Entities)
|
||||
Requires: perl(URI::Escape)
|
||||
Requires: rrdtool
|
||||
License: GNU General Public License (GPL)
|
||||
Summary: Web Frontend for watching the %{name} Statistics
|
||||
Group: System/Monitoring
|
||||
Requires: perl apache2 rrdtool
|
||||
Requires: perl(Data::Dumper)
|
||||
Requires: perl(CGI)
|
||||
Requires: perl(HTML::Entities)
|
||||
Requires: perl(URI::Escape)
|
||||
Requires: rrdtool
|
||||
|
||||
%description web
|
||||
Web frontend CGI for watching %{name} statistics from a browser.
|
||||
@@ -218,15 +224,16 @@ Web frontend CGI for watching %{name} statistics from a browser.
|
||||
Please look at /etc/apache2/conf.d/%{name}.conf on how to enable.
|
||||
|
||||
%package web-js
|
||||
Summary: Web/JavaScript Frontend for watching %{name} Statistics
|
||||
Group: System/Monitoring
|
||||
Requires: perl apache2 rrdtool
|
||||
Requires: perl(Data::Dumper)
|
||||
Requires: perl(CGI)
|
||||
Requires: perl(RRDs)
|
||||
Requires: perl(HTML::Entities)
|
||||
Requires: perl(JSON)
|
||||
Requires: perl(Config::General)
|
||||
License: GNU General Public License (GPL)
|
||||
Summary: Web/JavaScript Frontend for watching %{name} Statistics
|
||||
Group: System/Monitoring
|
||||
Requires: perl apache2 rrdtool
|
||||
Requires: perl(Data::Dumper)
|
||||
Requires: perl(CGI)
|
||||
Requires: perl(RRDs)
|
||||
Requires: perl(HTML::Entities)
|
||||
Requires: perl(JSON)
|
||||
Requires: perl(Config::General)
|
||||
|
||||
%description web-js
|
||||
Web/JavaScript frontend CGI for watching %{name} statistics from
|
||||
@@ -236,20 +243,24 @@ Please look at /etc/apache2/conf.d/%{name}-js.conf on how to
|
||||
enable.
|
||||
|
||||
%if %libnotify
|
||||
|
||||
%package plugin-notify-desktop
|
||||
Summary: Desktop Notification Plugin for %{name}
|
||||
Group: System/Monitoring
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
Summary: Desktop Notification Plugin for %{name}
|
||||
Group: System/Monitoring
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description plugin-notify-desktop
|
||||
Desktop Notification Support for %{name}
|
||||
%endif #libnotify
|
||||
|
||||
%if %ipmi
|
||||
|
||||
%package plugin-ipmi
|
||||
Summary: OpenIPMI Monitoring Plugin for %{name}
|
||||
Group: System/Monitoring
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
License: GNU General Public License (GPL)
|
||||
Summary: OpenIPMI Monitoring Plugin for %{name}
|
||||
Group: System/Monitoring
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description plugin-ipmi
|
||||
Optional %{name} plugin to monitor sensors using the OpenIPMI
|
||||
@@ -257,50 +268,58 @@ library, for IPMI enabled systems.
|
||||
%endif #ipmi
|
||||
|
||||
%if %snmp
|
||||
|
||||
%package plugin-snmp
|
||||
Summary: SNMP Monitoring Plugin for %{name}
|
||||
Group: System/Monitoring
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: perl(SNMP)
|
||||
Requires: perl(Socket6)
|
||||
Requires: perl(Config::General)
|
||||
License: GNU General Public License (GPL)
|
||||
Summary: SNMP Monitoring Plugin for %{name}
|
||||
Group: System/Monitoring
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: perl(SNMP)
|
||||
Requires: perl(Socket6)
|
||||
Requires: perl(Config::General)
|
||||
|
||||
%description plugin-snmp
|
||||
Optional %{name} plugin to monitor devices using SNMP.
|
||||
%endif #snmp
|
||||
|
||||
%if %suse_version >= 930
|
||||
|
||||
%package plugin-mysql
|
||||
Summary: MySQL Monitoring Plugin for %{name}
|
||||
Group: System/Monitoring
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
License: GNU General Public License (GPL)
|
||||
Summary: MySQL Monitoring Plugin for %{name}
|
||||
Group: System/Monitoring
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description plugin-mysql
|
||||
Optional %{name} plugin to monitor MySQL server instances.
|
||||
%endif
|
||||
|
||||
%package plugin-postgresql
|
||||
Summary: PostgreSQL Monitoring Plugin for %{name}
|
||||
Group: System/Monitoring
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
License: GNU General Public License (GPL)
|
||||
Summary: PostgreSQL Monitoring Plugin for %{name}
|
||||
Group: System/Monitoring
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description plugin-postgresql
|
||||
Optional %{name} plugin to monitor PostgreSQL server instances.
|
||||
|
||||
%package plugin-python
|
||||
Summary: Python API for %{name}
|
||||
Group: System/Monitoring
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
License: GNU General Public License (GPL)
|
||||
Summary: Python API for %{name}
|
||||
Group: System/Monitoring
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description plugin-python
|
||||
Optional %{name} Python API in order to write %{name} plugins in
|
||||
Python.
|
||||
|
||||
%if %java
|
||||
|
||||
%package plugin-java
|
||||
Summary: Java API for %{name}
|
||||
Group: System/Monitoring
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
License: GNU General Public License (GPL)
|
||||
Summary: Java API for %{name}
|
||||
Group: System/Monitoring
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description plugin-java
|
||||
Optional %{name} Java API in order to write %{name} plugins in
|
||||
@@ -308,10 +327,12 @@ Java.
|
||||
%endif #java
|
||||
|
||||
%if %virt
|
||||
|
||||
%package plugin-virt
|
||||
Summary: Virtual Machine Statistics Plugin for %{name}
|
||||
Group: System/Monitoring
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
License: GNU General Public License (GPL)
|
||||
Summary: Virtual Machine Statistics Plugin for %{name}
|
||||
Group: System/Monitoring
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description plugin-virt
|
||||
Optional %{name} plugin to gather statistics from virtual
|
||||
@@ -319,10 +340,12 @@ machines using libvirt.
|
||||
%endif
|
||||
|
||||
%if %xmms
|
||||
|
||||
%package plugin-xmms
|
||||
Summary: XMMS Monitoring Plugin for %{name}
|
||||
Group: System/Monitoring
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
License: GNU General Public License (GPL)
|
||||
Summary: XMMS Monitoring Plugin for %{name}
|
||||
Group: System/Monitoring
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description plugin-xmms
|
||||
Optional %{name} plugin to gather sampling frequencies and file
|
||||
@@ -330,10 +353,12 @@ bitrates of files played with XMMS.
|
||||
%endif #xmms
|
||||
|
||||
%if %dbi
|
||||
|
||||
%package plugin-dbi
|
||||
Summary: DBI Storage Plugin for %{name}
|
||||
Group: System/Monitoring
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
License: GNU General Public License (GPL)
|
||||
Summary: DBI Storage Plugin for %{name}
|
||||
Group: System/Monitoring
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description plugin-dbi
|
||||
Optional %{name} plugin to store sampling results into
|
||||
@@ -341,46 +366,49 @@ various databases as supported by libdbi.
|
||||
%endif #dbi
|
||||
|
||||
%if %memcachec
|
||||
|
||||
%package plugin-memcachec
|
||||
Summary: Memcache Daemon Monitoring Plugin for %{name}
|
||||
Group: System/Monitoring
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
License: GNU General Public License (GPL)
|
||||
Summary: Memcache Daemon Monitoring Plugin for %{name}
|
||||
Group: System/Monitoring
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description plugin-memcachec
|
||||
Optional %{name} plugin to sample memcached statistics.
|
||||
%endif #memcachec
|
||||
|
||||
%package plugins-all
|
||||
Summary: All Monitoring Plugins for %{name}
|
||||
Group: System/Monitoring
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
License: GNU General Public License (GPL)
|
||||
Summary: All Monitoring Plugins for %{name}
|
||||
Group: System/Monitoring
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
%if %ipmi
|
||||
Requires: %{name}-plugin-ipmi = %{version}-%{release}
|
||||
Requires: %{name}-plugin-ipmi = %{version}-%{release}
|
||||
%endif #ipmi
|
||||
%if %snmp
|
||||
Requires: %{name}-plugin-snmp = %{version}-%{release}
|
||||
Requires: %{name}-plugin-snmp = %{version}-%{release}
|
||||
%endif #snmp
|
||||
%if %suse_version >= 930
|
||||
Requires: %{name}-plugin-mysql = %{version}-%{release}
|
||||
Requires: %{name}-plugin-mysql = %{version}-%{release}
|
||||
%endif #suse >= 930
|
||||
Requires: %{name}-plugin-postgresql = %{version}-%{release}
|
||||
Requires: %{name}-plugin-postgresql = %{version}-%{release}
|
||||
%if %java
|
||||
Requires: %{name}-plugin-java = %{version}-%{release}
|
||||
Requires: %{name}-plugin-java = %{version}-%{release}
|
||||
%endif #java
|
||||
%if %virt
|
||||
Requires: %{name}-plugin-virt = %{version}-%{release}
|
||||
Requires: %{name}-plugin-virt = %{version}-%{release}
|
||||
%endif #virt
|
||||
Requires: %{name}-web = %{version}-%{release}
|
||||
Requires: %{name}-web-js = %{version}-%{release}
|
||||
Requires: %{name}-web = %{version}-%{release}
|
||||
Requires: %{name}-web-js = %{version}-%{release}
|
||||
%if %libnotify
|
||||
Requires: %{name}-plugin-notify-desktop = %{version}-%{release}
|
||||
Requires: %{name}-plugin-notify-desktop = %{version}-%{release}
|
||||
%endif #libnotify
|
||||
Requires: %{name}-plugin-python = %{version}-%{release}
|
||||
Requires: %{name}-plugin-python = %{version}-%{release}
|
||||
%if %dbi
|
||||
Requires: %{name}-plugin-dbi = %{version}-%{release}
|
||||
Requires: %{name}-plugin-dbi = %{version}-%{release}
|
||||
%endif #dbi
|
||||
%if %memcachec
|
||||
Requires: %{name}-plugin-memcachec = %{version}-%{release}
|
||||
Requires: %{name}-plugin-memcachec = %{version}-%{release}
|
||||
%endif #memcachec
|
||||
|
||||
%description plugins-all
|
||||
@@ -388,28 +416,31 @@ Metapackage that installs %{name} and all the available
|
||||
monitoring plugin subpackages, except %{name}-plugin-xmms
|
||||
|
||||
%package spamassassin
|
||||
Summary: Spamassassin Monitoring for %{name}
|
||||
Group: System/Monitoring
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: perl-spamassassin
|
||||
License: GNU General Public License (GPL)
|
||||
Summary: Spamassassin Monitoring for %{name}
|
||||
Group: System/Monitoring
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: perl-spamassassin
|
||||
|
||||
%description spamassassin
|
||||
Plugin for filling %{name} with statistics from the
|
||||
SpamAsssassin anti-spam engine.
|
||||
|
||||
%package -n libcollectdclient0
|
||||
Summary: Library for %{name} clients
|
||||
Group: System/Monitoring
|
||||
Provides: libcollectdclient = %{version}-%{release}
|
||||
License: GNU General Public License (GPL)
|
||||
Summary: Library for %{name} clients
|
||||
Group: System/Monitoring
|
||||
Provides: libcollectdclient = %{version}-%{release}
|
||||
|
||||
%description -n libcollectdclient0
|
||||
Library which abstracts communication with the %{name}
|
||||
unixsock plugin for clients.
|
||||
|
||||
%package -n libcollectdclient-devel
|
||||
Summary: Development Environment for %{name} clients
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: libcollectdclient0 = %{version}-%{release}
|
||||
License: GNU General Public License (GPL)
|
||||
Summary: Development Environment for %{name} clients
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: libcollectdclient0 = %{version}-%{release}
|
||||
|
||||
%description -n libcollectdclient-devel
|
||||
Library which abstracts communication with the %{name}
|
||||
@@ -658,6 +689,7 @@ EOF
|
||||
%{fillup_only collectd}
|
||||
|
||||
%post -n libcollectdclient0 -p /sbin/ldconfig
|
||||
|
||||
%postun -n libcollectdclient0 -p /sbin/ldconfig
|
||||
|
||||
%clean
|
||||
@@ -719,6 +751,7 @@ EOF
|
||||
%{_usr}/lib/collectd-js
|
||||
|
||||
%if %libnotify
|
||||
|
||||
%files plugin-notify-desktop
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/collectd/notify_desktop.so
|
||||
@@ -726,6 +759,7 @@ EOF
|
||||
%endif #libnotify
|
||||
|
||||
%if %ipmi
|
||||
|
||||
%files plugin-ipmi
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/collectd/ipmi.so
|
||||
@@ -733,6 +767,7 @@ EOF
|
||||
%endif #ipmi
|
||||
|
||||
%if %snmp
|
||||
|
||||
%files plugin-snmp
|
||||
%defattr(-,root,root)
|
||||
%doc _rpmdoc_/snmp/*
|
||||
@@ -744,6 +779,7 @@ EOF
|
||||
%endif #snmp
|
||||
|
||||
%if %suse_version >= 930
|
||||
|
||||
%files plugin-mysql
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/collectd/mysql.so
|
||||
@@ -763,6 +799,7 @@ EOF
|
||||
%doc %{_mandir}/man5/collectd-python.5*
|
||||
|
||||
%if %java
|
||||
|
||||
%files plugin-java
|
||||
%defattr(-,root,root)
|
||||
%doc _rpmdoc_/java/GenericJMX.conf
|
||||
@@ -773,6 +810,7 @@ EOF
|
||||
%endif #java
|
||||
|
||||
%if %virt
|
||||
|
||||
%files plugin-virt
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/collectd/libvirt.so
|
||||
@@ -780,6 +818,7 @@ EOF
|
||||
%endif #virt
|
||||
|
||||
%if %xmms
|
||||
|
||||
%files plugin-xmms
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/collectd/xmms.so
|
||||
@@ -787,6 +826,7 @@ EOF
|
||||
%endif #xmms
|
||||
|
||||
%if %dbi
|
||||
|
||||
%files plugin-dbi
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/collectd/dbi.so
|
||||
@@ -794,6 +834,7 @@ EOF
|
||||
%endif #dbi
|
||||
|
||||
%if %memcachec
|
||||
|
||||
%files plugin-memcachec
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/collectd/memcachec.so
|
||||
@@ -825,9 +866,9 @@ EOF
|
||||
%{_libdir}/libcollectdclient.so
|
||||
%{_libdir}/pkgconfig/libcollectdclient.pc
|
||||
|
||||
%changelog
|
||||
# vim: set sw=3 ts=3 noet:
|
||||
# Local Variables:
|
||||
# mode: rpm-spec
|
||||
# tab-width: 3
|
||||
# End:
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user