/[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.5 by slords, Sun Mar 30 04:48:04 2008 UTC
# Line 2  Summary: sme server system monitor Line 2  Summary: sme server system monitor
2  %define name smeserver-sysmon  %define name smeserver-sysmon
3  Name: %{name}  Name: %{name}
4  %define version 6.1  %define version 6.1
5  %define release 1  %define release 2
6  Version: %{version}  Version: %{version}
7  Release: %{release}%{?dist}  Release: %{release}%{?dist}
8  License: Freely distributable  License: Freely distributable
# Line 19  Requires: fping Line 19  Requires: fping
19  AutoReqProv: no  AutoReqProv: no
20    
21  %changelog  %changelog
22    * Sat Mar 29 2008 Shad L. Lords <slords@mail.com> 6.1-2
23    - Clean up scripts to ensure clean upgrade
24    
25  * 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
26  - Upgrade to new sysmon routines  - Upgrade to new sysmon routines
27  - Make compatible with rrdtool 1.2  - Make compatible with rrdtool 1.2
# Line 199  echo "%doc COPYING"          >> %{name}- Line 202  echo "%doc COPYING"          >> %{name}-
202  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
203    
204  %pre  %pre
205  if [ $1 -ge 2 ] ; then  if [ $1 -ge 1 ]; then
206        /sbin/service sysmon stop &> /dev/null || :
207    fi
208    
209    %post
210    if [ $1 -ge 2 ]; then
211      mkdir -p /var/lib/rrd/backup      mkdir -p /var/lib/rrd/backup
212      /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
213        # FIXME: Fix for broken postun in previous versions (remove later)
214        /sbin/service sysmon restart &> /dev/null || :
215    fi
216    
217    %preun
218    if [ $1 -eq 0 ]; then
219        /sbin/service sysmon stop &> /dev/null || :
220    fi
221    
222    %postun
223    if [ $1 -ge 1 ]; then
224        /sbin/service sysmon restart &> /dev/null || :
225  fi  fi
226    
227  %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