/[smecontribs]/rpms/smeserver-sme8admin/contribs8/smeserver-sme8admin.spec
ViewVC logotype

Contents of /rpms/smeserver-sme8admin/contribs8/smeserver-sme8admin.spec

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


Revision 1.4 - (show annotations) (download)
Mon Dec 30 06:47:01 2013 UTC (10 years, 11 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-sme8admin-1_3-4_el5_sme, HEAD
Changes since 1.3: +12 -3 lines
* Sun Dec 15 2013 JP Pialasse <test@pialasse.com> 1.3-4.sme
- fix obsolete missing [SME: 7109]
- fix pppoe and vpn loging [SME: 8061]
- added monthly ppoe log
- fix stop on mysql error too many connections [SME: 7683]

1 # $Id: smeserver-sme8admin.spec,v 1.3 2012/09/10 00:47:40 unnilennium Exp $
2 # Authority: vip-ire
3 # Name: Daniel Berteaud
4 #
5
6 Summary: A graphical monitor, alert raising, and services supervision tool for your SME Server.
7 %define name smeserver-sme8admin
8 Name: %{name}
9 %define version 1.3
10 %define release 4
11 Version: %{version}
12 Release: %{release}%{?dist}
13 License: GPL
14 Group: Networking/Daemons
15 Source: %{name}-%{version}.tgz
16 Patch0: smeserver-sme8admin-64bit.patch
17 Patch1: smeserver-sme8admin-1.3-startup.patch
18 Patch2: smeserver-sme8admin-1.3-newsql.patch
19
20 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
21 BuildArchitectures: noarch
22
23 BuildRequires: e-smith-devtools
24 BuildRequires: gettext
25
26 Requires: e-smith-base
27 Requires: smeserver-release >= 8
28 Requires: rrdtool-perl
29 Requires: rrdtool
30 Requires: hddtemp
31 Requires: sysstat
32 Requires: lm_sensors
33 Obsoletes: smeserver-sme7admin
34 Obsoletes: smeserver-sme6admin
35
36 AutoReqProv: no
37
38 %changelog
39 * Sun Dec 15 2013 JP Pialasse <test@pialasse.com> 1.3-4.sme
40 - fix obsolete missing [SME: 7109]
41 - fix pppoe and vpn loging [SME: 8061]
42 - added monthly ppoe log
43 - fix stop on mysql error too many connections [SME: 7683]
44
45 * Sun Sep 09 2012 JP Pialasse <test@pialasse.com> 1.3-3.sme
46 - startup fix [SME 3022]
47
48 * Wed Aug 15 2012 JP Pialasse <test@pialasse.com> 1.3-2.sme
49 - 64 bits [SME 7040]
50
51 * Sun Jun 10 2012 JP Pialasse <test@pialasse.com> 1.3-1.sme
52 - Initial version
53
54 %description
55 The main part of sme8admin is a daemon which gathers informations from logs
56 and other tools like systat, it then feed a mysql database and create RRD
57 graphs about your system state.
58 This daemon can also send periodics mails (with some logs), and alerts mails
59 based on configurable thresolds.
60
61 A panel is also available in the server-manager, with which you can access gathered
62 data, display the RRD graphs and configure the service.
63
64 This contrib is a bit inspired by e-smith-sysmon from Shad Lords.
65
66 %prep
67 %setup
68 %patch0 -p1
69 %patch1 -p1
70 %patch2 -p1
71
72 %build
73 perl createlinks
74 %{__mkdir_p} root/etc/e-smith/web/panels/manager/html/sme8admin
75 %{__mkdir_p} root/usr/share/locale/en_US/LC_MESSAGES
76
77 xgettext --from-code UTF-8 -F --no-wrap -L perl \
78 -o root/usr/share/locale/en_US/LC_MESSAGES/sme8admin.po \
79 root/etc/e-smith/web/functions/sme8admin \
80 root/usr/bin/sme8admind
81
82 /sbin/e-smith/generate-lexicons
83
84 %install
85 rm -rf $RPM_BUILD_ROOT
86 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
87 rm -f %{name}-%{version}-filelist
88 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
89
90 %clean
91 rm -rf $RPM_BUILD_ROOT
92
93 %pre
94 # This is to correct a bug in the previous version
95 if [ -e /etc/e-smith/web/panels/manager/html/sme7admin/sme7admin.conf ]; then
96 cp -a /etc/e-smith/web/panels/manager/html/sme7admin/sme7admin.conf \
97 /etc/e-smith/web/panels/manager/html/sme7admin/_sme7admin.conf
98 fi
99
100 %preun
101
102
103 %post
104
105 if [ $1 -eq 1 ]
106 then
107
108 if [ -d /var/lib/sme7admin ] && [ -d /var/lib/mysql/sme7admin/ ]
109 then
110 echo "After post-upgrade and reboot, you may safely remove sme7admin, as datas will be migrated to sme8admin."
111 echo "Execute 'rpm -e smeserver-sme7admin' and maybe 'mysqladmin drop sme7admin' and 'rm -Rf /var/lib/sme7admin' to completely remove sme7admin."
112 fi
113
114 fi
115
116 %postun
117
118 %files -f %{name}-%{version}-filelist
119 %defattr(-,root,root)
120 %attr(755,root,root) /etc/e-smith/sql/init/sme8admin

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