/[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.5 - (show annotations) (download)
Mon Aug 15 10:54:52 2022 UTC (2 years, 2 months ago) by trevorb
Branch: MAIN
CVS Tags: smeserver-sysmon-6_5-3_el7_sme
Changes since 1.4: +3 -2 lines
add -U parameter to sadf call to enforce datetime format

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

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