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