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

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