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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 235405 by bertl, Wed Feb 15 09:56:18 2012 UTC revision 235406 by colin, Fri May 11 23:43:55 2012 UTC
# Line 3  Line 3 
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
# Line 25  perl compatible regular expressions. Line 26  perl compatible regular expressions.
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
# Line 42  install -m 0755 doc/sample-rrdcollect.in Line 42  install -m 0755 doc/sample-rrdcollect.in
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)

Legend:
Removed from v.235405  
changed lines
  Added in v.235406

  ViewVC Help
Powered by ViewVC 1.1.30