/[smecontribs]/rpms/smeserver-zabbix-server/contribs9/smeserver-zabbix-server.spec
ViewVC logotype

Contents of /rpms/smeserver-zabbix-server/contribs9/smeserver-zabbix-server.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Tue Feb 9 23:11:13 2016 UTC (8 years, 9 months ago) by stephdl
Branch: MAIN
CVS Tags: smeserver-zabbix-server-0_1-14_el6_sme
* Wed Feb 7 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 0.1-14.sme
- New roll for sme9

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

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed