1 |
%define name smeserver-zabbix-server |
2 |
%define version 0.1 |
3 |
%define release 9 |
4 |
Summary: sme server integration of zabbix server and web front-end |
5 |
Name: %{name} |
6 |
Version: %{version} |
7 |
Release: %{release}%{?dist} |
8 |
Distribution: SME Server |
9 |
License: GNU GPL version 2 |
10 |
URL: http://www.zabbix.com/ |
11 |
Group: SMEserver/addon |
12 |
Source: %{name}-%{version}.tar.gz |
13 |
|
14 |
Patch0: smeserver-zabbix-server-0.1-sendxmpp_template.patch |
15 |
Patch1: smeserver-zabbix-server-0.1-sendxmpp_shell_script_header.patch |
16 |
Patch2: smeserver-zabbix-server-0.1-disable_web_access.patch |
17 |
Patch3: smeserver-zabbix-server-0.1-mysql_db_pass.patch |
18 |
Patch4: smeserver-zabbix-server-0.1-script_and_tmp_location.patch |
19 |
Patch5: smeserver-zabbix-server-0.1-event_zabbix-server-update.patch |
20 |
Patch6: smeserver-zabbix-server-0.1-enable_db_cache.patch |
21 |
Patch7: smeserver-zabbix-server-0.1-adjust_masq.patch |
22 |
Patch8: smeserver-zabbix-server-0.1-sendxmpprc.patch |
23 |
Patch9: smeserver-zabbix-server-0.1-sendxmpprc_template_fix.patch |
24 |
Patch10: smeserver-zabbix-server-0.1-path2sendxmpprc.patch |
25 |
|
26 |
Packager: Daniel B. <daniel@firewall-services.com> |
27 |
BuildArchitectures: noarch |
28 |
BuildRequires: e-smith-devtools |
29 |
BuildRoot: /var/tmp/%{name}-%{version} |
30 |
Requires: e-smith-release >= 7.0 |
31 |
Requires: fping |
32 |
Requires: zabbix-server-mysql |
33 |
Requires: zabbix-web-mysql |
34 |
Requires: sendxmpp |
35 |
AutoReqProv: no |
36 |
|
37 |
%description |
38 |
smserver integration of zabbix server and web front-end. |
39 |
ZAbbix is an entreprise-class open source distributed monitoring |
40 |
solution |
41 |
|
42 |
%changelog |
43 |
* Mon Mar 02 2009 Daniel B. <daniel@firewall-services.com> 0.1-9 |
44 |
- specify path to .sendxmpprc file in the script sendxmpp |
45 |
|
46 |
* Mon Mar 02 2009 Daniel B. <daniel@firewall-services.com> 0.1-8 |
47 |
- move .sendxmpprc template to the correct directory |
48 |
|
49 |
* Mon Mar 02 2009 Daniel B. <daniel@firewall-services.com> 0.1-7 |
50 |
- Move jabber account informations to xmpprc |
51 |
|
52 |
* Mon Mar 02 2009 Daniel B. <daniel@firewall-services.com> 0.1-6 |
53 |
- Adjust service masq during zabbix-server-update event |
54 |
- Enable DB cache module with StartDBSyncers directive |
55 |
|
56 |
* Sun Mar 01 2009 Daniel B. <daniel@firewall-services.com> 0.1-5 |
57 |
- Fix permissions on /var/lib/zabbix/tmp |
58 |
|
59 |
* Tue Feb 17 2009 Daniel B. <daniel@firewall-services.com> 0.1-4 |
60 |
- rename event zabbix-update to zabbix-server-update |
61 |
|
62 |
* Wed Feb 11 2009 Daniel B. <daniel@firewall-services.com> 0.1-3 |
63 |
- disable web access (usefull for distributed monitoring) |
64 |
- Use stronger password for mysql database |
65 |
- Use /var/lib/zabbix/bin as default location for scripts |
66 |
- Use /var/lib/zabbix/tmp for temp dir |
67 |
|
68 |
* Fri Feb 06 2009 Daniel B. <daniel@firewall-services.com> 0.1-2 |
69 |
- Link template-begin-shell to template-begin for sendxmpp script |
70 |
|
71 |
* Fri Feb 06 2009 Daniel B. <daniel@firewall-services.com> 0.1-1 |
72 |
- templatize sendxmpp as zabbix user doesn't have access to SME db |
73 |
- Add JabberTLS option in the db |
74 |
|
75 |
* Mon Feb 02 2009 Daniel B. <daniel@firewall-services.com> 0.1-0 |
76 |
- initial release |
77 |
|
78 |
%prep |
79 |
%setup |
80 |
%patch0 -p1 |
81 |
%patch1 -p1 |
82 |
%patch2 -p1 |
83 |
%patch3 -p1 |
84 |
%patch4 -p1 |
85 |
%patch5 -p1 |
86 |
%patch6 -p1 |
87 |
%patch7 -p1 |
88 |
%patch8 -p1 |
89 |
%patch9 -p1 |
90 |
%patch10 -p1 |
91 |
|
92 |
%build |
93 |
perl ./createlinks |
94 |
%{__mkdir_p} root/var/lib/zabbix/tmp |
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 |
--file /var/lib/zabbix/bin/fping 'attr(0750,root,zabbix)' \ |
102 |
--file /var/lib/zabbix/bin/fping6 'attr(0750,root,zabbix)' \ |
103 |
--dir /var/lib/zabbix/tmp 'attr(0755,zabbix,zabbix)' \ |
104 |
> %{name}-%{version}-filelist |
105 |
|
106 |
%files -f %{name}-%{version}-filelist |
107 |
%defattr(-,root,root) |
108 |
|
109 |
%clean |
110 |
rm -rf $RPM_BUILD_ROOT |
111 |
|
112 |
|
113 |
%postun |
114 |
#uninstall |
115 |
if [ $1 = 0 ] ; then |
116 |
/sbin/e-smith/db configuration setprop zabbix-server status disabled |
117 |
/etc/init.d/zabbix-server stop |
118 |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
119 |
/usr/bin/sv h /service/httpd-e-smith |
120 |
fi |
121 |
|
122 |
true |