1 |
# $Id: smeserver-zabbix-server.spec,v 1.1 2016/02/09 23:11:13 stephdl Exp $ |
2 |
# Authority: vip-ire |
3 |
# Name: Daniel Berteaud |
4 |
|
5 |
%define name smeserver-zabbix-server |
6 |
%define version 0.1 |
7 |
%define release 15 |
8 |
Summary: sme server integration of zabbix server and web front-end |
9 |
Name: %{name} |
10 |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
12 |
License: GNU GPL version 2 |
13 |
URL: http://www.zabbix.com/ |
14 |
Group: SMEserver/addon |
15 |
Source: %{name}-%{version}.tar.gz |
16 |
|
17 |
Patch0: smeserver-zabbix-server-0.1-sendxmpp_template.patch |
18 |
Patch1: smeserver-zabbix-server-0.1-sendxmpp_shell_script_header.patch |
19 |
Patch2: smeserver-zabbix-server-0.1-disable_web_access.patch |
20 |
Patch3: smeserver-zabbix-server-0.1-mysql_db_pass.patch |
21 |
Patch4: smeserver-zabbix-server-0.1-script_and_tmp_location.patch |
22 |
Patch5: smeserver-zabbix-server-0.1-event_zabbix-server-update.patch |
23 |
Patch6: smeserver-zabbix-server-0.1-enable_db_cache.patch |
24 |
Patch7: smeserver-zabbix-server-0.1-adjust_masq.patch |
25 |
Patch8: smeserver-zabbix-server-0.1-sendxmpprc.patch |
26 |
Patch9: smeserver-zabbix-server-0.1-sendxmpprc_template_fix.patch |
27 |
Patch10: smeserver-zabbix-server-0.1-path2sendxmpprc.patch |
28 |
Patch11: smeserver-zabbix-server-0.1-multiple_dbpatches.patch |
29 |
Patch12: smeserver-zabbix-server-0.1-use_global_tz.patch |
30 |
Patch13: smeserver-zabbix-server-0.1-php_mem_limit.patch |
31 |
Patch14: smeserver-zabbix-server-0.1-sme9db.patch |
32 |
|
33 |
BuildArchitectures: noarch |
34 |
BuildRequires: e-smith-devtools |
35 |
BuildRoot: /var/tmp/%{name}-%{version} |
36 |
Requires: e-smith-release >= 7.0 |
37 |
Requires: fping |
38 |
Requires: zabbix-server-mysql |
39 |
Requires: zabbix-web-mysql |
40 |
Requires: sendxmpp |
41 |
Requires: smeserver-remoteuseraccess |
42 |
AutoReqProv: no |
43 |
|
44 |
%description |
45 |
smserver integration of zabbix server and web front-end. |
46 |
ZAbbix is an entreprise-class open source distributed monitoring |
47 |
solution |
48 |
|
49 |
%changelog |
50 |
* Mon Jun 13 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-15.sme |
51 |
- finitial import [SME: 9569] |
52 |
- fix php requirement |
53 |
- fix add path to new db |
54 |
|
55 |
* Wed Feb 7 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 0.1-14.sme |
56 |
- New roll for sme9 |
57 |
|
58 |
* Mon Apr 29 2013 Daniel B. <daniel@firewall-services.com> 0.1-13 |
59 |
- Increase PHP mem limit to 128M |
60 |
|
61 |
* Mon Mar 8 2010 Daniel B. <daniel@firewall-services.com> 0.1-12 |
62 |
- Use global TimeZone |
63 |
|
64 |
* Wed Dec 2 2009 Daniel B. <daniel@firewall-services.com> 0.1-11 |
65 |
- Support several mysql DB patches |
66 |
|
67 |
* Tue Mar 02 2009 Daniel B. <daniel@firewall-services.com> 0.1-10 |
68 |
- Add smeserver-remoteuseraccess as a dependencie (sudoers template problem) |
69 |
|
70 |
* Mon Mar 02 2009 Daniel B. <daniel@firewall-services.com> 0.1-9 |
71 |
- specify path to .sendxmpprc file in the script sendxmpp |
72 |
|
73 |
* Mon Mar 02 2009 Daniel B. <daniel@firewall-services.com> 0.1-8 |
74 |
- move .sendxmpprc template to the correct directory |
75 |
|
76 |
* Mon Mar 02 2009 Daniel B. <daniel@firewall-services.com> 0.1-7 |
77 |
- Move jabber account informations to xmpprc |
78 |
|
79 |
* Mon Mar 02 2009 Daniel B. <daniel@firewall-services.com> 0.1-6 |
80 |
- Adjust service masq during zabbix-server-update event |
81 |
- Enable DB cache module with StartDBSyncers directive |
82 |
|
83 |
* Sun Mar 01 2009 Daniel B. <daniel@firewall-services.com> 0.1-5 |
84 |
- Fix permissions on /var/lib/zabbix/tmp |
85 |
|
86 |
* Tue Feb 17 2009 Daniel B. <daniel@firewall-services.com> 0.1-4 |
87 |
- rename event zabbix-update to zabbix-server-update |
88 |
|
89 |
* Wed Feb 11 2009 Daniel B. <daniel@firewall-services.com> 0.1-3 |
90 |
- disable web access (usefull for distributed monitoring) |
91 |
- Use stronger password for mysql database |
92 |
- Use /var/lib/zabbix/bin as default location for scripts |
93 |
- Use /var/lib/zabbix/tmp for temp dir |
94 |
|
95 |
* Fri Feb 06 2009 Daniel B. <daniel@firewall-services.com> 0.1-2 |
96 |
- Link template-begin-shell to template-begin for sendxmpp script |
97 |
|
98 |
* Fri Feb 06 2009 Daniel B. <daniel@firewall-services.com> 0.1-1 |
99 |
- templatize sendxmpp as zabbix user doesn't have access to SME db |
100 |
- Add JabberTLS option in the db |
101 |
|
102 |
* Mon Feb 02 2009 Daniel B. <daniel@firewall-services.com> 0.1-0 |
103 |
- initial release |
104 |
|
105 |
%prep |
106 |
%setup |
107 |
%patch0 -p1 |
108 |
%patch1 -p1 |
109 |
%patch2 -p1 |
110 |
%patch3 -p1 |
111 |
%patch4 -p1 |
112 |
%patch5 -p1 |
113 |
%patch6 -p1 |
114 |
%patch7 -p1 |
115 |
%patch8 -p1 |
116 |
%patch9 -p1 |
117 |
%patch10 -p1 |
118 |
%patch11 -p1 |
119 |
%patch12 -p1 |
120 |
%patch13 -p1 |
121 |
%patch14 -p1 |
122 |
|
123 |
%build |
124 |
perl ./createlinks |
125 |
%{__mkdir_p} root/var/lib/zabbix/tmp |
126 |
|
127 |
%install |
128 |
rm -rf $RPM_BUILD_ROOT |
129 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
130 |
rm -f %{name}-%{version}-filelist |
131 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
132 |
--file /var/lib/zabbix/bin/fping 'attr(0750,root,zabbix)' \ |
133 |
--file /var/lib/zabbix/bin/fping6 'attr(0750,root,zabbix)' \ |
134 |
--dir /var/lib/zabbix/tmp 'attr(0755,zabbix,zabbix)' \ |
135 |
> %{name}-%{version}-filelist |
136 |
|
137 |
%files -f %{name}-%{version}-filelist |
138 |
%defattr(-,root,root) |
139 |
|
140 |
%clean |
141 |
rm -rf $RPM_BUILD_ROOT |
142 |
|
143 |
|
144 |
%postun |
145 |
#uninstall |
146 |
if [ $1 = 0 ] ; then |
147 |
/sbin/e-smith/db configuration setprop zabbix-server status disabled |
148 |
/etc/init.d/zabbix-server stop |
149 |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
150 |
/usr/bin/sv h /service/httpd-e-smith |
151 |
fi |
152 |
|
153 |
true |