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

Annotation of /rpms/smeserver-zabbix-server/contribs10/smeserver-zabbix-server.spec

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


Revision 1.7 - (hide annotations) (download)
Fri Nov 5 11:11:27 2021 UTC (2 years, 11 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-zabbix-server-0_1-25_el7_sme
Changes since 1.6: +19 -3 lines
* Mon Nov 01 2021 BogusDateBot
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
  by assuming the date is correct and changing the weekday.
  Tue Mar 02 2009 --> Tue Feb 24 2009 or Mon Mar 02 2009 or Tue Mar 03 2009 or ....
  Wed Feb 07 2016 --> Wed Feb 03 2016 or Sun Feb 07 2016 or Wed Feb 10 2016 or ....

1 brianr 1.7 # $Id: smeserver-zabbix-server.spec,v 1.6 2021/11/01 14:22:18 brianr Exp $
2 brianr 1.1 # Authority: vip-ire
3     # Name: Daniel Berteaud
4    
5     %define name smeserver-zabbix-server
6     %define version 0.1
7 brianr 1.7 %define release 25
8 brianr 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     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     Patch14: smeserver-zabbix-server-0.1-sme9db.patch
32     Patch15: smeserver-zabbix-server-0.1-sme9zabb3.2.4.patch
33     Patch16: smeserver-zabbix-server-0.1-SME10458-SenderFrequency.deprecated.patch
34     Patch17: smeserver-zabbix-server-0.1-zabbix4.4.6.patch
35 brianr 1.2 Patch18: smeserver-zabbix-server-0.1-Update-httpd-createlinks-and-adduser.ini.patch
36 brianr 1.3 Patch19: smeserver-zabbix-server-0.1-Template-user-dot-ini-and-override-service-file-change-pid-in-conf-file.patch
37 brianr 1.4 Patch20: smeserver-zabbix-server-0.1-Add-in-zabbix-conf-expansion-to-createlinks.patch
38 brianr 1.7 Patch21: smeserver-zabbix-server-0.1-Switch-to-specific-php-fpm.patch
39 brianr 1.1
40     BuildArchitectures: noarch
41     BuildRequires: e-smith-devtools
42     BuildRoot: /var/tmp/%{name}-%{version}
43     Requires: e-smith-release >= 9.0
44     Requires: fping
45     Obsoletes: zabbix-server
46     Requires: zabbix-server-mysql >= 4.4.6
47     Requires: zabbix-web-mysql >= 4.4.6
48     Requires: zabbix-web >= 4.4.6
49     Requires: sendxmpp
50     Conflicts: smeserver-zabbix-proxy
51     Requires: smeserver-remoteuseraccess
52 brianr 1.2 #Requires: smeserver-php-scl
53 brianr 1.1 AutoReqProv: no
54    
55     %description
56     smserver integration of zabbix server and web front-end.
57     ZAbbix is an entreprise-class open source distributed monitoring
58     solution
59    
60     %changelog
61 brianr 1.7 * Mon Nov 01 2021 BogusDateBot
62     - Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
63     by assuming the date is correct and changing the weekday.
64     Tue Mar 02 2009 --> Tue Feb 24 2009 or Mon Mar 02 2009 or Tue Mar 03 2009 or ....
65     Wed Feb 07 2016 --> Wed Feb 03 2016 or Sun Feb 07 2016 or Wed Feb 10 2016 or ....
66    
67     * Mon Nov 01 2021 Brian Read <brianr@bjsystems.co.uk> 0.1-25.sme
68     - Switch-to-specific-php-fpm [SME: 11232]
69    
70 brianr 1.6 * Mon Nov 01 2021 Brian Read <brianr@bjsystems.co.uk> 0.1-24.sme
71     - Remove post and postun command in spec file [SME: 11232]
72    
73 brianr 1.5 * Thu Dec 10 2020 Brian Read <brianr@bjsystems.co.uk> 0.1-23.sme
74     - Add in post instructions to spec for SQL db creation [SME: 11232]
75    
76 brianr 1.4 * Tue Dec 08 2020 Brian Read <brianr@bjsystems.co.uk> 0.1-22.sme
77     - Add expand zabbix-server.conf and .user.ini to creatlinks update event [SME:11232]
78    
79 brianr 1.3 * Tue Dec 08 2020 Brian Read <brianr@bjsystems.co.uk> 0.1-21.sme
80     - Template-user-dot-ini-and-override-service-file-change-pid-in-conf-file [SME: 11232]
81    
82 brianr 1.2 * Mon Dec 07 2020 Brian Read <brianr@bjsystems.co.uk> 0.1-20.sme
83     - Import to SME10 tree [SME: 11232]
84     - Update createlinks for systemd
85     - Update httpd.conf for php-fpw
86     - Add .user.ini for php-admin-flags that where in httpd.conf
87    
88 brianr 1.1 * Sun May 10 2020 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-19.sme
89     - adapt for zabbix 4.4.6 [SME: 10944]
90    
91     * Thu Sep 05 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-17.sme
92     - remove deprecated option preventing from starting service [SME: 10458]
93    
94     * Wed Mar 29 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-16.sme
95     - fix sql init not finding default sql dump to import [SME: 9569]
96     - NodeID support droped as per zabbix 2.4.0 and higher
97     - requires smeserver-php-scl as Zabbix-server 3.2.4 requires php 5.4 or higher
98    
99     * Mon Jun 13 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-15.sme
100     - finitial import [SME: 9569]
101     - fix php requirement
102     - fix add path to new db
103    
104 brianr 1.7 * Sun Feb 07 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 0.1-14.sme
105     Wed Feb 07 2016 --> Wed Feb 03 2016 or Sun Feb 07 2016 or Wed Feb 10 2016 or ....
106 brianr 1.1 - New roll for sme9
107    
108     * Mon Apr 29 2013 Daniel B. <daniel@firewall-services.com> 0.1-13
109     - Increase PHP mem limit to 128M
110    
111     * Mon Mar 8 2010 Daniel B. <daniel@firewall-services.com> 0.1-12
112     - Use global TimeZone
113    
114     * Wed Dec 2 2009 Daniel B. <daniel@firewall-services.com> 0.1-11
115     - Support several mysql DB patches
116    
117     * Tue Mar 02 2009 Daniel B. <daniel@firewall-services.com> 0.1-10
118     - Add smeserver-remoteuseraccess as a dependencie (sudoers template problem)
119    
120     * Mon Mar 02 2009 Daniel B. <daniel@firewall-services.com> 0.1-9
121     - specify path to .sendxmpprc file in the script sendxmpp
122    
123     * Mon Mar 02 2009 Daniel B. <daniel@firewall-services.com> 0.1-8
124     - move .sendxmpprc template to the correct directory
125    
126     * Mon Mar 02 2009 Daniel B. <daniel@firewall-services.com> 0.1-7
127     - Move jabber account informations to xmpprc
128    
129     * Mon Mar 02 2009 Daniel B. <daniel@firewall-services.com> 0.1-6
130     - Adjust service masq during zabbix-server-update event
131     - Enable DB cache module with StartDBSyncers directive
132    
133     * Sun Mar 01 2009 Daniel B. <daniel@firewall-services.com> 0.1-5
134     - Fix permissions on /var/lib/zabbix/tmp
135    
136     * Tue Feb 17 2009 Daniel B. <daniel@firewall-services.com> 0.1-4
137     - rename event zabbix-update to zabbix-server-update
138    
139     * Wed Feb 11 2009 Daniel B. <daniel@firewall-services.com> 0.1-3
140     - disable web access (usefull for distributed monitoring)
141     - Use stronger password for mysql database
142     - Use /var/lib/zabbix/bin as default location for scripts
143     - Use /var/lib/zabbix/tmp for temp dir
144    
145     * Fri Feb 06 2009 Daniel B. <daniel@firewall-services.com> 0.1-2
146     - Link template-begin-shell to template-begin for sendxmpp script
147    
148     * Fri Feb 06 2009 Daniel B. <daniel@firewall-services.com> 0.1-1
149     - templatize sendxmpp as zabbix user doesn't have access to SME db
150     - Add JabberTLS option in the db
151    
152     * Mon Feb 02 2009 Daniel B. <daniel@firewall-services.com> 0.1-0
153     - initial release
154    
155     %prep
156     %setup
157     %patch0 -p1
158     %patch1 -p1
159     %patch2 -p1
160     %patch3 -p1
161     %patch4 -p1
162     %patch5 -p1
163     %patch6 -p1
164     %patch7 -p1
165     %patch8 -p1
166     %patch9 -p1
167     %patch10 -p1
168     %patch11 -p1
169     %patch12 -p1
170     %patch13 -p1
171     %patch14 -p1
172     %patch15 -p1
173     %patch16 -p1
174     %patch17 -p1
175 brianr 1.2 %patch18 -p1
176 brianr 1.3 %patch19 -p1
177 brianr 1.4 %patch20 -p1
178 brianr 1.7 %patch21 -p1
179 brianr 1.1
180     %build
181     perl ./createlinks
182     %{__mkdir_p} root/var/lib/zabbix/tmp
183 brianr 1.7 #%{__mkdir_p} root/var/log/zabbix - conflict with zabbix-server-mysql
184     %{__mkdir_p} root/var/log/php/zabbix
185     %{__mkdir_p} root/var/lib/php/zabbix/{tmp,wsdlcache,opcache,session}
186    
187 brianr 1.1
188     %install
189     rm -rf $RPM_BUILD_ROOT
190     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
191     rm -f %{name}-%{version}-filelist
192     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
193     --file /var/lib/zabbix/bin/fping 'attr(0750,root,zabbix)' \
194     --file /var/lib/zabbix/bin/fping6 'attr(0750,root,zabbix)' \
195     --dir /var/lib/zabbix/tmp 'attr(0755,zabbix,zabbix)' \
196     > %{name}-%{version}-filelist
197    
198     %files -f %{name}-%{version}-filelist
199     %defattr(-,root,root)
200    
201     %clean
202     rm -rf $RPM_BUILD_ROOT
203    
204 brianr 1.5 %post
205 brianr 1.6 #/sbin/e-smith/expand-template /etc/e-smith/sql/init/80zabbix-server
206     #/etc/rc.d/init.d/mysql.init start
207 brianr 1.1
208     %postun
209     #uninstall
210 brianr 1.6 #if [ $1 = 0 ] ; then
211     # /sbin/e-smith/db configuration setprop zabbix-server status disabled
212     # /etc/init.d/zabbix-server stop
213     # /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
214     # /usr/bin/sv h /service/httpd-e-smith
215     #fi
216 brianr 1.1
217     true

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