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

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

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


Revision 1.4 - (show annotations) (download)
Fri Oct 18 14:46:30 2013 UTC (10 years, 7 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-cacti-0_8_8b-3_el5_sme
Changes since 1.3: +5 -4 lines
* Tue Oct 15 2013 Jean-Philippe Pialasse <tests@pialasse.com> 0.8.8b.sme-3
- initial release for SME 8
- use el5 repo cacti
- fix dependencies

1 # $Id: smeserver-cacti.spec,v 1.3 2013/10/16 03:09:42 unnilennium Exp $
2 # Authority: nocvs
3 # Name: Michel Van hees
4
5 Summary: Cacti for smeserver
6 %define name smeserver-cacti
7 Name: %{name}
8 %define version 0.8.8b
9 %define release 3
10 Version: %{version}
11 Release: %{release}%{?dist}
12 License: Freely distributable
13 Group: Apache
14 Source: %{name}-%{version}.tar.gz
15 #Patch0: %{name}-%{version}.patch.yyyymmddnn
16 BuildRoot: /var/tmp/e-smith-buildroot
17 BuildRequires: e-smith-devtools
18 BuildArchitectures: noarch
19 Requires: smeserver-release >= 8 , rrdtool >= 1
20 Requires: cacti = 0.8.8b-2.el5
21 AutoReqProv: no
22
23 %changelog
24 * Tue Oct 15 2013 Jean-Philippe Pialasse <tests@pialasse.com> 0.8.8b.sme-3
25 - initial release for SME 8
26 - use el5 repo cacti
27 - fix dependencies
28
29 * Tue Dec 4 2007 Michel Van hees <michel@vanhees.cc>
30 - Update contrib to 0.8.7a version
31 - Adding access limitation
32 - Adding automatic redirection to https
33 - Automatic Update process from 0.8.6j
34
35 * Mon Jan 29 2007 Michel Van hees <michel@vanhees.cc>
36 - Based on cacti 0.8.6j
37 - Initial release
38
39 %description
40 SME server - Cacti
41
42 %prep
43 %setup
44 #%patch0 -p1
45 #%patch1 -p1
46
47 %build
48 perl createlinks
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
53 rm -f %{name}-%{version}-filelist
54 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
55 echo "%doc COPYING" >> %{name}-%{version}-filelist
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %pre
61 #/sbin/e-smith/db accounts set cacti reserved
62
63 %preun
64
65 %post
66 #/sbin/e-smith/db configuration set cacti service
67 #/sbin/e-smith/db configuration setprop cacti access private
68
69 #/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
70 #/sbin/e-smith/expand-template /opt/cacti/include/config.php
71 #service httpd-e-smith sigusr1
72
73
74 #cactiVersion=`mysql cacti_sme -N -s -e"select * from version"`
75 #case "$cactiVersion" in
76 # 0.8.6j)
77 # echo ""
78 # echo "Upgrade process !!!!!!"
79 # mysql cacti_sme < /opt/cacti/cacti_upg086j.sql
80 # rm -f /opt/cacti/cacti_sme.sql
81 # rm -f /opt/cacti/cacti_upg086j.sql
82 # echo "Upgrade complete ..."
83 # echo ""
84 # ;;
85 # 0.8.7a)
86 # # Shoul not be here for the moment
87 # ;;
88 # *)
89 # # Fresh install
90 # echo ""
91 # echo "fresh install..."
92 # mysqladmin create cacti_sme
93 # mysql cacti_sme < /opt/cacti/cacti_sme.sql
94 # rm -Rf /opt/cacti/install
95 # rm -f /opt/cacti/cacti_sme.sql
96 # rm -f /opt/cacti/cacti_upg086j.sql
97 # echo "Install complete ..."
98 # echo ""
99 #esac
100
101
102 %postun
103
104 %files -f %{name}-%{version}-filelist
105 %defattr(-,root,root)

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