From: luzik Date: Tue, 5 Aug 2008 05:54:11 +0000 (+0000) Subject: - added nut and ipmi plugins X-Git-Tag: auto/th/collectd-4_5_0-1~2 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fcollectd.git;a=commitdiff_plain;h=87ba198e7616609133a6318567b32d60992fb668 - added nut and ipmi plugins - rel 3, STBR Changed files: collectd.spec -> 1.32 --- diff --git a/collectd.spec b/collectd.spec index 426e515..c28228c 100644 --- a/collectd.spec +++ b/collectd.spec @@ -20,7 +20,7 @@ # hddtemp . . . . . . yes # interface . . . . . yes # iptables . . . . . yes -# ipmi . . . . . . . no +# ipmi . . . . . . . yes # ipvs . . . . . . . no (ip_vs.h not found) # irq . . . . . . . . yes # libvirt . . . . . . no @@ -29,14 +29,14 @@ # mbmon . . . . . . . yes # memcached . . . . . yes # memory . . . . . . yes -# multimeter . . . . yes +# multimeter . . . . no # mysql . . . . . . . yes # netlink . . . . . . yes # network . . . . . . yes # nfs . . . . . . . . yes # nginx . . . . . . . yes # ntpd . . . . . . . yes -# nut . . . . . . . . no +# nut . . . . . . . . yes # perl . . . . . . . no (needs libperl) # ping . . . . . . . yes # powerdns . . . . . yes @@ -59,7 +59,9 @@ # wireless . . . . . yes # xmms . . . . . . . yes %bcond_without dns +%bcond_without ipmi %bcond_without iptables +%bcond_with multimeter %bcond_without netlink #http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=358637 @@ -71,7 +73,7 @@ Summary: Collects system information in RRD files Summary(pl.UTF-8): Zbieranie informacji o systemie w plikach RRD Name: collectd Version: 4.4.2 -Release: 2 +Release: 3 License: GPL v2 Group: Daemons Source0: http://collectd.org/files/%{name}-%{version}.tar.gz @@ -92,6 +94,7 @@ BuildRequires: libstatgrab-devel >= 0.12 BuildRequires: libtool BuildRequires: lm_sensors-devel BuildRequires: mysql-devel +BuildRequires: nut-devel BuildRequires: perl-devel BuildRequires: rpmbuild(macros) >= 1.268 BuildRequires: rrdtool-devel @@ -178,6 +181,15 @@ Requires: %{name} = %{version}-%{release} %description hddtemp hddtemp plugin for collectd. +%package ipmi +Summary: ipmi-plugin for collectd +Summary(pl_PL.UTF-8): Wtyczka ipmi dla collectd +Group: Daemons +Requires: %{name} = %{version}-%{release} + +%description ipmi +ipmi plugin for collectd. + %package mysql Summary: mysql-plugin for collectd Summary(pl_PL.UTF-8): Moduł mysql dla collectd. @@ -285,12 +297,16 @@ EOF --with-libstatgrab=/usr \ --with-lm-sensors=/usr \ --with-libmysql=/usr \ + --%{?with_ipmi:en}%{?!with_ipmi:dis}able-ipmi \ + --%{?with_multimeter:en}%{?!with_multimeter:dis}able-multimeter \ --%{?with_dns:en}%{?!with_dns:dis}able-dns \ --%{?with_iptables:en}%{?!with_iptables:dis}able-iptables \ --%{?with_netlink:en}%{?!with_netlink:dis}able-netlink -%{__make} LDFLAGS="%{rpmldflags} -lstatgrab" +%{__make} LDFLAGS="%{rpmldflags} -lstatgrab" \ + BUILD_WITH_OPENIPMI_CFLAGS="-I/usr/include" \ + BUILD_WITH_OPENIPMI_LIBS="-L/usr/lib64 -lOpenIPMIutils -lOpenIPMIpthread" %install rm -rf $RPM_BUILD_ROOT @@ -368,11 +384,14 @@ fi %attr(755,root,root) %{_libdir}/%{name}/mbmon.so %attr(755,root,root) %{_libdir}/%{name}/memcached.so %attr(755,root,root) %{_libdir}/%{name}/memory.so +%if %{with multimeter} %attr(755,root,root) %{_libdir}/%{name}/multimeter.so +%endif %if %{with netlink} %attr(755,root,root) %{_libdir}/%{name}/netlink.so %endif %attr(755,root,root) %{_libdir}/%{name}/network.so +%attr(755,root,root) %{_libdir}/%{name}/nut.so %attr(755,root,root) %{_libdir}/%{name}/nfs.so %attr(755,root,root) %{_libdir}/%{name}/ntpd.so #%attr(755,root,root) %{_libdir}/%{name}/perl.so @@ -433,6 +452,12 @@ fi %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/%{name}/hddtemp.so +%if %{with ipmi} +%files ipmi +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/%{name}/ipmi.so +%endif + %files mysql %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/%{name}/mysql.so