1 |
# $Id: smeserver-zabbix-server.spec,v 1.8 2020/05/14 03:23:28 jpp Exp $ |
# $Id: smeserver-zabbix-server.spec,v 1.6 2021/11/01 14:22:18 brianr Exp $ |
2 |
# Authority: vip-ire |
# Authority: vip-ire |
3 |
# Name: Daniel Berteaud |
# Name: Daniel Berteaud |
4 |
|
|
5 |
%define name smeserver-zabbix-server |
%define name smeserver-zabbix-server |
6 |
%define version 0.1 |
%define version 0.1 |
7 |
%define release 19 |
%define release 25 |
8 |
Summary: sme server integration of zabbix server and web front-end |
Summary: sme server integration of zabbix server and web front-end |
9 |
Name: %{name} |
Name: %{name} |
10 |
Version: %{version} |
Version: %{version} |
32 |
Patch15: smeserver-zabbix-server-0.1-sme9zabb3.2.4.patch |
Patch15: smeserver-zabbix-server-0.1-sme9zabb3.2.4.patch |
33 |
Patch16: smeserver-zabbix-server-0.1-SME10458-SenderFrequency.deprecated.patch |
Patch16: smeserver-zabbix-server-0.1-SME10458-SenderFrequency.deprecated.patch |
34 |
Patch17: smeserver-zabbix-server-0.1-zabbix4.4.6.patch |
Patch17: smeserver-zabbix-server-0.1-zabbix4.4.6.patch |
35 |
|
Patch18: smeserver-zabbix-server-0.1-Update-httpd-createlinks-and-adduser.ini.patch |
36 |
|
Patch19: smeserver-zabbix-server-0.1-Template-user-dot-ini-and-override-service-file-change-pid-in-conf-file.patch |
37 |
|
Patch20: smeserver-zabbix-server-0.1-Add-in-zabbix-conf-expansion-to-createlinks.patch |
38 |
|
Patch21: smeserver-zabbix-server-0.1-Switch-to-specific-php-fpm.patch |
39 |
|
|
40 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
41 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
49 |
Requires: sendxmpp |
Requires: sendxmpp |
50 |
Conflicts: smeserver-zabbix-proxy |
Conflicts: smeserver-zabbix-proxy |
51 |
Requires: smeserver-remoteuseraccess |
Requires: smeserver-remoteuseraccess |
52 |
Requires: smeserver-php-scl |
#Requires: smeserver-php-scl |
53 |
AutoReqProv: no |
AutoReqProv: no |
54 |
|
|
55 |
%description |
%description |
58 |
solution |
solution |
59 |
|
|
60 |
%changelog |
%changelog |
61 |
|
* Mon Nov 01 2021 BogusDateBot |
62 |
|
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, |
63 |
|
by assuming the date is correct and changing the weekday. |
64 |
|
Tue Mar 02 2009 --> Tue Feb 24 2009 or Mon Mar 02 2009 or Tue Mar 03 2009 or .... |
65 |
|
Wed Feb 07 2016 --> Wed Feb 03 2016 or Sun Feb 07 2016 or Wed Feb 10 2016 or .... |
66 |
|
|
67 |
|
* Mon Nov 01 2021 Brian Read <brianr@bjsystems.co.uk> 0.1-25.sme |
68 |
|
- Switch-to-specific-php-fpm [SME: 11232] |
69 |
|
|
70 |
|
* Mon Nov 01 2021 Brian Read <brianr@bjsystems.co.uk> 0.1-24.sme |
71 |
|
- Remove post and postun command in spec file [SME: 11232] |
72 |
|
|
73 |
|
* Thu Dec 10 2020 Brian Read <brianr@bjsystems.co.uk> 0.1-23.sme |
74 |
|
- Add in post instructions to spec for SQL db creation [SME: 11232] |
75 |
|
|
76 |
|
* Tue Dec 08 2020 Brian Read <brianr@bjsystems.co.uk> 0.1-22.sme |
77 |
|
- Add expand zabbix-server.conf and .user.ini to creatlinks update event [SME:11232] |
78 |
|
|
79 |
|
* Tue Dec 08 2020 Brian Read <brianr@bjsystems.co.uk> 0.1-21.sme |
80 |
|
- Template-user-dot-ini-and-override-service-file-change-pid-in-conf-file [SME: 11232] |
81 |
|
|
82 |
|
* Mon Dec 07 2020 Brian Read <brianr@bjsystems.co.uk> 0.1-20.sme |
83 |
|
- Import to SME10 tree [SME: 11232] |
84 |
|
- Update createlinks for systemd |
85 |
|
- Update httpd.conf for php-fpw |
86 |
|
- Add .user.ini for php-admin-flags that where in httpd.conf |
87 |
|
|
88 |
* Sun May 10 2020 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-19.sme |
* Sun May 10 2020 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-19.sme |
89 |
- adapt for zabbix 4.4.6 [SME: 10944] |
- adapt for zabbix 4.4.6 [SME: 10944] |
90 |
|
|
101 |
- fix php requirement |
- fix php requirement |
102 |
- fix add path to new db |
- fix add path to new db |
103 |
|
|
104 |
* Wed Feb 7 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 0.1-14.sme |
* Sun Feb 07 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 0.1-14.sme |
105 |
|
Wed Feb 07 2016 --> Wed Feb 03 2016 or Sun Feb 07 2016 or Wed Feb 10 2016 or .... |
106 |
- New roll for sme9 |
- New roll for sme9 |
107 |
|
|
108 |
* Mon Apr 29 2013 Daniel B. <daniel@firewall-services.com> 0.1-13 |
* Mon Apr 29 2013 Daniel B. <daniel@firewall-services.com> 0.1-13 |
172 |
%patch15 -p1 |
%patch15 -p1 |
173 |
%patch16 -p1 |
%patch16 -p1 |
174 |
%patch17 -p1 |
%patch17 -p1 |
175 |
|
%patch18 -p1 |
176 |
|
%patch19 -p1 |
177 |
|
%patch20 -p1 |
178 |
|
%patch21 -p1 |
179 |
|
|
180 |
%build |
%build |
181 |
perl ./createlinks |
perl ./createlinks |
182 |
%{__mkdir_p} root/var/lib/zabbix/tmp |
%{__mkdir_p} root/var/lib/zabbix/tmp |
183 |
|
#%{__mkdir_p} root/var/log/zabbix - conflict with zabbix-server-mysql |
184 |
|
%{__mkdir_p} root/var/log/php/zabbix |
185 |
|
%{__mkdir_p} root/var/lib/php/zabbix/{tmp,wsdlcache,opcache,session} |
186 |
|
|
187 |
|
|
188 |
%install |
%install |
189 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
201 |
%clean |
%clean |
202 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
203 |
|
|
204 |
|
%post |
205 |
|
#/sbin/e-smith/expand-template /etc/e-smith/sql/init/80zabbix-server |
206 |
|
#/etc/rc.d/init.d/mysql.init start |
207 |
|
|
208 |
%postun |
%postun |
209 |
#uninstall |
#uninstall |
210 |
if [ $1 = 0 ] ; then |
#if [ $1 = 0 ] ; then |
211 |
/sbin/e-smith/db configuration setprop zabbix-server status disabled |
# /sbin/e-smith/db configuration setprop zabbix-server status disabled |
212 |
/etc/init.d/zabbix-server stop |
# /etc/init.d/zabbix-server stop |
213 |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
# /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
214 |
/usr/bin/sv h /service/httpd-e-smith |
# /usr/bin/sv h /service/httpd-e-smith |
215 |
fi |
#fi |
216 |
|
|
217 |
true |
true |