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