1 |
# $Id: smeserver-sysmon.spec,v 1.5 2015/09/25 18:06:36 stephdl Exp $ |
# $Id: smeserver-sysmon.spec,v 1.6 2018/01/15 16:53:20 jcrisp Exp $ |
2 |
# Authority: slords |
# Authority: slords |
3 |
# Name: Shad L. Lords |
# Name: Shad L. Lords |
4 |
|
|
6 |
%define name smeserver-sysmon |
%define name smeserver-sysmon |
7 |
Name: %{name} |
Name: %{name} |
8 |
%define version 6.4 |
%define version 6.4 |
9 |
%define release 5 |
%define release 6 |
10 |
Version: %{version} |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
12 |
License: Freely distributable |
License: Freely distributable |
25 |
Patch1: smeserver-sysmon-6.4.fix_swap_information.patch |
Patch1: smeserver-sysmon-6.4.fix_swap_information.patch |
26 |
|
|
27 |
%changelog |
%changelog |
28 |
|
* Thu Jan 18 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 6.4-6.sme |
29 |
|
- Fix database backups iunspec file [[SME: 7096]] |
30 |
|
|
31 |
* 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 |
32 |
- Fix missing swap information [[SME: 10493]] |
- Fix missing swap information [[SME: 10493]] |
33 |
- Remove unnecessary daemonising line |
- Remove unnecessary daemonising line |
73 |
|
|
74 |
%post |
%post |
75 |
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) |
|
76 |
/sbin/service sysmon restart &> /dev/null || : |
/sbin/service sysmon restart &> /dev/null || : |
77 |
fi |
fi |
78 |
|
|
79 |
|
|
80 |
%preun |
%preun |
81 |
if [ $1 -eq 0 ]; then |
if [ $1 -eq 0 ]; then |
82 |
/sbin/service sysmon stop &> /dev/null || : |
/sbin/service sysmon stop &> /dev/null || : |