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