SHA256
1
0
forked from pool/collectd

Accepting request 709935 from server:monitoring

OBS-URL: https://build.opensuse.org/request/show/709935
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/collectd?expand=0&rev=31
This commit is contained in:
Dominique Leuenberger 2019-06-19 19:07:39 +00:00 committed by Git OBS Bridge
commit c3191c04e7
16 changed files with 438 additions and 214 deletions

View File

@ -1,41 +0,0 @@
From d5ec9075510601537cc76be4417ab337364506d0 Mon Sep 17 00:00:00 2001
From: Baruch Siach <baruch@tkos.co.il>
Date: Tue, 9 Oct 2018 19:57:21 +0300
Subject: [PATCH] gps plugin: fix build with newer gpsd
gpsd version 3.18 changed the prototype of gps_read(). Make the
gps_read() call depend on GPSD_API_MAJOR_VERSION to fix that.
This fixes build failures like:
gps.c: In function 'cgps_thread':
gps.c:144:11: error: too few arguments to function 'gps_read'
if (gps_read(&gpsd_conn) == -1) {
^~~~~~~~
(cherry picked from commit 991a6d3fd38c2435d94de3853fda36b3330cf6ab)
---
src/gps.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/gps.c b/src/gps.c
index 1d32d049..b22c3a2e 100644
--- a/src/gps.c
+++ b/src/gps.c
@@ -141,7 +141,12 @@ static void *cgps_thread(void *pData) {
continue;
}
- if (gps_read(&gpsd_conn) == -1) {
+#if GPSD_API_MAJOR_VERSION > 6
+ if (gps_read(&gpsd_conn, NULL, 0) == -1)
+#else
+ if (gps_read(&gpsd_conn) == -1)
+#endif
+ {
WARNING("gps plugin: incorrect data! (err_count: %d)", err_count);
err_count++;
--
2.16.4

View File

@ -14,12 +14,11 @@ Closes: collectd/collectd#1574
configure.ac | 2 +-
src/sigrok.c | 51 +++++++++++++++++++++++++++------------------------
2 files changed, 28 insertions(+), 25 deletions(-)
diff --git a/configure.ac b/configure.ac
index f50df28a6d..6b7aad43ae 100644
index 5738974..4032d84 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5084,7 +5084,7 @@ AC_SUBST([BUILD_WITH_LIBSENSORS_LIBS])
@@ -5058,7 +5058,7 @@ AC_SUBST([BUILD_WITH_LIBSENSORS_LIBS])
# libsigrok {{{
AC_SUBST([LIBSIGROK_CFLAGS])
AC_SUBST([LIBSIGROK_LIBS])
@ -29,7 +28,7 @@ index f50df28a6d..6b7aad43ae 100644
[with_libsigrok="no (pkg-config could not find libsigrok)"]
)
diff --git a/src/sigrok.c b/src/sigrok.c
index 8a325fe9f0..a44c95e4b8 100644
index 8a325fe..a44c95e 100644
--- a/src/sigrok.c
+++ b/src/sigrok.c
@@ -127,22 +127,22 @@ static int sigrok_config(oconfig_item_t *ci) {
@ -97,13 +96,13 @@ index 8a325fe9f0..a44c95e4b8 100644
@@ -248,21 +249,22 @@ static int sigrok_init_driver(struct config_device *cfdev,
cfdev->sdi = devlist->data;
g_slist_free(devlist);
ssnprintf(hwident, sizeof(hwident), "%s %s %s",
- cfdev->sdi->vendor ? cfdev->sdi->vendor : "",
- cfdev->sdi->model ? cfdev->sdi->model : "",
- cfdev->sdi->version ? cfdev->sdi->version : "");
+ sr_dev_inst_vendor_get(cfdev->sdi),
+ sr_dev_inst_model_get(cfdev->sdi),
+ sr_dev_inst_version_get(cfdev->sdi));
snprintf(hwident, sizeof(hwident), "%s %s %s",
- cfdev->sdi->vendor ? cfdev->sdi->vendor : "",
- cfdev->sdi->model ? cfdev->sdi->model : "",
- cfdev->sdi->version ? cfdev->sdi->version : "");
+ sr_dev_inst_vendor_get(cfdev->sdi),
+ sr_dev_inst_model_get(cfdev->sdi),
+ sr_dev_inst_version_get(cfdev->sdi));
INFO("sigrok plugin: Device \"%s\" is a %s", cfdev->name, hwident);
if (sr_dev_open(cfdev->sdi) != SR_OK)

111
avoid-pg-config.patch Normal file
View File

@ -0,0 +1,111 @@
diff --git a/configure.ac b/configure.ac
index 4032d84..284192d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4272,18 +4272,10 @@ AC_SUBST([PERL_LIBS])
# }}}
# --with-libpq {{{
-with_pg_config="pg_config"
AC_ARG_WITH([libpq],
- [AS_HELP_STRING([--with-libpq@<:@=PREFIX@:>@], [Path to libpq.])],
+ [AS_HELP_STRING([--with-libpq], [Build using pgsql])],
[
- if test "x$withval" = "xno" || test "x$withval" = "xyes"; then
- with_libpq="$withval"
- else
- if test -f "$withval" && test -x "$withval"; then
- with_pg_config="$withval"
- else if test -x "$withval/bin/pg_config"; then
- with_pg_config="$withval/bin/pg_config"
- fi; fi
+ if test "x$withval" != "xno" || test "x$withval" != "xyes"; then
with_libpq="yes"
fi
],
@@ -4291,66 +4283,42 @@ AC_ARG_WITH([libpq],
)
if test "x$with_libpq" = "xyes"; then
- with_libpq_includedir=`$with_pg_config --includedir 2> /dev/null`
- pg_config_status=$?
-
- if test $pg_config_status -eq 0; then
- if test -n "$with_libpq_includedir"; then
- for dir in $with_libpq_includedir; do
- with_libpq_cppflags="$with_libpq_cppflags -I$dir"
- done
- fi
- else
- AC_MSG_WARN([$with_pg_config returned with status $pg_config_status])
+ $PKG_CONFIG --exists 'libpq' 2>/dev/null
+ if test $? -ne 0; then
+ with_libpq="no (pkg-config doesn't know libpq)"
fi
-
- SAVE_CPPFLAGS="$CPPFLAGS"
- CPPFLAGS="$CPPFLAGS $with_libpq_cppflags"
-
- AC_CHECK_HEADERS([libpq-fe.h],
- [with_libpq="yes"],
- [with_libpq="no (libpq-fe.h not found)"]
- )
-
- CPPFLAGS="$SAVE_CPPFLAGS"
fi
if test "x$with_libpq" = "xyes"; then
- with_libpq_libdir=`$with_pg_config --libdir 2> /dev/null`
- pg_config_status=$?
-
- if test $pg_config_status -eq 0
- then
- if test -n "$with_libpq_libdir"; then
- for dir in $with_libpq_libdir; do
- with_libpq_ldflags="$with_libpq_ldflags -L$dir"
- done
- fi
- else
- AC_MSG_WARN([$with_pg_config returned with status $pg_config_status])
- fi
+ with_libpq_cflags="`$PKG_CONFIG --cflags libpq`"
+ with_libpq_ldflags="`$PKG_CONFIG --libs-only-L libpq`"
+ with_libpq_libs="`$PKG_CONFIG --libs libpq`"
+fi
- SAVE_LDFLAGS="$LDFLAGS"
- LDFLAGS="$LDFLAGS $with_libpq_ldflags"
+if test "x$with_libpq" = "xyes"; then
+ SAVE_CPPFLAGS="$CPPFLAGS"
+ CPPFLAGS="$CPPFLAGS $with_libpq_cflags"
- AC_CHECK_LIB([pq], [PQserverVersion],
- [with_libpq="yes"],
- [with_libpq="no (symbol 'PQserverVersion' not found)"])
+ # Look for libpq-fe.h
+ AC_CHECK_HEADERS([libpq-fe.h pgsql/libpq-fe.h],
+ [with_libpq="yes"],
+ [with_libpq="no (libpq-fe.h not found)"]
+ )
- LDFLAGS="$SAVE_LDFLAGS"
+ CPPFLAGS="$SAVE_CPPFLAGS"
fi
if test "x$with_libpq" = "xyes"; then
- BUILD_WITH_LIBPQ_CPPFLAGS="$with_libpq_cppflags"
+ BUILD_WITH_LIBPQ_CPPFLAGS="$with_libpq_cflags"
BUILD_WITH_LIBPQ_LDFLAGS="$with_libpq_ldflags"
- BUILD_WITH_LIBPQ_LIBS="-lpq"
+ BUILD_WITH_LIBPQ_LIBS="$with_libpq_libs"
fi
AC_SUBST([BUILD_WITH_LIBPQ_CPPFLAGS])
-AC_SUBST([BUILD_WITH_LIBPQ_LDFLAGS])
AC_SUBST([BUILD_WITH_LIBPQ_LIBS])
# }}}
+
# --with-libpqos {{{
AC_ARG_WITH([libpqos],
[AS_HELP_STRING([--with-libpqos@<:@=PREFIX@:>@], [Path to libpqos.])],

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9d20a0221569a8d6b80bbc52b86e5e84965f5bafdbf5dfc3790e0fed0763e592
size 1798777

3
collectd-5.9.0.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7b220f8898a061f6e7f29a8c16697d1a198277f813da69474a67911097c0626b
size 1899573

View File

@ -1,6 +1,8 @@
--- src/collectd.conf.in.orig 2013-06-04 02:22:35.386712789 +0200
+++ src/collectd.conf.in 2013-06-04 02:24:33.579744915 +0200
@@ -211,7 +211,7 @@
Index: src/collectd.conf.in
===================================================================
--- src/collectd.conf.in.orig
+++ src/collectd.conf.in
@@ -272,7 +272,7 @@
#<Plugin apache>
# <Instance "local">
# URL "http://localhost/status?auto"
@ -9,7 +11,7 @@
# Password "secret"
# CACert "/etc/ssl/ca.crt"
# </Instance>
@@ -225,7 +225,7 @@
@@ -291,7 +291,7 @@
#<Plugin ascent>
# URL "http://localhost/ascent/status/"

View File

@ -1,6 +1,8 @@
--- src/perl.c.orig
+++ src/perl.c
@@ -2504,7 +2504,12 @@ static int perl_config_loadplugin(pTHX_
diff --git a/src/perl.c b/src/perl.c
index 8df8fd4..94e21d2 100644
--- a/src/perl.c
+++ b/src/perl.c
@@ -2516,7 +2516,12 @@ static int perl_config_loadplugin(pTHX_ oconfig_item_t *ci) {
log_debug("perl_config: Loading Perl plugin \"%s\"", value);
load_module(PERL_LOADMOD_NOIMPORT, newSVpv(module_name, strlen(module_name)),

View File

@ -1,6 +1,8 @@
--- contrib/snmp-probe-host.px.orig 2009-10-07 22:55:23.000000000 +0200
+++ contrib/snmp-probe-host.px 2009-10-07 22:57:45.000000000 +0200
@@ -290,7 +290,7 @@
diff --git a/contrib/snmp-probe-host.px b/contrib/snmp-probe-host.px
index d1a7a88..bc94e5c 100755
--- a/contrib/snmp-probe-host.px
+++ b/contrib/snmp-probe-host.px
@@ -320,7 +320,7 @@ This is a bit a hack, but works for now.
=cut
my $host;

View File

@ -1,6 +1,8 @@
--- contrib/collection.cgi.orig 2010-04-22 11:30:07.000000000 +0200
+++ contrib/collection.cgi 2010-05-20 18:23:38.000000000 +0200
@@ -11,7 +11,7 @@
diff --git a/contrib/collection.cgi b/contrib/collection.cgi
index 5ff259f..e0848e0 100755
--- a/contrib/collection.cgi
+++ b/contrib/collection.cgi
@@ -32,7 +32,7 @@ use URI::Escape ('uri_escape');
use RRDs ();
use Data::Dumper ();
@ -9,8 +11,10 @@
our @DataDirs = ();
our @DontShowTypes = ();
our $LibDir;
--- contrib/collection.conf.orig 2010-04-22 11:29:35.000000000 +0200
+++ contrib/collection.conf 2010-05-20 18:23:38.000000000 +0200
diff --git a/contrib/collection.conf b/contrib/collection.conf
index e8444f5..063141f 100644
--- a/contrib/collection.conf
+++ b/contrib/collection.conf
@@ -1,3 +1,2 @@
-datadir: "/opt/collectd/var/lib/collectd/rrd/"
-libdir: "/opt/collectd/lib/collectd/"

View File

@ -1,30 +0,0 @@
diff --git a/bindings/java/Makefile.am b/bindings/java/Makefile.am
index 8d2e49d..549d81a 100644
--- a/bindings/java/Makefile.am
+++ b/bindings/java/Makefile.am
@@ -25,8 +25,8 @@ EXTRA_DIST = org/collectd/api/CollectdConfigInterface.java \
org/collectd/java/JMXMemory.java
java-build-stamp: $(srcdir)/org/collectd/api/*.java $(srcdir)/org/collectd/java/*.java
- $(JAVAC) -d "." "$(srcdir)/org/collectd/api"/*.java
- $(JAVAC) -d "." "$(srcdir)/org/collectd/java"/*.java
+ $(JAVAC) $(JAVAC_TARGET) -d "." "$(srcdir)/org/collectd/api"/*.java
+ $(JAVAC) $(JAVAC_TARGET) -d "." "$(srcdir)/org/collectd/java"/*.java
mkdir -p .libs
$(JAR) cf .libs/collectd-api.jar "org/collectd/api"/*.class
$(JAR) cf .libs/generic-jmx.jar "org/collectd/java"/*.class
diff --git a/bindings/java/Makefile.in b/bindings/java/Makefile.in
index 1c57558..c8ab086 100644
--- a/bindings/java/Makefile.in
+++ b/bindings/java/Makefile.in
@@ -597,8 +597,8 @@ uninstall-am: uninstall-local
java-build-stamp: $(srcdir)/org/collectd/api/*.java $(srcdir)/org/collectd/java/*.java
- $(JAVAC) -d "." "$(srcdir)/org/collectd/api"/*.java
- $(JAVAC) -d "." "$(srcdir)/org/collectd/java"/*.java
+ $(JAVAC) $(JAVAC_TARGET) -d "." "$(srcdir)/org/collectd/api"/*.java
+ $(JAVAC) $(JAVAC_TARGET) -d "." "$(srcdir)/org/collectd/java"/*.java
mkdir -p .libs
$(JAR) cf .libs/collectd-api.jar "org/collectd/api"/*.class
$(JAR) cf .libs/generic-jmx.jar "org/collectd/java"/*.class

View File

@ -1,7 +1,9 @@
--- bindings/Makefile.am.orig 2013-06-04 02:26:20.688776802 +0200
+++ bindings/Makefile.am 2013-06-04 02:26:33.551780804 +0200
@@ -29,7 +29,7 @@
diff --git a/Makefile.am b/Makefile.am
index 2ef2442..145e98c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2000,7 +2000,7 @@ uninstall-hook:
all-local: @PERL_BINDINGS@
install-exec-local:
- [ ! -f buildperl/Makefile ] || ( cd buildperl && $(MAKE) install )

View File

@ -7,3 +7,6 @@ addFilter('macro-in-comment')
#There no fsf address in that file
addFilter('incorrect-fsf-address /usr/share/doc/packages/collectd/contrib/network-proxy.py')
# Can't delete this file in the post section
addFilter('suse-filelist-forbidden-backup-file')

View File

@ -1,56 +0,0 @@
--- contrib/README.orig
+++ contrib/README
@@ -33,22 +33,6 @@
`/var/lib/collectd/' and generate an HTML file and a directory containing
several PNG files which are graphs of the RRD files found.
-collection.cgi
---------------
- Sample CGI script that creates graphs on the fly. The Perl modules `RRDs'
-(Debian package `librrds-perl'), `URI:Escape' (package liburi-perl),
-`HTML::Entities' (package libhtml-parser-perl) and a CGI capable web server
-(e.g. apache2 or boa) are needed. Simply install the script to a place where
-the webserver will treat it as a CGI script (/usr/lib/cgi-bin/ by default) and
-visit that page in a browser (http://localhost/cgi-bin/collection.cgi by
-default). Please refer to your webserver's documentation for more details.
-
- Starting with version 4, collection.cgi requires a small config file, which
-should look something like this:
-
- datadir: "/var/lib/collectd/rrd/"
- libdir: "/usr/lib/collectd/"
-
exec-munin.px
-------------
Script to be used with the exec-plugin (see collectd-exec(5) for details)
@@ -70,11 +54,6 @@
RRD-file that should have been in multiple RRD-files instead. Is is used by
`migrate-3-4.px' to split up the cpu-, nfs-, swap-files and possibly others.
-GenericJMX.conf
----------------
- Example configuration file for the GenericJMX Java plugin. Please read the
-documentation at the beginning of the file for more details.
-
migrate-3-4.px
--------------
Migration-script to ease the switch from version 3 to version 4. Many
@@ -84,10 +63,6 @@
may still need to do some things by hand, read `README.migration' for more
details.
-redhat/
--------
- Spec-file and affiliated files to build an RedHat RPM package of collectd.
-
snmp-data.conf
--------------
Sample configuration for the SNMP plugin. This config includes a few standard
@@ -97,7 +72,3 @@
whatever people have send in. If you have some more definitions please send
them in, so others can profit from it.
-solaris-smf
------------
- Manifest file for the Solaris SMF system and detailed information on how to
-register collectd as a service with this system.

View File

@ -7,4 +7,4 @@
+AC_INIT([collectd],[@@VERSION@@])
AC_CONFIG_SRCDIR(src/target_set.c)
AC_CONFIG_HEADERS(src/config.h)
AC_CONFIG_AUX_DIR([libltdl/config])
AC_CONFIG_AUX_DIR([build-aux])

View File

@ -1,3 +1,154 @@
-------------------------------------------------------------------
Thu Jun 13 19:54:45 UTC 2019 - Martin Hauke <mardnh@gmx.de>
- Update to 5.9.0:
* collectd: A new "UNKNOWN" state as the initial state of metrics has
been added.
* collectd: config parser: Improved error reporting on global options.
* collectd: daemon: make plugin_dispatch_multivalue() obey write queue
limits.
* collectd: Macros "STRERROR" and "STRERRNO" have been added.
* collectd: Plugin name field has been added to plugin context to
improve error reporting.
* collectd-tg: Use "CLOCK_REALTIME" for collectd-tg times.
* AMPQ1 plugin: A new plugin to write to amqp1 protocol.
* Chrony plugin: Ignoring late responses has been added.
* CPUFreq plugin: Read number of p-state transitions and time spent in
each p-state.
* cURL, cURL-XML plugins: Option "Interval" has been added.
* Exec plugin: Dynamic allocation of grname buffer has been added.
* GPU NVML plugin: New plugin to collect NVIDIA GPU stats.
* gRPC plugin: The "VerifyPeer" option for servers has been added.
* Intel RDT plugin: Support for groups of PIDs has been added.
* IPMI plugin: Config options "SELSensor" and "SELIgnoreSelected" have
been added.
* Modbus plugin: Support for 64 bit vals has been added, support for
CDAB endian 32-bit modbus polls has been added.
* Modbus plugin: The "Scale" and "Shift" metrics have been added.
* Netlink plugin: Handle new counter from Linux kernel version 4.6+.
* Network plugin: Option "BindAddress" has been added.
* Ping plugin: An "AddressFamily" configuration option has been added.
* OVS Stats plugin: Extended metrics "ovs-dpdk" have been added.
* OVS Stats plugin: Support of bond interface and a "InterfaceStats"
config option have been added.
* PCIe Errors plugin: New plugin to read "PCIe" errors.
* Processes plugin: Support for Linux Delay Accounting has been added.
* Redis plugin: Keyspace "hitratio" metric has been added, metric
"operations_per_second" has been removed, an option for connecting via
UNIX socket has been added.
* RouterOS plugin: Support for temperature and voltage data has been
added, use MAC-address when Radio-name is missing.
* RRDCacheD plugin: Time resolution has been improved to microseconds.
* Sensors plugin: Checks for upper limit of "SENSORS_API_VERSION" have
been removed, support for libsensors older than 3.0.0 has been
dropped.
* SNMP plugin: New options "PluginInstance", "TypeInstance",
"TypeInstanceOID", "PluginInstanceOID", "FilterOID", "FilterValues"
and "FilterIgnoreSelected" have been added.
* SNMP Agent plugin: Multiple key indexes to snmp table and other new
features have been added, refactoring, coverity scan issues have been
fixed.
* Swap plugin: Support for Linux 2.4 has been dropped.
* Turbostat plugin: Configuration option "RestoreAffinityPolicy" has
been added.
* Turbostat plugin: New metrics "P-states", "Turboboost", "Platform
TDP", "Uncore bus ratio" have been added.
* Turbostat plugin: Support of reporting GPU power on SKL has been
added.
* virt plugin: Allow read "Hostname" from libvirt metadata.
* virt plugin: Block info statistics for disk devices have been added.
* Wireless plugin: A "bitrate" metric has been added.
* Write Graphite, Write Kafka plugins: Support for Graphite 1.1+ tag has
been added.
* Write Prometheus plugin: Option "Host" has been added.
* Write Stackdriver plugin: New plugin to write to Google Stackdriver
Monitoring.
* Write Syslog plugin: "write_syslog" plugin writes values lists as
syslog messages.
* collectd: collectdmon cannot exit command line options parse loop has
been fixed.
* collectd: Include "kstat.h" if available to provide "kstat_ctl_t",
include "kstat.h" when available.
* collectd: Parsing option for avoiding making BaseDir has been fixed.
* collectd: Remove empty "cmd_listval_t" data structure and related
no-op code.
* collectd: src/daemon/plugin.c: Refactor plugin_load_file(),
src/utils_format_json.c: Remove chatty debug messages.
* collectd: Stop poisoning function in debug mode.
* collectd: The number of allocations when parsing types.db has been
reduced.
* AMQP1 plugin: Potential memory leaks found via scan-build have been
fixed, a typo in error log message has been fixed, cleanups.
* Barometer plugin: Support to "libi2c-4.0" has been added.
* DBI, Oracle, PostgreSQL plugins: Fixes and improvements.
* Disk plugin: In linux, reset the disk when it disappears from
"/proc/diskstats".
* DPDK Events, DPDK Stats plugins: Buffer size for parsing lcores has
been increased, a deprecation warning has been fixed, runtime config
file path has been fixed.
* GPS plugin: Build with gpsd version 3.18 has been fixed.
* LUA plugin: A memory leak has been fixed.
* MySQL plugin: Properly cleanup dropped MySQL connections.
* Netlink plugin: Truncation warnings have been fixed.
* NFS plugin: Message "Unexpected number of fields for NFSv4 server
statistics: 62" has been fixed.
* NFS plugin: Number of fields for "NFSv4" has been fixed.
* Notify Email plugin: All notification parameters have been included
into email.
* NTPd plugin: Don't treat normal peers as refclocks, skip "0.0.0.0"
hosts in ntpd plugin.
* OVS Stats plugin: A macro to populate counters list has been added,
value of "OpenFlow" has been corrected.
* OVS Stats, OVS Events plugins: utils_ovs: Avoid potential access of
freed memory, fixes.
* Processes plugin: Compilation has been fixed when ps_delay() is not
used.
* Python plugin: A compilation warning with Python 3.7 has been fixed.
* Redis plugin: Bugfixes, extended error reporting, persistent
connections and parallel polling, ability to select db for queries has
been fixed.
* RRDTool plugin: Error reporting has been extended.
* Sensors plugin: Support for humidity sensors has been added.
* Sensu, OVS Stat, Turbostat, virt, OAuth, Write Prometheus, Intel RDT
plugins: Compiler warnings have been fixed.
* virt plugin: Compiler warnings, a segfault in libvirt, typo in error
messages have been fixed.
* virt plugin: Optional "virDomainGetCPUStats()" has been removed from
main flow, cleanup.
* virt plugin: Tracking of VM state changes has been fixed.
* Write MongoDB plugin: Plugin dependencies have been fixed.
* Write Redis plugin: Bug ""max_set_duration" deletes unexpected data"
has been fixed.
- Drop patches (fixed by upstream):
* 0001-gps-plugin-fix-build-with-newer-gpsd.patch
* Removed-checks-for-upper-limit-of-SENSORS_API_VERSION.patch
- Add new subpackages:
* plugin-pcie
* plugin-write_stackdriver
* plugin-write_syslog
-------------------------------------------------------------------
Sun Apr 14 12:37:27 UTC 2019 - Christophe Giboudeaux <christophe@krop.fr>
- Update to 5.8.1:
* collectd: Fix "BaseDir" option.
* collectd: improve error handling, check return values.
* Build System: use "kstat.h", when available.
* Build System: Out-of-tree builds have been fixed.
* Configuration: Error handling in the config parsing code has been
improved.
* collectd: The core daemon is now completely licensed under the
MIT license.
* Build system: Dependency on libltdl has been removed, support for
libtool 1 has been dropped.
Check the ChangeLog file for the complete list of changes.
- Add Removed-checks-for-upper-limit-of-SENSORS_API_VERSION.patch
- Add avoid-pg-config.patch to use pkg-config instead of pg_config
- Refresh patches
- Drop Patches:
* collectd-split_README.patch (merged upstream)
* collectd-javac_target.patch (doesn't applies)
-------------------------------------------------------------------
Sat Dec 29 14:59:06 UTC 2018 - mardnh@gmx.de

View File

@ -1,7 +1,7 @@
#
# spec file for package collectd
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2005-2013 Pascal Bleser <pascal.bleser@opensuse.org>
#
# All modifications and additions to the file contributed by third parties
@ -13,7 +13,7 @@
# 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/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@ -42,29 +42,28 @@
%define sensors_plugin %{nil}
%endif
Name: collectd
Version: 5.7.2
Version: 5.9.0
Release: 0
Summary: Statistics Collection Daemon for filling RRD Files
License: GPL-2.0-only
License: GPL-2.0-only AND MIT
Group: System/Monitoring
Url: http://collectd.org/
URL: http://collectd.org/
Source: http://collectd.org/files/collectd-%{version}.tar.bz2
Source1: collectd.suse.init
Source2: collectd.apache2.conf
Source3: collectd-js.apache2.conf
Source99: collectd-rpmlintrc
Patch7: collectd-fix-config.patch
Patch9: collectd-version.patch
Patch10: collectd-perl-vendor.patch
Patch1: collectd-fix-config.patch
Patch2: collectd-version.patch
Patch3: collectd-perl-vendor.patch
# see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=467072
Patch11: collectd-fix_broken_perl-5.10.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
Patch23: collectd-javac_target.patch
Patch24: 9e36cd85a2bb_sigrok_Update_to_support_libsigrok_0_4.patch
Patch25: 0001-gps-plugin-fix-build-with-newer-gpsd.patch
Patch4: collectd-fix_broken_perl-5.10.patch
Patch5: collectd-fix_collection_cgi.patch
Patch6: collectd-fix_spamassassin_doc.patch
Patch7: collectd-fix_collectd_config_path_in_snmp_probe.patch
Patch8: 9e36cd85a2bb_sigrok_Update_to_support_libsigrok_0_4.patch
# PATCH-FIX-OPENSUSE avoid-pg-config.patch avoid pg_config if possible
Patch11: avoid-pg-config.patch
# for /etc/apache2/... ownership (rpmlint):
BuildRequires: apache2
BuildRequires: autoconf
@ -109,7 +108,6 @@ BuildRequires: pkgconfig(libart-2.0)
BuildRequires: pkgconfig(libatasmart)
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(libevent)
#BuildRequires: pkgconfig(libgpsd)
BuildRequires: pkgconfig(libgps)
BuildRequires: pkgconfig(libiptc)
BuildRequires: pkgconfig(libmemcached)
@ -117,6 +115,7 @@ BuildRequires: pkgconfig(libmicrohttpd)
BuildRequires: pkgconfig(libmnl)
BuildRequires: pkgconfig(libnotify)
BuildRequires: pkgconfig(liboping)
BuildRequires: pkgconfig(libpq)
BuildRequires: pkgconfig(librrd)
BuildRequires: pkgconfig(libsigrok)
BuildRequires: pkgconfig(libstatgrab)
@ -249,6 +248,14 @@ Requires: %{name} = %{version}-%{release}
%description plugin-lvm
This plugin collects information from lvm.
%package plugin-pcie
Summary: PCIe Monitoring Plugin for %{name}
Group: System/Monitoring
Requires: %{name} = %{version}-%{release}
%description plugin-pcie
Optional %{name} plugin to monitor PCIe errors.
%package plugin-postgresql
Summary: PostgreSQL Monitoring Plugin for %{name}
Group: System/Monitoring
@ -338,13 +345,53 @@ Requires: lua
Optional %{name} Lua API in order to write %{name} plugins in Lua.
%package plugin-gps
Summary: gpsd monitoring plugin for %{name}
Summary: GPSD monitoring plugin for %{name}
Group: System/Monitoring
Requires: %{name} = %{version}-%{release}
%description plugin-gps
Optional %{name} plugin to monitor gpsd.
%package plugin-mcelog
Summary: Machine Check Exceptions plugin for %{name}
Group: System/Monitoring
Requires: %{name} = %{version}-%{release}
%description plugin-mcelog
Optional %{name} plugin to monitor machine check exceptions.
%package plugin-ovs
Summary: Open vSwitch (OVS) plugin for %{name}
Group: System/Monitoring
Requires: %{name} = %{version}-%{release}
%description plugin-ovs
Optional %{name} plugin to monitor an OVS database.
%package plugin-synproxy
Summary: Synproxy stats plugin for %{name}
Group: System/Monitoring
Requires: %{name} = %{version}-%{release}
%description plugin-synproxy
Optional %{name} plugin to monitor Synproxy stats.
%package plugin-write_stackdriver
Summary: Write Stackdriver plugin for %{name}
Group: System/Monitoring
Requires: %{name} = %{version}-%{release}
%description plugin-write_stackdriver
Optional %{name} plugin to to write to Google Stackdriver.
%package plugin-write_syslog
Summary: Write Syslog plugin for %{name}
Group: System/Monitoring
Requires: %{name} = %{version}-%{release}
%description plugin-write_syslog
Optional %{name} plugin to write values lists as syslog messages.
%package plugins-all
Summary: All Monitoring Plugins for %{name}
Group: System/Monitoring
@ -355,17 +402,23 @@ Requires: %{name}-plugin-ipmi = %{version}-%{release}
Requires: %{name}-plugin-java = %{version}-%{release}
Requires: %{name}-plugin-lua = %{version}-%{release}
Requires: %{name}-plugin-lvm = %{version}-%{release}
Requires: %{name}-plugin-mcelog = %{version}-%{release}
Requires: %{name}-plugin-memcachec = %{version}-%{release}
Requires: %{name}-plugin-mysql = %{version}-%{release}
Requires: %{name}-plugin-notify-desktop = %{version}-%{release}
Requires: %{name}-plugin-openldap = %{version}-%{release}
Requires: %{name}-plugin-ovs = %{version}-%{release}
Requires: %{name}-plugin-pcie = %{version}-%{release}
Requires: %{name}-plugin-pinba = %{version}-%{release}
Requires: %{name}-plugin-postgresql = %{version}-%{release}
Requires: %{name}-plugin-python3 = %{version}-%{release}
Requires: %{name}-plugin-sigrok = %{version}-%{release}
Requires: %{name}-plugin-smart = %{version}-%{release}
Requires: %{name}-plugin-snmp = %{version}-%{release}
Requires: %{name}-plugin-synproxy = %{version}-%{release}
Requires: %{name}-plugin-virt = %{version}-%{release}
Requires: %{name}-plugin-write_stackdriver = %{version}-%{release}
Requires: %{name}-plugin-write_syslog = %{version}-%{release}
Requires: %{name}-web = %{version}-%{release}
Requires: %{name}-web-js = %{version}-%{release}
%if 0%{?suse_version} >= 1330
@ -408,19 +461,17 @@ to write %{name} unixsock clients.
%prep
%setup -q -n "collectd-%{version}"
%patch7
%patch9 -p1
%patch10
%patch11
%patch18
%patch19
%patch20
%patch21
%patch23 -p1
%patch1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6
%patch7 -p1
%if 0%{?suse_version} > 1320
%patch24 -p1
%patch8 -p1
%endif
%patch25 -p1
%patch11 -p1
sed -i 's|@@VERSION@@|%{version}|g' configure.ac
@ -428,7 +479,6 @@ perl -p -i -e 's|(-L\$withval/lib)\b|${1}64|g' configure.ac configure
# unneeded files:
rm -fr \
contrib/fedora \
contrib/solaris-smf \
contrib/redhat \
contrib/sles*
@ -496,7 +546,7 @@ mv contrib/collection3/lib/* "%{buildroot}%{_libexecdir}/collectd-js/"
install -D -m 0644 contrib/collection3%{_sysconfdir}/collection.conf \
"%{buildroot}%{_sysconfdir}/collectd/collection-js.conf"
rm -fr contrib/collection3/etc
rm -fr contrib/collection3%{_sysconfdir}
install -D -m 0644 "%{SOURCE3}" "%{buildroot}%{_sysconfdir}/apache2/conf.d/%{name}-js.conf"
# spamassassin (_must_ be installed _after_ perl_process_packlist)
@ -549,7 +599,7 @@ cat <<EOF >README.plugins-all
This package is empty but depends on all collectd plugin subpackages.
EOF
install -d -m 0755 "%{buildroot}%{_prefix}/sbin"
install -d -m 0755 "%{buildroot}%{_sbindir}"
install -D -m0644 contrib/systemd.collectd.service %{buildroot}%{_unitdir}/collectd.service
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
@ -570,7 +620,8 @@ ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
%postun -n libcollectdclient1 -p /sbin/ldconfig
%files -f plugins.lst
%doc AUTHORS ChangeLog COPYING README
%license COPYING
%doc AUTHORS ChangeLog README
%doc contrib
%config(noreplace) %{_sysconfdir}/collectd.conf
%dir %{_sysconfdir}/collectd
@ -590,19 +641,19 @@ ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
%dir %{perl_vendorlib}/Collectd
%{perl_vendorlib}/Collectd/*
%{perl_vendorarch}/auto/Collectd
%{_mandir}/man1/collectd.1%{ext_man}
%{_mandir}/man1/collectdctl.1%{ext_man}
%{_mandir}/man1/collectdmon.1%{ext_man}
%{_mandir}/man1/collectd-tg.1%{ext_man}
%{_mandir}/man1/collectd-nagios.1%{ext_man}
%{_mandir}/man1/cussh.1%{ext_man}
%{_mandir}/man5/collectd.conf.5%{ext_man}
%{_mandir}/man5/collectd-email.5%{ext_man}
%{_mandir}/man5/collectd-exec.5%{ext_man}
%{_mandir}/man5/collectd-perl.5%{ext_man}
%{_mandir}/man5/collectd-threshold.5%{ext_man}
%{_mandir}/man5/collectd-unixsock.5%{ext_man}
%{_mandir}/man5/types.db.5%{ext_man}
%{_mandir}/man1/collectd.1%{?ext_man}
%{_mandir}/man1/collectdctl.1%{?ext_man}
%{_mandir}/man1/collectdmon.1%{?ext_man}
%{_mandir}/man1/collectd-tg.1%{?ext_man}
%{_mandir}/man1/collectd-nagios.1%{?ext_man}
%{_mandir}/man1/cussh.1%{?ext_man}
%{_mandir}/man5/collectd.conf.5%{?ext_man}
%{_mandir}/man5/collectd-email.5%{?ext_man}
%{_mandir}/man5/collectd-exec.5%{?ext_man}
%{_mandir}/man5/collectd-perl.5%{?ext_man}
%{_mandir}/man5/collectd-threshold.5%{?ext_man}
%{_mandir}/man5/collectd-unixsock.5%{?ext_man}
%{_mandir}/man5/types.db.5%{?ext_man}
%doc %{perl_man3dir}/Collectd::Unixsock.%{perl_man3ext}%{ext_man}
%dir %{_localstatedir}/lib/collectd
%{_unitdir}/collectd.service
@ -632,10 +683,10 @@ ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
%files plugin-snmp
%doc _rpmdoc_/snmp/*
%{_bindir}/collectd-snmp-probe-host
%{_mandir}/man1/collectd-snmp-probe-host.1%{ext_man}
%{_libdir}/collectd/snmp.so
%{_libdir}/collectd/snmp.la
%{_mandir}/man5/collectd-snmp.5%{ext_man}
%{_mandir}/man1/collectd-snmp-probe-host.1%{?ext_man}
%{_libdir}/collectd/snmp*.so
%{_libdir}/collectd/snmp*.la
%{_mandir}/man5/collectd-snmp.5%{?ext_man}
%files plugin-lvm
%{_libdir}/collectd/lvm.so
@ -649,6 +700,10 @@ ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
%{_libdir}/collectd/mysql.so
%{_libdir}/collectd/mysql.la
%files plugin-pcie
%{_libdir}/collectd/pcie_errors.so
%{_libdir}/collectd/pcie_errors.la
%files plugin-postgresql
%{_libdir}/collectd/postgresql.so
%{_libdir}/collectd/postgresql.la
@ -657,14 +712,14 @@ ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
%files plugin-python3
%{_libdir}/collectd/python.so
%{_libdir}/collectd/python.la
%{_mandir}/man5/collectd-python.5%{ext_man}
%{_mandir}/man5/collectd-python.5%{?ext_man}
%files plugin-java
%doc _rpmdoc_/java/GenericJMX.conf
%{_libdir}/collectd/java.so
%{_libdir}/collectd/java.la
%{_datadir}/collectd/java
%{_mandir}/man5/collectd-java.5%{ext_man}
%{_mandir}/man5/collectd-java.5%{?ext_man}
%files plugin-virt
%{_libdir}/collectd/virt.so
@ -689,7 +744,7 @@ ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
%files plugin-lua
%{_libdir}/collectd/lua.so
%{_libdir}/collectd/lua.la
%{_mandir}/man5/collectd-lua.5%{ext_man}
%{_mandir}/man5/collectd-lua.5%{?ext_man}
%files plugin-gps
%{_libdir}/collectd/gps.so
@ -699,6 +754,26 @@ ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
%{_libdir}/collectd/openldap.so
%{_libdir}/collectd/openldap.la
%files plugin-mcelog
%{_libdir}/collectd/mcelog.so
%{_libdir}/collectd/mcelog.la
%files plugin-ovs
%{_libdir}/collectd/ovs_*.so
%{_libdir}/collectd/ovs_*.la
%files plugin-synproxy
%{_libdir}/collectd/synproxy.so
%{_libdir}/collectd/synproxy.la
%files plugin-write_stackdriver
%{_libdir}/collectd/write_stackdriver.so
%{_libdir}/collectd/write_stackdriver.la
%files plugin-write_syslog
%{_libdir}/collectd/write_syslog.so
%{_libdir}/collectd/write_syslog.la
%if 0%{?suse_version} >= 1330
%files plugin-nut
%{_libdir}/collectd/nut.so