1 |
|
# $Id: smeserver-sysmon.spec,v 1.6 2008/04/02 15:03:59 slords Exp $ |
2 |
|
# Authority: slords |
3 |
|
# 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.1 |
%define version 6.1 |
9 |
%define release 1 |
%define release 2 |
10 |
Version: %{version} |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
12 |
License: Freely distributable |
License: Freely distributable |
23 |
AutoReqProv: no |
AutoReqProv: no |
24 |
|
|
25 |
%changelog |
%changelog |
26 |
* Thu Mar 27 2008 Michel Van hees <michel@vanhees.cc> 6.1-1 |
* Sat Mar 29 2008 Shad L. Lords <slords@mail.com> 6.1-2 |
27 |
|
- Clean up scripts to ensure clean upgrade |
28 |
|
|
29 |
|
* Thu Mar 27 2008 Shad L. Lords <slords@mail.com> 6.1-1 |
30 |
- Upgrade to new sysmon routines |
- Upgrade to new sysmon routines |
31 |
- Make compatible with rrdtool 1.2 |
- Make compatible with rrdtool 1.2 |
32 |
- Format graphs so they look better |
- Format graphs so they look better |
206 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
207 |
|
|
208 |
%pre |
%pre |
209 |
if [ $1 -ge 2 ] ; then |
if [ $1 -ge 1 ]; then |
210 |
|
/sbin/service sysmon stop &> /dev/null || : |
211 |
|
fi |
212 |
|
|
213 |
|
%post |
214 |
|
if [ $1 -ge 2 ]; then |
215 |
mkdir -p /var/lib/rrd/backup |
mkdir -p /var/lib/rrd/backup |
216 |
/bin/mv /var/lib/rrd/*.rrd /var/lib/rrd/backup/ 2> /dev/null || : |
/bin/mv /var/lib/rrd/*.rrd /var/lib/rrd/backup/ &> /dev/null |
217 |
|
# FIXME: Fix for broken postun in previous versions (remove later) |
218 |
|
/sbin/service sysmon restart &> /dev/null || : |
219 |
|
fi |
220 |
|
|
221 |
|
%preun |
222 |
|
if [ $1 -eq 0 ]; then |
223 |
|
/sbin/service sysmon stop &> /dev/null || : |
224 |
|
fi |
225 |
|
|
226 |
|
%postun |
227 |
|
if [ $1 -ge 1 ]; then |
228 |
|
/sbin/service sysmon restart &> /dev/null || : |
229 |
fi |
fi |
230 |
|
|
231 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |