/[smecontribs]/rpms/smeserver-sysmon/contribs7/smeserver-sysmon.spec
ViewVC logotype

Diff of /rpms/smeserver-sysmon/contribs7/smeserver-sysmon.spec

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

Revision 1.4 by slords, Fri Mar 28 01:36:39 2008 UTC Revision 1.6 by slords, Wed Apr 2 15:03:59 2008 UTC
# Line 1  Line 1 
1    # $Id$
2    # Authority: slords
3    # Name: Shad L. Lords
4    
5  Summary: sme server system monitor  Summary: sme server system monitor
6  %define name smeserver-sysmon  %define name smeserver-sysmon
7  Name: %{name}  Name: %{name}
8  %define version 6.1  %define version 6.1
9  %define release 1  %define release 2
10  Version: %{version}  Version: %{version}
11  Release: %{release}%{?dist}  Release: %{release}%{?dist}
12  License: Freely distributable  License: Freely distributable
# Line 19  Requires: fping Line 23  Requires: fping
23  AutoReqProv: no  AutoReqProv: no
24    
25  %changelog  %changelog
26    * Sat Mar 29 2008 Shad L. Lords <slords@mail.com> 6.1-2
27    - Clean up scripts to ensure clean upgrade
28    
29  * Thu Mar 27 2008 Shad L. Lords <slords@mail.com> 6.1-1  * Thu Mar 27 2008 Shad L. Lords <slords@mail.com> 6.1-1
30  - Upgrade to new sysmon routines  - Upgrade to new sysmon routines
31  - Make compatible with rrdtool 1.2  - Make compatible with rrdtool 1.2
# Line 199  echo "%doc COPYING"          >> %{name}- Line 206  echo "%doc COPYING"          >> %{name}-
206  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
207    
208  %pre  %pre
209  if [ $1 -ge 2 ] ; then  if [ $1 -ge 1 ]; then
210        /sbin/service sysmon stop &> /dev/null || :
211    fi
212    
213    %post
214    if [ $1 -ge 2 ]; then
215      mkdir -p /var/lib/rrd/backup      mkdir -p /var/lib/rrd/backup
216      /bin/mv /var/lib/rrd/*.rrd /var/lib/rrd/backup/ 2> /dev/null || :      /bin/mv /var/lib/rrd/*.rrd /var/lib/rrd/backup/ &> /dev/null
217        # FIXME: Fix for broken postun in previous versions (remove later)
218        /sbin/service sysmon restart &> /dev/null || :
219    fi
220    
221    %preun
222    if [ $1 -eq 0 ]; then
223        /sbin/service sysmon stop &> /dev/null || :
224    fi
225    
226    %postun
227    if [ $1 -ge 1 ]; then
228        /sbin/service sysmon restart &> /dev/null || :
229  fi  fi
230    
231  %files -f %{name}-%{version}-filelist  %files -f %{name}-%{version}-filelist


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed