/[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.1 by slords, Tue Feb 26 01:05:35 2008 UTC Revision 1.8 by slords, Tue Nov 25 16:20:31 2008 UTC
# Line 1  Line 1 
1    # $Id: smeserver-sysmon.spec,v 1.6 2008/04/02 15:03:59 slords Exp $
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 5.0  %define version 6.1
9  %define release 4  %define release 2
10  Version: %{version}  Version: %{version}
11  Release: %{release}%{?dist}  Release: %{release}%{?dist}
12  License: Freely distributable  License: Freely distributable
13  Group: Service  Group: Service
14  Source: %{name}-%{version}.tar.gz  Source: %{name}-%{version}.tar.gz
 #Patch0: %{name}-%{version}.patch.yyyymmddnn  
15  BuildRoot: /var/tmp/e-smith-buildroot  BuildRoot: /var/tmp/e-smith-buildroot
16  BuildRequires: e-smith-devtools  BuildRequires: e-smith-devtools
17  BuildArchitectures: noarch  BuildArchitectures: noarch
18  Requires: smeserver-release >= 7, sysstat >= 5, rrdtool >= 1, perl-rrdtool >= 1  Requires: smeserver-release >= 7
19    Requires: sysstat >= 5
20    Requires: rrdtool >= 1.2
21    Requires: perl(RRDs)
22    Requires: fping
23  AutoReqProv: no  AutoReqProv: no
24    
25  %changelog  %changelog
26  * Thu Oct 25 2007 Michel Van hees <michel@vanhees.cc>  * Sat Mar 29 2008 Shad L. Lords <slords@mail.com> 6.1-2
27  - Fix a bug with different language  - Clean up scripts to ensure clean upgrade
28    
29  * Mon Jul 24 2006 Michel Van hees <michel@vanhees.cc>  * Thu Mar 27 2008 Shad L. Lords <slords@mail.com> 6.1-1
30  - 5.0.3  - Upgrade to new sysmon routines
31  - Multi cpu graph display  - Make compatible with rrdtool 1.2
32    - Format graphs so they look better
33  * Fri Jul 14 2006 Michel Van hees <michel@vanhees.cc>  - Make compatible with SME 7 & 8
 - 5.0.2  
 - Disk size bug correction  
   
 * Sat Jul 08 2006 Michel Van hees <michel@vanhees.cc>  
 - 5.0-1  
 - adapt to sme server version 7  
34    
35  * Fri Apr 11 2003 Shad L. Lords <slords@mail.com>  * Fri Apr 11 2003 Shad L. Lords <slords@mail.com>
36  - 4.1-1  - 4.1-1
# Line 184  AutoReqProv: no Line 185  AutoReqProv: no
185  - initial release.  Completely rewriten Monitor.  - initial release.  Completely rewriten Monitor.
186    
187  %description  %description
188  ubar compiled for smeserver version 7  System monitor for SME Server version 7
189    
190  %prep  %prep
191  %setup  %setup
# Line 205  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  %preun  if [ $1 -ge 1 ]; then
210        /sbin/service sysmon stop &> /dev/null || :
211    fi
212    
213  %post  %post
214  /sbin/e-smith/db configuration set sysmon service status enabled  if [ $1 -ge 2 ]; then
215  /sbin/e-smith/signal-event conf-sysmon      mkdir -p /var/lib/rrd/backup
216  /usr/bin/killall sysmon > /dev/null 2>&1      /bin/mv /var/lib/rrd/*.rrd /var/lib/rrd/backup/ &> /dev/null
217  /usr/sbin/sysmon > /dev/null 2>&1      # FIXME: Fix for broken postun in previous versions (remove later)
218  /etc/e-smith/events/actions/navigation-conf >/dev/null 2>&1      /sbin/service sysmon restart &> /dev/null || :
219  cat << DONE  fi
220    
221  * If you are upgrading from a previous version you must remove  %preun
222    all rrd files from /var/lib/rrd or graphs will not display  if [ $1 -eq 0 ]; then
223    correctly.      /sbin/service sysmon stop &> /dev/null || :
224        fi
 DONE  
225    
226  %postun  %postun
227  /sbin/e-smith/db configuration delete sysmon  if [ $1 -ge 1 ]; then
228  /etc/e-smith/events/actions/navigation-conf >/dev/null 2>&1      /sbin/service sysmon restart &> /dev/null || :
 if ! [[ -e /usr/sbin/sysmon ]]; then  
     /usr/bin/killall sysmon > /dev/null 2>&1;  
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