forked from pool/collectd
Accepting request 311292 from server:monitoring
1 OBS-URL: https://build.opensuse.org/request/show/311292 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/collectd?expand=0&rev=20
This commit is contained in:
commit
ba4cdc7fcc
7
_service
Normal file
7
_service
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<services>
|
||||||
|
<service name="verify_file" mode="localonly">
|
||||||
|
<param name="file">collectd-5.4.2.tar.bz2</param>
|
||||||
|
<param name="verifier">sha256</param>
|
||||||
|
<param name="checksum">9789e900c138b5dbe907d3d744143f12b1e30022276cb1d8c65bbabaf0c4e393</param>
|
||||||
|
</service>
|
||||||
|
</services>
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:75452129f271cb0aad28e57f12a49070618bbb7b6a9d64cf869e8766fa2f66e0
|
|
||||||
size 1521907
|
|
3
collectd-5.4.2.tar.bz2
Normal file
3
collectd-5.4.2.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:9789e900c138b5dbe907d3d744143f12b1e30022276cb1d8c65bbabaf0c4e393
|
||||||
|
size 1633610
|
@ -8,3 +8,6 @@ addFilter('macro-in-comment')
|
|||||||
addFilter('no-manual-page-for-binary rccollectd')
|
addFilter('no-manual-page-for-binary rccollectd')
|
||||||
|
|
||||||
addFilter('obsolete-suse-version-check')
|
addFilter('obsolete-suse-version-check')
|
||||||
|
|
||||||
|
#There no fsf address in that file
|
||||||
|
addFilter('incorrect-fsf-address /usr/share/doc/packages/collectd/contrib/network-proxy.py')
|
||||||
|
103
collectd.changes
103
collectd.changes
@ -1,3 +1,106 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jun 5 06:49:33 UTC 2015 - mpluskal@suse.com
|
||||||
|
|
||||||
|
- Change _service to mode='localonly' active services are not
|
||||||
|
allowed in factory
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Mar 2 08:59:24 UTC 2015 - bruno@ioda-net.ch
|
||||||
|
|
||||||
|
- packaging :
|
||||||
|
deleted source collectd.service, use now upstream version in contrib
|
||||||
|
spec_cleaner .spec
|
||||||
|
|
||||||
|
- upstream update bugfix release 2015-02-26, Version 5.4.2
|
||||||
|
* Build system: Numerous fixes. Thanks to Bjørn Nordbø, Jim Radford,
|
||||||
|
KOMEDA Shinji, Lauri Tirkkonen, Manuel Luis Sanmartin Rozada, Marc
|
||||||
|
Fournier, Rainer Müller, Yoga Ramalingam and Yves Mettier. #326,
|
||||||
|
#373, #653, #828
|
||||||
|
* collectd: A use-after-free has been fixed in the "parse_value()"
|
||||||
|
function. Thanks to Matthias Urlichs.
|
||||||
|
* collectd: Fix carriage return sign in types_list Thanks to Marc
|
||||||
|
Fournier and @NsLib.
|
||||||
|
* collectd: Fix programming error in src/configfile.c. Thanks to
|
||||||
|
Wilfried Goesgens.
|
||||||
|
* collectd: An off-by-one error has been fixed in the
|
||||||
|
"strstripnewline()" function. Patch by Florian Forster.
|
||||||
|
* collectd: Use the complain mechanism to report filter chain write
|
||||||
|
failures. Thanks to Sebastian Harl.
|
||||||
|
* collectd: Spelling and grammar of error messages have been fixed.
|
||||||
|
Thanks to Katelyn Perry and Tim Laszlo.
|
||||||
|
* collectdctl: Fixed buffering issues which caused trouble on AIX and
|
||||||
|
Solaris. Thanks to Yoga Ramalingam.
|
||||||
|
* Documentation: Details and example about multi-instance filterchain
|
||||||
|
targets have been added. Thanks to Marc Fournier.
|
||||||
|
* Documentation: The "CollectStatistics" option of the rrdcached has
|
||||||
|
been documented. Thanks to Micha Krause. #907
|
||||||
|
* Documentation: The write_redis has been documented. Thanks to Marc
|
||||||
|
Fournier.
|
||||||
|
* Documentation: The "GraphiteSeparateInstances" and
|
||||||
|
"GraphiteAlwaysAppendDS" options of the amqp have been documented.
|
||||||
|
Thanks to Marc Fournier.
|
||||||
|
* Documentation: Documentation of the "AutoLoadPlugin" option has been
|
||||||
|
improved. Thanks to Florian Forster. #715
|
||||||
|
* aggregation: "utils_vl_lookup": A race when creating user objects
|
||||||
|
has been fixed. Thanks to Sebastian Harl. #535
|
||||||
|
* cpu: Temperature code for MacOSX has been removed.
|
||||||
|
Thanks to Florian Forster and Marc Fournier. #22
|
||||||
|
* cURL, cURL-JSON, cURL-XML and Write HTTP plugins: Call
|
||||||
|
"curl_global_init()" in the plugins' "init()" callback. Thanks to
|
||||||
|
Jeremy Katz.
|
||||||
|
* cURL and memcachec plugins: Fix calculation of gauge, average,
|
||||||
|
minimum and maximum. Previously, they were calculated from the start
|
||||||
|
of the daemon, which is not the documented behavior. Thanks to
|
||||||
|
Florian Forster. #663
|
||||||
|
* curl-json: A bug, which triggered when two URLs with a long common
|
||||||
|
prefix were configured, was fixed. Thanks to Marc Fournier. #582
|
||||||
|
* dbi: Compatibility with new versions of libdbi has been restored.
|
||||||
|
Thanks to Florian Forster. #950
|
||||||
|
* Exec, UnixSock plugins: Fix parsing of the "time" option of the
|
||||||
|
"PUTNOTIF" command. Thanks to Adrian Miron. #477
|
||||||
|
* ipmi: A conflict with the java over the "SIGUSR2" signal has been
|
||||||
|
fixed. Thanks to Vincent Bernat. #114
|
||||||
|
* java: Conversion from Java's time representation to collectd's
|
||||||
|
representation has been fixed. Thanks to Manuel Luis Sanmartín
|
||||||
|
Rozada.
|
||||||
|
* java: Make sure "cjni_thread_detach()" is called on all paths.
|
||||||
|
Thanks to Florian Forster.
|
||||||
|
* LogFile and SysLog plugins: Avoid total silence in case of a
|
||||||
|
misconfiguration. Thanks to Marc Fournier and Wilfried Goesgens.
|
||||||
|
* network: Support for recent versions of gcrypt has been added.
|
||||||
|
Thanks to Vincent Bernat. #632
|
||||||
|
* network: Robustness of the client connecting behavior has been
|
||||||
|
improved. Thanks to Florian Forster. #627
|
||||||
|
* python: Don't create empty "meta_data_t" objects. Thanks to Florian
|
||||||
|
Forster. #716
|
||||||
|
* python: Fix Py list length check in "cpy_build_meta()". Thanks to
|
||||||
|
Yoga Ramalingam.
|
||||||
|
* python: The "interval" member was fixed to export seconds as a
|
||||||
|
double. Thanks to Justin Burnham.
|
||||||
|
* RRDtool and RRDCacheD plugins: A memory leak when creating RRD files
|
||||||
|
has been fixed. Thanks to Yves Mettier. #661
|
||||||
|
* snmp: Fix a memory leak. Thanks to Marc Fournier and Pierre-Yves
|
||||||
|
Ritschard. #610, #804
|
||||||
|
* statsd: Support for samplerates in timer metrics was added. Thanks
|
||||||
|
to John Leach. #461
|
||||||
|
* swap: Fix behavior under OpenVZ by making "cached" optional. Thanks
|
||||||
|
to Florian Forster. #733
|
||||||
|
* threshold: Population of the "time" field in notifications has been
|
||||||
|
added. Thanks to Manuel Luis Sanmartín Rozada.
|
||||||
|
* libvirt: Only gather stats for running domains. Thanks to Ruben
|
||||||
|
Kerkhof.
|
||||||
|
* lvm: An issue with Volume Groups (VGs) without Logical Volumes (LVs)
|
||||||
|
has been fixed. Thanks to Jan Kundrát.
|
||||||
|
* write_graphite: Escape characters not supported by Graphite. Thanks
|
||||||
|
to Pierre-Yves Ritschard and Marc Fournier.
|
||||||
|
* write_http: Make callback names context-dependent. Thanks to Marc
|
||||||
|
Fournier. #821
|
||||||
|
* write_redis: A formatting bug, which resulted in totally unusable
|
||||||
|
numbers being transmitted to Redis, was fixed. Thanks to Marc
|
||||||
|
Fournier.
|
||||||
|
* write_riemann: Receive acknowledge message when using TCP. Thanks to
|
||||||
|
John-John Tedro.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Jul 20 19:37:18 UTC 2014 - p.drouand@gmail.com
|
Sun Jul 20 19:37:18 UTC 2014 - p.drouand@gmail.com
|
||||||
|
|
||||||
|
@ -1,14 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=System statistics collection daemon
|
|
||||||
After=local-fs.target network.target
|
|
||||||
Requires=local-fs.target network.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStart=/usr/sbin/collectd -C /etc/collectd.conf -f
|
|
||||||
Restart=always
|
|
||||||
RestartSec=10
|
|
||||||
StandardOutput=syslog
|
|
||||||
StandardError=syslog
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
408
collectd.spec
408
collectd.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package collectd
|
# spec file for package collectd
|
||||||
#
|
#
|
||||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
# Copyright (c) 2005-2013 Pascal Bleser <pascal.bleser@opensuse.org>
|
# Copyright (c) 2005-2013 Pascal Bleser <pascal.bleser@opensuse.org>
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
@ -17,30 +17,32 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define madwifi_plugin madwifi
|
||||||
|
%define pcap_version %({rpm -q --qf='%{VERSION}\n' libpcap-devel 2>/dev/null || echo 0.0.0} | gawk -F. '{print $1*10000+$2*100+$3}')
|
||||||
|
%define snmp 1
|
||||||
|
%define with_esmtp 1
|
||||||
|
%define ipvs_plugin ipvs
|
||||||
|
%define plugins apache apcups battery %{expand:%{bind_plugin}} cgroups curl %{expand:%{curl_json_plugin}} %{expand:%{curl_xml_plugin}} conntrack contextswitch cpu cpufreq csv df disk %{expand:%{dns_plugin}} email entropy exec filecount fscache hddtemp interface %{expand:%{ipvs_plugin}} irq load logfile match_empty_counter match_hashed match_regex match_timediff match_value mbmon %{expand:%{memcached_plugin}} memory multimeter netlink network nfs nginx ntpd olsrd openvpn perl ping protocols powerdns processes rrdtool sensors serial statsd swap syslog table tail target_notification target_replace target_scale target_set target_v5upgrade tcpconns teamspeak2 ted thermal threshold unixsock uptime users uuid vmem vserver wireless write_http %{expand:%{ascent_plugin}} %{expand:%{iptables_plugin}} %{expand:%{madwifi_plugin}} %{expand:%{rrdcached_plugin}} aggregation ethstat md numa tail_csv write_graphite write_riemann
|
||||||
%if 0%{?_with_xmms:1}0
|
%if 0%{?_with_xmms:1}0
|
||||||
%define xmms 1
|
%define xmms 1
|
||||||
%else
|
%else
|
||||||
%define xmms 0
|
%define xmms 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?_with_java:1} || 0%{?suse_version} > 1030 && ! 0%{?_without_java:1} && ! 0%{?sles_version}
|
%if 0%{?_with_java:1} || 0%{?suse_version} > 1030 && ! 0%{?_without_java:1} && ! 0%{?sles_version}
|
||||||
%define java 1
|
%define java 1
|
||||||
%else
|
%else
|
||||||
%define java 0
|
%define java 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?_with_virt:1} || 0%{?suse_version} > 1030
|
%if 0%{?_with_virt:1} || 0%{?suse_version} > 1030
|
||||||
%define virt 1
|
%define virt 1
|
||||||
%else
|
%else
|
||||||
%define virt 0
|
%define virt 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if ! 0%{?_without_dbi:1}
|
%if ! 0%{?_without_dbi:1}
|
||||||
%define dbi 1
|
%define dbi 1
|
||||||
%else
|
%else
|
||||||
%define dbi 0
|
%define dbi 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?suse_version} >= 1100 && ! 0%{?_without_memcachec:1}
|
%if 0%{?suse_version} >= 1100 && ! 0%{?_without_memcachec:1}
|
||||||
%define memcachec 1
|
%define memcachec 1
|
||||||
%define memcached_plugin memcached
|
%define memcached_plugin memcached
|
||||||
@ -48,13 +50,11 @@
|
|||||||
%define memcachec 0
|
%define memcachec 0
|
||||||
%define memcached_plugin %{nil}
|
%define memcached_plugin %{nil}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?suse_version} < 1000
|
%if 0%{?suse_version} < 1000
|
||||||
%define libnotify 0
|
%define libnotify 0
|
||||||
%else
|
%else
|
||||||
%define libnotify 1
|
%define libnotify 1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?suse_version} > 1020
|
%if 0%{?suse_version} > 1020
|
||||||
%define ipmi 1
|
%define ipmi 1
|
||||||
%define ascent 1
|
%define ascent 1
|
||||||
@ -68,27 +68,18 @@
|
|||||||
%define iptables 0
|
%define iptables 0
|
||||||
%define iptables_plugin %{nil}
|
%define iptables_plugin %{nil}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%define madwifi_plugin madwifi
|
|
||||||
|
|
||||||
%if 0%{?suse_version} >= 1130
|
%if 0%{?suse_version} >= 1130
|
||||||
%define rrdcached_plugin rrdcached
|
%define rrdcached_plugin rrdcached
|
||||||
%else
|
%else
|
||||||
%define rrdcached_plugin %{nil}
|
%define rrdcached_plugin %{nil}
|
||||||
%endif
|
%endif
|
||||||
|
%if %{pcap_version} >= 10000
|
||||||
%define pcap_version %({rpm -q --qf='%{VERSION}\n' libpcap-devel 2>/dev/null || echo 0.0.0} | %__awk -F. '{print $1*10000+$2*100+$3}')
|
|
||||||
%if %pcap_version >= 10000
|
|
||||||
%define dns 1
|
%define dns 1
|
||||||
%define dns_plugin dns
|
%define dns_plugin dns
|
||||||
%else
|
%else
|
||||||
%define dns 0
|
%define dns 0
|
||||||
%define dns_plugin %{nil}
|
%define dns_plugin %{nil}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%define snmp 1
|
|
||||||
%define with_esmtp 1
|
|
||||||
|
|
||||||
%if 0%{?suse_version} >= 1000
|
%if 0%{?suse_version} >= 1000
|
||||||
%define yajl 1
|
%define yajl 1
|
||||||
%define curl_json_plugin curl_json
|
%define curl_json_plugin curl_json
|
||||||
@ -112,17 +103,23 @@
|
|||||||
%define protobuf 0
|
%define protobuf 0
|
||||||
%define pinba_plugin %{nil}
|
%define pinba_plugin %{nil}
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{?suse_version} >= 1210
|
||||||
%define ipvs_plugin ipvs
|
%define has_systemd 1
|
||||||
|
BuildRequires: systemd
|
||||||
%define plugins apache apcups battery %{expand:%bind_plugin} cgroups curl %{expand:%curl_json_plugin} %{expand:%curl_xml_plugin} conntrack contextswitch cpu cpufreq csv df disk %{expand:%dns_plugin} email entropy exec filecount fscache hddtemp interface %{expand:%ipvs_plugin} irq load logfile match_empty_counter match_hashed match_regex match_timediff match_value mbmon %{expand:%memcached_plugin} memory multimeter netlink network nfs nginx ntpd olsrd openvpn perl ping protocols powerdns processes rrdtool sensors serial statsd swap syslog table tail target_notification target_replace target_scale target_set target_v5upgrade tcpconns teamspeak2 ted thermal threshold unixsock uptime users uuid vmem vserver wireless write_http %{expand:%ascent_plugin} %{expand:%iptables_plugin} %{expand:%madwifi_plugin} %{expand:%rrdcached_plugin} aggregation ethstat md numa tail_csv write_graphite write_riemann
|
%{perl_requires}
|
||||||
|
%{?libperl_requires}
|
||||||
|
%{?systemd_requires}
|
||||||
|
%else
|
||||||
|
# FIXME: use proper Requires(pre/post/preun/...)
|
||||||
|
PreReq: %insserv_prereq
|
||||||
|
%endif
|
||||||
Name: collectd
|
Name: collectd
|
||||||
Version: 5.4.1
|
Version: 5.4.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Statistics Collection Daemon for filling RRD Files
|
Summary: Statistics Collection Daemon for filling RRD Files
|
||||||
License: GPL-2.0
|
License: GPL-2.0
|
||||||
Group: System/Monitoring
|
Group: System/Monitoring
|
||||||
|
Url: http://collectd.org/
|
||||||
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
|
||||||
Source2: collectd.apache2.conf
|
Source2: collectd.apache2.conf
|
||||||
@ -131,7 +128,6 @@ Source3: collectd-js.apache2.conf
|
|||||||
# see https://bugzilla.novell.com/show_bug.cgi?id=388026
|
# see https://bugzilla.novell.com/show_bug.cgi?id=388026
|
||||||
Source20: collectd-pthread.pc
|
Source20: collectd-pthread.pc
|
||||||
Source99: collectd-rpmlintrc
|
Source99: collectd-rpmlintrc
|
||||||
Source100: collectd.service
|
|
||||||
Patch4: collectd-lib64.patch
|
Patch4: collectd-lib64.patch
|
||||||
Patch7: collectd-fix-config.patch
|
Patch7: collectd-fix-config.patch
|
||||||
Patch9: collectd-version.patch
|
Patch9: collectd-version.patch
|
||||||
@ -144,34 +140,56 @@ Patch19: collectd-fix_spamassassin_doc.patch
|
|||||||
Patch20: collectd-split_README.patch
|
Patch20: collectd-split_README.patch
|
||||||
Patch21: collectd-fix_collectd_config_path_in_snmp_probe.patch
|
Patch21: collectd-fix_collectd_config_path_in_snmp_probe.patch
|
||||||
Patch23: collectd-javac_target.patch
|
Patch23: collectd-javac_target.patch
|
||||||
|
|
||||||
# Should not be used - since Mon Apr 23 10:56:57 UTC 2012
|
|
||||||
# except for 11.4
|
|
||||||
%if 0%{?suse_version} <= 1140 && !0%{sles_version}
|
|
||||||
Patch24: collectd-pkgconfig_libnotify_add_gtk.patch
|
|
||||||
%endif
|
|
||||||
|
|
||||||
Patch25: collectd-df-remove-duplicates.patch
|
Patch25: collectd-df-remove-duplicates.patch
|
||||||
Url: http://collectd.org/
|
# for /etc/apache2/... ownership (rpmlint):
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRequires: apache2
|
||||||
Requires: rrdtool
|
BuildRequires: autoconf
|
||||||
Requires: sensors
|
BuildRequires: automake
|
||||||
BuildRequires: bind-devel
|
BuildRequires: bind-devel
|
||||||
BuildRequires: bison
|
BuildRequires: bison
|
||||||
BuildRequires: flex
|
BuildRequires: flex
|
||||||
|
BuildRequires: freetype2-devel
|
||||||
|
BuildRequires: gcc
|
||||||
BuildRequires: gettext
|
BuildRequires: gettext
|
||||||
BuildRequires: gettext-devel
|
BuildRequires: gettext-devel
|
||||||
BuildRequires: intltool
|
BuildRequires: intltool
|
||||||
|
# for ipvs and madwifi:
|
||||||
|
BuildRequires: kernel-source
|
||||||
|
BuildRequires: libart_lgpl-devel
|
||||||
BuildRequires: libevent-devel
|
BuildRequires: libevent-devel
|
||||||
BuildRequires: libnetlink-devel
|
|
||||||
#BuildRequires: libmodbus-devel
|
#BuildRequires: libmodbus-devel
|
||||||
BuildRequires: libmnl-devel
|
BuildRequires: libmnl-devel
|
||||||
|
BuildRequires: libnetlink-devel
|
||||||
|
BuildRequires: liboping-devel
|
||||||
|
BuildRequires: libpcap
|
||||||
BuildRequires: libpng-devel
|
BuildRequires: libpng-devel
|
||||||
BuildRequires: libstatgrab-devel
|
BuildRequires: libstatgrab-devel
|
||||||
|
BuildRequires: libtool
|
||||||
|
BuildRequires: libxml2-devel
|
||||||
|
BuildRequires: linux-kernel-headers
|
||||||
|
BuildRequires: make
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
|
BuildRequires: pkgconfig
|
||||||
|
BuildRequires: python-devel
|
||||||
BuildRequires: rrdtool
|
BuildRequires: rrdtool
|
||||||
BuildRequires: sensors
|
BuildRequires: sensors
|
||||||
|
BuildRequires: xfsprogs-devel
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
|
Requires: rrdtool
|
||||||
|
Requires: sensors
|
||||||
|
# FIXME: use proper Requires(pre/post/preun/...)
|
||||||
|
PreReq: %fillup_prereq
|
||||||
|
# in case we'd like to split it later:
|
||||||
|
Provides: collectd-perl = %{version}-%{release}
|
||||||
|
# play nice with collectd-beta:
|
||||||
|
Obsoletes: collectd-beta < %{version}
|
||||||
|
Provides: collectd-beta = %{version}-%{release}
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
# Should not be used - since Mon Apr 23 10:56:57 UTC 2012
|
||||||
|
# except for 11.4
|
||||||
|
%if 0%{?suse_version} <= 1140 && !0%{?sles_version}
|
||||||
|
Patch24: collectd-pkgconfig_libnotify_add_gtk.patch
|
||||||
|
%endif
|
||||||
%if 0%{?suse_version} > 1020
|
%if 0%{?suse_version} > 1020
|
||||||
BuildRequires: libdb-4_5-devel
|
BuildRequires: libdb-4_5-devel
|
||||||
%else
|
%else
|
||||||
@ -182,103 +200,70 @@ BuildRequires: libgcrypt-devel
|
|||||||
%else
|
%else
|
||||||
BuildRequires: libgcrypt
|
BuildRequires: libgcrypt
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: autoconf
|
%if %{libnotify}
|
||||||
BuildRequires: automake
|
|
||||||
BuildRequires: freetype2-devel
|
|
||||||
BuildRequires: gcc
|
|
||||||
BuildRequires: libart_lgpl-devel
|
|
||||||
BuildRequires: liboping-devel
|
|
||||||
BuildRequires: libtool
|
|
||||||
BuildRequires: make
|
|
||||||
BuildRequires: pkgconfig
|
|
||||||
BuildRequires: python-devel
|
|
||||||
%if %libnotify
|
|
||||||
BuildRequires: gtk2-devel
|
BuildRequires: gtk2-devel
|
||||||
BuildRequires: libnotify-devel
|
BuildRequires: libnotify-devel
|
||||||
%endif
|
%endif
|
||||||
%if %java
|
%if %java
|
||||||
BuildRequires: java-devel
|
BuildRequires: java-devel
|
||||||
%endif #java
|
%endif #java
|
||||||
# for /etc/apache2/... ownership (rpmlint):
|
%if %{with_esmtp}
|
||||||
BuildRequires: apache2
|
|
||||||
%if %with_esmtp
|
|
||||||
BuildRequires: libesmtp-devel
|
BuildRequires: libesmtp-devel
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: xfsprogs-devel
|
%if %{with_mysql}
|
||||||
%if %with_mysql
|
|
||||||
BuildRequires: mysql-devel >= 4.1.0
|
BuildRequires: mysql-devel >= 4.1.0
|
||||||
%endif
|
%endif
|
||||||
%if %with_pgsql
|
%if %{with_pgsql}
|
||||||
BuildRequires: postgresql-devel
|
BuildRequires: postgresql-devel
|
||||||
%endif
|
%endif
|
||||||
%if %yajl
|
%if %{yajl}
|
||||||
BuildRequires: libyajl-devel
|
BuildRequires: libyajl-devel
|
||||||
%endif
|
%endif
|
||||||
%if %suse_version >= 1030
|
%if 0%{?suse_version} >= 1030
|
||||||
BuildRequires: rrdtool-devel
|
BuildRequires: rrdtool-devel
|
||||||
%endif
|
%endif
|
||||||
%if %suse_version >= 1030
|
%if 0%{?suse_version} >= 1030
|
||||||
BuildRequires: libcurl-devel
|
BuildRequires: libcurl-devel
|
||||||
%else
|
%else
|
||||||
BuildRequires: curl-devel
|
BuildRequires: curl-devel
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: libxml2-devel
|
%if %{ipmi}
|
||||||
%if %ipmi
|
|
||||||
# for ipmi:
|
# for ipmi:
|
||||||
BuildRequires: OpenIPMI-devel
|
BuildRequires: OpenIPMI-devel
|
||||||
BuildRequires: gdbm-devel
|
BuildRequires: gdbm-devel
|
||||||
%endif #ipmi
|
%endif #ipmi
|
||||||
%if %snmp
|
%if %{snmp}
|
||||||
# for snmp:
|
# for snmp:
|
||||||
BuildRequires: net-snmp-devel
|
BuildRequires: net-snmp-devel
|
||||||
%endif #snmp
|
%endif #snmp
|
||||||
# for ipvs and madwifi:
|
%if 0%{?suse_version} >= 1030
|
||||||
BuildRequires: kernel-source
|
|
||||||
BuildRequires: linux-kernel-headers
|
|
||||||
%if %suse_version >= 1030
|
|
||||||
BuildRequires: libpcap-devel
|
BuildRequires: libpcap-devel
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: libpcap
|
%if %{xmms}
|
||||||
%if %xmms
|
|
||||||
# for xmms:
|
# for xmms:
|
||||||
BuildRequires: xmms-devel
|
BuildRequires: xmms-devel
|
||||||
%endif
|
%endif
|
||||||
%if %virt
|
%if %{virt}
|
||||||
# for libvirt:
|
# for libvirt:
|
||||||
BuildRequires: libvirt-devel
|
BuildRequires: libvirt-devel
|
||||||
%endif
|
%endif
|
||||||
%if %dbi
|
%if %{dbi}
|
||||||
BuildRequires: libdbi-devel
|
BuildRequires: libdbi-devel
|
||||||
%endif
|
%endif
|
||||||
%if %memcachec
|
%if %{memcachec}
|
||||||
BuildRequires: libmemcached-devel
|
BuildRequires: libmemcached-devel
|
||||||
%endif
|
%endif
|
||||||
%if %protobuf
|
%if %{protobuf}
|
||||||
BuildRequires: protobuf-c
|
BuildRequires: protobuf-c
|
||||||
%endif
|
%endif
|
||||||
%if %suse_version < 1220
|
%if 0%{?suse_version} < 1220
|
||||||
%if %suse_version > 1020
|
%if 0%{?suse_version} > 1020
|
||||||
BuildRequires: iptables-devel
|
BuildRequires: iptables-devel
|
||||||
%endif
|
%endif
|
||||||
%else
|
%else
|
||||||
BuildRequires: libiptc-devel
|
BuildRequires: libiptc-devel
|
||||||
BuildRequires: libxtables-devel
|
BuildRequires: libxtables-devel
|
||||||
%endif
|
%endif
|
||||||
%if %suse_version >= 1210
|
|
||||||
%{perl_requires}
|
|
||||||
%{?libperl_requires}
|
|
||||||
BuildRequires: systemd
|
|
||||||
%{?systemd_requires}
|
|
||||||
%define has_systemd 1
|
|
||||||
%else
|
|
||||||
PreReq: %insserv_prereq
|
|
||||||
%endif
|
|
||||||
# in case we'd like to split it later:
|
|
||||||
Provides: collectd-perl = %{version}-%{release}
|
|
||||||
PreReq: %fillup_prereq
|
|
||||||
# play nice with collectd-beta:
|
|
||||||
Obsoletes: collectd-beta < %{version}
|
|
||||||
Provides: collectd-beta = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
collectd is a small daemon written in C for performance. It reads various
|
collectd is a small daemon written in C for performance. It reads various
|
||||||
@ -293,7 +278,6 @@ Group: System/Monitoring
|
|||||||
Requires: apache2
|
Requires: apache2
|
||||||
Requires: perl
|
Requires: perl
|
||||||
Requires: rrdtool
|
Requires: rrdtool
|
||||||
Requires: rrdtool
|
|
||||||
Requires: perl(CGI)
|
Requires: perl(CGI)
|
||||||
Requires: perl(Data::Dumper)
|
Requires: perl(Data::Dumper)
|
||||||
Requires: perl(HTML::Entities)
|
Requires: perl(HTML::Entities)
|
||||||
@ -302,7 +286,7 @@ Requires: perl(URI::Escape)
|
|||||||
%description web
|
%description web
|
||||||
Web frontend CGI for watching %{name} statistics from a browser.
|
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 %{_sysconfdir}/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
|
||||||
@ -321,22 +305,21 @@ Requires: perl(RRDs)
|
|||||||
Web/JavaScript frontend CGI for watching %{name} statistics from
|
Web/JavaScript frontend CGI for watching %{name} statistics from
|
||||||
a browser.
|
a browser.
|
||||||
|
|
||||||
Please look at /etc/apache2/conf.d/%{name}-js.conf on how to
|
Please look at %{_sysconfdir}/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}
|
||||||
|
|
||||||
%description plugin-notify-desktop
|
%description plugin-notify-desktop
|
||||||
Desktop Notification Support for %{name}
|
Desktop Notification Support for %{name} allow you to receive
|
||||||
|
message delivered on your desktop.
|
||||||
%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
|
||||||
@ -347,8 +330,7 @@ Optional %{name} plugin to monitor sensors using the OpenIPMI
|
|||||||
library, for IPMI enabled systems.
|
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
|
||||||
@ -361,8 +343,7 @@ Requires: perl(Socket6)
|
|||||||
Optional %{name} plugin to monitor devices using SNMP.
|
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
|
||||||
@ -372,8 +353,7 @@ Requires: %{name} = %{version}-%{release}
|
|||||||
Optional %{name} plugin to monitor MySQL server instances.
|
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
|
||||||
@ -393,7 +373,6 @@ 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
|
||||||
@ -404,8 +383,7 @@ Optional %{name} Java API in order to write %{name} plugins in
|
|||||||
Java.
|
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
|
||||||
@ -416,8 +394,7 @@ Optional %{name} plugin to gather statistics from virtual
|
|||||||
machines using libvirt.
|
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
|
||||||
@ -428,8 +405,7 @@ Optional %{name} plugin to gather sampling frequencies and file
|
|||||||
bitrates of files played with XMMS.
|
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
|
||||||
@ -440,8 +416,7 @@ Optional %{name} plugin to store sampling results into
|
|||||||
various databases as supported by libdbi.
|
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
|
||||||
@ -451,8 +426,7 @@ Requires: %{name} = %{version}-%{release}
|
|||||||
Optional %{name} plugin to sample memcached statistics.
|
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
|
||||||
@ -467,37 +441,37 @@ profiling extension for PHP.
|
|||||||
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}
|
||||||
%if %ipmi
|
Requires: %{name}-plugin-python = %{version}-%{release}
|
||||||
|
Requires: %{name}-web = %{version}-%{release}
|
||||||
|
Requires: %{name}-web-js = %{version}-%{release}
|
||||||
|
%if %{ipmi}
|
||||||
Requires: %{name}-plugin-ipmi = %{version}-%{release}
|
Requires: %{name}-plugin-ipmi = %{version}-%{release}
|
||||||
%endif #ipmi
|
%endif #ipmi
|
||||||
%if %snmp
|
%if %{snmp}
|
||||||
Requires: %{name}-plugin-snmp = %{version}-%{release}
|
Requires: %{name}-plugin-snmp = %{version}-%{release}
|
||||||
%endif #snmp
|
%endif #snmp
|
||||||
%if %with_mysql
|
%if %{with_mysql}
|
||||||
Requires: %{name}-plugin-mysql = %{version}-%{release}
|
Requires: %{name}-plugin-mysql = %{version}-%{release}
|
||||||
%endif #with_mysql
|
%endif #with_mysql
|
||||||
%if %with_pgsql
|
%if %{with_pgsql}
|
||||||
Requires: %{name}-plugin-postgresql = %{version}-%{release}
|
Requires: %{name}-plugin-postgresql = %{version}-%{release}
|
||||||
%endif
|
%endif
|
||||||
%if %java
|
%if %java
|
||||||
Requires: %{name}-plugin-java = %{version}-%{release}
|
Requires: %{name}-plugin-java = %{version}-%{release}
|
||||||
%endif #java
|
%endif #java
|
||||||
%if %virt
|
%if %{virt}
|
||||||
Requires: %{name}-plugin-virt = %{version}-%{release}
|
Requires: %{name}-plugin-virt = %{version}-%{release}
|
||||||
%endif #virt
|
%endif #virt
|
||||||
Requires: %{name}-web = %{version}-%{release}
|
%if %{libnotify}
|
||||||
Requires: %{name}-web-js = %{version}-%{release}
|
|
||||||
%if %libnotify
|
|
||||||
Requires: %{name}-plugin-notify-desktop = %{version}-%{release}
|
Requires: %{name}-plugin-notify-desktop = %{version}-%{release}
|
||||||
%endif #libnotify
|
%endif #libnotify
|
||||||
Requires: %{name}-plugin-python = %{version}-%{release}
|
%if %{dbi}
|
||||||
%if %dbi
|
|
||||||
Requires: %{name}-plugin-dbi = %{version}-%{release}
|
Requires: %{name}-plugin-dbi = %{version}-%{release}
|
||||||
%endif #dbi
|
%endif #dbi
|
||||||
%if %memcachec
|
%if %{memcachec}
|
||||||
Requires: %{name}-plugin-memcachec = %{version}-%{release}
|
Requires: %{name}-plugin-memcachec = %{version}-%{release}
|
||||||
%endif #memcachec
|
%endif #memcachec
|
||||||
%if %protobuf
|
%if %{protobuf}
|
||||||
Requires: %{name}-plugin-pinba = %{version}-%{release}
|
Requires: %{name}-plugin-pinba = %{version}-%{release}
|
||||||
%endif #protobuf
|
%endif #protobuf
|
||||||
|
|
||||||
@ -550,28 +524,28 @@ to write %{name} unixsock clients.
|
|||||||
%patch20
|
%patch20
|
||||||
%patch21
|
%patch21
|
||||||
%patch23
|
%patch23
|
||||||
%if 0%{?suse_version} <= 1140 && !0%{sles_version}
|
%if 0%{?suse_version} <= 1140 && !0%{?sles_version}
|
||||||
%patch24 -p1
|
%patch24 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch25
|
%patch25
|
||||||
|
|
||||||
%__sed -i 's|@@VERSION@@|%{version}|g' configure.ac
|
sed -i 's|@@VERSION@@|%{version}|g' configure.ac
|
||||||
|
|
||||||
# workaround for missing pthread.pc on openSUSE, required by OpenIPMIpthread.pc
|
# workaround for missing pthread.pc on openSUSE, required by OpenIPMIpthread.pc
|
||||||
%__install -D -m0644 "%{SOURCE20}" pkgconfig/pthread.pc
|
install -D -m0644 "%{SOURCE20}" pkgconfig/pthread.pc
|
||||||
%__sed 's|@@LIB@@|%{_lib}|g' pkgconfig/pthread.pc
|
sed 's|@@LIB@@|%{_lib}|g' pkgconfig/pthread.pc
|
||||||
|
|
||||||
%__perl -p -i -e 's|(-L\$withval/lib)\b|${1}64|g' configure.ac configure
|
perl -p -i -e 's|(-L\$withval/lib)\b|${1}64|g' configure.ac configure
|
||||||
|
|
||||||
# unneeded files:
|
# unneeded files:
|
||||||
%__rm -fr \
|
rm -fr \
|
||||||
contrib/fedora \
|
contrib/fedora \
|
||||||
contrib/solaris-smf \
|
contrib/solaris-smf \
|
||||||
contrib/redhat \
|
contrib/redhat \
|
||||||
contrib/sles*
|
contrib/sles*
|
||||||
|
|
||||||
# remove -Werror everywhere
|
# remove -Werror everywhere
|
||||||
find . -name 'configure*' -o -name 'Makefile*' -exec %__sed -i 's|-Werror||g' {} \;
|
find . -name 'configure*' -o -name 'Makefile*' -exec sed -i 's|-Werror||g' {} \;
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export SUSE_ASNEEDED=0
|
export SUSE_ASNEEDED=0
|
||||||
@ -579,7 +553,7 @@ export SUSE_ASNEEDED=0
|
|||||||
autoreconf -fiv
|
autoreconf -fiv
|
||||||
|
|
||||||
# set JAVA_HOME properly
|
# set JAVA_HOME properly
|
||||||
[ -n "$JAVA_HOME" -a -d "$JAVA_HOME" ] || export JAVA_HOME="%{_usr}/%{_lib}/jvm/java"
|
[ -n "$JAVA_HOME" -a -d "$JAVA_HOME" ] || export JAVA_HOME="%{_libdir}/jvm/java"
|
||||||
[ -n "$JDK_HOME" -a -d "$JDK_HOME" ] || export JDK_HOME="$JAVA_HOME"
|
[ -n "$JDK_HOME" -a -d "$JDK_HOME" ] || export JDK_HOME="$JAVA_HOME"
|
||||||
[ -n "$JRE_HOME" -a -d "$JRE_HOME" ] || export JRE_HOME="$JAVA_HOME"
|
[ -n "$JRE_HOME" -a -d "$JRE_HOME" ] || export JRE_HOME="$JAVA_HOME"
|
||||||
export PATH="$JDK_HOME/bin:$JRE_HOME/bin:$JAVA_HOME/bin:$PATH"
|
export PATH="$JDK_HOME/bin:$JRE_HOME/bin:$JAVA_HOME/bin:$PATH"
|
||||||
@ -588,12 +562,12 @@ export CFLAGS="%{optflags} -fno-strict-aliasing"
|
|||||||
export CXXFLAGS="$CFLAGS"
|
export CXXFLAGS="$CFLAGS"
|
||||||
# workaround for missing pthread.pc on openSUSE, required by OpenIPMIpthread.pc
|
# workaround for missing pthread.pc on openSUSE, required by OpenIPMIpthread.pc
|
||||||
export PKG_CONFIG_PATH="$PWD/pkgconfig:$PKG_CONFIG_PATH"
|
export PKG_CONFIG_PATH="$PWD/pkgconfig:$PKG_CONFIG_PATH"
|
||||||
export KERNEL_DIR=/usr/src/linux
|
export KERNEL_DIR=%{_prefix}/src/linux
|
||||||
%configure \
|
%configure \
|
||||||
--with-libstatgrab \
|
--with-libstatgrab \
|
||||||
--with-rrdtool \
|
--with-rrdtool \
|
||||||
--disable-static \
|
--disable-static \
|
||||||
%if %dns
|
%if %{dns}
|
||||||
--enable-dns \
|
--enable-dns \
|
||||||
%else
|
%else
|
||||||
--disable-dns \
|
--disable-dns \
|
||||||
@ -602,18 +576,18 @@ export KERNEL_DIR=/usr/src/linux
|
|||||||
--enable-netlink \
|
--enable-netlink \
|
||||||
--enable-python \
|
--enable-python \
|
||||||
--with-librrd \
|
--with-librrd \
|
||||||
%if %iptables
|
%if %{iptables}
|
||||||
--enable-iptables \
|
--enable-iptables \
|
||||||
%else
|
%else
|
||||||
--disable-iptables \
|
--disable-iptables \
|
||||||
--without-iptc \
|
--without-iptc \
|
||||||
%endif #iptables
|
%endif #iptables
|
||||||
%if %ascent
|
%if %{ascent}
|
||||||
--enable-ascent \
|
--enable-ascent \
|
||||||
%else
|
%else
|
||||||
--disable-ascent \
|
--disable-ascent \
|
||||||
%endif #ascent
|
%endif #ascent
|
||||||
%if %ipmi
|
%if %{ipmi}
|
||||||
--enable-ipmi \
|
--enable-ipmi \
|
||||||
%else
|
%else
|
||||||
--disable-ipmi \
|
--disable-ipmi \
|
||||||
@ -624,17 +598,17 @@ export KERNEL_DIR=/usr/src/linux
|
|||||||
%else
|
%else
|
||||||
--disable-java \
|
--disable-java \
|
||||||
%endif #java
|
%endif #java
|
||||||
%if %dbi
|
%if %{dbi}
|
||||||
--enable-dbi \
|
--enable-dbi \
|
||||||
%else
|
%else
|
||||||
--disable-dbi \
|
--disable-dbi \
|
||||||
%endif #dbi
|
%endif #dbi
|
||||||
%if %memcachec
|
%if %{memcachec}
|
||||||
--enable-memcached \
|
--enable-memcached \
|
||||||
%else
|
%else
|
||||||
--disable-memcached \
|
--disable-memcached \
|
||||||
%endif #memcachec
|
%endif #memcachec
|
||||||
%if %suse_version < 930
|
%if 0%{?suse_version} < 930
|
||||||
--disable-mysql \
|
--disable-mysql \
|
||||||
%endif
|
%endif
|
||||||
%ifos linux
|
%ifos linux
|
||||||
@ -643,7 +617,7 @@ export KERNEL_DIR=/usr/src/linux
|
|||||||
--disable-serial
|
--disable-serial
|
||||||
%endif #os linux
|
%endif #os linux
|
||||||
|
|
||||||
%__make %{?_smp_flags} \
|
make %{?_smp_flags} \
|
||||||
%if 0%{?suse_version} < 1120
|
%if 0%{?suse_version} < 1120
|
||||||
JAVAC_TARGET="-source 1.5 -target 1.5"
|
JAVAC_TARGET="-source 1.5 -target 1.5"
|
||||||
%else
|
%else
|
||||||
@ -651,103 +625,103 @@ export KERNEL_DIR=/usr/src/linux
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%makeinstall
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
||||||
|
|
||||||
# delete .la files
|
# delete .la files
|
||||||
%__rm -f "%{buildroot}%{_libdir}"/*.{a,la}
|
rm -f "%{buildroot}%{_libdir}"/*.{a,la}
|
||||||
%__rm -f "%{buildroot}%{_libdir}/collectd"/*.a
|
rm -f "%{buildroot}%{_libdir}/collectd"/*.a
|
||||||
|
|
||||||
%__sed -i '/^dependency_libs=/ s|-L'"${RPM_BUILD_DIR}/%{name}-%{version}"'/src||g' "%{buildroot}%{_libdir}/collectd/python.la"
|
sed -i '/^dependency_libs=/ s|-L'"${RPM_BUILD_DIR}/%{name}-%{version}"'/src||g' "%{buildroot}%{_libdir}/collectd/python.la"
|
||||||
|
|
||||||
# delete if it exists (not packaged any more on openSUSE):
|
# delete if it exists (not packaged any more on openSUSE):
|
||||||
%__rm -rf "%{buildroot}/var/adm/perl-modules/%{name}"
|
rm -rf "%{buildroot}%{_localstatedir}/adm/perl-modules/%{name}"
|
||||||
|
|
||||||
%if !%java
|
%if !%java
|
||||||
%__rm -f "%{buildroot}%{_mandir}/man5"/collectd-java.5*
|
rm -f "%{buildroot}%{_mandir}/man5"/collectd-java.5*
|
||||||
%__rm -rf "%{buildroot}%{_datadir}/collectd/java"
|
rm -rf "%{buildroot}%{_datadir}/collectd/java"
|
||||||
%endif #!java
|
%endif #!java
|
||||||
%__mkdir_p _rpmdoc_/java
|
mkdir -p _rpmdoc_/java
|
||||||
%__mv contrib/GenericJMX.conf _rpmdoc_/java/
|
mv contrib/GenericJMX.conf _rpmdoc_/java/
|
||||||
|
|
||||||
# fix permissions:
|
# fix permissions:
|
||||||
%__chmod 0755 "%{buildroot}%{_libdir}/collectd"/*.so
|
chmod 0755 "%{buildroot}%{_libdir}/collectd"/*.so
|
||||||
%__chmod 0644 "%{buildroot}%{_libdir}/collectd"/*.la
|
chmod 0644 "%{buildroot}%{_libdir}/collectd"/*.la
|
||||||
|
|
||||||
# create /var/lib/collectd to add it to the %files section:
|
# create /var/lib/collectd to add it to the %files section:
|
||||||
%__install -d -m 0755 "%{buildroot}%{_localstatedir}/lib/collectd"
|
install -d -m 0755 "%{buildroot}%{_localstatedir}/lib/collectd"
|
||||||
|
|
||||||
# Apache2 configuration for the CGI frontend:
|
# Apache2 configuration for the CGI frontend:
|
||||||
%__install -D -m 0644 "%{SOURCE2}" "%{buildroot}/etc/apache2/conf.d/%{name}.conf"
|
install -D -m 0644 "%{SOURCE2}" "%{buildroot}%{_sysconfdir}/apache2/conf.d/%{name}.conf"
|
||||||
%__install -D -m 0755 contrib/collection.cgi "%{buildroot}/srv/www/collectd/collection.cgi"
|
install -D -m 0755 contrib/collection.cgi "%{buildroot}/srv/www/collectd/collection.cgi"
|
||||||
%__install -D -m 0644 contrib/collection.conf "%{buildroot}%{_sysconfdir}/collectd/collection.conf"
|
install -D -m 0644 contrib/collection.conf "%{buildroot}%{_sysconfdir}/collectd/collection.conf"
|
||||||
%__sed -i 's|@@LIBDIR@@|%{_libdir}|g' "%{buildroot}%{_sysconfdir}/collectd/collection.conf"
|
sed -i 's|@@LIBDIR@@|%{_libdir}|g' "%{buildroot}%{_sysconfdir}/collectd/collection.conf"
|
||||||
# remove it from contrib, to avoid having it end up in the main package as well:
|
# remove it from contrib, to avoid having it end up in the main package as well:
|
||||||
%__rm contrib/collection.cgi contrib/collection.conf
|
rm contrib/collection.cgi contrib/collection.conf
|
||||||
|
|
||||||
%perl_process_packlist
|
%perl_process_packlist
|
||||||
%__rm -rf "%{buildroot}/var/adm/perl-modules"/*
|
rm -rf "%{buildroot}%{_localstatedir}/adm/perl-modules"/*
|
||||||
|
|
||||||
# web-js CGI frontend (_must_ be installed _after_ perl_process_packlist)
|
# web-js CGI frontend (_must_ be installed _after_ perl_process_packlist)
|
||||||
%__install -d "%{buildroot}/srv/www/collectd-js"
|
install -d "%{buildroot}/srv/www/collectd-js"
|
||||||
%__mkdir_p _rpmdoc_/web-js
|
mkdir -p _rpmdoc_/web-js
|
||||||
%__mv contrib/collection3/README _rpmdoc_/web-js/README
|
mv contrib/collection3/README _rpmdoc_/web-js/README
|
||||||
find contrib/collection3/ -name .htaccess -exec %__rm {} \;
|
find contrib/collection3/ -name .htaccess -exec rm {} \;
|
||||||
%__cp -a \
|
cp -a \
|
||||||
contrib/collection3/bin/* \
|
contrib/collection3/bin/* \
|
||||||
contrib/collection3/share/* \
|
contrib/collection3/share/* \
|
||||||
"%{buildroot}/srv/www/collectd-js/"
|
"%{buildroot}/srv/www/collectd-js/"
|
||||||
%__mkdir_p "%{buildroot}%{_usr}/lib/collectd-js"
|
mkdir -p "%{buildroot}%{_libexecdir}/collectd-js"
|
||||||
%__mv contrib/collection3/lib/* "%{buildroot}%{_usr}/lib/collectd-js/"
|
mv contrib/collection3/lib/* "%{buildroot}%{_libexecdir}/collectd-js/"
|
||||||
|
|
||||||
%__install -D -m 0644 contrib/collection3/etc/collection.conf \
|
install -D -m 0644 contrib/collection3%{_sysconfdir}/collection.conf \
|
||||||
"%{buildroot}%{_sysconfdir}/collectd/collection-js.conf"
|
"%{buildroot}%{_sysconfdir}/collectd/collection-js.conf"
|
||||||
%__rm -fr contrib/collection3/etc
|
rm -fr contrib/collection3/etc
|
||||||
%__install -D -m 0644 "%{SOURCE3}" "%{buildroot}/etc/apache2/conf.d/%{name}-js.conf"
|
install -D -m 0644 "%{SOURCE3}" "%{buildroot}%{_sysconfdir}/apache2/conf.d/%{name}-js.conf"
|
||||||
|
|
||||||
# spamassassin (_must_ be installed _after_ perl_process_packlist)
|
# spamassassin (_must_ be installed _after_ perl_process_packlist)
|
||||||
%__install -D -m0644 contrib/SpamAssassin/example.cf \
|
install -D -m0644 contrib/SpamAssassin/example.cf \
|
||||||
"%{buildroot}%{_datadir}/spamassassin/99_%{name}.cf"
|
"%{buildroot}%{_datadir}/spamassassin/99_%{name}.cf"
|
||||||
%__install -D -m0644 contrib/SpamAssassin/Collectd.pm \
|
install -D -m0644 contrib/SpamAssassin/Collectd.pm \
|
||||||
"%{buildroot}%{perl_vendorlib}/Mail/SpamAssassin/Plugin/Collectd.pm"
|
"%{buildroot}%{perl_vendorlib}/Mail/SpamAssassin/Plugin/Collectd.pm"
|
||||||
pod2man \
|
pod2man \
|
||||||
contrib/SpamAssassin/Collectd.pm \
|
contrib/SpamAssassin/Collectd.pm \
|
||||||
> "%{buildroot}%{perl_man3dir}/Mail::SpamAssassin::Plugin::Collectd.%{perl_man3ext}"
|
> "%{buildroot}%{perl_man3dir}/Mail::SpamAssassin::Plugin::Collectd.%{perl_man3ext}"
|
||||||
%__rm -rf contrib/SpamAssassin
|
rm -rf contrib/SpamAssassin
|
||||||
|
|
||||||
# cussh script from contrib:
|
# cussh script from contrib:
|
||||||
%__install -m0755 contrib/cussh.pl "%{buildroot}%{_bindir}/cussh"
|
install -m0755 contrib/cussh.pl "%{buildroot}%{_bindir}/cussh"
|
||||||
%__install -d "%{buildroot}%{_mandir}/man1"
|
install -d "%{buildroot}%{_mandir}/man1"
|
||||||
pod2man \
|
pod2man \
|
||||||
-c "Collectd UNIX Socket Shell" \
|
-c "Collectd UNIX Socket Shell" \
|
||||||
-n "CUSSH" \
|
-n "CUSSH" \
|
||||||
-s 1 \
|
-s 1 \
|
||||||
contrib/cussh.pl > "%{buildroot}%{_mandir}/man1/cussh.1"
|
contrib/cussh.pl > "%{buildroot}%{_mandir}/man1/cussh.1"
|
||||||
%__rm contrib/cussh.pl
|
rm contrib/cussh.pl
|
||||||
|
|
||||||
# snmp:
|
# snmp:
|
||||||
%__mkdir_p _rpmdoc_/snmp
|
mkdir -p _rpmdoc_/snmp
|
||||||
%__sed -n '/^snmp-data\.conf/,$ p' contrib/README > _rpmdoc_/snmp/README
|
sed -n '/^snmp-data\.conf/,$ p' contrib/README > _rpmdoc_/snmp/README
|
||||||
%__sed -i '/^snmp-data\.conf/,$ d' contrib/README
|
sed -i '/^snmp-data\.conf/,$ d' contrib/README
|
||||||
%__mv contrib/snmp-data.conf _rpmdoc_/snmp/
|
mv contrib/snmp-data.conf _rpmdoc_/snmp/
|
||||||
%__sed -i 's|\(\./\)snmp-probe-host\.px|collectd-snmp-probe-host|g' contrib/snmp-probe-host.px
|
sed -i 's|\(\./\)snmp-probe-host\.px|collectd-snmp-probe-host|g' contrib/snmp-probe-host.px
|
||||||
pod2man \
|
pod2man \
|
||||||
-c "Collectd SNMP Host Probe" \
|
-c "Collectd SNMP Host Probe" \
|
||||||
-n "COLLECTD-SNMP-PROBE-HOST" \
|
-n "COLLECTD-SNMP-PROBE-HOST" \
|
||||||
-s 1 \
|
-s 1 \
|
||||||
contrib/snmp-probe-host.px \
|
contrib/snmp-probe-host.px \
|
||||||
> "%{buildroot}%{_mandir}/man1/collectd-snmp-probe-host.1"
|
> "%{buildroot}%{_mandir}/man1/collectd-snmp-probe-host.1"
|
||||||
%__install -D -m0755 contrib/snmp-probe-host.px "%{buildroot}%{_bindir}/collectd-snmp-probe-host"
|
install -D -m0755 contrib/snmp-probe-host.px "%{buildroot}%{_bindir}/collectd-snmp-probe-host"
|
||||||
%__rm contrib/snmp-probe-host.px
|
rm contrib/snmp-probe-host.px
|
||||||
%__install -d "%{buildroot}%{_mandir}/man1"
|
install -d "%{buildroot}%{_mandir}/man1"
|
||||||
|
|
||||||
find contrib/ -name '*.orig' -exec %__rm {} \;
|
find contrib/ -name '*.orig' -exec rm {} \;
|
||||||
|
|
||||||
%if !%with_pgsql
|
%if !%{with_pgsql}
|
||||||
%__rm -f "%{buildroot}%{_datadir}/collectd/postgresql_default.conf"
|
rm -f "%{buildroot}%{_datadir}/collectd/postgresql_default.conf"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if !%with_snmp_plugin
|
%if !%{with_snmp_plugin}
|
||||||
%__rm -f "%{buildroot}%{_mandir}/man5/collectd-snmp.5"
|
rm -f "%{buildroot}%{_mandir}/man5/collectd-snmp.5"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# plugin list:
|
# plugin list:
|
||||||
@ -762,15 +736,15 @@ cat<<EOF >README.plugins-all
|
|||||||
This package is empty but depends on all collectd plugin subpackages.
|
This package is empty but depends on all collectd plugin subpackages.
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
%__install -d -m 0755 "%{buildroot}/usr/sbin"
|
install -d -m 0755 "%{buildroot}%{_prefix}/sbin"
|
||||||
|
|
||||||
%if 0%{?has_systemd}
|
%if 0%{?has_systemd}
|
||||||
%__install -D -m0644 %{SOURCE100} %{buildroot}%{_unitdir}/collectd.service
|
install -D -m0644 contrib/collectd.service %{buildroot}%{_unitdir}/collectd.service
|
||||||
ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rc%{name}
|
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
|
||||||
%else
|
%else
|
||||||
# init script:
|
# init script:
|
||||||
%__install -D -m 0755 "%{SOURCE1}" "%{buildroot}/etc/init.d/collectd"
|
install -D -m 0755 "%{SOURCE1}" "%{buildroot}%{_initddir}/collectd"
|
||||||
%__ln_s "../../etc/init.d/collectd" "%{buildroot}/usr/sbin/rccollectd"
|
ln -s "../..%{_initddir}/collectd" "%{buildroot}%{_sbindir}/rccollectd"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
@ -805,9 +779,6 @@ ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rc%{name}
|
|||||||
|
|
||||||
%postun -n libcollectdclient1 -p /sbin/ldconfig
|
%postun -n libcollectdclient1 -p /sbin/ldconfig
|
||||||
|
|
||||||
%clean
|
|
||||||
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
||||||
|
|
||||||
%files -f plugins.lst
|
%files -f plugins.lst
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc AUTHORS ChangeLog COPYING README
|
%doc AUTHORS ChangeLog COPYING README
|
||||||
@ -820,8 +791,9 @@ ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rc%{name}
|
|||||||
%{_bindir}/cussh
|
%{_bindir}/cussh
|
||||||
%{_sbindir}/collectd
|
%{_sbindir}/collectd
|
||||||
%{_sbindir}/collectdmon
|
%{_sbindir}/collectdmon
|
||||||
|
%{_sbindir}/rccollectd
|
||||||
%dir %{_libdir}/collectd
|
%dir %{_libdir}/collectd
|
||||||
%if %with_esmtp
|
%if %{with_esmtp}
|
||||||
%{_libdir}/collectd/notify_email.so
|
%{_libdir}/collectd/notify_email.so
|
||||||
%{_libdir}/collectd/notify_email.la
|
%{_libdir}/collectd/notify_email.la
|
||||||
%endif #with_esmtp
|
%endif #with_esmtp
|
||||||
@ -846,16 +818,15 @@ ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rc%{name}
|
|||||||
%doc %{_mandir}/man5/types.db.5%{ext_man}
|
%doc %{_mandir}/man5/types.db.5%{ext_man}
|
||||||
%doc %{perl_man3dir}/Collectd::Unixsock.%{perl_man3ext}%{ext_man}
|
%doc %{perl_man3dir}/Collectd::Unixsock.%{perl_man3ext}%{ext_man}
|
||||||
%dir %{_localstatedir}/lib/collectd
|
%dir %{_localstatedir}/lib/collectd
|
||||||
/usr/sbin/rccollectd
|
|
||||||
%if 0%{?has_systemd}
|
%if 0%{?has_systemd}
|
||||||
%{_unitdir}/collectd.service
|
%{_unitdir}/collectd.service
|
||||||
%else
|
%else
|
||||||
/etc/init.d/collectd
|
%{_initddir}/collectd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files web
|
%files web
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%config(noreplace) /etc/apache2/conf.d/%{name}.conf
|
%config(noreplace) %{_sysconfdir}/apache2/conf.d/%{name}.conf
|
||||||
%dir %{_sysconfdir}/collectd
|
%dir %{_sysconfdir}/collectd
|
||||||
%config(noreplace) %{_sysconfdir}/collectd/collection.conf
|
%config(noreplace) %{_sysconfdir}/collectd/collection.conf
|
||||||
/srv/www/collectd
|
/srv/www/collectd
|
||||||
@ -863,60 +834,54 @@ ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rc%{name}
|
|||||||
%files web-js
|
%files web-js
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc _rpmdoc_/web-js/README
|
%doc _rpmdoc_/web-js/README
|
||||||
%config(noreplace) /etc/apache2/conf.d/%{name}-js.conf
|
%config(noreplace) %{_sysconfdir}/apache2/conf.d/%{name}-js.conf
|
||||||
%dir %{_sysconfdir}/collectd
|
%dir %{_sysconfdir}/collectd
|
||||||
%config(noreplace) %{_sysconfdir}/collectd/collection-js.conf
|
%config(noreplace) %{_sysconfdir}/collectd/collection-js.conf
|
||||||
/srv/www/collectd-js
|
/srv/www/collectd-js
|
||||||
%{_usr}/lib/collectd-js
|
%{_libexecdir}/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
|
||||||
%{_libdir}/collectd/notify_desktop.la
|
%{_libdir}/collectd/notify_desktop.la
|
||||||
%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
|
||||||
%{_libdir}/collectd/ipmi.la
|
%{_libdir}/collectd/ipmi.la
|
||||||
%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/*
|
||||||
%{_bindir}/collectd-snmp-probe-host
|
%{_bindir}/collectd-snmp-probe-host
|
||||||
%doc %{_mandir}/man1/collectd-snmp-probe-host.1%{ext_man}
|
%doc %{_mandir}/man1/collectd-snmp-probe-host.1%{ext_man}
|
||||||
%if %with_snmp_plugin
|
%if %{with_snmp_plugin}
|
||||||
%{_libdir}/collectd/snmp.so
|
%{_libdir}/collectd/snmp.so
|
||||||
%{_libdir}/collectd/snmp.la
|
%{_libdir}/collectd/snmp.la
|
||||||
%doc %{_mandir}/man5/collectd-snmp.5%{ext_man}
|
%doc %{_mandir}/man5/collectd-snmp.5%{ext_man}
|
||||||
%endif #with_snmp_plugin
|
%endif #with_snmp_plugin
|
||||||
%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
|
||||||
%{_libdir}/collectd/pinba.la
|
%{_libdir}/collectd/pinba.la
|
||||||
%endif #protobuf
|
%endif #protobuf
|
||||||
|
|
||||||
%if %suse_version >= 930
|
%if 0%{?suse_version} >= 930
|
||||||
|
|
||||||
%files plugin-mysql
|
%files plugin-mysql
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/collectd/mysql.so
|
%{_libdir}/collectd/mysql.so
|
||||||
%{_libdir}/collectd/mysql.la
|
%{_libdir}/collectd/mysql.la
|
||||||
%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
|
||||||
@ -931,7 +896,6 @@ ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rc%{name}
|
|||||||
%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
|
||||||
@ -941,32 +905,28 @@ ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rc%{name}
|
|||||||
%doc %{_mandir}/man5/collectd-java.5%{ext_man}
|
%doc %{_mandir}/man5/collectd-java.5%{ext_man}
|
||||||
%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
|
||||||
%{_libdir}/collectd/libvirt.la
|
%{_libdir}/collectd/libvirt.la
|
||||||
%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
|
||||||
%{_libdir}/collectd/xmms.la
|
%{_libdir}/collectd/xmms.la
|
||||||
%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
|
||||||
%{_libdir}/collectd/dbi.la
|
%{_libdir}/collectd/dbi.la
|
||||||
%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…
x
Reference in New Issue
Block a user