/[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.2 - (show annotations) (download)
Sun Jul 31 06:49:23 2022 UTC (2 years, 3 months ago) by trevorb
Branch: MAIN
CVS Tags: smeserver-sysmon-6_5-2_el7_sme
Changes since 1.1: +6 -2 lines
add to backup - 12024

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

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