]> git.pld-linux.org Git - packages/collectd.git/blobdiff - collectd.spec
- updated to 3.11.2
[packages/collectd.git] / collectd.spec
index 8fe6e7f4aae2a3b036daf61029bb18271630e5ef..ba2a637f960bccf047a718c844d7333b2647173f 100644 (file)
@@ -2,40 +2,57 @@
 # - mysql subpackage
 # - lm_sensors subpackage
 # - hddtemp subpackage
-# - initscripts for local/network mode (subpackage ?)
-# - initscripts for server mode (subpackage ?)
+# - initscripts for local/client/server mode (subpackage ?)
 # - collection CGI script
 # - package contrib scripts as %doc
-Summary:       Collects system information in rrd files
+Summary:       Collects system information in RRD files
+Summary(pl.UTF-8):     Zbieranie informacji o systemie w plikach RRD
 Name:          collectd
-Version:       3.7.1
-Release:       0.1
+Version:       3.11.2
+Release:       0.2
 License:       GPL v2
-Group:         Unknow
-Source0:       http://verplant.org/collectd/files/%{name}-%{version}.tar.gz
-# Source0-md5: dc2120fad388e5fc8bc486b4fcadc68e
-URL:           http://verplant.org/collectd/
-BuildRequires: rpmbuild(macros) >= 1.228
-Requires(post,preun):  /sbin/chkconfig
-BuildRequires: libstatgrab-devel >= 0.12
+Group:         Daemons
+Source0:       http://collectd.org/files/%{name}-%{version}.tar.gz
+# Source0-md5: 40f4c3689c2c049497a8b1a47e01cc75
+Source1:       %{name}.conf
+Patch0:                %{name}-include.patch
+URL:           http://collectd.org/
 BuildRequires: autoconf
 BuildRequires: automake
-#BuildRequires:        intltool
+BuildRequires: curl-devel
+BuildRequires: libstatgrab-devel >= 0.12
+BuildRequires: libpcap-devel
 BuildRequires: libtool
+BuildRequires: mysql-devel
+BuildRequires: rpmbuild(macros) >= 1.228
+BuildRequires: rrdtool-devel
+Requires(post,preun):  /sbin/chkconfig
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-collectd is a small daemon which collects system information every 10 seconds
-and writes the results in an RRD-file.
+collectd is a small daemon which collects system information every 10
+seconds and writes the results in an RRD-file.
 
-In contrast to most similar software, collectd is not a script but written in
-plain C for performance and portability. As a daemon it stays in memory, so
-there is no need to start up a heavy interpreter every time new values should
-be logged. This allows collectd to have a 10 second resolution while being nice
-to the system.
+In contrast to most similar software, collectd is not a script but
+written in plain C for performance and portability. As a daemon it
+stays in memory, so there is no need to start up a heavy interpreter
+every time new values should be logged. This allows collectd to have a
+10 second resolution while being nice to the system.
+
+%description -l pl.UTF-8
+collectd to mały demon zbierający co 10 sekund informacje o systemie i
+zapisujący wyniki do pliku RRD.
+
+W odróżnieniu od innych podobnych programów collectd nie jest
+skryptem, lecz jest napisany w czystym C z myślą o wydajności i
+przenośności. Jako demon pozostaje w pamięci, więc nie ma potrzeby
+urychamiania ciężkiego interpretera za każdym razem, kiedy powinny być
+zapisane nowe wartości. Dzięki temu collect może mieć rozdzielczość 10
+sekund i nie obciążać zbytnio systemu.
 
 %prep
 %setup -q
+%patch -p1
 
 %build
 %{__libtoolize}
@@ -54,17 +71,19 @@ rm -rf $RPM_BUILD_ROOT
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
-       
-install %{SOURCE2} $RPM_BUILD_ROOT/etc/collectd.conf
+
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.conf
+
+rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post 
+%post
 /sbin/chkconfig --add %{name}
 %service %{name} restart
 
-%preun 
+%preun
 if [ "$1" = "0" ]; then
        %service -q %{name} stop
        /sbin/chkconfig --del %{name}
@@ -76,16 +95,24 @@ fi
 
 %attr(755,root,root) %{_sbindir}/collectd
 %dir %{_libdir}/%{name}
+%attr(755,root,root) %{_libdir}/%{name}/apache.so
+%attr(755,root,root) %{_libdir}/%{name}/apcups.so
+%attr(755,root,root) %{_libdir}/%{name}/apple_sensors.so
 %attr(755,root,root) %{_libdir}/%{name}/battery.so
-%attr(755,root,root) %{_libdir}/%{name}/cpu.so
 %attr(755,root,root) %{_libdir}/%{name}/cpufreq.so
+%attr(755,root,root) %{_libdir}/%{name}/cpu.so
 %attr(755,root,root) %{_libdir}/%{name}/df.so
 %attr(755,root,root) %{_libdir}/%{name}/disk.so
+%attr(755,root,root) %{_libdir}/%{name}/dns.so
+%attr(755,root,root) %{_libdir}/%{name}/email.so
 %attr(755,root,root) %{_libdir}/%{name}/hddtemp.so
 %attr(755,root,root) %{_libdir}/%{name}/load.so
+%attr(755,root,root) %{_libdir}/%{name}/mbmon.so
 %attr(755,root,root) %{_libdir}/%{name}/memory.so
+%attr(755,root,root) %{_libdir}/%{name}/multimeter.so
 %attr(755,root,root) %{_libdir}/%{name}/mysql.so
 %attr(755,root,root) %{_libdir}/%{name}/nfs.so
+%attr(755,root,root) %{_libdir}/%{name}/ntpd.so
 %attr(755,root,root) %{_libdir}/%{name}/ping.so
 %attr(755,root,root) %{_libdir}/%{name}/processes.so
 %attr(755,root,root) %{_libdir}/%{name}/sensors.so
@@ -94,6 +121,8 @@ fi
 %attr(755,root,root) %{_libdir}/%{name}/tape.so
 %attr(755,root,root) %{_libdir}/%{name}/traffic.so
 %attr(755,root,root) %{_libdir}/%{name}/users.so
+%attr(755,root,root) %{_libdir}/%{name}/vserver.so
+%attr(755,root,root) %{_libdir}/%{name}/wireless.so
 
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
 
This page took 0.071718 seconds and 4 git commands to generate.