1 |
vip-ire |
1.5 |
# $Id: smeserver-zabbix-proxy.spec,v 1.4 2009/09/28 07:22:28 vip-ire Exp $ |
2 |
slords |
1.2 |
# Authority: vip-ire |
3 |
|
|
# Name: Daniel Berteaud |
4 |
|
|
|
5 |
slords |
1.1 |
%define name smeserver-zabbix-proxy |
6 |
|
|
%define version 0.1 |
7 |
vip-ire |
1.5 |
%define release 7 |
8 |
slords |
1.1 |
Summary: sme server integration of zabbix proxy |
9 |
|
|
Name: %{name} |
10 |
|
|
Version: %{version} |
11 |
|
|
Release: %{release}%{?dist} |
12 |
|
|
License: GNU GPL version 3 |
13 |
|
|
URL: http://www.zabbix.com/ |
14 |
|
|
Group: SMEserver/addon |
15 |
|
|
Source: %{name}-%{version}.tar.gz |
16 |
|
|
Patch0: smeserver-zabbix-server-0.1-sendxmpp_template.patch |
17 |
|
|
Patch1: smeserver-zabbix-server-0.1-sendxmpp_shell_script_header.patch |
18 |
|
|
Patch2: smeserver-zabbix-server-0.1-disable_web_access.patch |
19 |
|
|
Patch3: smeserver-zabbix-server-0.1-mysql_db_pass.patch |
20 |
|
|
Patch4: smeserver-zabbix-server-0.1-script_and_tmp_location.patch |
21 |
|
|
Patch5: smeserver-zabbix-server-0.1-event_zabbix-server-update.patch |
22 |
|
|
Patch6: smeserver-zabbix-proxy-0.1-server2proxy.patch |
23 |
|
|
Patch7: smeserver-zabbix-proxy-0.1-createlinks_fixes.patch |
24 |
|
|
Patch8: smeserver-zabbix-proxy-0.1-enable_db_cache.patch |
25 |
vip-ire |
1.4 |
Patch9: smeserver-zabbix-proxy-0.1-fixe_sudoers_expand_template.patch |
26 |
vip-ire |
1.5 |
Patch10: smeserver-zabbix-proxy-0.1-multiple_dbpatches.patch |
27 |
slords |
1.1 |
|
28 |
|
|
BuildArchitectures: noarch |
29 |
|
|
BuildRequires: e-smith-devtools |
30 |
|
|
BuildRoot: /var/tmp/%{name}-%{version} |
31 |
|
|
Requires: e-smith-release >= 7.0 |
32 |
|
|
Requires: fping |
33 |
|
|
Requires: zabbix-server |
34 |
|
|
Requires: zabbix-proxy |
35 |
vip-ire |
1.3 |
Requires: smeserver-remoteuseraccess |
36 |
slords |
1.1 |
Conflicts: smeserver-zabbix-server |
37 |
|
|
AutoReqProv: no |
38 |
|
|
|
39 |
|
|
%description |
40 |
|
|
smserver integration of zabbix proxy |
41 |
|
|
Zabbix is an entreprise-class open source distributed monitoring |
42 |
|
|
solution |
43 |
|
|
|
44 |
|
|
%changelog |
45 |
vip-ire |
1.5 |
* Thu Apr 15 2010 Daniel B. <daniel@firewall-services.com> 0.1-7 |
46 |
|
|
- Support multiple dbpatches |
47 |
|
|
|
48 |
vip-ire |
1.4 |
* Mon Sep 28 2009 Daniel B. <daniel@firewall-services.com> 0.1-6 |
49 |
|
|
- Fixe /etc/sudoers template expension during zabbix-proxy-update event |
50 |
|
|
|
51 |
vip-ire |
1.3 |
* Tue Mar 03 2009 Daniel B. <daniel@firewall-services.com> 0.1-5 |
52 |
|
|
- Add smeserver-remoteuseraccess as a dependencie (sudoers template problem) |
53 |
|
|
|
54 |
slords |
1.1 |
* Mon Mar 02 2009 Daniel B. <daniel@firewall-services.com> 0.1-4 |
55 |
vip-ire |
1.3 |
- Disable DB cache as it seems to cause IPC problems |
56 |
slords |
1.1 |
|
57 |
|
|
* Mon Mar 02 2009 Daniel B. <daniel@firewall-services.com> 0.1-3 |
58 |
|
|
- enable DB cache with StartDBSyncers directive |
59 |
|
|
|
60 |
|
|
* Sun Mar 01 2009 Daniel B. <daniel@firewall-services.com> 0.1-2 |
61 |
|
|
- Fix permissions on /var/lib/zabbix/tmp |
62 |
|
|
|
63 |
|
|
* Fri Feb 24 2009 Daniel B. <daniel@firewall-services.com> 0.1-1 |
64 |
|
|
- Fix createlinks |
65 |
|
|
|
66 |
|
|
* Fri Feb 24 2009 Daniel B. <daniel@firewall-services.com> 0.1-0 |
67 |
|
|
- initial release |
68 |
|
|
|
69 |
|
|
%prep |
70 |
|
|
%setup |
71 |
|
|
%patch0 -p1 |
72 |
|
|
%patch1 -p1 |
73 |
|
|
%patch2 -p1 |
74 |
|
|
%patch3 -p1 |
75 |
|
|
%patch4 -p1 |
76 |
|
|
%patch5 -p1 |
77 |
|
|
%patch6 -p1 |
78 |
|
|
%patch7 -p1 |
79 |
|
|
#%patch8 -p1 |
80 |
vip-ire |
1.4 |
%patch9 -p1 |
81 |
vip-ire |
1.5 |
%patch10 -p1 |
82 |
slords |
1.1 |
|
83 |
|
|
%build |
84 |
|
|
perl ./createlinks |
85 |
|
|
%{__mkdir_p} root/var/lib/zabbix/tmp |
86 |
|
|
|
87 |
|
|
%install |
88 |
|
|
rm -rf $RPM_BUILD_ROOT |
89 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
90 |
|
|
rm -f %{name}-%{version}-filelist |
91 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
92 |
|
|
--file /var/lib/zabbix/bin/fping 'attr(0750,root,zabbix)' \ |
93 |
|
|
--file /var/lib/zabbix/bin/fping6 'attr(0750,root,zabbix)' \ |
94 |
|
|
--dir /var/lib/zabbix/tmp 'attr(0755,zabbix,zabbix)' \ |
95 |
|
|
> %{name}-%{version}-filelist |
96 |
|
|
|
97 |
|
|
%files -f %{name}-%{version}-filelist |
98 |
|
|
%defattr(-,root,root) |
99 |
|
|
|
100 |
|
|
%clean |
101 |
|
|
rm -rf $RPM_BUILD_ROOT |
102 |
|
|
|
103 |
|
|
|
104 |
|
|
%postun |
105 |
|
|
#uninstall |
106 |
|
|
if [ $1 = 0 ] ; then |
107 |
|
|
/sbin/e-smith/db configuration setprop zabbix-proxy status disabled |
108 |
|
|
/etc/init.d/zabbix-proxy stop |
109 |
|
|
fi |
110 |
|
|
|
111 |
|
|
true |