1 |
# $Id: smeserver-cacti.spec,v 1.4 2022/07/26 04:37:07 jpp 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 1.1.19 |
9 |
%define release 2 |
10 |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
12 |
License: Freely distributable |
13 |
Group: Apache |
14 |
Source: %{name}-%{version}.tar.gz |
15 |
Patch0: smeserver-cacti-1.1.19-sme10.patch |
16 |
|
17 |
BuildRoot: /var/tmp/e-smith-buildroot |
18 |
BuildRequires: e-smith-devtools |
19 |
BuildArchitectures: noarch |
20 |
Requires: smeserver-release >= 10 , rrdtool >= 1 |
21 |
Requires: cacti >= 1.2.21 |
22 |
Requires: cacti-spine |
23 |
Requires: e-smith-apache >= 2.6.0-19 |
24 |
Requires: smeserver-php >= 3.0.0-43 |
25 |
AutoReqProv: no |
26 |
|
27 |
%changelog |
28 |
* Mon Jul 25 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.1.19-2.sme |
29 |
- update httpd 2.4 to syntax [SME: 12039] |
30 |
- initial import to SME10 [SME: 11307] |
31 |
cacti-1.2.21 |
32 |
dedicated php-fpm pool 74 |
33 |
update event |
34 |
ldap available |
35 |
auto install install_cacti.php --accept-eula --install |
36 |
- fix sql init [SME: 10972] |
37 |
|
38 |
* Wed Dec 11 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.19-1.sme |
39 |
- update to cacti-1.1.19 [SME: 8434] |
40 |
|
41 |
* Fri Jun 10 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.8.8h1-2.sme |
42 |
- new version for cacti-0.8.8h-1 [SME: 8434] |
43 |
|
44 |
* Thu Jun 09 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.8.8b1-2.sme |
45 |
- update version Required |
46 |
|
47 |
* Mon Jun 16 2014 JP Pialasse <tests@pialasse.com> 0.8.8b1-1.sme |
48 |
- initial import to SME9 contribs |
49 |
|
50 |
* Thu Nov 21 2013 Jean-Philippe Pialasse <tests@pialasse.com> 0.8.8b-12.sme |
51 |
- fixed poller not running in cron , added to crontab |
52 |
- fixed wrong ownership for db.php, now cacti:www |
53 |
- added status enabled by default |
54 |
- user cacti to run in cron |
55 |
|
56 |
* Thu Nov 14 2013 Jean-Philippe Pialasse <tests@pialasse.com> 0.8.8b-10.sme |
57 |
Tue Nov 14 2013 --> Tue Nov 12 2013 or Thu Nov 14 2013 or Tue Nov 19 2013 or .... |
58 |
- typo fix in last patch (7) |
59 |
|
60 |
* Sun Nov 10 2013 Jean-Philippe Pialasse <tests@pialasse.com> 0.8.8b-9.sme |
61 |
- fix paths in sql dump [SME: 7419] |
62 |
|
63 |
* Mon Oct 21 2013 Jean-Philippe Pialasse <tests@pialasse.com> 0.8.8b-8.sme |
64 |
- fixing last template path error in createlinks |
65 |
|
66 |
* Fri Oct 18 2013 Jean-Philippe Pialasse <tests@pialasse.com> 0.8.8b-7.sme |
67 |
- fix missing type |
68 |
- fix wrong path in Virtualhost template |
69 |
- fix DB not creating |
70 |
- fix extra file in template |
71 |
- updated db mysql default |
72 |
|
73 |
* Tue Oct 15 2013 Jean-Philippe Pialasse <tests@pialasse.com> 0.8.8b-3.sme |
74 |
- initial release for SME 8 |
75 |
- use el5 repo cacti |
76 |
- fix dependencies |
77 |
|
78 |
* Tue Dec 4 2007 Michel Van hees <michel@vanhees.cc> |
79 |
- Update contrib to 0.8.7a version |
80 |
- Adding access limitation |
81 |
- Adding automatic redirection to https |
82 |
- Automatic Update process from 0.8.6j |
83 |
|
84 |
* Mon Jan 29 2007 Michel Van hees <michel@vanhees.cc> |
85 |
- Based on cacti 0.8.6j |
86 |
- Initial release |
87 |
|
88 |
%description |
89 |
SME server - Cacti |
90 |
|
91 |
%prep |
92 |
%setup |
93 |
mkdir -p root/var/log/php/cacti |
94 |
mkdir -p root/var/lib/php/cacti/{opcache,session,tmp} |
95 |
%patch0 -p1 |
96 |
rm root/etc/e-smith/db/configuration/migrate/80cacti_sme.sql |
97 |
|
98 |
%build |
99 |
perl createlinks |
100 |
|
101 |
|
102 |
%install |
103 |
rm -rf $RPM_BUILD_ROOT |
104 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
105 |
rm -f %{name}-%{version}-filelist |
106 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
107 |
--dir /var/log/php/cacti 'attr(0755,www,www)' \ |
108 |
--dir /var/lib/php/cacti 'attr(0755,www,www)' \ |
109 |
--dir /var/lib/php/cacti/tmp 'attr(0755,www,www)' \ |
110 |
--dir /var/lib/php/cacti/opcache 'attr(0755,www,www)' \ |
111 |
--dir /var/lib/php/cacti/session 'attr(0755,www,www)' \ |
112 |
> %{name}-%{version}-filelist |
113 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
114 |
|
115 |
%clean |
116 |
rm -rf $RPM_BUILD_ROOT |
117 |
|
118 |
%pre |
119 |
#/sbin/e-smith/db accounts set cacti reserved |
120 |
|
121 |
%preun |
122 |
|
123 |
%post |
124 |
#/sbin/e-smith/db configuration set cacti service |
125 |
#/sbin/e-smith/db configuration setprop cacti access private |
126 |
|
127 |
#/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
128 |
#/sbin/e-smith/expand-template /opt/cacti/include/config.php |
129 |
#service httpd-e-smith sigusr1 |
130 |
|
131 |
|
132 |
#cactiVersion=`mysql cacti_sme -N -s -e"select * from version"` |
133 |
#case "$cactiVersion" in |
134 |
# 0.8.6j) |
135 |
# echo "" |
136 |
# echo "Upgrade process !!!!!!" |
137 |
# mysql cacti_sme < /opt/cacti/cacti_upg086j.sql |
138 |
# rm -f /opt/cacti/cacti_sme.sql |
139 |
# rm -f /opt/cacti/cacti_upg086j.sql |
140 |
# echo "Upgrade complete ..." |
141 |
# echo "" |
142 |
# ;; |
143 |
# 0.8.7a) |
144 |
# # Shoul not be here for the moment |
145 |
# ;; |
146 |
# *) |
147 |
# # Fresh install |
148 |
# echo "" |
149 |
# echo "fresh install..." |
150 |
# mysqladmin create cacti_sme |
151 |
# mysql cacti_sme < /opt/cacti/cacti_sme.sql |
152 |
# rm -Rf /opt/cacti/install |
153 |
# rm -f /opt/cacti/cacti_sme.sql |
154 |
# rm -f /opt/cacti/cacti_upg086j.sql |
155 |
# echo "Install complete ..." |
156 |
# echo "" |
157 |
#esac |
158 |
|
159 |
|
160 |
%postun |
161 |
|
162 |
%files -f %{name}-%{version}-filelist |
163 |
%defattr(-,root,root) |