1 |
|
# $Id: smeserver-sysmon.spec,v 1.8 2008/11/25 16:20:31 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 3 |
10 |
Version: %{version} |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
12 |
License: Freely distributable |
License: Freely distributable |
13 |
Group: Service |
Group: Service |
14 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
15 |
|
Patch0: smeserver-sysmon-6.1-lang-fix.patch |
16 |
BuildRoot: /var/tmp/e-smith-buildroot |
BuildRoot: /var/tmp/e-smith-buildroot |
17 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
18 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
24 |
AutoReqProv: no |
AutoReqProv: no |
25 |
|
|
26 |
%changelog |
%changelog |
27 |
* Thu Mar 27 2008 Shad L. Lords <slords@mail.com> 6.1-1 |
* Sat Mar 29 2008 Shad L. Lords <slords@mail.com> 6.1-3.sme |
28 |
|
- Fix LANG env so output can be recognized [SME: 4143] |
29 |
|
|
30 |
|
* Sat Mar 29 2008 Shad L. Lords <slords@mail.com> 6.1-2.sme |
31 |
|
- Clean up scripts to ensure clean upgrade |
32 |
|
|
33 |
|
* Thu Mar 27 2008 Shad L. Lords <slords@mail.com> 6.1-1.sme |
34 |
- Upgrade to new sysmon routines |
- Upgrade to new sysmon routines |
35 |
- Make compatible with rrdtool 1.2 |
- Make compatible with rrdtool 1.2 |
36 |
- Format graphs so they look better |
- Format graphs so they look better |
193 |
|
|
194 |
%prep |
%prep |
195 |
%setup |
%setup |
196 |
#%patch0 -p1 |
%patch0 -p1 |
|
#%patch1 -p1 |
|
197 |
|
|
198 |
%build |
%build |
199 |
perl createlinks |
perl createlinks |
209 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
210 |
|
|
211 |
%pre |
%pre |
212 |
if [ $1 -ge 2 ] ; then |
if [ $1 -ge 1 ]; then |
213 |
|
/sbin/service sysmon stop &> /dev/null || : |
214 |
|
fi |
215 |
|
|
216 |
|
%post |
217 |
|
if [ $1 -ge 2 ]; then |
218 |
mkdir -p /var/lib/rrd/backup |
mkdir -p /var/lib/rrd/backup |
219 |
/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 |
220 |
|
# FIXME: Fix for broken postun in previous versions (remove later) |
221 |
|
/sbin/service sysmon restart &> /dev/null || : |
222 |
|
fi |
223 |
|
|
224 |
|
%preun |
225 |
|
if [ $1 -eq 0 ]; then |
226 |
|
/sbin/service sysmon stop &> /dev/null || : |
227 |
|
fi |
228 |
|
|
229 |
|
%postun |
230 |
|
if [ $1 -ge 1 ]; then |
231 |
|
/sbin/service sysmon restart &> /dev/null || : |
232 |
fi |
fi |
233 |
|
|
234 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |