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