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