/[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.2 by slords, Fri Mar 28 00:14:16 2008 UTC
# Line 1  Line 1 
1  Summary: sme server system monitor  Summary: sme server system monitor
2  %define name smeserver-sysmon  %define name smeserver-sysmon
3  Name: %{name}  Name: %{name}
4  %define version 5.0  %define version 6.0
5  %define release 4  %define release 2
6  Version: %{version}  Version: %{version}
7  Release: %{release}%{?dist}  Release: %{release}%{?dist}
8  License: Freely distributable  License: Freely distributable
9  Group: Service  Group: Service
10  Source: %{name}-%{version}.tar.gz  Source: %{name}-%{version}.tar.gz
 #Patch0: %{name}-%{version}.patch.yyyymmddnn  
11  BuildRoot: /var/tmp/e-smith-buildroot  BuildRoot: /var/tmp/e-smith-buildroot
12  BuildRequires: e-smith-devtools  BuildRequires: e-smith-devtools
13  BuildArchitectures: noarch  BuildArchitectures: noarch
14  Requires: smeserver-release >= 7, sysstat >= 5, rrdtool >= 1, perl-rrdtool >= 1  Requires: smeserver-release >= 7, sysstat >= 5, rrdtool >= 1.0, rrdtool < 1.1, perl-rrdtool >= 1
15  AutoReqProv: no  AutoReqProv: no
16    
17  %changelog  %changelog
18    * Sun Feb 17 2008 Michel Van hees <michel@vanhees.cc>
19    - 6.0-2
20    - Restriction on rrdtools version
21    
22    * Tue Feb 14 2008 Michel Van hees <michel@vanhees.cc>
23    - 6.0-1
24    - Add multi HD graph
25    - Add debug message on service to help debug
26    
27    * Tue Feb 05 2008 Michel Van hees <michel@vanhees.cc>
28    - 5.1.3
29    - Fix several bug in daemon file
30    
31    * Mon Feb 04 2008 Michel Van hees <michel@vanhees.cc>
32    - 5.1.2
33    - Fix bug in server-manager naviguation
34    
35    * Mon Feb 04 2008 Michel Van hees <michel@vanhees.cc>
36    - 5.1.1
37    - Add number of user connected using samba
38    
39  * Thu Oct 25 2007 Michel Van hees <michel@vanhees.cc>  * Thu Oct 25 2007 Michel Van hees <michel@vanhees.cc>
40  - Fix a bug with different language  - Fix a bug with different language
41    
# Line 184  AutoReqProv: no Line 204  AutoReqProv: no
204  - initial release.  Completely rewriten Monitor.  - initial release.  Completely rewriten Monitor.
205    
206  %description  %description
207  ubar compiled for smeserver version 7  System monitor for SME Server version 7
208    
209  %prep  %prep
210  %setup  %setup
# Line 205  echo "%doc COPYING"          >> %{name}- Line 225  echo "%doc COPYING"          >> %{name}-
225  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
226    
227  %pre  %pre
228    if [ $1 -ge 2 ] ; then
229        mkdir -p /var/lib/rrd/backup
230        /bin/mv /var/lib/rrd/*.rrd /var/lib/rrd/backup/
231        /bin/rm -f /var/lib/rrd/*.rrd
232    fi
233    
234  %preun  %preun
235    
236  %post  %post
237  /sbin/e-smith/db configuration set sysmon service status enabled  /sbin/e-smith/db configuration set sysmon service status enabled debug release
238  /sbin/e-smith/signal-event conf-sysmon  /sbin/e-smith/signal-event conf-sysmon
239  /usr/bin/killall sysmon > /dev/null 2>&1  /usr/bin/killall sysmon > /dev/null 2>&1
240  /usr/sbin/sysmon > /dev/null 2>&1  /usr/sbin/sysmon > /dev/null 2>&1
241  /etc/e-smith/events/actions/navigation-conf >/dev/null 2>&1  /etc/e-smith/events/actions/navigation-conf >/dev/null 2>&1
242  cat << DONE  cat << DONE
243    
244  * If you are upgrading from a previous version you must remove  * All rrd file have been backuped in /var/lib/rrd/backup/
   all rrd files from /var/lib/rrd or graphs will not display  
   correctly.  
245            
246  DONE  DONE
247    
248  %postun  %postun
 /sbin/e-smith/db configuration delete sysmon  
249  /etc/e-smith/events/actions/navigation-conf >/dev/null 2>&1  /etc/e-smith/events/actions/navigation-conf >/dev/null 2>&1
250  if ! [[ -e /usr/sbin/sysmon ]]; then  if ! [[ -e /usr/sbin/sysmon ]]; then
251      /usr/bin/killall sysmon > /dev/null 2>&1;      /usr/bin/killall sysmon > /dev/null 2>&1;


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