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

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

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


Revision 1.1 - (hide annotations) (download)
Thu Oct 29 17:41:56 2020 UTC (4 years ago) by brianr
Branch: MAIN
Initial import

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

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