/[smecontribs]/rpms/smeserver-sysmon/contribs7/smeserver-sysmon.spec
ViewVC logotype

Contents of /rpms/smeserver-sysmon/contribs7/smeserver-sysmon.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.12 - (show annotations) (download)
Thu Aug 16 00:15:28 2012 UTC (12 years, 2 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-sysmon-6_1-5_el4_sme, HEAD
Changes since 1.11: +8 -2 lines
update for sysstat and 64bits

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
6 %define name smeserver-sysmon
7 Name: %{name}
8 %define version 6.1
9 %define release 5
10 Version: %{version}
11 Release: %{release}%{?dist}
12 License: Freely distributable
13 Group: Service
14 Source: %{name}-%{version}.tar.gz
15 Patch0: smeserver-sysmon-6.1-lang-fix.patch
16 Patch1: smeserver-sysmon-6.1-patch1.patch
17 BuildRoot: /var/tmp/e-smith-buildroot
18 BuildRequires: e-smith-devtools
19 BuildArchitectures: noarch
20 Requires: smeserver-release >= 7
21 Requires: sysstat >= 5
22 Requires: rrdtool >= 1.2
23 Requires: perl(RRDs)
24 Requires: fping
25 AutoReqProv: no
26
27 %changelog
28 * Wed Aug 15 2012 JP Pialasse <tests@pialasse.com> 6.1-5.sme
29 - updated to also support sysstat 7 [SME 7010]
30 - updated to support 64 bit system
31
32 * Thu Dec 2 2010 Shad L. Lords <slords@mail.com> 6.1-4.sme
33 - Fix typo in last patch [SME: 4143]
34
35 * Wed Dec 1 2010 Shad L. Lords <slords@mail.com> 6.1-3.sme
36 - Fix LANG env so output can be recognized [SME: 4143]
37
38 * Sat Mar 29 2008 Shad L. Lords <slords@mail.com> 6.1-2.sme
39 - Clean up scripts to ensure clean upgrade
40
41 * 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>
48 - 4.1-1
49 - changed rrd file layout to include max/min/avg
50 - added support for nutups logging
51 - changed graphs to use all functions
52 - removed sysmon conversion from v2.0
53
54 * Thu Apr 10 2003 Shad L. Lords <slords@mail.com>
55 - 4.0-9
56 - fixed gateway to find default gateway only
57
58 * Wed Jan 22 2003 Shad L. Lords <slords@mail.com>
59 - 4.0-8
60 - fixed decimal point (accept . or ,)
61 - updated sensors to accept numbers without decimals
62
63 * Fri Jan 3 2003 Shad L. Lords <slords@mail.com>
64 - 4.0-7
65 - need of code police again (!= not same as ne). Thanks Craig Foster.
66
67 * Fri Jan 3 2003 Shad L. Lords <slords@mail.com>
68 - 4.0-6
69 - more updates for sensors
70 - don't save sensors or ups if no data found
71 - timeout ping after (interval*count+2) (7) seconds (hang bug)
72
73 * Wed Jan 1 2003 Shad L. Lords <slords@mail.com>
74 - 4.0-5
75 - more updates for sensors
76
77 * Tue Dec 31 2002 Shad L. Lords <slords@mail.com>
78 - 4.0-4
79 - added swap to memory graph
80
81 * Tue Dec 31 2002 Shad L. Lords <slords@mail.com>
82 - 4.0-3
83 - updated sensors to pull more combinations
84
85 * Tue Dec 31 2002 Shad L. Lords <slords@mail.com>
86 - 4.0-2
87 - update ups headers to not wrap
88
89 * Mon Dec 30 2002 Shad L. Lords <slords@mail.com>
90 - 4.0-1
91 - updated graph formats (more condensed, no percentages)
92 - added new CPU graph (with support for individual CPU's)
93 - changed format of memory graph (more detail)
94 - added sensors graphs (temperature, voltage, fans)
95 - added apcupsd graphs (ups, ups-2)
96 - changed format of harddrive graph (stacked, old one still there as MEM2)
97
98 * Sun Dec 29 2002 Shad L. Lords <slords@mail.com>
99 - 3.5-1
100 - added integration with apcupsd (collection)
101 - added integration with lm_sensors (collection)
102 - added new system/user/nice CPU graph (manual)
103
104 * Fri Dec 13 2002 Shad L. Lords <slords@mail.com>
105 - 3.1-3
106 - fixed hard drive space detection for all devices
107 - made hard drive space more accurate
108
109 * Fri Dec 13 2002 Shad L. Lords <slords@mail.com>
110 - 3.1-2
111 - changed name to e-smith-sysmon
112 - fixed hard drive space detection for software raid
113
114 * Wed Aug 21 2002 Shad L. Lords <slords@mail.com>
115 - 3.1-1
116 - corrected bug to work with newer version of ping
117 - update routines to work better with v5.5 and v5.6alpha
118
119 * Sun Aug 4 2002 Shad L. Lords <slords@mail.com>
120 - 3.0-16
121 - Changed spec file to just require rrdtool and not a specific version
122 - Changed graphing code to work with newer version of rrdtool
123 - Added stats for each seperate CPU and hard drive (no graphs yet)
124
125 * Mon Mar 25 2002 Shad L. Lords <slords@mail.com>
126 - 3.0-15
127 - Fixed bug in daemonizing code to allow ip addresses.
128 - Fixed bug in service code to remove lockfile if dead.
129
130 * Tue Mar 19 2002 Shad L. Lords <slords@mail.com>
131 - 3.0-14
132 - Included labels in links for both graph pages
133
134 * Fri Mar 15 2002 Juan J. Prieto
135 - 3.0-13
136 - Minor change in spec file (Group)
137
138 * Thu Mar 7 2002 Shad L. Lords <slords@mail.com>
139 - 3.0-12
140 - Daemonized pinging routine and adjusted timing for pings.
141
142 * Sat Mar 2 2002 Shad L. Lords <slords@mail.com>
143 - 3.0-11
144 - Fixed bug in untainting code to allow '.' for hosts.
145
146 * Sat Mar 2 2002 Shad L. Lords <slords@mail.com>
147 - 3.0-10
148 - Added scaling to sysmonconv for more accurate conversion.
149 - Added data to DS:MAX for sysmonconv so max values show up.
150 - Adjusted runtime for sysmon so falls on 0 secs.
151 - Fixed bug with empty $badifaces in sysmon and sysmonconv.
152
153 * Fri Mar 1 2002 Shad L. Lords <slords@mail.com>
154 - 3.0-09
155 - Fixed bug in sysmonconv if no old database exists.
156
157 * Fri Mar 1 2002 Shad L. Lords <slords@mail.com>
158 - 3.0-08
159 - Fixed sysmonconv script to convert all old databases.
160 - Fixed sysmonconv to run faster.
161 - Added sysmonconv to %post script.
162
163 * Thu Feb 28 2002 Shad L. Lords <slords@mail.com>
164 - 3.0-07
165 - Added user, nice, system cpu time to database.
166 - Added sysmonconv script to convert eth,ppp interfaces to new format.
167
168 * Thu Feb 28 2002 Shad L. Lords <slords@mail.com>
169 - 3.0-06
170 - Fixed more problems in RPM spec file.
171 - Renamed sysmonitor to sysmon so as not to conflict with e-smith-monitor.
172
173 * Thu Feb 28 2002 Shad L. Lords <slords@mail.com>
174 - 3.0-05
175 - Fixed problems in RPM spec file.
176 - Added Obsoletes for old e-smith-monitor package
177
178 * Thu Feb 28 2002 Shad L. Lords <slords@mail.com>
179 - 3.0-04
180 - Changed webmonitor to sysmon in web/functions.
181 - Changed copyright footer notice to reflect Mitel's standard.
182 - Fixed problem with old packages not uninstalling.
183
184 * Wed Feb 27 2002 Shad L. Lords <slords@mail.com>
185 - 3.0-03
186 - Changed gather script to be daemon instead of cronjob.
187 - Changed gather script to use perl module instead of executable.
188
189 * Wed Feb 27 2002 Juan J. Prieto <jjptapia@eresmas.com>
190 - 3.0-02
191 - Now the web panel runs with the Taint and warnings up (-wT). Secure mode!.
192 - Conflicts bug fixed in the spec (e-smith-monitor only).
193 - The copyright is licensed under GPL.
194
195 * Mon Feb 25 2002 Shad L. Lords <slords@mail.com>
196 - 3.0-01
197 - initial release. Completely rewriten Monitor.
198
199 %description
200 System monitor for SME Server version 7
201
202 %prep
203 %setup
204 %patch0 -p1
205 %patch1 -p1
206
207 %build
208 perl createlinks
209
210 %install
211 rm -rf $RPM_BUILD_ROOT
212 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
213 rm -f %{name}-%{version}-filelist
214 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
215 echo "%doc COPYING" >> %{name}-%{version}-filelist
216
217 %clean
218 rm -rf $RPM_BUILD_ROOT
219
220 %pre
221 if [ $1 -ge 1 ]; then
222 /sbin/service sysmon stop &> /dev/null || :
223 fi
224
225 %post
226 if [ $1 -ge 2 ]; then
227 mkdir -p /var/lib/rrd/backup
228 /bin/mv /var/lib/rrd/*.rrd /var/lib/rrd/backup/ &> /dev/null
229 # FIXME: Fix for broken postun in previous versions (remove later)
230 /sbin/service sysmon restart &> /dev/null || :
231 fi
232
233 %preun
234 if [ $1 -eq 0 ]; then
235 /sbin/service sysmon stop &> /dev/null || :
236 fi
237
238 %postun
239 if [ $1 -ge 1 ]; then
240 /sbin/service sysmon restart &> /dev/null || :
241 fi
242
243 %files -f %{name}-%{version}-filelist
244 %defattr(-,root,root)

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed