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

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

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


Revision 1.8 - (show annotations) (download)
Thu Mar 5 21:40:39 2009 UTC (15 years, 3 months ago) by slords
Branch: MAIN
CVS Tags: smeserver-sme7admin-1_1_1-3_el4_sme
Changes since 1.7: +7 -2 lines
* Thu Mar 05 2009 SME Translation Server <translations@contribs.org> 1.1.1-3.sme
- apply locale 2009-03-05 patch

1 # $Id: smeserver-sme7admin.spec,v 1.7 2009/03/05 20:42:56 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 3
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
18 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
19 BuildArchitectures: noarch
20
21 BuildRequires: e-smith-devtools
22 BuildRequires: gettext
23
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 AutoReqProv: no
32
33 %changelog
34 * Thu Mar 05 2009 SME Translation Server <translations@contribs.org> 1.1.1-3.sme
35 - apply locale 2009-03-05 patch
36
37 * Thu Mar 5 2009 Daniel B. <daniel@firewall-services.com> 1.1.1-2.sme
38 - translate spec file in english
39
40 * Thu Mar 5 2009 Daniel B. <daniel@firewall-services.com> 1.1.1-1.sme
41 - Roll new version in prep for translation
42 - Convert base strings to english
43
44 * 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 * 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 - 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
82 * Mon Oct 03 2005 Cyril Dumas <cyril@firewall-services.com>
83 - v1.0.5
84 - Fix some bugs so it can run on sme7
85 - lots of modifications for sme7
86
87 * Tue Feb 01 2005 Landry Breuil <landry@firewall-services.com>
88 - v1.0.4
89 - use gettext for all text outputs
90 - english translation for panel and emails
91 - include .po files for french and english
92
93 * Tue Sep 14 2004 Landry Breuil <landry@firewall-services.com>
94 - v1.0.3
95 - 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
103 * Thu Aug 26 2004 Landry Breuil <landry@firewall-services.com>
104 - v1.0.2
105 - 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
110 * Tue Aug 10 2004 Landry Breuil <landry@firewall-services.com>
111 - Fix postinstall and preun scripts for upgrades
112 - Fix service not starting after a reboot
113
114 * Mon Aug 9 2004 Landry Breuil <landry@firewall-services.com>
115 - v1.0.1
116 - Add status interval parameter
117 - Better compatibility with SME 5.6
118
119 * Fri Aug 6 2004 Landry Breuil <landry@firewall-services.com>
120 - v1.0.0
121
122 %description
123 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
129 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
132 This contrib is a bit inspired by e-smith-sysmon from Shad Lords.
133
134 %prep
135 %setup
136 %patch1 -p1
137 %patch2 -p1
138
139 %build
140 perl createlinks
141 %{__mkdir_p} root/etc/e-smith/web/panels/manager/html/sme7admin
142 %{__mkdir_p} root/usr/share/locale/en_US/LC_MESSAGES
143
144 xgettext --from-code UTF-8 -F --no-wrap -L perl \
145 -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
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

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