/[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.9 - (show annotations) (download)
Thu Mar 5 21:55:07 2009 UTC (15 years, 8 months ago) by slords
Branch: MAIN
Changes since 1.8: +8 -3 lines
See changelog

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

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