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