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