- start updated to 4.2.3
[packages/collectd.git] / collectd.spec
CommitLineData
373d486f 1# TODO:
373d486f 2# - lm_sensors subpackage
e6f53b24 3# - perl (plugin and bindings) subpackage
373d486f 4# - hddtemp subpackage
762d0c28 5# - initscripts for local/client/server mode (subpackage ?)
373d486f
AF
6# - collection CGI script
7# - package contrib scripts as %doc
e6f53b24
AF
8# - build nut, iptables and other plugins
9# - fix building perl plugin
7df111b4 10Summary: Collects system information in RRD files
322f1351 11Summary(pl.UTF-8): Zbieranie informacji o systemie w plikach RRD
373d486f 12Name: collectd
495dbdc6 13Version: 4.2.3
92177587 14Release: 0.1
373d486f 15License: GPL v2
81857fc6 16Group: Daemons
f6984413 17Source0: http://collectd.org/files/%{name}-%{version}.tar.gz
495dbdc6 18# Source0-md5: 94c337194b333894f9a8ca32734d69a6
f6984413 19Source1: %{name}.conf
f6984413 20URL: http://collectd.org/
373d486f
AF
21BuildRequires: autoconf
22BuildRequires: automake
762d0c28 23BuildRequires: curl-devel
7df111b4 24BuildRequires: libstatgrab-devel >= 0.12
762d0c28 25BuildRequires: libpcap-devel
373d486f 26BuildRequires: libtool
762d0c28 27BuildRequires: mysql-devel
18e77dbc 28BuildRequires: perl-devel
7df111b4 29BuildRequires: rpmbuild(macros) >= 1.228
762d0c28 30BuildRequires: rrdtool-devel
7df111b4 31Requires(post,preun): /sbin/chkconfig
373d486f
AF
32BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34%description
7df111b4
JB
35collectd is a small daemon which collects system information every 10
36seconds and writes the results in an RRD-file.
37
38In contrast to most similar software, collectd is not a script but
39written in plain C for performance and portability. As a daemon it
40stays in memory, so there is no need to start up a heavy interpreter
41every time new values should be logged. This allows collectd to have a
4210 second resolution while being nice to the system.
43
19cbcad3
JR
44%description -l pl.UTF-8
45collectd to mały demon zbierający co 10 sekund informacje o systemie i
46zapisujący wyniki do pliku RRD.
373d486f 47
19cbcad3
JR
48W odróżnieniu od innych podobnych programów collectd nie jest
49skryptem, lecz jest napisany w czystym C z myślą o wydajności i
50przenośności. Jako demon pozostaje w pamięci, więc nie ma potrzeby
51urychamiania ciężkiego interpretera za każdym razem, kiedy powinny być
52zapisane nowe wartości. Dzięki temu collect może mieć rozdzielczość 10
53sekund i nie obciążać zbytnio systemu.
373d486f 54
18e77dbc 55%package apache
273ffc81
JB
56Summary: apache-plugin for collectd
57Summary(pl_PL.UTF-8): Wtyczka apache dla collectd
18e77dbc 58Group: Daemons
273ffc81 59Requires: %{name} = %{version}-%{release}
18e77dbc 60
61%description apache
62This plugin collectd data provided by Apache's `mod_status'.
63
64%description apache -l pl.UTF-8
273ffc81
JB
65Wtyczka collectd zbierająca informacje udostępniane przez moduł
66'mod_status' Apacha.
18e77dbc 67
68%package mysql
273ffc81
JB
69Summary: mysql-plugin for collectd
70Summary(pl_PL.UTF-8): Moduł mysql dla collectd.
18e77dbc 71Group: Daemons
273ffc81 72Requires: %{name} = %{version}-%{release}
18e77dbc 73
74%description mysql
273ffc81 75MySQL querying plugin. This plugins provides data of issued commands,
18e77dbc 76called handlers and database traffic.
77
78%description mysql -l pl.UTF-8
273ffc81
JB
79Moduł odpytujący MySQL. Wtyczka udostępnia dane o wydawanych
80poleceniach, wywoływanych procedurach obsługi i ruchu bazodanowym.
18e77dbc 81
373d486f
AF
82%prep
83%setup -q
84
85%build
86%{__libtoolize}
87%{__aclocal}
88%{__autoconf}
89%{__autoheader}
90%{__automake}
91%configure \
92 --with-libstatgrab=/usr \
93 --with-lm-sensors=/usr \
e6f53b24 94 --with-libmysql=/usr
373d486f
AF
95%{__make}
96
97%install
98rm -rf $RPM_BUILD_ROOT
99
100%{__make} install \
101 DESTDIR=$RPM_BUILD_ROOT
81857fc6 102
f6984413
AF
103install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.conf
104
105rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
373d486f
AF
106
107%clean
108rm -rf $RPM_BUILD_ROOT
109
81857fc6 110%post
373d486f
AF
111/sbin/chkconfig --add %{name}
112%service %{name} restart
113
81857fc6 114%preun
373d486f
AF
115if [ "$1" = "0" ]; then
116 %service -q %{name} stop
117 /sbin/chkconfig --del %{name}
118fi
119
120%files
121%defattr(644,root,root,755)
122%doc AUTHORS ChangeLog README TODO
123
124%attr(755,root,root) %{_sbindir}/collectd
18e77dbc 125%attr(755,root,root) %{_bindir}/collectd-nagios
373d486f 126%dir %{_libdir}/%{name}
c1bbd93e 127%attr(755,root,root) %{_libdir}/%{name}/apcups.so
18e77dbc 128#%attr(755,root,root) %{_libdir}/%{name}/apple_sensors.so
373d486f 129%attr(755,root,root) %{_libdir}/%{name}/battery.so
373d486f 130%attr(755,root,root) %{_libdir}/%{name}/cpufreq.so
c1bbd93e 131%attr(755,root,root) %{_libdir}/%{name}/cpu.so
18e77dbc 132%attr(755,root,root) %{_libdir}/%{name}/csv.so
373d486f
AF
133%attr(755,root,root) %{_libdir}/%{name}/df.so
134%attr(755,root,root) %{_libdir}/%{name}/disk.so
762d0c28
AF
135%attr(755,root,root) %{_libdir}/%{name}/dns.so
136%attr(755,root,root) %{_libdir}/%{name}/email.so
18e77dbc 137%attr(755,root,root) %{_libdir}/%{name}/entropy.so
138%attr(755,root,root) %{_libdir}/%{name}/exec.so
373d486f 139%attr(755,root,root) %{_libdir}/%{name}/hddtemp.so
18e77dbc 140%attr(755,root,root) %{_libdir}/%{name}/interface.so
141%attr(755,root,root) %{_libdir}/%{name}/irq.so
373d486f 142%attr(755,root,root) %{_libdir}/%{name}/load.so
18e77dbc 143%attr(755,root,root) %{_libdir}/%{name}/logfile.so
762d0c28 144%attr(755,root,root) %{_libdir}/%{name}/mbmon.so
e6f53b24 145%attr(755,root,root) %{_libdir}/%{name}/memcached.so
373d486f 146%attr(755,root,root) %{_libdir}/%{name}/memory.so
762d0c28 147%attr(755,root,root) %{_libdir}/%{name}/multimeter.so
18e77dbc 148%attr(755,root,root) %{_libdir}/%{name}/network.so
373d486f 149%attr(755,root,root) %{_libdir}/%{name}/nfs.so
e6f53b24 150%attr(755,root,root) %{_libdir}/%{name}/nginx.so
c1bbd93e 151%attr(755,root,root) %{_libdir}/%{name}/ntpd.so
e6f53b24 152#%attr(755,root,root) %{_libdir}/%{name}/perl.so
373d486f
AF
153%attr(755,root,root) %{_libdir}/%{name}/ping.so
154%attr(755,root,root) %{_libdir}/%{name}/processes.so
18e77dbc 155%attr(755,root,root) %{_libdir}/%{name}/rrdtool.so
156#%attr(755,root,root) %{_libdir}/%{name}/sensors.so
e6f53b24 157%attr(755,root,root) %{_libdir}/%{name}/sensors.so
373d486f
AF
158%attr(755,root,root) %{_libdir}/%{name}/serial.so
159%attr(755,root,root) %{_libdir}/%{name}/swap.so
e6f53b24 160%attr(755,root,root) %{_libdir}/%{name}/syslog.so
18e77dbc 161#%attr(755,root,root) %{_libdir}/%{name}/tape.so
e6f53b24 162%attr(755,root,root) %{_libdir}/%{name}/tcpconns.so
18e77dbc 163#%attr(755,root,root) %{_libdir}/%{name}/traffic.so
18e77dbc 164%attr(755,root,root) %{_libdir}/%{name}/unixsock.so
e6f53b24 165%attr(755,root,root) %{_libdir}/%{name}/users.so
c1bbd93e 166%attr(755,root,root) %{_libdir}/%{name}/vserver.so
f6984413 167%attr(755,root,root) %{_libdir}/%{name}/wireless.so
e6f53b24 168%{_libdir}/%{name}/types.db
373d486f
AF
169
170%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
171
172#%attr(754,root,root) /etc/rc.d/init.d/%{name}
173#%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
174
175%{_mandir}/man1/collectd.1*
18e77dbc 176%{_mandir}/man1/collectd-nagios.1*
373d486f 177%{_mandir}/man5/collectd.conf.5*
18e77dbc 178%{_mandir}/man5/collectd-email.5*
179%{_mandir}/man5/collectd-exec.5*
180%{_mandir}/man5/collectd-perl.5*
181%{_mandir}/man5/collectd-snmp.5*
182%{_mandir}/man5/collectd-unixsock.5*
183
184%files apache
185%defattr(644,root,root,755)
186%attr(755,root,root) %{_libdir}/%{name}/apache.so
187
188%files mysql
189%defattr(644,root,root,755)
190%attr(755,root,root) %{_libdir}/%{name}/mysql.so
This page took 0.156031 seconds and 4 git commands to generate.