1 |
|
# $Id: smeserver-sysmon.spec,v 1.11 2010/12/02 15:42:20 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 5.0 |
%define version 6.1 |
9 |
%define release 4 |
%define release 5 |
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: %{name}-%{version}.patch.yyyymmddnn |
Patch0: smeserver-sysmon-6.1-lang-fix.patch |
16 |
|
Patch1: smeserver-sysmon-6.1-patch1.patch |
17 |
BuildRoot: /var/tmp/e-smith-buildroot |
BuildRoot: /var/tmp/e-smith-buildroot |
18 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
19 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
20 |
Requires: smeserver-release >= 7, sysstat >= 5, rrdtool >= 1, perl-rrdtool >= 1 |
Requires: smeserver-release >= 7 |
21 |
|
Requires: sysstat >= 5 |
22 |
|
Requires: rrdtool >= 1.2 |
23 |
|
Requires: perl(RRDs) |
24 |
|
Requires: fping |
25 |
AutoReqProv: no |
AutoReqProv: no |
26 |
|
|
27 |
%changelog |
%changelog |
28 |
* Thu Oct 25 2007 Michel Van hees <michel@vanhees.cc> |
* Wed Aug 15 2012 JP Pialasse <tests@pialasse.com> 6.1-5.sme |
29 |
- Fix a bug with different language |
- updated to also support sysstat 7 [SME 7010] |
30 |
|
- updated to support 64 bit system |
31 |
* Mon Jul 24 2006 Michel Van hees <michel@vanhees.cc> |
|
32 |
- 5.0.3 |
* Thu Dec 2 2010 Shad L. Lords <slords@mail.com> 6.1-4.sme |
33 |
- Multi cpu graph display |
- Fix typo in last patch [SME: 4143] |
34 |
|
|
35 |
* Fri Jul 14 2006 Michel Van hees <michel@vanhees.cc> |
* Wed Dec 1 2010 Shad L. Lords <slords@mail.com> 6.1-3.sme |
36 |
- 5.0.2 |
- Fix LANG env so output can be recognized [SME: 4143] |
37 |
- Disk size bug correction |
|
38 |
|
* Sat Mar 29 2008 Shad L. Lords <slords@mail.com> 6.1-2.sme |
39 |
* Sat Jul 08 2006 Michel Van hees <michel@vanhees.cc> |
- Clean up scripts to ensure clean upgrade |
40 |
- 5.0-1 |
|
41 |
- adapt to sme server version 7 |
* Thu Mar 27 2008 Shad L. Lords <slords@mail.com> 6.1-1.sme |
42 |
|
- Upgrade to new sysmon routines |
43 |
|
- Make compatible with rrdtool 1.2 |
44 |
|
- Format graphs so they look better |
45 |
|
- Make compatible with SME 7 & 8 |
46 |
|
|
47 |
* Fri Apr 11 2003 Shad L. Lords <slords@mail.com> |
* Fri Apr 11 2003 Shad L. Lords <slords@mail.com> |
48 |
- 4.1-1 |
- 4.1-1 |
197 |
- initial release. Completely rewriten Monitor. |
- initial release. Completely rewriten Monitor. |
198 |
|
|
199 |
%description |
%description |
200 |
ubar compiled for smeserver version 7 |
System monitor for SME Server version 7 |
201 |
|
|
202 |
%prep |
%prep |
203 |
%setup |
%setup |
204 |
#%patch0 -p1 |
%patch0 -p1 |
205 |
#%patch1 -p1 |
%patch1 -p1 |
206 |
|
|
207 |
%build |
%build |
208 |
perl createlinks |
perl createlinks |
218 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
219 |
|
|
220 |
%pre |
%pre |
221 |
%preun |
if [ $1 -ge 1 ]; then |
222 |
|
/sbin/service sysmon stop &> /dev/null || : |
223 |
|
fi |
224 |
|
|
225 |
%post |
%post |
226 |
/sbin/e-smith/db configuration set sysmon service status enabled |
if [ $1 -ge 2 ]; then |
227 |
/sbin/e-smith/signal-event conf-sysmon |
mkdir -p /var/lib/rrd/backup |
228 |
/usr/bin/killall sysmon > /dev/null 2>&1 |
/bin/mv /var/lib/rrd/*.rrd /var/lib/rrd/backup/ &> /dev/null |
229 |
/usr/sbin/sysmon > /dev/null 2>&1 |
# FIXME: Fix for broken postun in previous versions (remove later) |
230 |
/etc/e-smith/events/actions/navigation-conf >/dev/null 2>&1 |
/sbin/service sysmon restart &> /dev/null || : |
231 |
cat << DONE |
fi |
232 |
|
|
233 |
* If you are upgrading from a previous version you must remove |
%preun |
234 |
all rrd files from /var/lib/rrd or graphs will not display |
if [ $1 -eq 0 ]; then |
235 |
correctly. |
/sbin/service sysmon stop &> /dev/null || : |
236 |
|
fi |
|
DONE |
|
237 |
|
|
238 |
%postun |
%postun |
239 |
/sbin/e-smith/db configuration delete sysmon |
if [ $1 -ge 1 ]; then |
240 |
/etc/e-smith/events/actions/navigation-conf >/dev/null 2>&1 |
/sbin/service sysmon restart &> /dev/null || : |
|
if ! [[ -e /usr/sbin/sysmon ]]; then |
|
|
/usr/bin/killall sysmon > /dev/null 2>&1; |
|
241 |
fi |
fi |
242 |
|
|
243 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |