2 |
%define name smeserver-sysmon |
%define name smeserver-sysmon |
3 |
Name: %{name} |
Name: %{name} |
4 |
%define version 6.1 |
%define version 6.1 |
5 |
%define release 1 |
%define release 2 |
6 |
Version: %{version} |
Version: %{version} |
7 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
8 |
License: Freely distributable |
License: Freely distributable |
19 |
AutoReqProv: no |
AutoReqProv: no |
20 |
|
|
21 |
%changelog |
%changelog |
22 |
* 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 |
23 |
|
- Clean up scripts to ensure clean upgrade |
24 |
|
|
25 |
|
* Thu Mar 27 2008 Shad L. Lords <slords@mail.com> 6.1-1 |
26 |
- Upgrade to new sysmon routines |
- Upgrade to new sysmon routines |
27 |
- Make compatible with rrdtool 1.2 |
- Make compatible with rrdtool 1.2 |
28 |
- Format graphs so they look better |
- Format graphs so they look better |
202 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
203 |
|
|
204 |
%pre |
%pre |
205 |
if [ $1 -ge 2 ] ; then |
if [ $1 -ge 1 ]; then |
206 |
|
/sbin/service sysmon stop &> /dev/null || : |
207 |
|
fi |
208 |
|
|
209 |
|
%post |
210 |
|
if [ $1 -ge 2 ]; then |
211 |
mkdir -p /var/lib/rrd/backup |
mkdir -p /var/lib/rrd/backup |
212 |
/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 |
213 |
|
# FIXME: Fix for broken postun in previous versions (remove later) |
214 |
|
/sbin/service sysmon restart &> /dev/null || : |
215 |
|
fi |
216 |
|
|
217 |
|
%preun |
218 |
|
if [ $1 -eq 0 ]; then |
219 |
|
/sbin/service sysmon stop &> /dev/null || : |
220 |
|
fi |
221 |
|
|
222 |
|
%postun |
223 |
|
if [ $1 -ge 1 ]; then |
224 |
|
/sbin/service sysmon restart &> /dev/null || : |
225 |
fi |
fi |
226 |
|
|
227 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |