1 |
# $Id: smeserver-sysmon.spec,v 1.5 2015/09/25 18:06:36 stephdl Exp $ |
# $Id: smeserver-sysmon.spec,v 1.7 2018/01/18 17:28:36 jcrisp Exp $ |
2 |
# Authority: slords |
# Authority: slords |
3 |
# Name: Shad L. Lords |
# Name: Shad L. Lords |
4 |
|
|
5 |
Summary: sme server system monitor |
Summary: sme server system monitor |
6 |
%define name smeserver-sysmon |
%define name smeserver-sysmon |
7 |
Name: %{name} |
Name: %{name} |
8 |
%define version 6.4 |
%define version 6.5 |
9 |
%define release 5 |
%define release 1 |
10 |
Version: %{version} |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
12 |
License: Freely distributable |
License: Freely distributable |
21 |
Requires: perl(RRDs) |
Requires: perl(RRDs) |
22 |
Requires: fping |
Requires: fping |
23 |
AutoReqProv: no |
AutoReqProv: no |
24 |
Patch0: smeserver-sysmon-6.4.change_rrd_network_label.patch |
#Patch0: smeserver-sysmon-6.4.change_rrd_network_label.patch |
25 |
Patch1: smeserver-sysmon-6.4.fix_swap_information.patch |
#Patch1: smeserver-sysmon-6.4.fix_swap_information.patch |
26 |
|
|
27 |
%changelog |
%changelog |
28 |
|
* Fri Dec 27 2019 Jean-Philipe Pialasse <tests@pialasse.com> 6.5-1.sme |
29 |
|
- fix utf8 error |
30 |
|
|
31 |
|
* Thu Jan 18 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 6.4-6.sme |
32 |
|
- Fix database backups iunspec file [[SME: 7096]] |
33 |
|
|
34 |
* Mon Jan 15 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 6.4-5.sme |
* Mon Jan 15 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 6.4-5.sme |
35 |
- Fix missing swap information [[SME: 10493]] |
- Fix missing swap information [[SME: 10493]] |
36 |
- Remove unnecessary daemonising line |
- Remove unnecessary daemonising line |
53 |
|
|
54 |
%prep |
%prep |
55 |
%setup |
%setup |
56 |
%patch0 -p1 |
#%patch0 -p1 |
|
%patch1 -p1 |
|
57 |
|
|
58 |
%build |
%build |
59 |
perl createlinks |
perl createlinks |
75 |
|
|
76 |
%post |
%post |
77 |
if [ $1 -ge 2 ]; then |
if [ $1 -ge 2 ]; then |
|
mkdir -p /var/lib/rrd/backup |
|
|
/bin/mv /var/lib/rrd/*.rrd /var/lib/rrd/backup/ &> /dev/null |
|
|
# FIXME: Fix for broken postun in previous versions (remove later) |
|
78 |
/sbin/service sysmon restart &> /dev/null || : |
/sbin/service sysmon restart &> /dev/null || : |
79 |
fi |
fi |
80 |
|
|
81 |
|
|
82 |
%preun |
%preun |
83 |
if [ $1 -eq 0 ]; then |
if [ $1 -eq 0 ]; then |
84 |
/sbin/service sysmon stop &> /dev/null || : |
/sbin/service sysmon stop &> /dev/null || : |