3 |
Summary: Round-Robin Database Collecting Daemon |
Summary: Round-Robin Database Collecting Daemon |
4 |
Name: rrdcollect |
Name: rrdcollect |
5 |
Version: 0.2.9 |
Version: 0.2.9 |
6 |
Release: %mkrel 1 |
Release: %mkrel 2 |
7 |
Group: Monitoring |
Group: Monitoring |
8 |
License: GPLv2 |
License: GPLv2 |
9 |
Source: http://prdownloads.sourceforge.net/prdownloads/%{name}/%{name}-%{version}.tar.gz |
Source: http://prdownloads.sourceforge.net/prdownloads/%{name}/%{name}-%{version}.tar.gz |
10 |
Patch0: rrdcollect-checkpid.diff |
Patch0: rrdcollect-checkpid.diff |
11 |
Patch1: rrdcollect-socket.diff |
Patch1: rrdcollect-socket.diff |
12 |
|
Patch2: rrdcollect-0.2.9-lsb.patch |
13 |
Requires: rrdtool |
Requires: rrdtool |
14 |
URL: http://rrdcollect.sourceforge.net/ |
URL: http://rrdcollect.sourceforge.net/ |
15 |
Requires: /sbin/chkconfig, initscripts >= 5.54 |
Requires: /sbin/chkconfig, initscripts >= 5.54 |
26 |
|
|
27 |
%prep |
%prep |
28 |
%setup -q |
%setup -q |
29 |
%patch0 -p1 |
%apply_patches |
|
%patch1 -p1 |
|
30 |
|
|
31 |
%build |
%build |
32 |
%configure --enable-exec |
%configure --enable-exec |
42 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
43 |
|
|
44 |
%post |
%post |
45 |
/sbin/chkconfig --add rrdcollect |
%_post_service %{name} |
46 |
|
|
47 |
%preun |
%preun |
48 |
if [ $1 = 0 ]; then |
%_preun_service %{name} |
|
/sbin/service rrdcollect stop > /dev/null 2>&1 |
|
|
/sbin/chkconfig --del rrdcollect |
|
|
fi |
|
|
|
|
|
%postun |
|
|
if [ "$1" -ge "1" ]; then |
|
|
/sbin/service rrdcollect condrestart > /dev/null 2>&1 |
|
|
fi |
|
49 |
|
|
50 |
%files |
%files |
51 |
%defattr(-,root,root) |
%defattr(-,root,root) |