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