/[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.7 - (hide annotations) (download)
Thu Mar 5 20:42:56 2009 UTC (15 years, 3 months ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-sme7admin-1_1_1-2_el4_sme
Changes since 1.6: +44 -42 lines
translate spec file in english

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

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