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

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

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


Revision 1.7 - (hide annotations) (download)
Thu Jan 18 17:28:36 2018 UTC (6 years, 4 months ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-sysmon-6_4-6_el6_sme
Changes since 1.6: +6 -5 lines
* Thu Jan 18 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 6.4-6.sme
- Fix database backups iunspec file [[SME: 7096]]

1 jcrisp 1.7 # $Id: smeserver-sysmon.spec,v 1.6 2018/01/15 16:53:20 jcrisp Exp $
2 stephdl 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.4
9 jcrisp 1.7 %define release 6
10 stephdl 1.1 Version: %{version}
11     Release: %{release}%{?dist}
12     License: Freely distributable
13     Group: Service
14 stephdl 1.2 Source: %{name}-%{version}.tar.gz
15 stephdl 1.1 BuildRoot: /var/tmp/e-smith-buildroot
16     BuildRequires: e-smith-devtools
17     BuildArchitectures: noarch
18 stephdl 1.2 Requires: smeserver-release >= 9
19 stephdl 1.1 Requires: sysstat >= 5
20     Requires: rrdtool >= 1.2
21     Requires: perl(RRDs)
22     Requires: fping
23     AutoReqProv: no
24 stephdl 1.4 Patch0: smeserver-sysmon-6.4.change_rrd_network_label.patch
25 jcrisp 1.6 Patch1: smeserver-sysmon-6.4.fix_swap_information.patch
26 stephdl 1.1
27     %changelog
28 jcrisp 1.7 * Thu Jan 18 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 6.4-6.sme
29     - Fix database backups iunspec file [[SME: 7096]]
30    
31 jcrisp 1.6 * Mon Jan 15 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 6.4-5.sme
32     - Fix missing swap information [[SME: 10493]]
33     - Remove unnecessary daemonising line
34    
35 stephdl 1.5 * Thu Sep 24 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 6.4-4.sme
36 stephdl 1.4 - Network labels have changed in rrdtools
37     - Added smeserver-sysmon-6.4.change_rrd_network_label.patch
38    
39 stephdl 1.3 * Thu Sep 24 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 6.4-2.sme
40 stephdl 1.1 - Initial release to contribs9
41    
42     * Wed Aug 15 2012 JP Pialasse <tests@pialasse.com> 6.2-2.sme
43     - patch for sysstats 7 and for 64 bit systems
44    
45     * Thu Aug 9 2012 Shad L. Lords <slords@mail.com> 6.2-1.sme
46     - Initial version
47    
48     %description
49 stephdl 1.4 System monitor for SME Server version 9
50 stephdl 1.1
51     %prep
52     %setup
53 stephdl 1.4 %patch0 -p1
54 jcrisp 1.6 %patch1 -p1
55 stephdl 1.1
56     %build
57     perl createlinks
58    
59     %install
60     rm -rf $RPM_BUILD_ROOT
61     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
62     rm -f %{name}-%{version}-filelist
63     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
64     echo "%doc COPYING" >> %{name}-%{version}-filelist
65    
66     %clean
67     rm -rf $RPM_BUILD_ROOT
68    
69     %pre
70     if [ $1 -ge 1 ]; then
71     /sbin/service sysmon stop &> /dev/null || :
72     fi
73    
74     %post
75     if [ $1 -ge 2 ]; then
76     /sbin/service sysmon restart &> /dev/null || :
77     fi
78    
79 jcrisp 1.7
80 stephdl 1.1 %preun
81     if [ $1 -eq 0 ]; then
82     /sbin/service sysmon stop &> /dev/null || :
83     fi
84    
85     %postun
86     if [ $1 -ge 1 ]; then
87     /sbin/service sysmon restart &> /dev/null || :
88     fi
89    
90     %files -f %{name}-%{version}-filelist
91     %defattr(-,root,root)

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