/[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.2 by slords, Fri Mar 28 00:14:16 2008 UTC Revision 1.11 by slords, Thu Dec 2 15:42:20 2010 UTC
# Line 1  Line 1 
1    # $Id: smeserver-sysmon.spec,v 1.10 2010/12/01 15:34:12 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 6.0  %define version 6.1
9  %define release 2  %define release 4
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
15    Patch0: smeserver-sysmon-6.1-lang-fix.patch
16  BuildRoot: /var/tmp/e-smith-buildroot  BuildRoot: /var/tmp/e-smith-buildroot
17  BuildRequires: e-smith-devtools  BuildRequires: e-smith-devtools
18  BuildArchitectures: noarch  BuildArchitectures: noarch
19  Requires: smeserver-release >= 7, sysstat >= 5, rrdtool >= 1.0, rrdtool < 1.1, perl-rrdtool >= 1  Requires: smeserver-release >= 7
20    Requires: sysstat >= 5
21    Requires: rrdtool >= 1.2
22    Requires: perl(RRDs)
23    Requires: fping
24  AutoReqProv: no  AutoReqProv: no
25    
26  %changelog  %changelog
27  * Sun Feb 17 2008 Michel Van hees <michel@vanhees.cc>  * Thu Dec 2 2010 Shad L. Lords <slords@mail.com> 6.1-4.sme
28  - 6.0-2  - Fix typo in last patch [SME: 4143]
29  - Restriction on rrdtools version  
30    * Wed Dec 1 2010 Shad L. Lords <slords@mail.com> 6.1-3.sme
31  * Tue Feb 14 2008 Michel Van hees <michel@vanhees.cc>  - Fix LANG env so output can be recognized [SME: 4143]
32  - 6.0-1  
33  - Add multi HD graph  * Sat Mar 29 2008 Shad L. Lords <slords@mail.com> 6.1-2.sme
34  - Add debug message on service to help debug  - Clean up scripts to ensure clean upgrade
35    
36  * Tue Feb 05 2008 Michel Van hees <michel@vanhees.cc>  * Thu Mar 27 2008 Shad L. Lords <slords@mail.com> 6.1-1.sme
37  - 5.1.3  - Upgrade to new sysmon routines
38  - Fix several bug in daemon file  - Make compatible with rrdtool 1.2
39    - Format graphs so they look better
40  * Mon Feb 04 2008 Michel Van hees <michel@vanhees.cc>  - Make compatible with SME 7 & 8
 - 5.1.2  
 - Fix bug in server-manager naviguation  
   
 * Mon Feb 04 2008 Michel Van hees <michel@vanhees.cc>  
 - 5.1.1  
 - Add number of user connected using samba  
   
 * Thu Oct 25 2007 Michel Van hees <michel@vanhees.cc>  
 - Fix a bug with different language  
   
 * Mon Jul 24 2006 Michel Van hees <michel@vanhees.cc>  
 - 5.0.3  
 - Multi cpu graph display  
   
 * Fri Jul 14 2006 Michel Van hees <michel@vanhees.cc>  
 - 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  
41    
42  * Fri Apr 11 2003 Shad L. Lords <slords@mail.com>  * Fri Apr 11 2003 Shad L. Lords <slords@mail.com>
43  - 4.1-1  - 4.1-1
# Line 208  System monitor for SME Server version 7 Line 196  System monitor for SME Server version 7
196    
197  %prep  %prep
198  %setup  %setup
199  #%patch0 -p1  %patch0 -p1
 #%patch1 -p1  
200    
201  %build  %build
202  perl createlinks  perl createlinks
# Line 225  echo "%doc COPYING"          >> %{name}- Line 212  echo "%doc COPYING"          >> %{name}-
212  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
213    
214  %pre  %pre
215  if [ $1 -ge 2 ] ; then  if [ $1 -ge 1 ]; then
216        /sbin/service sysmon stop &> /dev/null || :
217    fi
218    
219    %post
220    if [ $1 -ge 2 ]; then
221      mkdir -p /var/lib/rrd/backup      mkdir -p /var/lib/rrd/backup
222      /bin/mv /var/lib/rrd/*.rrd /var/lib/rrd/backup/      /bin/mv /var/lib/rrd/*.rrd /var/lib/rrd/backup/ &> /dev/null
223      /bin/rm -f /var/lib/rrd/*.rrd      # FIXME: Fix for broken postun in previous versions (remove later)
224        /sbin/service sysmon restart &> /dev/null || :
225  fi  fi
226    
227  %preun  %preun
228    if [ $1 -eq 0 ]; then
229  %post      /sbin/service sysmon stop &> /dev/null || :
230  /sbin/e-smith/db configuration set sysmon service status enabled debug release  fi
 /sbin/e-smith/signal-event conf-sysmon  
 /usr/bin/killall sysmon > /dev/null 2>&1  
 /usr/sbin/sysmon > /dev/null 2>&1  
 /etc/e-smith/events/actions/navigation-conf >/dev/null 2>&1  
 cat << DONE  
   
 * All rrd file have been backuped in /var/lib/rrd/backup/  
       
 DONE  
231    
232  %postun  %postun
233  /etc/e-smith/events/actions/navigation-conf >/dev/null 2>&1  if [ $1 -ge 1 ]; then
234  if ! [[ -e /usr/sbin/sysmon ]]; then      /sbin/service sysmon restart &> /dev/null || :
     /usr/bin/killall sysmon > /dev/null 2>&1;  
235  fi  fi
236    
237  %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