1 |
# $Id: smeserver-sme7admin.spec,v 1.6 2009/03/05 19:08:58 slords Exp $ |
2 |
# Authority: vip-ire |
3 |
# Name: Daniel Berteaud |
4 |
|
5 |
Summary: A graphical monitor, alert raising, and services supervision tool for your SME Server. |
6 |
%define name smeserver-sme7admin |
7 |
Name: %{name} |
8 |
%define version 1.1.1 |
9 |
%define release 2 |
10 |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
12 |
License: GPL |
13 |
Group: Networking/Daemons |
14 |
Source: %{name}-%{version}.tar.gz |
15 |
Patch1: smeserver-sme6admin-1.1.1-toenglish.patch |
16 |
|
17 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
18 |
BuildArchitectures: noarch |
19 |
|
20 |
BuildRequires: e-smith-devtools |
21 |
BuildRequires: gettext |
22 |
|
23 |
Requires: e-smith-base |
24 |
Requires: rrdtool-perl |
25 |
Requires: rrdtool |
26 |
Requires: hddtemp |
27 |
Requires: sysstat < 5.1 |
28 |
Requires: lm_sensors |
29 |
|
30 |
AutoReqProv: no |
31 |
|
32 |
%changelog |
33 |
* Thu Mar 5 2009 Daniel B. <daniel@firewall-services.com> 1.1.1-2.sme |
34 |
- translate spec file in english |
35 |
|
36 |
* Thu Mar 5 2009 Daniel B. <daniel@firewall-services.com> 1.1.1-1.sme |
37 |
- Roll new version in prep for translation |
38 |
- Convert base strings to english |
39 |
|
40 |
* Tue Mar 03 2009 Daniel B. <daniel@firewall-services.com> 1.1.0-7 |
41 |
- Split Requires in several lines |
42 |
- Add e-smith-devtools as a build dependency |
43 |
|
44 |
* Tue Feb 17 2009 Daniel B. <daniel@firewall-services.com> 1.1.0-6 |
45 |
- Fixes in spec file |
46 |
- Fix links for graphs in userpanels |
47 |
- move db initialization from spec file to source archive |
48 |
|
49 |
* Thu Aug 13 2008 Daniel B. <daniel@firewall-services.com> 1.1.0-5 |
50 |
- Fix configuration db flush when we use the mini form |
51 |
to configure alerts [SME: 4435] |
52 |
|
53 |
* Mon Jun 23 2008 Daniel B. <daniel@firewal-services.com> 1.1.0-4 |
54 |
- fix a bug when a configuration value is 0 [SME: 4420] |
55 |
- fix service name (smbd, not smb) [SME: 4419] |
56 |
|
57 |
* Fri Jun 13 2008 Daniel B. <daniel@firewall-services.com> 1.1.0-3 |
58 |
- compatibility with rrdtool 1.2 [SME: 3729] |
59 |
- compatibility with new service status output [SME: 2987] |
60 |
- correct sme7admind not starting after a crash (existing pid file)[SME: 1451][SME: 3022] |
61 |
- configuration is stored in the db |
62 |
- unique radom mysql password for new install |
63 |
- fixed some warnings in httpd/admin_error_log |
64 |
- clean the spec file |
65 |
- some code cleaning |
66 |
|
67 |
* Wed Feb 01 2006 Landry Breuil <landry@firewall-services.com> |
68 |
- v1.1.0 |
69 |
- renamed to smeserver-sme7admin |
70 |
- only compatible with sme7 from now |
71 |
- Major rewrite, BIG code cleanup |
72 |
- configuration stored in a file |
73 |
- a LOT more things configurable |
74 |
- Add sme7 specific services |
75 |
- Add a link for thresold configuration in alerts emails |
76 |
- Add 'netstat -tpl' and 'w' on the main page |
77 |
|
78 |
* Mon Oct 03 2005 Cyril Dumas <cyril@firewall-services.com> |
79 |
- v1.0.5 |
80 |
- Fix some bugs so it can run on sme7 |
81 |
- lots of modifications for sme7 |
82 |
|
83 |
* Tue Feb 01 2005 Landry Breuil <landry@firewall-services.com> |
84 |
- v1.0.4 |
85 |
- use gettext for all text outputs |
86 |
- english translation for panel and emails |
87 |
- include .po files for french and english |
88 |
|
89 |
* Tue Sep 14 2004 Landry Breuil <landry@firewall-services.com> |
90 |
- v1.0.3 |
91 |
- Add afp in sessions graph |
92 |
- Network graphs enhancement |
93 |
- Add server trafic other than forward |
94 |
- Enhance panel and short_status (easter-egg ;)) |
95 |
- Fix ftp anonymous client bug |
96 |
- possibility to disable alerts |
97 |
- clean /var/tmp during logrotate |
98 |
|
99 |
* Thu Aug 26 2004 Landry Breuil <landry@firewall-services.com> |
100 |
- v1.0.2 |
101 |
- Full Compatibility with 5.6 |
102 |
- Support for US locale (0.0 => 0,0) |
103 |
- Added temp hd 2 |
104 |
- Correct regexp on hostname |
105 |
|
106 |
* Tue Aug 10 2004 Landry Breuil <landry@firewall-services.com> |
107 |
- Fix postinstall and preun scripts for upgrades |
108 |
- Fix service not starting after a reboot |
109 |
|
110 |
* Mon Aug 9 2004 Landry Breuil <landry@firewall-services.com> |
111 |
- v1.0.1 |
112 |
- Add status interval parameter |
113 |
- Better compatibility with SME 5.6 |
114 |
|
115 |
* Fri Aug 6 2004 Landry Breuil <landry@firewall-services.com> |
116 |
- v1.0.0 |
117 |
|
118 |
%description |
119 |
The main part of sme7admin is a daemon which gathers informations from logs |
120 |
and other tools like systat, it then feed a mysql database and create RRD |
121 |
graphs about your system state. |
122 |
This daemon can also send periodics mails (with some logs), and alerts mails |
123 |
based on configurable thresolds. |
124 |
|
125 |
A panel is also available in the server-manager, with which you can access gathered |
126 |
data, display the RRD graphs and configure the service. |
127 |
|
128 |
This contrib is a bit inspired by e-smith-sysmon from Shad Lords. |
129 |
|
130 |
%prep |
131 |
%setup |
132 |
%patch1 -p1 |
133 |
|
134 |
%build |
135 |
perl createlinks |
136 |
%{__mkdir_p} root/etc/e-smith/web/panels/manager/html/sme7admin |
137 |
%{__mkdir_p} root/usr/share/locale/en_US/LC_MESSAGES |
138 |
|
139 |
xgettext --from-code UTF-8 -F --no-wrap -L perl \ |
140 |
-o root/usr/share/locale/en_US/LC_MESSAGES/sme7admin.po \ |
141 |
root/etc/e-smith/web/functions/sme7admin \ |
142 |
root/usr/bin/sme7admind |
143 |
|
144 |
/sbin/e-smith/generate-lexicons |
145 |
|
146 |
%install |
147 |
rm -rf $RPM_BUILD_ROOT |
148 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
149 |
rm -f %{name}-%{version}-filelist |
150 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
151 |
|
152 |
%clean |
153 |
rm -rf $RPM_BUILD_ROOT |
154 |
|
155 |
%pre |
156 |
# This is to correct a bug in the previous version |
157 |
if [ -e /etc/e-smith/web/panels/manager/html/sme7admin/sme7admin.conf ]; then |
158 |
cp -a /etc/e-smith/web/panels/manager/html/sme7admin/sme7admin.conf \ |
159 |
/etc/e-smith/web/panels/manager/html/sme7admin/_sme7admin.conf |
160 |
fi |
161 |
|
162 |
%preun |
163 |
|
164 |
%post |
165 |
|
166 |
if [ $1 -eq 1 ] |
167 |
then |
168 |
|
169 |
if [ -d /var/lib/sme6admin ] && [ -d /var/lib/mysql/sme6admin/ ] |
170 |
then |
171 |
echo "You may now safely remove sme6admin. Datas were migrated to sme7admin." |
172 |
echo "Execute 'rpm -e e-smith-sme6admin' and maybe 'mysqladmin drop sme6admin' and 'rm -Rf /var/lib/sme6admin' to completely remove sme6admin." |
173 |
fi |
174 |
|
175 |
fi |
176 |
|
177 |
%postun |
178 |
|
179 |
%files -f %{name}-%{version}-filelist |
180 |
%defattr(-,root,root) |
181 |
%attr(755,root,root) /etc/e-smith/sql/init/sme7admin |
182 |
|