/[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.4 - (hide annotations) (download)
Wed Aug 3 06:28:18 2022 UTC (2 years, 4 months ago) by trevorb
Branch: MAIN
Changes since 1.3: +9 -3 lines
initial release to contribs10 and swap to systemd

1 trevorb 1.4 # $Id: smeserver-sysmon.spec,v 1.3 2022/07/31 23:07:28 trevorb Exp $
2 brianr 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.5
9 trevorb 1.4 %define release 3
10 brianr 1.1 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 trevorb 1.4 Requires: smeserver-release >= 10
19 brianr 1.1 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 trevorb 1.2 Patch1: smeserver-sysmon-backup-12024.patch
28 trevorb 1.4 Patch2: smeserver-sysmon-systemd-11072.patch
29 brianr 1.1
30     %changelog
31 trevorb 1.4 * Wed Aug 3 2022 Trevor Batley <trevor@batey.id.au> 6.5-3.sme
32     - alter sysmon service to use to use systemd [SME: 11072]
33     - initial release to contribs10
34    
35 trevorb 1.2 * Sun Jul 31 2022 Trevor Batley <trevor@batley.id.au> 6.5-2.sme
36     - add to backup [SME: 12024]
37    
38 brianr 1.1 * Fri Dec 27 2019 Jean-Philipe Pialasse <tests@pialasse.com> 6.5-1.sme
39     - fix utf8 error
40     - fix ups not displaying [SME: 4449]
41     - fix broken image when DS not all available for ups, fan, temperature and voltage graphs
42    
43     * Thu Jan 18 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 6.4-6.sme
44     - Fix database backups iunspec file [[SME: 7096]]
45    
46     * Mon Jan 15 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 6.4-5.sme
47     - Fix missing swap information [[SME: 10493]]
48     - Remove unnecessary daemonising line
49    
50     * Thu Sep 24 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 6.4-4.sme
51     - Network labels have changed in rrdtools
52     - Added smeserver-sysmon-6.4.change_rrd_network_label.patch
53    
54     * Thu Sep 24 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 6.4-2.sme
55     - Initial release to contribs9
56    
57     * Wed Aug 15 2012 JP Pialasse <tests@pialasse.com> 6.2-2.sme
58     - patch for sysstats 7 and for 64 bit systems
59    
60     * Thu Aug 9 2012 Shad L. Lords <slords@mail.com> 6.2-1.sme
61     - Initial version
62    
63     %description
64     System monitor for SME Server version 9
65    
66     %prep
67     %setup
68     %patch0 -p1
69 trevorb 1.3 %patch1 -p1
70 trevorb 1.4 %patch2 -p1
71 brianr 1.1
72     %build
73     perl createlinks
74    
75     %install
76     rm -rf $RPM_BUILD_ROOT
77     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
78     rm -f %{name}-%{version}-filelist
79     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
80     echo "%doc COPYING" >> %{name}-%{version}-filelist
81    
82     %clean
83     rm -rf $RPM_BUILD_ROOT
84    
85     %pre
86     if [ $1 -ge 1 ]; then
87     /sbin/service sysmon stop &> /dev/null || :
88     fi
89    
90     %post
91     if [ $1 -ge 2 ]; then
92     /sbin/service sysmon restart &> /dev/null || :
93     fi
94    
95    
96     %preun
97     if [ $1 -eq 0 ]; then
98     /sbin/service sysmon stop &> /dev/null || :
99     fi
100    
101     %postun
102     if [ $1 -ge 1 ]; then
103     /sbin/service sysmon restart &> /dev/null || :
104     fi
105    
106     %files -f %{name}-%{version}-filelist
107     %defattr(-,root,root)

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