/[smecontribs]/rpms/smeserver-sysmon/contribs8/smeserver-sysmon.spec
ViewVC logotype

Annotation of /rpms/smeserver-sysmon/contribs8/smeserver-sysmon.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (hide annotations) (download)
Thu Aug 16 00:42:30 2012 UTC (12 years, 3 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-sysmon-6_2-2_el5_sme, HEAD
Changes since 1.2: +2 -2 lines
good version name

1 unnilennium 1.3 # $Id: smeserver-sysmon.spec,v 1.2 2012/08/16 00:29:53 unnilennium Exp $
2 slords 1.1 # Authority: slords
3     # Name: Shad L. Lords
4    
5     Summary: sme server system monitor
6     %define name smeserver-sysmon
7     Name: %{name}
8     %define version 6.2
9 unnilennium 1.3 %define release 2
10 slords 1.1 Version: %{version}
11     Release: %{release}%{?dist}
12     License: Freely distributable
13     Group: Service
14     Source: %{name}-%{version}.tgz
15 unnilennium 1.2 Patch0: smeserver-sysmon-6.1-patch1.patch
16 slords 1.1 BuildRoot: /var/tmp/e-smith-buildroot
17     BuildRequires: e-smith-devtools
18     BuildArchitectures: noarch
19     Requires: smeserver-release >= 8
20     Requires: sysstat >= 5
21     Requires: rrdtool >= 1.2
22     Requires: perl(RRDs)
23     Requires: fping
24     AutoReqProv: no
25    
26     %changelog
27 unnilennium 1.2 * Wed Aug 15 2012 JP Pialasse <tests@pialasse.com> 6.2-2.sme
28     - patch for sysstats 7 and for 64 bit systems
29    
30 slords 1.1 * Thu Aug 9 2012 Shad L. Lords <slords@mail.com> 6.2-1.sme
31     - Initial version
32    
33     %description
34     System monitor for SME Server version 7
35    
36     %prep
37     %setup
38 unnilennium 1.2 %patch0 -p1
39 slords 1.1
40     %build
41     perl createlinks
42    
43     %install
44     rm -rf $RPM_BUILD_ROOT
45     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
46     rm -f %{name}-%{version}-filelist
47     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
48     echo "%doc COPYING" >> %{name}-%{version}-filelist
49    
50     %clean
51     rm -rf $RPM_BUILD_ROOT
52    
53     %pre
54     if [ $1 -ge 1 ]; then
55     /sbin/service sysmon stop &> /dev/null || :
56     fi
57    
58     %post
59     if [ $1 -ge 2 ]; then
60     mkdir -p /var/lib/rrd/backup
61     /bin/mv /var/lib/rrd/*.rrd /var/lib/rrd/backup/ &> /dev/null
62     # FIXME: Fix for broken postun in previous versions (remove later)
63     /sbin/service sysmon restart &> /dev/null || :
64     fi
65    
66     %preun
67     if [ $1 -eq 0 ]; then
68     /sbin/service sysmon stop &> /dev/null || :
69     fi
70    
71     %postun
72     if [ $1 -ge 1 ]; then
73     /sbin/service sysmon restart &> /dev/null || :
74     fi
75    
76     %files -f %{name}-%{version}-filelist
77     %defattr(-,root,root)

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed