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