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