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