/[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.3 by slords, Fri Mar 28 01:35:25 2008 UTC Revision 1.12 by unnilennium, Thu Aug 16 00:15:28 2012 UTC
# Line 1  Line 1 
1    # $Id: smeserver-sysmon.spec,v 1.11 2010/12/02 15:42:20 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.1  %define version 6.1
9  %define release 1  %define release 5
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    Patch1: smeserver-sysmon-6.1-patch1.patch
17  BuildRoot: /var/tmp/e-smith-buildroot  BuildRoot: /var/tmp/e-smith-buildroot
18  BuildRequires: e-smith-devtools  BuildRequires: e-smith-devtools
19  BuildArchitectures: noarch  BuildArchitectures: noarch
# Line 19  Requires: fping Line 25  Requires: fping
25  AutoReqProv: no  AutoReqProv: no
26    
27  %changelog  %changelog
28  * Thu Mar 27 2008 Michel Van hees <michel@vanhees.cc> 6.1-1  * Wed Aug 15 2012 JP Pialasse <tests@pialasse.com> 6.1-5.sme
29    - updated to also support sysstat 7 [SME 7010]
30    - updated to support 64 bit system
31    
32    * Thu Dec 2 2010 Shad L. Lords <slords@mail.com> 6.1-4.sme
33    - Fix typo in last patch [SME: 4143]
34    
35    * Wed Dec 1 2010 Shad L. Lords <slords@mail.com> 6.1-3.sme
36    - Fix LANG env so output can be recognized [SME: 4143]
37    
38    * Sat Mar 29 2008 Shad L. Lords <slords@mail.com> 6.1-2.sme
39    - Clean up scripts to ensure clean upgrade
40    
41    * Thu Mar 27 2008 Shad L. Lords <slords@mail.com> 6.1-1.sme
42  - Upgrade to new sysmon routines  - Upgrade to new sysmon routines
43  - Make compatible with rrdtool 1.2  - Make compatible with rrdtool 1.2
44  - Format graphs so they look better  - Format graphs so they look better
# Line 182  System monitor for SME Server version 7 Line 201  System monitor for SME Server version 7
201    
202  %prep  %prep
203  %setup  %setup
204  #%patch0 -p1  %patch0 -p1
205  #%patch1 -p1  %patch1 -p1
206    
207  %build  %build
208  perl createlinks  perl createlinks
# Line 199  echo "%doc COPYING"          >> %{name}- Line 218  echo "%doc COPYING"          >> %{name}-
218  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
219    
220  %pre  %pre
221  if [ $1 -ge 2 ] ; then  if [ $1 -ge 1 ]; then
222        /sbin/service sysmon stop &> /dev/null || :
223    fi
224    
225    %post
226    if [ $1 -ge 2 ]; then
227      mkdir -p /var/lib/rrd/backup      mkdir -p /var/lib/rrd/backup
228      /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
229        # FIXME: Fix for broken postun in previous versions (remove later)
230        /sbin/service sysmon restart &> /dev/null || :
231    fi
232    
233    %preun
234    if [ $1 -eq 0 ]; then
235        /sbin/service sysmon stop &> /dev/null || :
236    fi
237    
238    %postun
239    if [ $1 -ge 1 ]; then
240        /sbin/service sysmon restart &> /dev/null || :
241  fi  fi
242    
243  %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