1 |
# $Id: smeserver-zabbix-server.spec,v 1.2 2020/12/07 15:26:43 brianr 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 21 |
%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} |
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 |
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 |
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 |
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 |
* 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] |
- Template-user-dot-ini-and-override-service-file-change-pid-in-conf-file [SME: 11232] |
81 |
|
|
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 |
174 |
%patch17 -p1 |
%patch17 -p1 |
175 |
%patch18 -p1 |
%patch18 -p1 |
176 |
%patch19 -p1 |
%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 |