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