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

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

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


Revision 1.6 - (show annotations) (download)
Wed Sep 21 07:17:13 2022 UTC (2 years, 2 months ago) by trevorb
Branch: MAIN
CVS Tags: smeserver-sysmon-6_5-4_el7_sme
Changes since 1.5: +6 -2 lines
remove superfluous 50koozali references

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

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