- use external liboping
[packages/collectd.git] / collectd.spec
CommitLineData
373d486f 1# TODO:
373d486f 2# - lm_sensors subpackage
762d0c28 3# - initscripts for local/client/server mode (subpackage ?)
373d486f
AF
4# - collection CGI script
5# - package contrib scripts as %doc
8bf13ddb
PG
6# - put every plugin into subpackages
7# - Current plugins status:
8# apache . . . . . . yes
9# apcups . . . . . . yes
10# apple_sensors . . . no
11# ascent . . . . . . yes
12# battery . . . . . . yes
13# cpu . . . . . . . . yes
14# cpufreq . . . . . . yes
15# csv . . . . . . . . yes
16# df . . . . . . . . yes
17# disk . . . . . . . yes
18# dns . . . . . . . . yes
19# email . . . . . . . yes
20# entropy . . . . . . yes
21# exec . . . . . . . yes
22# hddtemp . . . . . . yes
23# interface . . . . . yes
24# iptables . . . . . yes
25# ipmi . . . . . . . no
26# ipvs . . . . . . . no (ip_vs.h not found)
27# irq . . . . . . . . yes
28# libvirt . . . . . . no
29# load . . . . . . . yes
30# logfile . . . . . . yes
31# mbmon . . . . . . . yes
32# memcached . . . . . yes
33# memory . . . . . . yes
34# multimeter . . . . yes
35# mysql . . . . . . . yes
36# netlink . . . . . . yes
37# network . . . . . . yes
38# nfs . . . . . . . . yes
39# nginx . . . . . . . yes
40# ntpd . . . . . . . yes
41# nut . . . . . . . . no
42# perl . . . . . . . no (needs libperl)
43# ping . . . . . . . yes
44# powerdns . . . . . yes
45# processes . . . . . yes
46# rrdtool . . . . . . yes
47# sensors . . . . . . yes
48# serial . . . . . . yes
49# snmp . . . . . . . yes
50# swap . . . . . . . yes
51# syslog . . . . . . yes
52# tail . . . . . . . yes
53# tape . . . . . . . no
54# tcpconns . . . . . yes
55# teamspeak2 . . . . yes
56# unixsock . . . . . yes
57# users . . . . . . . yes
58# uuid . . . . . . . yes
59# vmem . . . . . . . yes
60# vserver . . . . . . yes
61# wireless . . . . . yes
62# xmms . . . . . . . yes
63
7df111b4 64Summary: Collects system information in RRD files
322f1351 65Summary(pl.UTF-8): Zbieranie informacji o systemie w plikach RRD
373d486f 66Name: collectd
e105712e 67Version: 4.4.0
907cfb56 68Release: 0.3
373d486f 69License: GPL v2
81857fc6 70Group: Daemons
f6984413 71Source0: http://collectd.org/files/%{name}-%{version}.tar.gz
e105712e 72# Source0-md5: a677ddcad97fdb3cdd09efac4842b11d
f6984413 73Source1: %{name}.conf
f6984413 74URL: http://collectd.org/
e105712e 75BuildRequires: OpenIPMI-devel
373d486f
AF
76BuildRequires: autoconf
77BuildRequires: automake
762d0c28 78BuildRequires: curl-devel
8bf13ddb 79BuildRequires: iptables-devel
e105712e 80BuildRequires: libnetlink-devel
907cfb56 81BuildRequires: liboping-devel
762d0c28 82BuildRequires: libpcap-devel
8bf13ddb 83BuildRequires: libstatgrab-devel >= 0.12
373d486f 84BuildRequires: libtool
762d0c28 85BuildRequires: mysql-devel
18e77dbc 86BuildRequires: perl-devel
7df111b4 87BuildRequires: rpmbuild(macros) >= 1.228
762d0c28 88BuildRequires: rrdtool-devel
8bf13ddb 89BuildRequires: xmms-devel
7df111b4 90Requires(post,preun): /sbin/chkconfig
373d486f
AF
91BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
92
93%description
7df111b4
JB
94collectd is a small daemon which collects system information every 10
95seconds and writes the results in an RRD-file.
96
97In contrast to most similar software, collectd is not a script but
98written in plain C for performance and portability. As a daemon it
99stays in memory, so there is no need to start up a heavy interpreter
100every time new values should be logged. This allows collectd to have a
10110 second resolution while being nice to the system.
102
19cbcad3
JR
103%description -l pl.UTF-8
104collectd to mały demon zbierający co 10 sekund informacje o systemie i
105zapisujący wyniki do pliku RRD.
373d486f 106
19cbcad3
JR
107W odróżnieniu od innych podobnych programów collectd nie jest
108skryptem, lecz jest napisany w czystym C z myślą o wydajności i
109przenośności. Jako demon pozostaje w pamięci, więc nie ma potrzeby
110urychamiania ciężkiego interpretera za każdym razem, kiedy powinny być
111zapisane nowe wartości. Dzięki temu collect może mieć rozdzielczość 10
112sekund i nie obciążać zbytnio systemu.
373d486f 113
8bf13ddb
PG
114%package ascent
115Summary: ascent-plugin for collectd
116Summary(pl_PL.UTF-8): Wtyczka ascent dla collectd
117Group: Daemons
118Requires: %{name} = %{version}-%{release}
119
120%description ascent
121ascent plugin for collectd.
122
18e77dbc 123%package apache
273ffc81
JB
124Summary: apache-plugin for collectd
125Summary(pl_PL.UTF-8): Wtyczka apache dla collectd
18e77dbc 126Group: Daemons
273ffc81 127Requires: %{name} = %{version}-%{release}
18e77dbc 128
129%description apache
130This plugin collectd data provided by Apache's `mod_status'.
131
132%description apache -l pl.UTF-8
273ffc81
JB
133Wtyczka collectd zbierająca informacje udostępniane przez moduł
134'mod_status' Apacha.
18e77dbc 135
8bf13ddb
PG
136%package dns
137Summary: dns-plugin for collectd
138Summary(pl_PL.UTF-8): Wtyczka dns dla collectd
139Group: Daemons
140Requires: %{name} = %{version}-%{release}
141
142%description dns
143dns plugin for collectd.
144
145%package hddtemp
146Summary: hddtemp-plugin for collectd
147Summary(pl_PL.UTF-8): Wtyczka hddtemp dla collectd
148Group: Daemons
149Requires: %{name} = %{version}-%{release}
150
151%description hddtemp
152hddtemp plugin for collectd.
153
18e77dbc 154%package mysql
273ffc81
JB
155Summary: mysql-plugin for collectd
156Summary(pl_PL.UTF-8): Moduł mysql dla collectd.
18e77dbc 157Group: Daemons
273ffc81 158Requires: %{name} = %{version}-%{release}
18e77dbc 159
160%description mysql
273ffc81 161MySQL querying plugin. This plugins provides data of issued commands,
18e77dbc 162called handlers and database traffic.
163
164%description mysql -l pl.UTF-8
273ffc81
JB
165Moduł odpytujący MySQL. Wtyczka udostępnia dane o wydawanych
166poleceniach, wywoływanych procedurach obsługi i ruchu bazodanowym.
18e77dbc 167
8bf13ddb
PG
168%package nginx
169Summary: nginx-plugin for collectd
170Summary(pl_PL.UTF-8): Wtyczka nginx dla collectd
171Group: Daemons
172Requires: %{name} = %{version}-%{release}
173
174%description nginx
175nginx plugin for collectd.
176
907cfb56
PG
177%package ping
178Summary: ping-plugin for collectd
179Summary(pl_PL.UTF-8): Wtyczka ping dla collectd
180Group: Daemons
181Requires: %{name} = %{version}-%{release}
182
183%description ping
184ping plugin for collectd.
185
8bf13ddb
PG
186%package rrdtool
187Summary: rrdtool-plugin for collectd
188Summary(pl_PL.UTF-8): Wtyczka rrdtool dla collectd
189Group: Daemons
190Requires: %{name} = %{version}-%{release}
191Requires: rrdtool
192
193%description rrdtool
194RRDTOOL plugin for collectd.
195
196%package sensors
197Summary: sensors-plugin for collectd
198Summary(pl_PL.UTF-8): Wtyczka sensors dla collectd
199Group: Daemons
200Requires: %{name} = %{version}-%{release}
201
202%description sensors
203This plugin collectd data provided by hardware sensors.
204
205%package snmp
206Summary: snmp-plugin for collectd
207Summary(pl_PL.UTF-8): Wtyczka snmp dla collectd
208Group: Daemons
209Requires: %{name} = %{version}-%{release}
210
211%description snmp
212snmp plugin for collectd.
213
214%package uuid
215Summary: uuid-plugin for collectd
216Summary(pl_PL.UTF-8): Wtyczka uuid dla collectd
217Group: Daemons
218Requires: %{name} = %{version}-%{release}
219
220%description uuid
221This plugin collectd UUID data.
222
223%package xmms
224Summary: xmms-plugin for collectd
225Summary(pl_PL.UTF-8): Wtyczka xmms dla collectd
226Group: Daemons
227Requires: %{name} = %{version}-%{release}
228Requires: xmms-libs
229
230%description xmms
231This plugin collectd data provided by XMMS.
232
373d486f
AF
233%prep
234%setup -q
235
236%build
237%{__libtoolize}
238%{__aclocal}
239%{__autoconf}
240%{__autoheader}
241%{__automake}
242%configure \
243 --with-libstatgrab=/usr \
244 --with-lm-sensors=/usr \
e6f53b24 245 --with-libmysql=/usr
e105712e 246%{__make} LDFLAGS="%{rpmldflags} -lstatgrab"
373d486f
AF
247
248%install
249rm -rf $RPM_BUILD_ROOT
250
251%{__make} install \
252 DESTDIR=$RPM_BUILD_ROOT
81857fc6 253
e105712e 254install -d $RPM_BUILD_ROOT%{_var}/{log/,lib/%{name}}
255#install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.conf
256touch $RPM_BUILD_ROOT%{_var}/log/collectd.log
257install src/collectd.conf $RPM_BUILD_ROOT%{_sysconfdir}/collectd.conf
f6984413
AF
258
259rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
373d486f
AF
260
261%clean
262rm -rf $RPM_BUILD_ROOT
263
81857fc6 264%post
373d486f
AF
265/sbin/chkconfig --add %{name}
266%service %{name} restart
267
81857fc6 268%preun
373d486f
AF
269if [ "$1" = "0" ]; then
270 %service -q %{name} stop
271 /sbin/chkconfig --del %{name}
272fi
273
274%files
275%defattr(644,root,root,755)
e105712e 276%doc AUTHORS ChangeLog README TODO contrib
373d486f
AF
277
278%attr(755,root,root) %{_sbindir}/collectd
e105712e 279%attr(755,root,root) %{_sbindir}/collectdmon
18e77dbc 280%attr(755,root,root) %{_bindir}/collectd-nagios
373d486f 281%dir %{_libdir}/%{name}
c1bbd93e 282%attr(755,root,root) %{_libdir}/%{name}/apcups.so
18e77dbc 283#%attr(755,root,root) %{_libdir}/%{name}/apple_sensors.so
373d486f 284%attr(755,root,root) %{_libdir}/%{name}/battery.so
373d486f 285%attr(755,root,root) %{_libdir}/%{name}/cpufreq.so
c1bbd93e 286%attr(755,root,root) %{_libdir}/%{name}/cpu.so
18e77dbc 287%attr(755,root,root) %{_libdir}/%{name}/csv.so
373d486f
AF
288%attr(755,root,root) %{_libdir}/%{name}/df.so
289%attr(755,root,root) %{_libdir}/%{name}/disk.so
762d0c28 290%attr(755,root,root) %{_libdir}/%{name}/email.so
18e77dbc 291%attr(755,root,root) %{_libdir}/%{name}/entropy.so
292%attr(755,root,root) %{_libdir}/%{name}/exec.so
18e77dbc 293%attr(755,root,root) %{_libdir}/%{name}/interface.so
e105712e 294%attr(755,root,root) %{_libdir}/%{name}/iptables.so
18e77dbc 295%attr(755,root,root) %{_libdir}/%{name}/irq.so
373d486f 296%attr(755,root,root) %{_libdir}/%{name}/load.so
18e77dbc 297%attr(755,root,root) %{_libdir}/%{name}/logfile.so
762d0c28 298%attr(755,root,root) %{_libdir}/%{name}/mbmon.so
e6f53b24 299%attr(755,root,root) %{_libdir}/%{name}/memcached.so
373d486f 300%attr(755,root,root) %{_libdir}/%{name}/memory.so
762d0c28 301%attr(755,root,root) %{_libdir}/%{name}/multimeter.so
e105712e 302%attr(755,root,root) %{_libdir}/%{name}/netlink.so
18e77dbc 303%attr(755,root,root) %{_libdir}/%{name}/network.so
373d486f 304%attr(755,root,root) %{_libdir}/%{name}/nfs.so
c1bbd93e 305%attr(755,root,root) %{_libdir}/%{name}/ntpd.so
e6f53b24 306#%attr(755,root,root) %{_libdir}/%{name}/perl.so
e105712e 307%attr(755,root,root) %{_libdir}/%{name}/powerdns.so
373d486f 308%attr(755,root,root) %{_libdir}/%{name}/processes.so
373d486f
AF
309%attr(755,root,root) %{_libdir}/%{name}/serial.so
310%attr(755,root,root) %{_libdir}/%{name}/swap.so
e6f53b24 311%attr(755,root,root) %{_libdir}/%{name}/syslog.so
e105712e 312%attr(755,root,root) %{_libdir}/%{name}/tail.so
18e77dbc 313#%attr(755,root,root) %{_libdir}/%{name}/tape.so
e105712e 314%attr(755,root,root) %{_libdir}/%{name}/teamspeak2.so
e6f53b24 315%attr(755,root,root) %{_libdir}/%{name}/tcpconns.so
18e77dbc 316#%attr(755,root,root) %{_libdir}/%{name}/traffic.so
18e77dbc 317%attr(755,root,root) %{_libdir}/%{name}/unixsock.so
e6f53b24 318%attr(755,root,root) %{_libdir}/%{name}/users.so
e105712e 319%attr(755,root,root) %{_libdir}/%{name}/vmem.so
c1bbd93e 320%attr(755,root,root) %{_libdir}/%{name}/vserver.so
f6984413 321%attr(755,root,root) %{_libdir}/%{name}/wireless.so
e6f53b24 322%{_libdir}/%{name}/types.db
373d486f
AF
323
324%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
325
326#%attr(754,root,root) /etc/rc.d/init.d/%{name}
327#%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
328
329%{_mandir}/man1/collectd.1*
18e77dbc 330%{_mandir}/man1/collectd-nagios.1*
373d486f 331%{_mandir}/man5/collectd.conf.5*
18e77dbc 332%{_mandir}/man5/collectd-email.5*
333%{_mandir}/man5/collectd-exec.5*
334%{_mandir}/man5/collectd-perl.5*
335%{_mandir}/man5/collectd-snmp.5*
336%{_mandir}/man5/collectd-unixsock.5*
e105712e 337%{_mandir}/man1/collectdmon.1*
338%{_mandir}/man5/types.db.5*
339%{_var}/log/collectd.log
340%dir %{_var}/lib/%{name}
341
8bf13ddb
PG
342########## PLUGINS:
343%files ascent
344%defattr(644,root,root,755)
345%attr(755,root,root) %{_libdir}/%{name}/ascent.so
18e77dbc 346
347%files apache
348%defattr(644,root,root,755)
349%attr(755,root,root) %{_libdir}/%{name}/apache.so
350
8bf13ddb
PG
351%files dns
352%defattr(644,root,root,755)
353%attr(755,root,root) %{_libdir}/%{name}/dns.so
354
355%files hddtemp
356%defattr(644,root,root,755)
357%attr(755,root,root) %{_libdir}/%{name}/hddtemp.so
358
18e77dbc 359%files mysql
360%defattr(644,root,root,755)
361%attr(755,root,root) %{_libdir}/%{name}/mysql.so
8bf13ddb
PG
362
363%files nginx
364%defattr(644,root,root,755)
365%attr(755,root,root) %{_libdir}/%{name}/nginx.so
366
907cfb56
PG
367%files ping
368%defattr(644,root,root,755)
369%attr(755,root,root) %{_libdir}/%{name}/ping.so
370
8bf13ddb
PG
371%files rrdtool
372%defattr(644,root,root,755)
373%attr(755,root,root) %{_libdir}/%{name}/rrdtool.so
374
375%files sensors
376%defattr(644,root,root,755)
377%attr(755,root,root) %{_libdir}/%{name}/sensors.so
378
379%files snmp
380%defattr(644,root,root,755)
381%attr(755,root,root) %{_libdir}/%{name}/snmp.so
382
383%files uuid
384%defattr(644,root,root,755)
385%attr(755,root,root) %{_libdir}/%{name}/uuid.so
386
387%files xmms
388%defattr(644,root,root,755)
389%attr(755,root,root) %{_libdir}/%{name}/xmms.so
This page took 0.087269 seconds and 4 git commands to generate.