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

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

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


Revision 1.11 - (hide annotations) (download)
Mon Mar 16 18:32:18 2009 UTC (15 years, 8 months ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-sme7admin-1_1_1-6_el4_sme
Changes since 1.10: +7 -2 lines
Use a regexp to detect the locale

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

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