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

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

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


Revision 1.1 - (hide annotations) (download)
Sat Jun 16 17:08:59 2012 UTC (11 years, 11 months ago) by slords
Branch: MAIN
CVS Tags: smeserver-sme8admin-1_3-1_el5_sme
* Sun Jun 10 2012 JP Pialasse <test@pialasse.com> 1.3-1.sme
- Initial version

1 slords 1.1 # $Id: smeserver-sme8admin.spec,v 1.21 2009/10/21 17:36:22 vip-ire 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 1
11     Version: %{version}
12     Release: %{release}%{?dist}
13     License: GPL
14     Group: Networking/Daemons
15     Source: %{name}-%{version}.tgz
16    
17     BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
18     BuildArchitectures: noarch
19    
20     BuildRequires: e-smith-devtools
21     BuildRequires: gettext
22    
23     Requires: e-smith-base
24     Requires: smeserver-release >= 8
25     Requires: rrdtool-perl
26     Requires: rrdtool
27     Requires: hddtemp
28     Requires: sysstat
29     Requires: lm_sensors
30    
31     AutoReqProv: no
32    
33     %changelog
34     * Sun Jun 10 2012 JP Pialasse <test@pialasse.com> 1.3-1.sme
35     - Initial version
36    
37     %description
38     The main part of sme8admin is a daemon which gathers informations from logs
39     and other tools like systat, it then feed a mysql database and create RRD
40     graphs about your system state.
41     This daemon can also send periodics mails (with some logs), and alerts mails
42     based on configurable thresolds.
43    
44     A panel is also available in the server-manager, with which you can access gathered
45     data, display the RRD graphs and configure the service.
46    
47     This contrib is a bit inspired by e-smith-sysmon from Shad Lords.
48    
49     %prep
50     %setup
51    
52     %build
53     perl createlinks
54     %{__mkdir_p} root/etc/e-smith/web/panels/manager/html/sme8admin
55     %{__mkdir_p} root/usr/share/locale/en_US/LC_MESSAGES
56    
57     xgettext --from-code UTF-8 -F --no-wrap -L perl \
58     -o root/usr/share/locale/en_US/LC_MESSAGES/sme8admin.po \
59     root/etc/e-smith/web/functions/sme8admin \
60     root/usr/bin/sme8admind
61    
62     /sbin/e-smith/generate-lexicons
63    
64     %install
65     rm -rf $RPM_BUILD_ROOT
66     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
67     rm -f %{name}-%{version}-filelist
68     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
69    
70     %clean
71     rm -rf $RPM_BUILD_ROOT
72    
73     %pre
74     # This is to correct a bug in the previous version
75     if [ -e /etc/e-smith/web/panels/manager/html/sme7admin/sme7admin.conf ]; then
76     cp -a /etc/e-smith/web/panels/manager/html/sme7admin/sme7admin.conf \
77     /etc/e-smith/web/panels/manager/html/sme7admin/_sme7admin.conf
78     fi
79    
80     %preun
81    
82    
83     %post
84    
85     if [ $1 -eq 1 ]
86     then
87    
88     if [ -d /var/lib/sme7admin ] && [ -d /var/lib/mysql/sme7admin/ ]
89     then
90     echo "After post-upgrade and reboot, you may safely remove sme7admin, as datas will be migrated to sme8admin."
91     echo "Execute 'rpm -e smeserver-sme7admin' and maybe 'mysqladmin drop sme7admin' and 'rm -Rf /var/lib/sme7admin' to completely remove sme7admin."
92     fi
93    
94     fi
95    
96     %postun
97    
98     %files -f %{name}-%{version}-filelist
99     %defattr(-,root,root)
100     %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