/[packages]/cauldron/rrdcollect/current/SPECS/rrdcollect.spec
ViewVC logotype

Contents of /cauldron/rrdcollect/current/SPECS/rrdcollect.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 235406 - (show annotations) (download)
Fri May 11 23:43:55 2012 UTC (12 years, 5 months ago) by colin
File size: 1398 byte(s)
Add LSB headers to initscripts (mga#5262)
1 %define initdir /etc/rc.d/init.d
2
3 Summary: Round-Robin Database Collecting Daemon
4 Name: rrdcollect
5 Version: 0.2.9
6 Release: %mkrel 2
7 Group: Monitoring
8 License: GPLv2
9 Source: http://prdownloads.sourceforge.net/prdownloads/%{name}/%{name}-%{version}.tar.gz
10 Patch0: rrdcollect-checkpid.diff
11 Patch1: rrdcollect-socket.diff
12 Patch2: rrdcollect-0.2.9-lsb.patch
13 Requires: rrdtool
14 URL: http://rrdcollect.sourceforge.net/
15 Requires: /sbin/chkconfig, initscripts >= 5.54
16 BuildRequires: pcre-devel byacc
17 BuildRoot: %{_tmppath}/%{name}-%{version}-root
18
19 %description
20 RRDcollect is a small daemon which periodically polls
21 certain files in /proc or network sockets, to gather
22 data which is then stored inside an rrd database.
23 Being written in C it's fast and resources-friendly.
24 Supports both scanf(3)-style pattern matches and
25 perl compatible regular expressions.
26
27 %prep
28 %setup -q
29 %apply_patches
30
31 %build
32 %configure --enable-exec
33 make
34
35 %install
36 %makeinstall
37
38 mkdir -p $RPM_BUILD_ROOT/%{initdir}
39 install -m 0755 doc/sample-rrdcollect.init $RPM_BUILD_ROOT/%{initdir}/rrdcollect
40
41 %clean
42 rm -rf $RPM_BUILD_ROOT
43
44 %post
45 %_post_service %{name}
46
47 %preun
48 %_preun_service %{name}
49
50 %files
51 %defattr(-,root,root)
52 %doc AUTHORS NEWS README
53 %attr(0644,root,root) %config(noreplace) /etc/rrdcollect.conf
54 %attr(0755,root,root) %{initdir}/rrdcollect
55 %{_mandir}/man5/rrdcollect.*
56 %{_mandir}/man8/rrdcollect.*
57 %{_sbindir}/rrdcollect
58

  ViewVC Help
Powered by ViewVC 1.1.30