/[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.9 - (show annotations) (download)
Thu Nov 14 16:47:28 2013 UTC (11 years ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-cacti-0_8_8b-10_el5_sme
Changes since 1.8: +5 -2 lines
* Tue Nov 14 2013 Jean-Philippe Pialasse <tests@pialasse.com> 0.8.8b-10.sme
- typo fix in last patch (7)

1 # $Id: smeserver-cacti.spec,v 1.8 2013/11/10 16:06:41 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 10
10 Version: %{version}
11 Release: %{release}%{?dist}
12 License: Freely distributable
13 Group: Apache
14 Source: %{name}-%{version}.tar.gz
15 Patch0: smeserver-cacti-0.8.8b-patch0.patch
16 Patch1: smeserver-cacti-0.8.8b-patch1.patch
17 Patch2: smeserver-cacti-0.8.8b-patch2.patch
18 Patch3: smeserver-cacti-0.8.8b-patch3.patch
19 Patch4: smeserver-cacti-0.8.8b-patch4.patch
20 Patch5: smeserver-cacti-0.8.8b-patch5.patch
21 Patch6: smeserver-cacti-0.8.8b-patch6.patch
22 Patch7: smeserver-cacti-0.8.8b-patch7.patch
23 #Patch:%{name}-%{version}.patch.yyyymmddnn
24 BuildRoot: /var/tmp/e-smith-buildroot
25 BuildRequires: e-smith-devtools
26 BuildArchitectures: noarch
27 Requires: smeserver-release >= 8 , rrdtool >= 1
28 Requires: cacti = 0.8.8b-2.el5
29 AutoReqProv: no
30
31 %changelog
32 * Tue Nov 14 2013 Jean-Philippe Pialasse <tests@pialasse.com> 0.8.8b-10.sme
33 - typo fix in last patch (7)
34
35 * Sun Nov 10 2013 Jean-Philippe Pialasse <tests@pialasse.com> 0.8.8b-9.sme
36 - fix paths in sql dump [SME: 7419]
37
38 * Mon Oct 21 2013 Jean-Philippe Pialasse <tests@pialasse.com> 0.8.8b-8.sme
39 - fixing last template path error in createlinks
40
41 * Fri Oct 18 2013 Jean-Philippe Pialasse <tests@pialasse.com> 0.8.8b-7.sme
42 - fix missing type
43 - fix wrong path in Virtualhost template
44 - fix DB not creating
45 - fix extra file in template
46 - updated db mysql default
47
48 * Tue Oct 15 2013 Jean-Philippe Pialasse <tests@pialasse.com> 0.8.8b-3.sme
49 - initial release for SME 8
50 - use el5 repo cacti
51 - fix dependencies
52
53 * Tue Dec 4 2007 Michel Van hees <michel@vanhees.cc>
54 - Update contrib to 0.8.7a version
55 - Adding access limitation
56 - Adding automatic redirection to https
57 - Automatic Update process from 0.8.6j
58
59 * Mon Jan 29 2007 Michel Van hees <michel@vanhees.cc>
60 - Based on cacti 0.8.6j
61 - Initial release
62
63 %description
64 SME server - Cacti
65
66 %prep
67 %setup
68 %patch0 -p1
69 %patch1 -p1
70 %patch2 -p1
71 %patch3 -p1
72 %patch4 -p1
73 %patch5 -p1
74 %patch6 -p1
75 %patch7 -p1
76
77 %build
78 perl createlinks
79
80 %install
81 rm -rf $RPM_BUILD_ROOT
82 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
83 rm -f %{name}-%{version}-filelist
84 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
85 echo "%doc COPYING" >> %{name}-%{version}-filelist
86
87 %clean
88 rm -rf $RPM_BUILD_ROOT
89
90 %pre
91 #/sbin/e-smith/db accounts set cacti reserved
92
93 %preun
94
95 %post
96 #/sbin/e-smith/db configuration set cacti service
97 #/sbin/e-smith/db configuration setprop cacti access private
98
99 #/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
100 #/sbin/e-smith/expand-template /opt/cacti/include/config.php
101 #service httpd-e-smith sigusr1
102
103
104 #cactiVersion=`mysql cacti_sme -N -s -e"select * from version"`
105 #case "$cactiVersion" in
106 # 0.8.6j)
107 # echo ""
108 # echo "Upgrade process !!!!!!"
109 # mysql cacti_sme < /opt/cacti/cacti_upg086j.sql
110 # rm -f /opt/cacti/cacti_sme.sql
111 # rm -f /opt/cacti/cacti_upg086j.sql
112 # echo "Upgrade complete ..."
113 # echo ""
114 # ;;
115 # 0.8.7a)
116 # # Shoul not be here for the moment
117 # ;;
118 # *)
119 # # Fresh install
120 # echo ""
121 # echo "fresh install..."
122 # mysqladmin create cacti_sme
123 # mysql cacti_sme < /opt/cacti/cacti_sme.sql
124 # rm -Rf /opt/cacti/install
125 # rm -f /opt/cacti/cacti_sme.sql
126 # rm -f /opt/cacti/cacti_upg086j.sql
127 # echo "Install complete ..."
128 # echo ""
129 #esac
130
131
132 %postun
133
134 %files -f %{name}-%{version}-filelist
135 %defattr(-,root,root)

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