1 |
vip-ire |
1.3 |
# $Id: smeserver-zabbix-server.spec,v 1.2 2009/03/02 23:53:30 slords Exp $ |
2 |
slords |
1.2 |
# Authority: vip-ire |
3 |
|
|
# Name: Daniel Berteaud |
4 |
|
|
|
5 |
slords |
1.1 |
%define name smeserver-zabbix-server |
6 |
|
|
%define version 0.1 |
7 |
vip-ire |
1.3 |
%define release 10 |
8 |
slords |
1.1 |
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 |
|
|
|
29 |
|
|
BuildArchitectures: noarch |
30 |
|
|
BuildRequires: e-smith-devtools |
31 |
|
|
BuildRoot: /var/tmp/%{name}-%{version} |
32 |
|
|
Requires: e-smith-release >= 7.0 |
33 |
|
|
Requires: fping |
34 |
|
|
Requires: zabbix-server-mysql |
35 |
|
|
Requires: zabbix-web-mysql |
36 |
|
|
Requires: sendxmpp |
37 |
vip-ire |
1.3 |
Requires: smeserver-remoteuseraccess |
38 |
slords |
1.1 |
AutoReqProv: no |
39 |
|
|
|
40 |
|
|
%description |
41 |
|
|
smserver integration of zabbix server and web front-end. |
42 |
|
|
ZAbbix is an entreprise-class open source distributed monitoring |
43 |
|
|
solution |
44 |
|
|
|
45 |
|
|
%changelog |
46 |
vip-ire |
1.3 |
* Tue Mar 02 2009 Daniel B. <daniel@firewall-services.com> 0.1-10 |
47 |
|
|
- Add smeserver-remoteuseraccess as a dependencie (sudoers template problem) |
48 |
|
|
|
49 |
slords |
1.1 |
* Mon Mar 02 2009 Daniel B. <daniel@firewall-services.com> 0.1-9 |
50 |
|
|
- specify path to .sendxmpprc file in the script sendxmpp |
51 |
|
|
|
52 |
|
|
* Mon Mar 02 2009 Daniel B. <daniel@firewall-services.com> 0.1-8 |
53 |
|
|
- move .sendxmpprc template to the correct directory |
54 |
|
|
|
55 |
|
|
* Mon Mar 02 2009 Daniel B. <daniel@firewall-services.com> 0.1-7 |
56 |
|
|
- Move jabber account informations to xmpprc |
57 |
|
|
|
58 |
|
|
* Mon Mar 02 2009 Daniel B. <daniel@firewall-services.com> 0.1-6 |
59 |
|
|
- Adjust service masq during zabbix-server-update event |
60 |
|
|
- Enable DB cache module with StartDBSyncers directive |
61 |
|
|
|
62 |
|
|
* Sun Mar 01 2009 Daniel B. <daniel@firewall-services.com> 0.1-5 |
63 |
|
|
- Fix permissions on /var/lib/zabbix/tmp |
64 |
|
|
|
65 |
|
|
* Tue Feb 17 2009 Daniel B. <daniel@firewall-services.com> 0.1-4 |
66 |
|
|
- rename event zabbix-update to zabbix-server-update |
67 |
|
|
|
68 |
|
|
* Wed Feb 11 2009 Daniel B. <daniel@firewall-services.com> 0.1-3 |
69 |
|
|
- disable web access (usefull for distributed monitoring) |
70 |
|
|
- Use stronger password for mysql database |
71 |
|
|
- Use /var/lib/zabbix/bin as default location for scripts |
72 |
|
|
- Use /var/lib/zabbix/tmp for temp dir |
73 |
|
|
|
74 |
|
|
* Fri Feb 06 2009 Daniel B. <daniel@firewall-services.com> 0.1-2 |
75 |
|
|
- Link template-begin-shell to template-begin for sendxmpp script |
76 |
|
|
|
77 |
|
|
* Fri Feb 06 2009 Daniel B. <daniel@firewall-services.com> 0.1-1 |
78 |
|
|
- templatize sendxmpp as zabbix user doesn't have access to SME db |
79 |
|
|
- Add JabberTLS option in the db |
80 |
|
|
|
81 |
|
|
* Mon Feb 02 2009 Daniel B. <daniel@firewall-services.com> 0.1-0 |
82 |
|
|
- initial release |
83 |
|
|
|
84 |
|
|
%prep |
85 |
|
|
%setup |
86 |
|
|
%patch0 -p1 |
87 |
|
|
%patch1 -p1 |
88 |
|
|
%patch2 -p1 |
89 |
|
|
%patch3 -p1 |
90 |
|
|
%patch4 -p1 |
91 |
|
|
%patch5 -p1 |
92 |
|
|
%patch6 -p1 |
93 |
|
|
%patch7 -p1 |
94 |
|
|
%patch8 -p1 |
95 |
|
|
%patch9 -p1 |
96 |
|
|
%patch10 -p1 |
97 |
|
|
|
98 |
|
|
%build |
99 |
|
|
perl ./createlinks |
100 |
|
|
%{__mkdir_p} root/var/lib/zabbix/tmp |
101 |
|
|
|
102 |
|
|
%install |
103 |
|
|
rm -rf $RPM_BUILD_ROOT |
104 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
105 |
|
|
rm -f %{name}-%{version}-filelist |
106 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
107 |
|
|
--file /var/lib/zabbix/bin/fping 'attr(0750,root,zabbix)' \ |
108 |
|
|
--file /var/lib/zabbix/bin/fping6 'attr(0750,root,zabbix)' \ |
109 |
|
|
--dir /var/lib/zabbix/tmp 'attr(0755,zabbix,zabbix)' \ |
110 |
|
|
> %{name}-%{version}-filelist |
111 |
|
|
|
112 |
|
|
%files -f %{name}-%{version}-filelist |
113 |
|
|
%defattr(-,root,root) |
114 |
|
|
|
115 |
|
|
%clean |
116 |
|
|
rm -rf $RPM_BUILD_ROOT |
117 |
|
|
|
118 |
|
|
|
119 |
|
|
%postun |
120 |
|
|
#uninstall |
121 |
|
|
if [ $1 = 0 ] ; then |
122 |
|
|
/sbin/e-smith/db configuration setprop zabbix-server status disabled |
123 |
|
|
/etc/init.d/zabbix-server stop |
124 |
|
|
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
125 |
|
|
/usr/bin/sv h /service/httpd-e-smith |
126 |
|
|
fi |
127 |
|
|
|
128 |
|
|
true |