/[smecontribs]/rpms/zabbix/contribs9/zabbix.spec
ViewVC logotype

Diff of /rpms/zabbix/contribs9/zabbix.spec

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

Revision 1.1 by jpp, Thu May 14 03:29:53 2020 UTC Revision 1.5 by jpp, Thu May 14 03:52:35 2020 UTC
# Line 1  Line 1 
1  # $Id: zabbix.spec,v 1.11 2010/04/08 09:19:02 vip-ire Exp $  Name:           zabbix
2  # Authority: vip-ire  Version:        4.4.6
3  # Name: Daniel Berteaud  Release:        %{?alphatag:0.}2%{?alphatag}%{?dist}
4    Summary:        The Enterprise-class open source monitoring solution
5  Name:           zabbix  Group:          Applications/Internet
6  Version:        1.6.9  License:        GPLv2+
7  Release:        2%{?dist}  URL:            http://www.zabbix.com/
8  Summary:        Open-source monitoring solution for your IT infrastructure  Source0:        %{name}-%{version}%{?alphatag}.tar.gz
9    Source1:        zabbix-web22.conf
10  Group:          Applications/Internet  Source2:        zabbix-web24.conf
11  License:        GPL  Source3:        zabbix-logrotate.in
12  URL:            http://www.zabbix.com/  Source4:        zabbix-java-gateway.init
13  Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz  Source5:        zabbix-agent.init
14  Source1:        zabbix-web.conf  Source6:        zabbix-server.init
15  Source2:        zabbix-server.init  Source7:        zabbix-proxy.init
16  Source3:        zabbix-agent.init  Source10:       zabbix-agent.service
17  Source4:        zabbix-proxy.init  Source11:       zabbix-server.service
18  Source5:        zabbix-logrotate.in  Source12:       zabbix-proxy.service
19    Source13:       zabbix-java-gateway.service
20  Patch0: zabbix-1.6.3-curl_centos4.patch  Source14:       zabbix_java_gateway-sysd
21  #Patch1: zabbix-1.6.6-ZBX-1027.patch  Source15:       zabbix-tmpfiles.conf
22    Source16:       zabbix-php-fpm.conf
23  Buildroot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)  Source17:       zabbix-web-fcgi.conf
24    Source18:       zabbix-nginx.conf
25  BuildRequires:   mysql-devel  Source19:       zabbix-agent2.service
26  BuildRequires:   postgresql-devel  Source20:       zabbix-agent.sysconfig
27  BuildRequires:   net-snmp-devel  Patch0:         config.patch
28  BuildRequires:   openldap-devel  Patch1:         fping3-sourceip-option.patch
29  BuildRequires:   gnutls-devel  
30  BuildRequires:   iksemel-devel  Buildroot:      %{_tmppath}/zabbix-%{version}-%{release}-root-%(%{__id_u} -n)
31  BuildRequires:   curl-devel  
32  BuildRequires:   sqlite-devel  %ifarch x86_64
33  BuildRequires:   unixODBC-devel  %if 0%{?rhel} >= 8
34    %define build_agent2 1
35  Requires:        logrotate  %endif
36  Requires(pre):   /usr/sbin/useradd  %endif
37    
38    # FIXME: Building debuginfo is broken on RHEL-8. Disabled for now.
39    %if 0%{?rhel} == 8
40    %define debug_package %{nil}
41    %endif
42    
43    %if 0%{?rhel} >= 6
44    %define build_server 1
45    %endif
46    
47    BuildRequires:  mysql-devel
48    BuildRequires:  postgresql-devel
49    BuildRequires:  net-snmp-devel
50    BuildRequires:  openldap-devel
51    BuildRequires:  gnutls-devel
52    BuildRequires:  sqlite-devel
53    BuildRequires:  unixODBC-devel
54    BuildRequires:  curl-devel >= 7.13.1
55    BuildRequires:  OpenIPMI-devel >= 2
56    %if 0%{?rhel} >= 8
57    BuildRequires:  libssh-devel >= 0.9.0
58    %else
59    BuildRequires:  libssh2-devel >= 1.0.0
60    %endif
61    BuildRequires:  java-devel >= 1.6.0
62    BuildRequires:  libxml2-devel
63    BuildRequires:  pcre-devel
64    BuildRequires:  libevent-devel
65    %if 0%{?rhel} >= 6
66    BuildRequires:  openssl-devel >= 1.0.1
67    %endif
68    %if 0%{?rhel} >= 7
69    BuildRequires:  systemd
70    %endif
71    
72  %description  %description
73  ZABBIX is software that monitors numerous parameters of a  Zabbix is the ultimate enterprise-level software designed for
74  network and the health and integrity of servers. ZABBIX  real-time monitoring of millions of metrics collected from tens of
75  uses a flexible notification mechanism that allows users  thousands of servers, virtual machines and network devices.
 to configure e-mail based alerts for virtually any event.  
 This allows a fast reaction to server problems. ZABBIX  
 offers excellent reporting and data visualisation features  
 based on the stored data. This makes ZABBIX ideal for  
 capacity planning.  
   
 ZABBIX supports both polling and trapping. All ZABBIX  
 reports and statistics, as well as configuration  
 parameters are accessed through a web-based front end. A  
 web-based front end ensures that the status of your network  
 and the health of your servers can be assessed from any  
 location. Properly configured, ZABBIX can play an important  
 role in monitoring IT infrastructure. This is equally true  
 for small organisations with a few servers and for large  
 companies with a multitude of servers.  
   
 %package server  
 Summary:         Zabbix server common files  
 Group:           Applications/Internet  
 Requires:        zabbix = %{version}-%{release}  
 Requires:        zabbix-server-implementation = %{version}-%{release}  
 Requires:        fping  
 Requires:        net-snmp  
 Requires(post):  /sbin/chkconfig  
 Requires(preun): /sbin/chkconfig  
 Requires(preun): /sbin/service  
   
 %description server  
 Zabbix server common files  
   
 %package server-mysql  
 Summary:         Zabbix server compiled to use MySQL  
 Group:           Applications/Internet  
 Requires:        zabbix = %{version}-%{release}  
 Requires:        zabbix-server = %{version}-%{release}  
 Provides:        zabbix-server-implementation = %{version}-%{release}  
 Obsoletes:       zabbix <= 1.5.3-0.1  
 Conflicts:       zabbix-server-pgsql  
 Conflicts:       zabbix-server-sqlite3  
   
 %description server-mysql  
 Zabbix server compiled to use MySQL  
   
 %package server-pgsql  
 Summary:         Zabbix server compiled to use PostgresSQL  
 Group:           Applications/Internet  
 Requires:        zabbix = %{version}-%{release}  
 Requires:        zabbix-server = %{version}-%{release}  
 Provides:        zabbix-server-implementation = %{version}-%{release}  
 Conflicts:       zabbix-server-mysql  
 Conflicts:       zabbix-server-sqlite3  
   
 %description server-pgsql  
 Zabbix server compiled to use PostgresSQL  
   
 %package server-sqlite3  
 Summary:         Zabbix server compiled to use SQLite  
 Group:           Applications/Internet  
 Requires:        zabbix = %{version}-%{release}  
 Requires:        zabbix-server = %{version}-%{release}  
 Provides:        zabbix-server-implementation = %{version}-%{release}  
 Conflicts:       zabbix-server-mysql  
 Conflicts:       zabbix-server-pgsql  
   
 %description server-sqlite3  
 Zabbix server compiled to use SQLite  
76    
77  %package agent  %package agent
78  Summary:         Zabbix Agent  Summary:                Old Zabbix Agent
79  Group:           Applications/Internet  Group:                  Applications/Internet
80  Requires:        zabbix = %{version}-%{release}  Requires:               logrotate
81  Requires(post):  /sbin/chkconfig  Requires(pre):          /usr/sbin/useradd
82  Requires(preun): /sbin/chkconfig  %if 0%{?rhel} >= 7
83  Requires(preun): /sbin/service  Requires(post):         systemd
84    Requires(preun):        systemd
85    Requires(preun):        systemd
86    %else
87    Requires(post):         /sbin/chkconfig
88    Requires(preun):        /sbin/chkconfig
89    Requires(preun):        /sbin/service
90    Requires(postun):       /sbin/service
91    %endif
92    Obsoletes:              zabbix
93    
94    %if 0%{?build_agent2} != 1
95  %description agent  %description agent
96  The Zabbix client agent, to be installed on monitored systems.  Zabbix agent to be installed on monitored systems.
97    
98  %package proxy  %else
99  Summary:         Zabbix Proxy  %description agent
100  Group:           Applications/Internet  Old implementation of zabbix agent.
101  Requires:        zabbix = %{version}-%{release}  To be installed on monitored systems.
102  Requires:        zabbix-proxy-implementation = %{version}-%{release}  
103  Requires(post):  /sbin/chkconfig  %package agent2
104  Requires(preun): /sbin/chkconfig  Summary:                New Zabbix Agent
105  Requires(preun): /sbin/service  Group:                  Applications/Internet
106  Requires:        fping  Requires:               logrotate
107    Requires(post):         systemd
108    Requires(preun):        systemd
109    Requires(preun):        systemd
110    Obsoletes:              zabbix
111    
112    %description agent2
113    New implementation of zabbix agent.
114    To be installed on monitored systems.
115    %endif
116    
117    %package get
118    Summary:                Zabbix Get
119    Group:                  Applications/Internet
120    
121    %description get
122    Zabbix get command line utility.
123    
124    %package sender
125    Summary:                Zabbix Sender
126    Group:                  Applications/Internet
127    
128    %description sender
129    Zabbix sender command line utility.
130    
131    %package js
132    Summary:                Zabbix JS
133    Group:                  Applications/Internet
134    
135  %description proxy  %description js
136  The Zabbix proxy  Zabbix js command line utility.
137    
138  %package proxy-mysql  %package proxy-mysql
139  Summary:         Zabbix proxy compiled to use MySQL  Summary:                Zabbix proxy for MySQL or MariaDB database
140  Group:           Applications/Internet  Group:                  Applications/Internet
141  Requires:        zabbix-proxy = %{version}-%{release}  Requires:               fping
142  Provides:        zabbix-proxy-implementation = %{version}-%{release}  %if 0%{?rhel} >= 7
143    Requires(post):         systemd
144    Requires(preun):        systemd
145    Requires(postun):       systemd
146    %else
147    Requires(post):         /sbin/chkconfig
148    Requires(preun):        /sbin/chkconfig
149    Requires(preun):        /sbin/service
150    Requires(postun):       /sbin/service
151    %endif
152    Provides:               zabbix-proxy = %{version}-%{release}
153    Provides:               zabbix-proxy-implementation = %{version}-%{release}
154    Obsoletes:              zabbix
155    Obsoletes:              zabbix-proxy
156    Provides: zabbix
157    
158  %description proxy-mysql  %description proxy-mysql
159  The Zabbix proxy compiled to use MySQL  Zabbix proxy with MySQL or MariaDB database support.
160    
161  %package proxy-pgsql  %package proxy-pgsql
162  Summary:         Zabbix proxy compiled to use PostgreSQL  Summary:                Zabbix proxy for PostgreSQL database
163  Group:           Applications/Internet  Group:                  Applications/Internet
164  Requires:        zabbix-proxy = %{version}-%{release}  Requires:               fping
165  Provides:        zabbix-proxy-implementation = %{version}-%{release}  %if 0%{?rhel} >= 7
166    Requires(post):         systemd
167    Requires(preun):        systemd
168    Requires(postun):       systemd
169    %else
170    Requires(post):         /sbin/chkconfig
171    Requires(preun):        /sbin/chkconfig
172    Requires(preun):        /sbin/service
173    Requires(postun):       /sbin/service
174    %endif
175    Provides:               zabbix-proxy = %{version}-%{release}
176    Provides:               zabbix-proxy-implementation = %{version}-%{release}
177    Obsoletes:              zabbix
178    Obsoletes:              zabbix-proxy
179    Provides: zabbix
180    
181  %description proxy-pgsql  %description proxy-pgsql
182  The Zabbix proxy compiled to use PostgreSQL  Zabbix proxy with PostgreSQL database support.
183    
184  %package proxy-sqlite3  %package proxy-sqlite3
185  Summary:         Zabbix proxy compiled to use SQLite  Summary:                Zabbix proxy for SQLite3 database
186  Group:           Applications/Internet  Group:                  Applications/Internet
187  Requires:        zabbix-proxy = %{version}-%{release}  Requires:               fping
188  Provides:        zabbix-proxy-implementation = %{version}-%{release}  %if 0%{?rhel} >= 7
189    Requires(post):         systemd
190    Requires(preun):        systemd
191    Requires(postun):       systemd
192    %else
193    Requires(post):         /sbin/chkconfig
194    Requires(preun):        /sbin/chkconfig
195    Requires(preun):        /sbin/service
196    Requires(postun):       /sbin/service
197    %endif
198    Provides:               zabbix-proxy = %{version}-%{release}
199    Provides:               zabbix-proxy-implementation = %{version}-%{release}
200    Obsoletes:              zabbix
201    Obsoletes:              zabbix-proxy
202    Provides: zabbix
203    
204  %description proxy-sqlite3  %description proxy-sqlite3
205  The Zabbix proxy compiled to use SQLite  Zabbix proxy with SQLite3 database support.
206    
207    %package java-gateway
208    Summary:                Zabbix java gateway
209    Group:                  Applications/Internet
210    %if 0%{?rhel} >= 7
211    Requires:               java-headless >= 1.6.0
212    %else
213    Requires:               java >= 1.6.0
214    %endif
215    %if 0%{?rhel} >= 7
216    Requires(post):         systemd
217    Requires(preun):        systemd
218    Requires(postun):       systemd
219    %else
220    Requires(post):         /sbin/chkconfig
221    Requires(preun):        /sbin/chkconfig
222    Requires(preun):        /sbin/service
223    Requires(postun):       /sbin/service
224    %endif
225    Obsoletes:                      zabbix
226    
227    %description java-gateway
228    Zabbix java gateway
229    
230    %if 0%{?build_server}
231    %package server-mysql
232    Summary:                Zabbix server for MySQL or MariaDB database
233    Group:                  Applications/Internet
234    Requires:               fping
235    %if 0%{?rhel} >= 7
236    Requires(post):         systemd
237    Requires(preun):        systemd
238    Requires(postun):       systemd
239    %else
240    Requires(post):         /sbin/chkconfig
241    Requires(preun):        /sbin/chkconfig
242    Requires(preun):        /sbin/service
243    Requires(postun):       /sbin/service
244    %endif
245    Provides:               zabbix-server = %{version}-%{release}
246    Provides:               zabbix-server-implementation = %{version}-%{release}
247    Obsoletes:              zabbix
248    Obsoletes:              zabbix-server
249    Provides: zabbix
250    
251    %description server-mysql
252    Zabbix server with MySQL or MariaDB database support.
253    
254    %package server-pgsql
255    Summary:                Zabbix server for PostgresSQL database
256    Group:                  Applications/Internet
257    Requires:               fping
258    %if 0%{?rhel} >= 7
259    Requires(post):         systemd
260    Requires(preun):        systemd
261    Requires(postun):       systemd
262    %else
263    Requires(post):         /sbin/chkconfig
264    Requires(preun):        /sbin/chkconfig
265    Requires(preun):        /sbin/service
266    Requires(postun):       /sbin/service
267    %endif
268    Provides:               zabbix-server = %{version}-%{release}
269    Provides:               zabbix-server-implementation = %{version}-%{release}
270    Obsoletes:              zabbix
271    Obsoletes:              zabbix-server
272    Provides: zabbix
273    
274    %description server-pgsql
275    Zabbix server with PostgresSQL database support.
276    
277  %package web  %package web
278  Summary:         Zabbix Web Frontend  Summary:                Zabbix web frontend common package
279  Group:           Applications/Internet  Group:                  Application/Internet
280  Requires:        php  BuildArch:              noarch
281  Requires:        php-gd  %if 0%{?rhel} == 7
282  #Requires:       php-bcmath  Requires:               httpd
283  Requires:        zabbix = %{version}-%{release}  Requires:               php >= 5.4
284  Requires:        zabbix-web-database = %{version}-%{release}  %endif
285    %if 0%{?rhel} >= 7
286    Requires:               php-gd
287    Requires:               php-bcmath
288    Requires:               php-mbstring
289    Requires:               php-xml
290    Requires:               php-ldap
291    %endif
292    %if 0%{?rhel} >= 8
293    Requires:               php-fpm
294    Requires:               php-json
295    %endif
296    Requires:               dejavu-sans-fonts
297    Requires:               zabbix-web-database = %{version}-%{release}
298    Requires(post):         %{_sbindir}/update-alternatives
299    Requires(preun):        %{_sbindir}/update-alternatives
300    
301  %description web  %description web
302  The php frontend to display the zabbix web interface.  Zabbix web frontend common package
303    
304  %package web-mysql  %package web-mysql
305  Summary:         Zabbix web frontend for MySQL  Summary:                Zabbix web frontend for MySQL
306  Group:           Applications/Internet  Group:                  Applications/Internet
307  Requires:        zabbix-web = %{version}-%{release}  BuildArch:              noarch
308  Requires:        php-mysql  %if 0%{?rhel} == 7
309  Provides:        zabbix-web-database = %{version}-%{release}  Requires:               php-mysql
310  Obsoletes:       zabbix-web <= 1.5.3-0.1  %endif
311    %if 0%{?rhel} == 8
312    Requires:               php-mysqlnd
313    %endif
314    Requires:               zabbix-web = %{version}-%{release}
315    Provides:               zabbix-web-database = %{version}-%{release}
316    %if 0%{?rhel} >= 8
317    Suggests:               zabbix-apache-conf
318    Suggests:               zabbix-nginx-conf
319    %endif
320    
321  %description web-mysql  %description web-mysql
322  Zabbix web frontend for MySQL  Zabbix web frontend for MySQL
323    
324  %package web-pgsql  %package web-pgsql
325  Summary:         Zabbix web frontend for PostgreSQL  Summary:                Zabbix web frontend for PostgreSQL
326  Group:           Applications/Internet  Group:                  Applications/Internet
327  Requires:        zabbix-web = %{version}-%{release}  BuildArch:              noarch
328  Requires:        php-pgsql  %if 0%{?rhel} >= 7
329  Provides:        zabbix-web-database = %{version}-%{release}  Requires:               php-pgsql
330    %endif
331    Requires:               zabbix-web = %{version}-%{release}
332    Provides:               zabbix-web-database = %{version}-%{release}
333    
334  %description web-pgsql  %description web-pgsql
335  Zabbix web frontend for PostgreSQL  Zabbix web frontend for PostgreSQL
336    
337  %package web-sqlite3  %package web-japanese
338  Summary:         Zabbix web frontend for SQLite  Summary:                Japanese font settings for Zabbix frontend
339  Group:           Applications/Internet  Group:                  Applications/Internet
340  Requires:        zabbix-web = %{version}-%{release}  BuildArch:              noarch
341  Provides:        zabbix-web-database = %{version}-%{release}  %if 0%{?rhel} >= 8
342    Requires:               google-noto-sans-cjk-ttc-fonts
343    Requires:               glibc-langpack-ja
344    %else
345    Requires:               vlgothic-p-fonts
346    %endif
347    Requires:               zabbix-web = %{version}-%{release}
348    Requires(post):         %{_sbindir}/update-alternatives
349    Requires(preun):        %{_sbindir}/update-alternatives
350    
351    %description web-japanese
352    Japanese font configuration for Zabbix web frontend
353    
354    %if 0%{?rhel} >= 8
355    %package apache-conf
356    Summary:                Automatic zabbix frontend configuration with apache
357    Group:                  Applications/Internet
358    BuildArch:              noarch
359    Requires:               zabbix-web
360    Requires:               httpd
361    Requires:               php >= 5.4
362    
363    %description apache-conf
364    Automatic zabbix frontend configuration with apache
365    %endif
366    
367    %if 0%{?rhel} >= 7
368    %package nginx-conf
369    Summary:                Automatic zabbix frontend configuration with nginx and php-fpm
370    Group:                  Applications/Internet
371    BuildArch:              noarch
372    Requires:               zabbix-web
373    Requires:               nginx
374    Requires:               php-fpm
375    
376    %description nginx-conf
377    Automatic zabbix frontend configuration with nginx and php-fpm
378    %endif
379    
380  %description web-sqlite3  %endif
 Zabbix web frontend for SQLite  
381    
382  %prep  %prep
383  %setup0 -q  %setup0 -q -n %{name}-%{version}%{?alphatag}
384  %patch0 -p1  %patch0 -p1
385    %if 0%{?rhel} >= 7
386  chmod -R a+rX .  %patch1 -p1
387    %endif
388  # nuke erronious executable permissions  
389  #chmod -x src/zabbix_agent/eventlog.c  ## remove font file
390    rm -f frontends/php/assets/fonts/DejaVuSans.ttf
391  # fix up some lib64 issues  
392  %{__perl} -pi.orig -e 's|_LIBDIR=/usr/lib|_LIBDIR=%{_libdir}|g' \  # replace font in defines.inc.php
393      configure  sed -i -r "s/(define\(.*_FONT_NAME.*)DejaVuSans/\1graphfont/" \
394            frontends/php/include/defines.inc.php
395    
396    # remove .htaccess files
397    rm -f frontends/php/app/.htaccess
398    rm -f frontends/php/conf/.htaccess
399    rm -f frontends/php/include/.htaccess
400    rm -f frontends/php/local/.htaccess
401    
402    # remove translation source files and scripts
403    find frontends/php/locale -name '*.po' | xargs rm -f
404    find frontends/php/locale -name '*.sh' | xargs rm -f
405    
406    # traceroute command path for global script
407    sed -i -e 's|/usr/bin/traceroute|/bin/traceroute|' database/mysql/data.sql
408    sed -i -e 's|/usr/bin/traceroute|/bin/traceroute|' database/postgresql/data.sql
409    sed -i -e 's|/usr/bin/traceroute|/bin/traceroute|' database/sqlite3/data.sql
410    
411    # change log directory for Java Gateway
412    sed -i -e 's|/tmp/zabbix_java.log|/var/log/zabbix/zabbix_java_gateway.log|g' src/zabbix_java/lib/logback.xml
413    
414    %if 0%{?build_server}
415    # copy sql files for servers
416    cat database/mysql/schema.sql > database/mysql/create.sql
417    cat database/mysql/images.sql >> database/mysql/create.sql
418    cat database/mysql/data.sql >> database/mysql/create.sql
419    gzip database/mysql/create.sql
420    
421    cat database/postgresql/schema.sql > database/postgresql/create.sql
422    cat database/postgresql/images.sql >> database/postgresql/create.sql
423    cat database/postgresql/data.sql >> database/postgresql/create.sql
424    gzip database/postgresql/create.sql
425    gzip database/postgresql/timescaledb.sql
426    %endif
427    
428    # sql files for proxyes
429    gzip database/mysql/schema.sql
430    gzip database/postgresql/schema.sql
431    gzip database/sqlite3/schema.sql
432    
433  %build  %build
434    
435  %configure \  build_flags="
436      --enable-server \          --enable-dependency-tracking
437      --enable-agent \          --sysconfdir=/etc/zabbix
438      --enable-proxy \          --libdir=%{_libdir}/zabbix
439      --enable-ipv6 \          --enable-agent
440      --with-mysql \  %if 0%{?build_agent2}
441      --with-net-snmp \          --enable-agent2
442      --with-ldap \  %endif
443      --with-libcurl \          --enable-proxy
444      --with-jabber \          --enable-ipv6
445      --with-unixodbc          --enable-java
446            --with-net-snmp
447            --with-ldap
448            --with-libcurl
449            --with-openipmi
450            --with-unixodbc
451    %if 0%{?rhel} >= 8
452            --with-ssh
453    %else
454            --with-ssh2
455    %endif
456            --with-libxml2
457            --with-libevent
458            --with-libpcre
459    "
460    
461    %if 0%{?rhel} >= 6
462    build_flags="$build_flags --with-openssl"
463    %endif
464    
465    %configure $build_flags --with-sqlite3
466  make %{?_smp_mflags}  make %{?_smp_mflags}
467    mv src/zabbix_proxy/zabbix_proxy src/zabbix_proxy/zabbix_proxy_sqlite3
468    
469    %if 0%{?build_server}
470    build_flags="$build_flags --enable-server"
471    %endif
472    
473    %configure $build_flags --with-mysql
474    make %{?_smp_mflags}
475    %if 0%{?build_server}
476  mv src/zabbix_server/zabbix_server src/zabbix_server/zabbix_server_mysql  mv src/zabbix_server/zabbix_server src/zabbix_server/zabbix_server_mysql
477    %endif
478  mv src/zabbix_proxy/zabbix_proxy src/zabbix_proxy/zabbix_proxy_mysql  mv src/zabbix_proxy/zabbix_proxy src/zabbix_proxy/zabbix_proxy_mysql
479    
480  %configure \  %configure $build_flags --with-postgresql
     --enable-server \  
     --enable-agent \  
     --enable-proxy \  
     --enable-ipv6 \  
     --with-pgsql \  
     --with-net-snmp \  
     --with-ldap \  
     --with-libcurl \  
     --with-jabber \  
     --with-unixodbc  
   
481  make %{?_smp_mflags}  make %{?_smp_mflags}
482    %if 0%{?build_server}
483  mv src/zabbix_server/zabbix_server src/zabbix_server/zabbix_server_pgsql  mv src/zabbix_server/zabbix_server src/zabbix_server/zabbix_server_pgsql
484    %endif
485  mv src/zabbix_proxy/zabbix_proxy src/zabbix_proxy/zabbix_proxy_pgsql  mv src/zabbix_proxy/zabbix_proxy src/zabbix_proxy/zabbix_proxy_pgsql
486    
487  %configure \  %if 0%{?build_server}
     --enable-server \  
     --enable-agent \  
     --enable-proxy \  
     --enable-ipv6 \  
     --with-sqlite3 \  
     --with-net-snmp \  
     --with-ldap \  
     --with-libcurl \  
     --with-jabber \  
     --with-unixodbc  
   
 make %{?_smp_mflags}  
 mv src/zabbix_server/zabbix_server src/zabbix_server/zabbix_server_sqlite3  
 mv src/zabbix_proxy/zabbix_proxy src/zabbix_proxy/zabbix_proxy_sqlite3  
   
488  touch src/zabbix_server/zabbix_server  touch src/zabbix_server/zabbix_server
489    %endif
490  touch src/zabbix_proxy/zabbix_proxy  touch src/zabbix_proxy/zabbix_proxy
491    
492  %install  %install
 rm -rf $RPM_BUILD_ROOT  
 # set up some required directories  
 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/%{name}  
 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/init.d  
 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d  
 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d  
 mkdir -p $RPM_BUILD_ROOT%{_datadir}  
 mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/%{name}  
 mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/%{name}  
   
 #rm create/Makefile*  
 #rm create/data/images_oracle.sql  
 #rm create/schema/oracle.sql  
 #rm -r upgrades/dbpatches/1.6/oracle  
   
 #pushd %{name}-%{version}-mysql  
 # php frontend  
 cp -a frontends/php $RPM_BUILD_ROOT%{_datadir}/%{name}  
 mv $RPM_BUILD_ROOT%{_datadir}/%{name}/include/db.inc.php \  
     $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/  
 ln -s ../../../..%{_sysconfdir}/%{name}/db.inc.php \  
     $RPM_BUILD_ROOT%{_datadir}/%{name}/include/db.inc.php  
 cat << __EOF__ >> $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/zabbix.conf.php  
 # This file is a place-holder. When you run through the zabbix  
 # web setup, a proper configuration file should be generated  
 # for you to drop in this location.  
 __EOF__  
 ln -s ../../../..%{_sysconfdir}/%{name}/zabbix.conf.php \  
     $RPM_BUILD_ROOT%{_datadir}/%{name}/conf/zabbix.conf.php  
 # kill off .htaccess files, options set in SOURCE1  
 rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/include/.htaccess  
 rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/include/classes/.htaccess  
 # drop config files in place  
 install -m 0644 -p misc/conf/zabbix_agent.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}  
 cat misc/conf/zabbix_agentd.conf | sed \  
     -e 's|PidFile=.*|PidFile=%{_localstatedir}/run/zabbix/zabbix_agentd.pid|g' \  
     -e 's|LogFile=.*|LogFile=%{_localstatedir}/log/zabbix/zabbix_agentd.log|g' \  
     -e 's|#LogFileSize=.*|LogFileSize=0|g' \  
     > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/zabbix_agentd.conf  
 cat misc/conf/zabbix_server.conf | sed \  
     -e 's|PidFile=.*|PidFile=%{_localstatedir}/run/zabbix/zabbix.pid|g' \  
     -e 's|LogFile=.*|LogFile=%{_localstatedir}/log/zabbix/zabbix_server.log|g' \  
     -e 's|#LogFileSize=.*|LogFileSize=0|g' \  
     -e 's|AlertScriptsPath=/home/zabbix/bin/|AlertScriptsPath=%{_localstatedir}/lib/zabbix/|g' \  
     -e 's|DBUser=root|DBUser=zabbix|g' \  
     -e 's|DBSocket=/tmp/mysql.sock|DBSocket=%{_localstatedir}/lib/mysql/mysql.sock|g' \  
     > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/zabbix_server.conf  
 cat misc/conf/zabbix_proxy.conf | sed \  
     -e 's|PidFile=.*|PidFile=%{_localstatedir}/run/zabbix/zabbix_proxy.pid|g' \  
     -e 's|LogFile=.*|LogFile=%{_localstatedir}/log/zabbix/zabbix_proxy.log|g' \  
     -e 's|#LogFileSize=.*|LogFileSize=0|g' \  
     -e 's|AlertScriptsPath=/home/zabbix/bin/|AlertScriptsPath=%{_localstatedir}/lib/zabbix/|g' \  
     -e 's|DBUser=root|DBUser=zabbix|g' \  
     -e 's|DBSocket=/tmp/mysql.sock|DBSocket=%{_localstatedir}/lib/mysql/mysql.sock|g' \  
     > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/zabbix_proxy.conf  
 install -m 0644 -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/%{name}.conf  
 # log rotation  
 cat %{SOURCE5} | sed -e 's|COMPONENT|server|g' > \  
      $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/zabbix-server  
 cat %{SOURCE5} | sed -e 's|COMPONENT|agentd|g' > \  
      $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/zabbix-agent  
 cat %{SOURCE5} | sed -e 's|COMPONENT|proxy|g' > \  
      $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/zabbix-proxy  
 # init scripts  
 install -m 0755 -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/init.d/zabbix-server  
 install -m 0755 -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/init.d/zabbix-agent  
 install -m 0755 -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/init.d/zabbix-proxy  
493    
494  # set up config dir  rm -rf $RPM_BUILD_ROOT
495    
496  # install  # install
497    %if 0%{?build_agent2}
498    make DESTDIR=$RPM_BUILD_ROOT GOBIN=$RPM_BUILD_ROOT%{_sbindir} install
499    %else
500  make DESTDIR=$RPM_BUILD_ROOT install  make DESTDIR=$RPM_BUILD_ROOT install
501  rm $RPM_BUILD_ROOT%{_sbindir}/zabbix_server  %endif
502    
503    # install necessary directories
504    mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/zabbix
505    mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/zabbix
506    
507    # install server and proxy binaries
508    %if 0%{?build_server}
509  install -m 0755 -p src/zabbix_server/zabbix_server_* $RPM_BUILD_ROOT%{_sbindir}/  install -m 0755 -p src/zabbix_server/zabbix_server_* $RPM_BUILD_ROOT%{_sbindir}/
510  rm $RPM_BUILD_ROOT%{_sbindir}/zabbix_proxy  rm $RPM_BUILD_ROOT%{_sbindir}/zabbix_server
511    %endif
512  install -m 0755 -p src/zabbix_proxy/zabbix_proxy_* $RPM_BUILD_ROOT%{_sbindir}/  install -m 0755 -p src/zabbix_proxy/zabbix_proxy_* $RPM_BUILD_ROOT%{_sbindir}/
513    rm $RPM_BUILD_ROOT%{_sbindir}/zabbix_proxy
514    
515  # nuke static libs and empty oracle upgrade sql  # delete unnecessary files from java gateway
516  rm -rf $RPM_BUILD_ROOT%{_libdir}/libzbx*.a  rm $RPM_BUILD_ROOT%{_sbindir}/zabbix_java/settings.sh
517  # nuke extraneous sql files  rm $RPM_BUILD_ROOT%{_sbindir}/zabbix_java/startup.sh
518  rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/create  rm $RPM_BUILD_ROOT%{_sbindir}/zabbix_java/shutdown.sh
519    
520    # install scripts and modules directories
521    mkdir -p $RPM_BUILD_ROOT/usr/lib/zabbix
522    %if 0%{?build_server}
523    mv $RPM_BUILD_ROOT%{_datadir}/zabbix/alertscripts $RPM_BUILD_ROOT/usr/lib/zabbix
524    %endif
525    mv $RPM_BUILD_ROOT%{_datadir}/zabbix/externalscripts $RPM_BUILD_ROOT/usr/lib/zabbix
526    
527    %if 0%{?rhel} >= 7
528    mv $RPM_BUILD_ROOT%{_sbindir}/zabbix_java/lib/logback.xml $RPM_BUILD_ROOT/%{_sysconfdir}/zabbix/zabbix_java_gateway_logback.xml
529    rm $RPM_BUILD_ROOT%{_sbindir}/zabbix_java/lib/logback-console.xml
530    mv $RPM_BUILD_ROOT%{_sbindir}/zabbix_java $RPM_BUILD_ROOT/%{_datadir}/zabbix-java-gateway
531    install -m 0755 -p %{SOURCE14} $RPM_BUILD_ROOT%{_sbindir}/zabbix_java_gateway
532    %endif
533    
534    %if 0%{?build_server}
535    # install frontend files
536    find frontends/php -name '*.orig' | xargs rm -f
537    cp -a frontends/php/* $RPM_BUILD_ROOT%{_datadir}/zabbix
538    
539    # install frontend configuration files
540    mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/web
541    touch $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/web/zabbix.conf.php
542    mv $RPM_BUILD_ROOT%{_datadir}/zabbix/conf/maintenance.inc.php $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/web/
543    
544    # drop config files in place
545    %if 0%{?rhel} >= 7
546    install -Dm 0644 -p %{SOURCE16} $RPM_BUILD_ROOT%{_sysconfdir}/php-fpm.d/zabbix.conf
547    install -Dm 0644 -p %{SOURCE18} $RPM_BUILD_ROOT%{_sysconfdir}/nginx/conf.d/zabbix.conf
548    %else
549    install -Dm 0644 -p %{SOURCE2} conf/httpd24-example.conf
550    install -Dm 0644 -p %{SOURCE1} conf/httpd22-example.conf
551    %endif
552    
553    %if 0%{?rhel} == 7
554    install -Dm 0644 -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/zabbix.conf
555    %endif
556    
557    %if 0%{?rhel} == 8
558    install -Dm 0644 -p %{SOURCE17} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/zabbix.conf
559    install -Dm 0644 -p %{SOURCE2} conf/httpd24-example.conf
560    %endif
561    
562    %endif
563    #build_server
564    
565    # install configuration files
566    mv $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_agentd.conf.d $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_agentd.d
567    %if 0%{?build_agent2}
568    mkdir $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_agent2.d
569    %endif
570    mv $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_proxy.conf.d $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_proxy.d
571    %if 0%{?build_server}
572    mv $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_server.conf.d $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_server.d
573    %endif
574    
575    install -dm 755 $RPM_BUILD_ROOT%{_docdir}/zabbix-agent-%{version}
576    
577    cat conf/zabbix_agentd.conf | sed \
578            -e '/^# PidFile=/a \\nPidFile=%{_localstatedir}/run/zabbix/zabbix_agentd.pid' \
579            -e 's|^LogFile=.*|LogFile=%{_localstatedir}/log/zabbix/zabbix_agentd.log|g' \
580            -e '/^# LogFileSize=.*/a \\nLogFileSize=0' \
581            -e '/^# Include=$/a \\nInclude=%{_sysconfdir}/zabbix/zabbix_agentd.d/*.conf' \
582            > $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_agentd.conf
583    
584    
585    %if 0%{?build_agent2}
586    cat src/go/conf/zabbix_agent2.conf | sed \
587            -e '/^# PidFile=/a \\nPidFile=%{_localstatedir}/run/zabbix/zabbix_agent2.pid' \
588            -e 's|^LogFile=.*|LogFile=%{_localstatedir}/log/zabbix/zabbix_agent2.log|g' \
589            -e '/^# LogFileSize=.*/a \\nLogFileSize=0' \
590            -e '/^# Include=$/a \\nInclude=%{_sysconfdir}/zabbix/zabbix_agent2.d/*.conf' \
591            > $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_agent2.conf
592    
593    cp man/zabbix_agent2.man $RPM_BUILD_ROOT%{_mandir}/man8/zabbix_agent2.8
594    %endif
595    
596    %if 0%{?build_server}
597    cat conf/zabbix_server.conf | sed \
598            -e '/^# PidFile=/a \\nPidFile=%{_localstatedir}/run/zabbix/zabbix_server.pid' \
599            -e 's|^LogFile=.*|LogFile=%{_localstatedir}/log/zabbix/zabbix_server.log|g' \
600            -e '/^# LogFileSize=/a \\nLogFileSize=0' \
601            -e '/^# AlertScriptsPath=/a \\nAlertScriptsPath=/usr/lib/zabbix/alertscripts' \
602            -e '/^# ExternalScripts=/a \\nExternalScripts=/usr/lib/zabbix/externalscripts' \
603            -e 's|^DBUser=root|DBUser=zabbix|g' \
604            -e '/^# SNMPTrapperFile=.*/a \\nSNMPTrapperFile=/var/log/snmptrap/snmptrap.log' \
605            -e '/^# SocketDir=.*/a \\nSocketDir=/var/run/zabbix' \
606            > $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_server.conf
607    %endif
608    
609    cat conf/zabbix_proxy.conf | sed \
610            -e '/^# PidFile=/a \\nPidFile=%{_localstatedir}/run/zabbix/zabbix_proxy.pid' \
611            -e 's|^LogFile=.*|LogFile=%{_localstatedir}/log/zabbix/zabbix_proxy.log|g' \
612            -e '/^# LogFileSize=/a \\nLogFileSize=0' \
613            -e '/^# ExternalScripts=/a \\nExternalScripts=/usr/lib/zabbix/externalscripts' \
614            -e 's|^DBUser=root|DBUser=zabbix|g' \
615            -e '/^# SNMPTrapperFile=.*/a \\nSNMPTrapperFile=/var/log/snmptrap/snmptrap.log' \
616            -e '/^# SocketDir=.*/a \\nSocketDir=/var/run/zabbix' \
617            > $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_proxy.conf
618    
619    cat src/zabbix_java/settings.sh | sed \
620            -e 's|^PID_FILE=.*|PID_FILE="/var/run/zabbix/zabbix_java.pid"|g' \
621            > $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_java_gateway.conf
622    
623    # install logrotate configuration files
624    mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d
625    %if 0%{?build_server}
626    cat %{SOURCE3} | sed \
627            -e 's|COMPONENT|server|g' \
628            > $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/zabbix-server
629    %endif
630    cat %{SOURCE3} | sed \
631            -e 's|COMPONENT|agentd|g' \
632            > $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/zabbix-agent
633    %if 0%{?build_agent2}
634    cat %{SOURCE3} | sed \
635            -e 's|COMPONENT|agent2|g' \
636            > $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/zabbix-agent2
637    %endif
638    cat %{SOURCE3} | sed \
639            -e 's|COMPONENT|proxy|g' \
640            > $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/zabbix-proxy
641    
642    # install startup scripts
643    %if 0%{?rhel} >= 7
644    install -Dm 0644 -p %{SOURCE10} $RPM_BUILD_ROOT%{_unitdir}/zabbix-agent.service
645    %if 0%{?build_server}
646    install -Dm 0644 -p %{SOURCE11} $RPM_BUILD_ROOT%{_unitdir}/zabbix-server.service
647    %endif
648    install -Dm 0644 -p %{SOURCE12} $RPM_BUILD_ROOT%{_unitdir}/zabbix-proxy.service
649    install -Dm 0644 -p %{SOURCE13} $RPM_BUILD_ROOT%{_unitdir}/zabbix-java-gateway.service
650    %else
651    install -Dm 0755 -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/init.d/zabbix-java-gateway
652    install -Dm 0755 -p %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/init.d/zabbix-agent
653    %if 0%{?build_server}
654    install -Dm 0755 -p %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/init.d/zabbix-server
655    %endif
656    install -Dm 0755 -p %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/init.d/zabbix-proxy
657    %endif
658    
659    %if 0%{?build_agent2}
660    install -Dm 0644 -p %{SOURCE19} $RPM_BUILD_ROOT%{_unitdir}/zabbix-agent2.service
661    %endif
662    
663    %if 0%{?rhel} <= 6
664    install -Dm 0644 -p %{SOURCE20} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/zabbix-agent
665    %endif
666    
667    # install systemd-tmpfiles conf
668    %if 0%{?rhel} >= 7
669    install -Dm 0644 -p %{SOURCE15} $RPM_BUILD_ROOT%{_prefix}/lib/tmpfiles.d/zabbix-agent.conf
670    %if 0%{?build_server}
671    install -Dm 0644 -p %{SOURCE15} $RPM_BUILD_ROOT%{_prefix}/lib/tmpfiles.d/zabbix-server.conf
672    %endif
673    install -Dm 0644 -p %{SOURCE15} $RPM_BUILD_ROOT%{_prefix}/lib/tmpfiles.d/zabbix-proxy.conf
674    install -Dm 0644 -p %{SOURCE15} $RPM_BUILD_ROOT%{_prefix}/lib/tmpfiles.d/zabbix-java-gateway.conf
675    %endif
676    
677    %if 0%{?build_agent2}
678    install -Dm 0644 -p %{SOURCE15} $RPM_BUILD_ROOT%{_prefix}/lib/tmpfiles.d/zabbix_agent2.conf
679    %endif
680    
681  %clean  %clean
682  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
683    
684  %pre  %pre agent
685  # Add the "zabbix" user  getent group zabbix > /dev/null || groupadd -r zabbix
686  /usr/sbin/useradd -c "Zabbix Monitoring System" \  getent passwd zabbix > /dev/null || \
687          -s /sbin/nologin -r -d %{_localstatedir}/lib/%{name} zabbix 2> /dev/null || :          useradd -r -g zabbix -d %{_localstatedir}/lib/zabbix -s /sbin/nologin \
688            -c "Zabbix Monitoring System" zabbix
689  %post server  :
 /sbin/chkconfig --add zabbix-server  
690    
691  %post agent  %post agent
692  /sbin/chkconfig --add zabbix-agent  %if 0%{?rhel} >= 7
693    %systemd_post zabbix-agent.service
694    %else
695    /sbin/chkconfig --add zabbix-agent || :
696    %endif
697    
698    %posttrans agent
699    # preserve old userparameter_mysql.conf file during upgrade
700    if [ -f %{_sysconfdir}/zabbix/zabbix_agentd.d/userparameter_mysql.conf.rpmsave ] && [ ! -f %{_sysconfdir}/zabbix/zabbix_agentd.d/userparameter_mysql.conf ]; then
701            cp -vn %{_sysconfdir}/zabbix/zabbix_agentd.d/userparameter_mysql.conf.rpmsave %{_sysconfdir}/zabbix/zabbix_agentd.d/userparameter_mysql.conf
702    fi
703    :
704    
705  %post proxy  %if 0%{?build_agent2}
706    %pre agent2
707    getent group zabbix > /dev/null || groupadd -r zabbix
708    getent passwd zabbix > /dev/null || \
709            useradd -r -g zabbix -d %{_localstatedir}/lib/zabbix -s /sbin/nologin \
710            -c "Zabbix Monitoring System" zabbix
711    :
712    
713    %post agent2
714    %systemd_post zabbix-agent2.service
715    :
716    %endif
717    
718    %pre proxy-mysql
719    getent group zabbix > /dev/null || groupadd -r zabbix
720    getent passwd zabbix > /dev/null || \
721            useradd -r -g zabbix -d %{_localstatedir}/lib/zabbix -s /sbin/nologin \
722            -c "Zabbix Monitoring System" zabbix
723    :
724    
725    %pre proxy-pgsql
726    getent group zabbix > /dev/null || groupadd -r zabbix
727    getent passwd zabbix > /dev/null || \
728            useradd -r -g zabbix -d %{_localstatedir}/lib/zabbix -s /sbin/nologin \
729            -c "Zabbix Monitoring System" zabbix
730    :
731    
732    %pre proxy-sqlite3
733    getent group zabbix > /dev/null || groupadd -r zabbix
734    getent passwd zabbix > /dev/null || \
735            useradd -r -g zabbix -d %{_localstatedir}/lib/zabbix -s /sbin/nologin \
736            -c "Zabbix Monitoring System" zabbix
737    :
738    
739    %pre java-gateway
740    getent group zabbix > /dev/null || groupadd -r zabbix
741    getent passwd zabbix > /dev/null || \
742            useradd -r -g zabbix -d %{_localstatedir}/lib/zabbix -s /sbin/nologin \
743            -c "Zabbix Monitoring System" zabbix
744    :
745    
746    %if 0%{?build_server}
747    %pre server-mysql
748    getent group zabbix > /dev/null || groupadd -r zabbix
749    getent passwd zabbix > /dev/null || \
750            useradd -r -g zabbix -d %{_localstatedir}/lib/zabbix -s /sbin/nologin \
751            -c "Zabbix Monitoring System" zabbix
752    :
753    
754    %pre server-pgsql
755    getent group zabbix > /dev/null || groupadd -r zabbix
756    getent passwd zabbix > /dev/null || \
757            useradd -r -g zabbix -d %{_localstatedir}/lib/zabbix -s /sbin/nologin \
758            -c "Zabbix Monitoring System" zabbix
759    :
760    %endif
761    
762    %post proxy-mysql
763    %if 0%{?rhel} >= 7
764    %systemd_post zabbix-proxy.service
765    %else
766  /sbin/chkconfig --add zabbix-proxy  /sbin/chkconfig --add zabbix-proxy
767    %endif
768  %preun server  /usr/sbin/update-alternatives --install %{_sbindir}/zabbix_proxy \
769  if [ "$1" = 0 ]          zabbix-proxy %{_sbindir}/zabbix_proxy_mysql 10
770    :
771    
772    %post proxy-pgsql
773    %if 0%{?rhel} >= 7
774    %systemd_post zabbix-proxy.service
775    %else
776    /sbin/chkconfig --add zabbix-proxy
777    %endif
778    /usr/sbin/update-alternatives --install %{_sbindir}/zabbix_proxy \
779            zabbix-proxy %{_sbindir}/zabbix_proxy_pgsql 10
780    :
781    
782    %post proxy-sqlite3
783    %if 0%{?rhel} >= 7
784    %systemd_post zabbix-proxy.service
785    %else
786    /sbin/chkconfig --add zabbix-proxy
787    %endif
788    /usr/sbin/update-alternatives --install %{_sbindir}/zabbix_proxy \
789            zabbix-proxy %{_sbindir}/zabbix_proxy_sqlite3 10
790    :
791    
792    %post java-gateway
793    %if 0%{?rhel} >= 7
794    %systemd_post zabbix-java-gateway.service
795    %else
796    /sbin/chkconfig --add zabbix-java-gateway
797    %endif
798    :
799    
800    %if 0%{?build_server}
801    %post server-mysql
802    %if 0%{?rhel} >= 7
803    %systemd_post zabbix-server.service
804    %else
805    /sbin/chkconfig --add zabbix-server
806    %endif
807    /usr/sbin/update-alternatives --install %{_sbindir}/zabbix_server \
808            zabbix-server %{_sbindir}/zabbix_server_mysql 10
809    :
810    
811    %post server-pgsql
812    %if 0%{?rhel} >= 7
813    %systemd_post zabbix-server.service
814    %else
815    /sbin/chkconfig --add zabbix-server
816    %endif
817    /usr/sbin/update-alternatives --install %{_sbindir}/zabbix_server \
818            zabbix-server %{_sbindir}/zabbix_server_pgsql 10
819    :
820    
821    %post web
822    # The fonts directory was moved into assets subdirectory at one point.
823    #
824    # This broke invocation of update-alternatives command below, because the target link for zabbix-web-font changed
825    # from zabbix/fonts/graphfont.ttf to zabbix/assets/fonts/graphfont.ttf
826    #
827    # We handle this movement by deleting /var/lib/alternatives/zabbix-web-font file if it contains the old target link.
828    # We also remove symlink at zabbix/fonts/graphfont.ttf to have the old fonts directory be deleted during update.
829    if [ -f /var/lib/alternatives/zabbix-web-font ] && \
830            [ -z "$(grep %{_datadir}/zabbix/assets/fonts/graphfont.ttf /var/lib/alternatives/zabbix-web-font)" ]
831  then  then
832    /sbin/service zabbix-server stop >/dev/null 2>&1 || :          rm /var/lib/alternatives/zabbix-web-font
833    /sbin/chkconfig --del zabbix-server          if [ -h %{_datadir}/zabbix/fonts/graphfont.ttf ]; then
834                    rm %{_datadir}/zabbix/fonts/graphfont.ttf
835            fi
836  fi  fi
837    /usr/sbin/update-alternatives --install %{_datadir}/zabbix/assets/fonts/graphfont.ttf \
838            zabbix-web-font %{_datadir}/fonts/dejavu/DejaVuSans.ttf 10
839    :
840    
841    %post web-japanese
842    /usr/sbin/update-alternatives --install %{_datadir}/zabbix/assets/fonts/graphfont.ttf zabbix-web-font \
843    %if 0%{?rhel} >= 8
844            %{_datadir}/fonts/google-noto-cjk/NotoSansCJK-Regular.ttc 20
845    %else
846            %{_datadir}/fonts/vlgothic/VL-PGothic-Regular.ttf 20
847    %endif
848    :
849    
850    %if 0%{?rhel} >= 8
851    # The user apache must be available for these to work.
852    # It is provided by httpd or php-fpm packages.
853    %post apache-conf
854    if [ -d /etc/zabbix/web ]; then
855            chown apache:apache /etc/zabbix/web/
856    fi
857    :
858    %endif
859    
860    %if 0%{?rhel} >= 7
861    %post nginx-conf
862    if [ -d /etc/zabbix/web ]; then
863            chown apache:apache /etc/zabbix/web/
864    fi
865    :
866    %endif
867    
868    %endif
869    
870  %preun agent  %preun agent
871  if [ "$1" = 0 ]  if [ "$1" = 0 ]; then
872  then  %if 0%{?rhel} >= 7
873    /sbin/service zabbix-agent stop >/dev/null 2>&1 || :  %systemd_preun zabbix-agent.service
874    /sbin/chkconfig --del zabbix-agent  %else
875    /sbin/service zabbix-agent stop >/dev/null 2>&1
876    /sbin/chkconfig --del zabbix-agent
877    %endif
878  fi  fi
879    :
880    
881  %preun proxy  %if 0%{?build_agent2}
882  if [ "$1" = 0 ]  %preun agent2
883  then  %systemd_preun zabbix-agent2.service
884    /sbin/service zabbix-proxy stop >/dev/null 2>&1 || :  :
885    /sbin/chkconfig --del zabbix-proxy  %endif
886    
887    %preun proxy-mysql
888    if [ "$1" = 0 ]; then
889    %if 0%{?rhel} >= 7
890    %systemd_preun zabbix-proxy.service
891    %else
892    /sbin/service zabbix-proxy stop >/dev/null 2>&1
893    /sbin/chkconfig --del zabbix-proxy
894    %endif
895    /usr/sbin/update-alternatives --remove zabbix-proxy \
896    %{_sbindir}/zabbix_proxy_mysql
897  fi  fi
898    :
899    
900  %files  %preun proxy-pgsql
901  %defattr(-,root,root,-)  if [ "$1" = 0 ]; then
902  %dir %{_sysconfdir}/zabbix  %if 0%{?rhel} >= 7
903  %attr(0755,zabbix,zabbix) %dir %{_localstatedir}/log/zabbix  %systemd_preun zabbix-proxy.service
904  %attr(0755,zabbix,zabbix) %dir %{_localstatedir}/run/zabbix  %else
905    /sbin/service zabbix-proxy stop >/dev/null 2>&1
906    /sbin/chkconfig --del zabbix-proxy
907    %endif
908    /usr/sbin/update-alternatives --remove zabbix-proxy \
909            %{_sbindir}/zabbix_proxy_pgsql
910    fi
911    :
912    
913  %files server  %preun proxy-sqlite3
914  %defattr(-,root,root,-)  if [ "$1" = 0 ]; then
915  %doc AUTHORS ChangeLog COPYING FAQ NEWS README  %if 0%{?rhel} >= 7
916  %doc docs/*.pdf upgrades/dbpatches create/data create/schema  %systemd_preun zabbix-proxy.service
917  %config(noreplace) %{_sysconfdir}/zabbix/zabbix_server.conf  %else
918  %config(noreplace) %{_sysconfdir}/logrotate.d/zabbix-server  /sbin/service zabbix-proxy stop >/dev/null 2>&1
919  %{_sysconfdir}/init.d/zabbix-server  /sbin/chkconfig --del zabbix-proxy
920    %endif
921    /usr/sbin/update-alternatives --remove zabbix-proxy \
922            %{_sbindir}/zabbix_proxy_sqlite3
923    fi
924    :
925    
926  %files server-mysql  %preun java-gateway
927  %doc AUTHORS ChangeLog COPYING FAQ NEWS README  if [ $1 -eq 0 ]; then
928  %defattr(-,root,root,-)  %if 0%{?rhel} >= 7
929  %{_sbindir}/zabbix_server_mysql  %systemd_preun zabbix-java-gateway.service
930    %else
931    /sbin/service zabbix-java-gateway stop >/dev/null 2>&1
932    /sbin/chkconfig --del zabbix-java-gateway
933    %endif
934    fi
935    :
936    
937  %files server-pgsql  %if 0%{?build_server}
938  %doc AUTHORS ChangeLog COPYING FAQ NEWS README  %preun server-mysql
939  %defattr(-,root,root,-)  if [ "$1" = 0 ]; then
940  %{_sbindir}/zabbix_server_pgsql  %if 0%{?rhel} >= 7
941    %systemd_preun zabbix-server.service
942    %else
943    /sbin/service zabbix-server stop >/dev/null 2>&1
944    /sbin/chkconfig --del zabbix-server
945    %endif
946    /usr/sbin/update-alternatives --remove zabbix-server \
947            %{_sbindir}/zabbix_server_mysql
948    fi
949    :
950    
951  %files server-sqlite3  %preun server-pgsql
952  %doc AUTHORS ChangeLog COPYING FAQ NEWS README  if [ "$1" = 0 ]; then
953  %defattr(-,root,root,-)  %if 0%{?rhel} >= 7
954  %{_sbindir}/zabbix_server_sqlite3  %systemd_preun zabbix-server.service
955    %else
956    /sbin/service zabbix-server stop >/dev/null 2>&1
957    /sbin/chkconfig --del zabbix-server
958    %endif
959    /usr/sbin/update-alternatives --remove zabbix-server \
960            %{_sbindir}/zabbix_server_pgsql
961    fi
962    :
963    
964    %preun web
965    if [ "$1" = 0 ]; then
966    /usr/sbin/update-alternatives --remove zabbix-web-font \
967            %{_datadir}/fonts/dejavu/DejaVuSans.ttf
968    fi
969    :
970    
971    %preun web-japanese
972    if [ "$1" = 0 ]; then
973    /usr/sbin/update-alternatives --remove zabbix-web-font \
974    %if 0%{?rhel} >= 8
975            %{_datadir}/fonts/google-noto-cjk/NotoSansCJK-Regular.ttc
976    %else
977            %{_datadir}/fonts/vlgothic/VL-PGothic-Regular.ttf
978    %endif
979    fi
980    :
981    %endif
982    
983    %postun agent
984    %if 0%{?rhel} >= 7
985    %systemd_postun_with_restart zabbix-agent.service
986    %else
987    if [ $1 -ge 1 ]; then
988    /sbin/service zabbix-agent try-restart >/dev/null 2>&1 || :
989    fi
990    %endif
991    
992    %if 0%{?build_agent2}
993    %postun agent2
994    %systemd_postun_with_restart zabbix-agent2.service
995    %endif
996    
997    %postun proxy-mysql
998    %if 0%{?rhel} >= 7
999    %systemd_postun_with_restart zabbix-proxy.service
1000    %else
1001    if [ $1 -ge 1 ]; then
1002    /sbin/service zabbix-proxy try-restart >/dev/null 2>&1 || :
1003    fi
1004    %endif
1005    
1006    %postun proxy-pgsql
1007    %if 0%{?rhel} >= 7
1008    %systemd_postun_with_restart zabbix-proxy.service
1009    %else
1010    if [ $1 -ge 1 ]; then
1011    /sbin/service zabbix-proxy try-restart >/dev/null 2>&1 || :
1012    fi
1013    %endif
1014    
1015    %postun proxy-sqlite3
1016    %if 0%{?rhel} >= 7
1017    %systemd_postun_with_restart zabbix-proxy.service
1018    %else
1019    if [ $1 -ge 1 ]; then
1020    /sbin/service zabbix-proxy try-restart >/dev/null 2>&1 || :
1021    fi
1022    %endif
1023    
1024    %postun java-gateway
1025    %if 0%{?rhel} >= 7
1026    %systemd_postun_with_restart zabbix-java-gateway.service
1027    %else
1028    if [ $1 -gt 1 ]; then
1029    /sbin/service zabbix-java-gateway condrestart >/dev/null 2>&1 || :
1030    fi
1031    %endif
1032    
1033    %if 0%{?build_server}
1034    %postun server-mysql
1035    %if 0%{?rhel} >= 7
1036    %systemd_postun_with_restart zabbix-server.service
1037    %else
1038    if [ $1 -ge 1 ]; then
1039    /sbin/service zabbix-server try-restart >/dev/null 2>&1 || :
1040    fi
1041    %endif
1042    
1043    %postun server-pgsql
1044    %if 0%{?rhel} >= 7
1045    %systemd_postun_with_restart zabbix-server.service
1046    %else
1047    if [ $1 -ge 1 ]; then
1048    /sbin/service zabbix-server try-restart >/dev/null 2>&1 || :
1049    fi
1050    %endif
1051    %endif
1052    
1053  %files agent  %files agent
1054  %defattr(-,root,root,-)  %defattr(-,root,root,-)
1055  %doc AUTHORS ChangeLog COPYING FAQ NEWS README  %doc AUTHORS ChangeLog COPYING NEWS README conf/zabbix_agentd/userparameter_mysql.conf
 %config(noreplace) %{_sysconfdir}/zabbix/zabbix_agent.conf  
1056  %config(noreplace) %{_sysconfdir}/zabbix/zabbix_agentd.conf  %config(noreplace) %{_sysconfdir}/zabbix/zabbix_agentd.conf
1057  %config(noreplace) %{_sysconfdir}/logrotate.d/zabbix-agent  %config(noreplace) %{_sysconfdir}/logrotate.d/zabbix-agent
1058  %{_sysconfdir}/init.d/zabbix-agent  %dir %{_sysconfdir}/zabbix/zabbix_agentd.d
1059  %{_sbindir}/zabbix_agent  %attr(0755,zabbix,zabbix) %dir %{_localstatedir}/log/zabbix
1060    %attr(0755,zabbix,zabbix) %dir %{_localstatedir}/run/zabbix
1061  %{_sbindir}/zabbix_agentd  %{_sbindir}/zabbix_agentd
1062  %{_sbindir}/zabbix_sender  %{_mandir}/man8/zabbix_agentd.8*
1063  %{_sbindir}/zabbix_get  %if 0%{?rhel} >= 7
1064    %{_unitdir}/zabbix-agent.service
1065    %{_prefix}/lib/tmpfiles.d/zabbix-agent.conf
1066    %else
1067    %{_sysconfdir}/init.d/zabbix-agent
1068    %config(noreplace) %{_sysconfdir}/sysconfig/zabbix-agent
1069    %endif
1070    
1071  %files proxy  %if 0%{?build_agent2}
1072    %files agent2
1073  %defattr(-,root,root,-)  %defattr(-,root,root,-)
1074  %doc AUTHORS ChangeLog COPYING FAQ NEWS README  %doc AUTHORS ChangeLog COPYING NEWS README
1075  %config(noreplace) %{_sysconfdir}/zabbix/zabbix_proxy.conf  %config(noreplace) %{_sysconfdir}/zabbix/zabbix_agent2.conf
1076  %config(noreplace) %{_sysconfdir}/logrotate.d/zabbix-proxy  %config(noreplace) %{_sysconfdir}/logrotate.d/zabbix-agent2
1077  %{_sysconfdir}/init.d/zabbix-proxy  %dir %{_sysconfdir}/zabbix/zabbix_agent2.d
1078    %attr(0755,zabbix,zabbix) %dir %{_localstatedir}/log/zabbix
1079    %attr(0755,zabbix,zabbix) %dir %{_localstatedir}/run/zabbix
1080    %{_sbindir}/zabbix_agent2
1081    %{_mandir}/man8/zabbix_agent2.8*
1082    %{_unitdir}/zabbix-agent2.service
1083    %{_prefix}/lib/tmpfiles.d/zabbix_agent2.conf
1084    %endif
1085    
1086    %files get
1087    %defattr(-,root,root,-)
1088    %doc AUTHORS ChangeLog COPYING NEWS README
1089    %{_bindir}/zabbix_get
1090    %{_mandir}/man1/zabbix_get.1*
1091    
1092    %files sender
1093    %defattr(-,root,root,-)
1094    %doc AUTHORS ChangeLog COPYING NEWS README
1095    %{_bindir}/zabbix_sender
1096    %{_mandir}/man1/zabbix_sender.1*
1097    
1098    %files js
1099    %defattr(-,root,root,-)
1100    %doc AUTHORS ChangeLog COPYING NEWS README
1101    %{_bindir}/zabbix_js
1102    
1103  %files proxy-mysql  %files proxy-mysql
1104  %defattr(-,root,root,-)  %defattr(-,root,root,-)
1105  %doc AUTHORS ChangeLog COPYING FAQ NEWS README  %doc AUTHORS ChangeLog COPYING NEWS README
1106    %doc database/mysql/schema.sql.gz
1107    %attr(0640,root,zabbix) %config(noreplace) %{_sysconfdir}/zabbix/zabbix_proxy.conf
1108    %dir /usr/lib/zabbix/externalscripts
1109    %config(noreplace) %{_sysconfdir}/logrotate.d/zabbix-proxy
1110    %attr(0755,zabbix,zabbix) %dir %{_localstatedir}/log/zabbix
1111    %attr(0755,zabbix,zabbix) %dir %{_localstatedir}/run/zabbix
1112    %{_mandir}/man8/zabbix_proxy.8*
1113    %if 0%{?rhel} >= 7
1114    %{_unitdir}/zabbix-proxy.service
1115    %{_prefix}/lib/tmpfiles.d/zabbix-proxy.conf
1116    %else
1117    %{_sysconfdir}/init.d/zabbix-proxy
1118    %endif
1119  %{_sbindir}/zabbix_proxy_mysql  %{_sbindir}/zabbix_proxy_mysql
1120    
1121  %files proxy-pgsql  %files proxy-pgsql
1122  %defattr(-,root,root,-)  %defattr(-,root,root,-)
1123  %doc AUTHORS ChangeLog COPYING FAQ NEWS README  %doc AUTHORS ChangeLog COPYING NEWS README
1124    %doc database/postgresql/schema.sql.gz
1125    %attr(0640,root,zabbix) %config(noreplace) %{_sysconfdir}/zabbix/zabbix_proxy.conf
1126    %dir /usr/lib/zabbix/externalscripts
1127    %config(noreplace) %{_sysconfdir}/logrotate.d/zabbix-proxy
1128    %attr(0755,zabbix,zabbix) %dir %{_localstatedir}/log/zabbix
1129    %attr(0755,zabbix,zabbix) %dir %{_localstatedir}/run/zabbix
1130    %{_mandir}/man8/zabbix_proxy.8*
1131    %if 0%{?rhel} >= 7
1132    %{_unitdir}/zabbix-proxy.service
1133    %{_prefix}/lib/tmpfiles.d/zabbix-proxy.conf
1134    %else
1135    %{_sysconfdir}/init.d/zabbix-proxy
1136    %endif
1137  %{_sbindir}/zabbix_proxy_pgsql  %{_sbindir}/zabbix_proxy_pgsql
1138    
1139  %files proxy-sqlite3  %files proxy-sqlite3
1140  %defattr(-,root,root,-)  %defattr(-,root,root,-)
1141  %doc AUTHORS ChangeLog COPYING FAQ NEWS README  %doc AUTHORS ChangeLog COPYING NEWS README
1142    %doc database/sqlite3/schema.sql.gz
1143    %attr(0640,root,zabbix) %config(noreplace) %{_sysconfdir}/zabbix/zabbix_proxy.conf
1144    %dir /usr/lib/zabbix/externalscripts
1145    %config(noreplace) %{_sysconfdir}/logrotate.d/zabbix-proxy
1146    %attr(0755,zabbix,zabbix) %dir %{_localstatedir}/log/zabbix
1147    %attr(0755,zabbix,zabbix) %dir %{_localstatedir}/run/zabbix
1148    %{_mandir}/man8/zabbix_proxy.8*
1149    %if 0%{?rhel} >= 7
1150    %{_unitdir}/zabbix-proxy.service
1151    %{_prefix}/lib/tmpfiles.d/zabbix-proxy.conf
1152    %else
1153    %{_sysconfdir}/init.d/zabbix-proxy
1154    %endif
1155  %{_sbindir}/zabbix_proxy_sqlite3  %{_sbindir}/zabbix_proxy_sqlite3
1156    
1157    %files java-gateway
1158    %defattr(-,root,root,-)
1159    %doc AUTHORS ChangeLog COPYING NEWS README
1160    %config(noreplace) %{_sysconfdir}/zabbix/zabbix_java_gateway.conf
1161    %attr(0755,zabbix,zabbix) %dir %{_localstatedir}/log/zabbix
1162    %attr(0755,zabbix,zabbix) %dir %{_localstatedir}/run/zabbix
1163    %if 0%{?rhel} >= 7
1164    %{_datadir}/zabbix-java-gateway
1165    %{_sbindir}/zabbix_java_gateway
1166    %{_unitdir}/zabbix-java-gateway.service
1167    %{_prefix}/lib/tmpfiles.d/zabbix-java-gateway.conf
1168    %config(noreplace) %{_sysconfdir}/zabbix/zabbix_java_gateway_logback.xml
1169    %else
1170    %{_sbindir}/zabbix_java
1171    %{_sysconfdir}/init.d/zabbix-java-gateway
1172    %endif
1173    
1174    %if 0%{?build_server}
1175    %files server-mysql
1176    %defattr(-,root,root,-)
1177    %doc AUTHORS ChangeLog COPYING NEWS README
1178    %doc database/mysql/create.sql.gz
1179    %attr(0640,root,zabbix) %config(noreplace) %{_sysconfdir}/zabbix/zabbix_server.conf
1180    %dir /usr/lib/zabbix/alertscripts
1181    %dir /usr/lib/zabbix/externalscripts
1182    %config(noreplace) %{_sysconfdir}/logrotate.d/zabbix-server
1183    %attr(0755,zabbix,zabbix) %dir %{_localstatedir}/log/zabbix
1184    %attr(0755,zabbix,zabbix) %dir %{_localstatedir}/run/zabbix
1185    %{_mandir}/man8/zabbix_server.8*
1186    %if 0%{?rhel} >= 7
1187    %{_unitdir}/zabbix-server.service
1188    %{_prefix}/lib/tmpfiles.d/zabbix-server.conf
1189    %else
1190    %{_sysconfdir}/init.d/zabbix-server
1191    %endif
1192    %{_sbindir}/zabbix_server_mysql
1193    
1194    %files server-pgsql
1195    %defattr(-,root,root,-)
1196    %doc AUTHORS ChangeLog COPYING NEWS README
1197    %doc database/postgresql/create.sql.gz
1198    %doc database/postgresql/timescaledb.sql.gz
1199    %attr(0640,root,zabbix) %config(noreplace) %{_sysconfdir}/zabbix/zabbix_server.conf
1200    %dir /usr/lib/zabbix/alertscripts
1201    %dir /usr/lib/zabbix/externalscripts
1202    %config(noreplace) %{_sysconfdir}/logrotate.d/zabbix-server
1203    %attr(0755,zabbix,zabbix) %dir %{_localstatedir}/log/zabbix
1204    %attr(0755,zabbix,zabbix) %dir %{_localstatedir}/run/zabbix
1205    %{_mandir}/man8/zabbix_server.8*
1206    %if 0%{?rhel} >= 7
1207    %{_unitdir}/zabbix-server.service
1208    %{_prefix}/lib/tmpfiles.d/zabbix-server.conf
1209    %else
1210    %{_sysconfdir}/init.d/zabbix-server
1211    %endif
1212    %{_sbindir}/zabbix_server_pgsql
1213    
1214  %files web  %files web
1215  %defattr(-,root,root,-)  %defattr(-,root,root,-)
1216  %doc AUTHORS ChangeLog COPYING FAQ NEWS README  %doc AUTHORS ChangeLog COPYING NEWS README
1217  %config(noreplace) %{_sysconfdir}/zabbix/zabbix.conf.php  %dir %attr(0750,apache,apache) %{_sysconfdir}/zabbix/web
1218  %config(noreplace) %{_sysconfdir}/zabbix/db.inc.php  %if 0%{?rhel} >= 8
1219    %config(noreplace) %{_sysconfdir}/php-fpm.d/zabbix.conf
1220    %endif
1221    %if 0%{?rhel} == 7
1222  %config(noreplace) %{_sysconfdir}/httpd/conf.d/zabbix.conf  %config(noreplace) %{_sysconfdir}/httpd/conf.d/zabbix.conf
1223    %endif
1224    %if 0%{?rhel} <= 6
1225    %doc conf/httpd22-example.conf conf/httpd24-example.conf
1226    %endif
1227    %ghost %attr(0644,apache,apache) %config(noreplace) %{_sysconfdir}/zabbix/web/zabbix.conf.php
1228    %config(noreplace) %{_sysconfdir}/zabbix/web/maintenance.inc.php
1229  %{_datadir}/zabbix  %{_datadir}/zabbix
1230    
1231  %files web-mysql  %files web-mysql
# Line 464  fi Line 1234  fi
1234  %files web-pgsql  %files web-pgsql
1235  %defattr(-,root,root,-)  %defattr(-,root,root,-)
1236    
1237  %files web-sqlite3  %files web-japanese
1238  %defattr(-,root,root,-)  %defattr(-,root,root,-)
1239    
1240    %if 0%{?rhel} >= 8
1241    %files apache-conf
1242    %doc AUTHORS ChangeLog COPYING NEWS README
1243    %config(noreplace) %{_sysconfdir}/httpd/conf.d/zabbix.conf
1244    %endif
1245    
1246    %if 0%{?rhel} >= 7
1247    %files nginx-conf
1248    %doc AUTHORS ChangeLog COPYING NEWS README
1249    %config(noreplace) %{_sysconfdir}/nginx/conf.d/zabbix.conf
1250    %config(noreplace) %{_sysconfdir}/php-fpm.d/zabbix.conf
1251    %endif
1252    
1253    %endif
1254    
1255  %changelog  %changelog
1256  * Thu Apr 08 2010 Daniel B. <daniel@firewall-services.com> 1.6.9-2  * Sun May 10 2020 Jean-Philipe Pialasse <tests@pialasse.com> 4.4.6-2.sme
1257  - Upstream upgrade to 1.6.9  - import 4.4.6 for SME SErver [SME: 10944]
1258    - add Provides: zabbix to prevent conflicts on upgrade from fws when
1259      both agent and server or proxy are installed
1260    
1261    * Fri Feb 21 2020 Zabbix Packager <info@zabbix.com> - 4.4.6-1
1262    - update to 4.4.6
1263    - using libssh instead of libssh2 on rhel/centos 8
1264    - fixed font configuration in pre/post scriptlets on rhel-8
1265    
1266    * Wed Jan 29 2020 Zabbix Packager <info@zabbix.com> - 4.4.5-2
1267    - added posttrans script that preserves /etc/zabbix/zabbix_agentd.d/userparameter_mysql.conf file
1268    - added config(noreplace) to /etc/sysconfig/zabbix-agent
1269    
1270    * Fri Jan 17 2020  Zabbix Packager <info@zabbix.com> - 4.4.5-1
1271    - update to 4.4.5
1272    - added zabbix-js package
1273    - moved /etc/zabbix/zabbix_agentd.d/userparameter_mysql.conf file to /usr/share/doc/zabbix-agent-<vers>/ (ZBX-14399)
1274    - using zabbix-agent2.service instead of zabbix-agent.service in agent2 preun
1275    - setting user for zabbix agent in /etc/sysconfig/zabbix-agent file on rhel <= 6
1276    
1277    * Tue Jan 07 2020  Zabbix Packager <info@zabbix.com> - 4.4.4-2
1278    - build of rhel-5 packages to be resigned with gpg version 3
1279    
1280    * Thu Dec 19 2019  Zabbix Packager <info@zabbix.com> - 4.4.4-1
1281    - update to 4.4.4
1282      added After=<database>.service directives to server and proxy service files
1283    
1284    * Wed Nov 27 2019 Zabbix Packager <info@zabbix.com> - 4.4.3-1
1285    - update to 4.4.3
1286      added User=zabbix and Group=zabbix directives to agent service file
1287    
1288    * Mon Nov 25 2019 Zabbix Packager <info@zabbix.com> - 4.4.2-1
1289    - update to 4.4.2
1290    
1291    * Mon Oct 28 2019 Zabbix Packager <info@zabbix.com> - 4.4.1-1
1292    - update to 4.4.1
1293    
1294    * Mon Oct 07 2019 Zabbix Packager <info@zabbix.com> 4.4.0-1
1295    - update to 4.4.0
1296    
1297    * Thu Oct 03 2019 Zabbix Packager <info@zabbix.com> - 4.4.0-0.5rc1
1298    - update to 4.4.0rc1
1299    
1300    * Tue Sep 24 2019 Zabbix Packager <info@zabbix.com> - 4.4.0-0.4beta1
1301    - update to 4.4.0beta1
1302    - added zabbix-agent2 package
1303    
1304    * Wed Sep 18 2019 Zabbix Packager <info@zabbix.com> - 4.4.0-0.3alpha3
1305    - update to 4.4.0alpha3
1306    
1307    * Thu Aug 15 2019 Zabbix Packager <info@zabbix.com> - 4.4.0-0.2alpha2
1308    - update to 4.4.0alpha2
1309    - using google-noto-sans-cjk-ttc-fonts for graphfont in web-japanese package on rhel-8
1310    - added php-fpm as dependency of zabbix-web packages on rhel-8
1311    
1312    * Wed Jul 17 2019 Zabbix Packager <info@zabbix.com> - 4.4.0-0.1alpha1
1313    - update to 4.4.0alpha1
1314    - removed apache config from zabbix-web package
1315    - added dedicated zabbix-apache-conf and zabbix-nginx-conf packages
1316    
1317    * Fri Mar 29 2019 Zabbix Packager <info@zabbix.com> - 4.2.0-1
1318    - update to 4.2.0
1319    - removed jabber notifications support and dependency on iksemel library
1320    
1321    * Tue Mar 26 2019 Zabbix Packager <info@zabbix.com> - 4.2.0-0.6rc2
1322    - update to 4.2.0rc2
1323    
1324    * Mon Mar 18 2019 Zabbix Packager <info@zabbix.com> - 4.2.0-0.5rc1
1325    - update to 4.2.0rc1
1326    
1327    * Mon Mar 04 2019 Zabbix Packager <info@zabbix.com> - 4.2.0-0.4beta2
1328    - update to 4.2.0beta2
1329    
1330    * Mon Feb 18 2019 Zabbix Packager <info@zabbix.com> - 4.2.0-0.1beta1
1331    - update to 4.2.0beta1
1332    
1333    * Tue Feb 05 2019 Zabbix Packager <info@zabbix.com> - 4.2.0-0.3alpha3
1334    - build of 4.2.0alpha3 with *.mo files
1335    
1336    * Wed Jan 30 2019 Zabbix Packager <info@zabbix.com> - 4.2.0-0.2alpha3
1337    - added timescaledb.sql.gz to zabbix-server-pgsql package
1338    
1339    * Mon Jan 28 2019 Zabbix Packager <info@zabbix.com> - 4.2.0-0.1alpha3
1340    - update to 4.2.0alpha3
1341    
1342    * Fri Dec 21 2018 Zabbix Packager <info@zabbix.com> - 4.2.0-0.2alpha2
1343    - update to 4.2.0alpha2
1344    
1345    * Tue Nov 27 2018 Zabbix Packager <info@zabbix.com> - 4.2.0-0.1alpha1
1346    - update to 4.2.0alpha1
1347    
1348    * Mon Oct 29 2018 Zabbix Packager <info@zabbix.com> - 4.0.1-1
1349    - update to 4.0.1
1350    
1351    * Mon Oct 01 2018 Zabbix Packager <info@zabbix.com> - 4.0.0-2
1352    - update to 4.0.0
1353    
1354    * Fri Sep 28 2018 Zabbix Packager <info@zabbix.com> - 4.0.0-1.1rc3
1355    - update to 4.0.0rc3
1356    
1357    * Tue Sep 25 2018 Zabbix Packager <info@zabbix.com> - 4.0.0-1.1rc2
1358    - update to 4.0.0rc2
1359    
1360    * Wed Sep 19 2018 Zabbix Packager <info@zabbix.com> - 4.0.0-1.1rc1
1361    - update to 4.0.0rc1
1362    
1363    * Mon Sep 10 2018 Zabbix Packager <info@zabbix.com> - 4.0.0-1.1beta2
1364    - update to 4.0.0beta2
1365    
1366  * Mon Jan 25 2010 Daniel B. <daniel@firewall-services.com> 1.6.8-2  * Tue Aug 28 2018 Zabbix Packager <info@zabbix.com> - 4.0.0-1.1beta1
1367  - Upstream upgrade to 1.6.8  - update to 4.0.0beta1
1368    
1369  * Fri Nov 13 2009 Daniel B. <daniel@firewall-services.com> 1.6.7-2  * Mon Jul 23 2018 Zabbix Packager <info@zabbix.com> - 4.0.0-1.1alpha9
1370  - Upstream upgrade to 1.6.7  - update to 4.0.0alpha9
1371    - add PHP variable max_input_vars = 10000, overriding default 1000
1372    
1373  * Tue Sep 29 2009 Daniel B. <daniel@firewall-services.com> 1.6.6-2  * Mon Jun 18 2018 Zabbix Packager <info@zabbix.com> - 4.0.0-1.1alpha8
1374  - Fix trigger verification (ZBX-1027)  - update to 4.0.0alpha8
1375    
1376  * Tue Sep 29 2009 Daniel B. <daniel@firewall-services.com> 1.6.6-1  * Wed May 30 2018 Zabbix Packager <info@zabbix.com> - 4.0.0-1.1alpha7
1377  - Upstream upgrade to 1.6.6  - update to 4.0.0alpha7
1378    
1379  * Tue Jun 16 2009 Daniel B. <daniel@firewall-services.com> 1.6.5-1  * Fri Apr 27 2018 Zabbix Packager <info@zabbix.com> - 4.0.0-1.1alpha6
1380  - Upstream upgrade to 1.6.5  - update to 4.0.0alpha6
1381    - add support for Ubuntu 18.04 (Bionic)
1382    - move enabling JMX interface on Zabbix java gateway to zabbix_java_gateway.conf
1383    
1384  * Mon Apr 06 2009 Daniel B. <daniel@firewall-services.com> 1.6.4-1  * Mon Mar 26 2018 Vladimir Levijev <vladimir.levijev@zabbix.com> - 4.0.0-1.1alpha5
1385  - Upstream upgrade to 1.6.4  - update to 4.0.0alpha5
1386    
1387  * Fri Mar 27 2009 Daniel B. <daniel@firewall-services.com> 1.6.3-0  * Tue Feb 27 2018 Vladimir Levijev <vladimir.levijev@zabbix.com> - 4.0.0-1.1alpha4
1388  - Upstream upgrade to 1.6.3  - update to 4.0.0alpha4
 - Remove CPUstat patch  
 - Remove snmp fixes (not needed anymore)  
1389    
1390  * Thu Mar 03 2009 Daniel B. <daniel@firewall-services.com> 1.6.2-4  * Mon Feb 05 2018 Vladimir Levijev <vladimir.levijev@zabbix.com> - 4.0.0-1.1alpha3
1391  - Comment hard-coded php-bcmath dependencie as php4 includes this module  - update to 4.0.0alpha3
1392    
1393  * Wed Jan 30 2009 Daniel B. <daniel@firewall-services.com> 1.6.2-3  * Tue Jan 09 2018 Vladimir Levijev <vladimir.levijev@zabbix.com> - 4.0.0-1.1alpha2
1394  - Added patch so it can compile on CentOS 4 (curl 7.12.1)  - update to 4.0.0alpha2
1395    
1396  * Fri Jan 23 2009 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.6.2-2  * Tue Dec 19 2017 Vladimir Levijev <vladimir.levijev@zabbix.com> - 4.0.0-1alpha1
1397  - Rebuild for MySQL 5.1.X  - update to 4.0.0alpha1
1398    
1399  * Fri Jan 16 2009 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.6.2-1  * Thu Nov 09 2017 Vladimir Levijev <vladimir.levijev@zabbix.com> - 3.4.4-2
1400  - Update to 1.6.2: http://www.zabbix.com/rn1.6.2.php  - add missing translation (.mo) files
1401    
1402  * Thu Dec  4 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.6.1-1  * Tue Nov 07 2017 Vladimir Levijev <vladimir.levijev@zabbix.com> - 3.4.4-1
1403  - Fix BZ#474593 by adding a requires.  - update to 3.4.4
1404    - fix issue with new line character in pid file that resulted in failure when shutting down daemons on RHEL 5
1405    
1406  * Wed Nov  5 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.6.1-1  * Tue Oct 17 2017 Vladimir Levijev <vladimir.levijev@zabbix.com> - 3.4.3-1
1407  - Update to 1.6.1  - update to 3.4.3
1408    
1409  * Tue Sep 30 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.6-1.1  * Mon Sep 25 2017 Vladimir Levijev <vladimir.levijev@zabbix.com> - 3.4.2-1
1410  - Bump release because forgot to add some new files.  - update to 3.4.2
1411    
1412  * Thu Sep 30 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.6-1  * Mon Aug 28 2017 Vladimir Levijev <vladimir.levijev@zabbix.com> - 3.4.1-1
1413  - Update to final 1.6  - update to 3.4.1
1414    - change SocketDir to /var/run/zabbix
1415    
1416  * Mon Aug 11 2008 Jason L Tibbitts III <tibbs@math.uh.edu> - 1.4.6-2  * Mon Aug 21 2017 Vladimir Levijev <vladimir.levijev@zabbix.com> - 3.4.0-1
1417  - Fix license tag.  - update to 3.4.0
1418    
1419  * Fri Jul 25 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.4.6-1  * Wed Apr 26 2017 Kodai Terashima <kodai.terashima@zabbix.com> - 3.4.0-1alpha1
1420  - Update to 1.4.6  - update to 3.4.0alpla1 r68116
1421    - add libpcre and libevent for compile option
1422    
1423  * Mon Jul 07 2008 Dan Horak <dan[at]danny.cz> - 1.4.5-4  * Sun Apr 23 2017 Kodai Terashima <kodai.terashima@zabbix.com> - 3.2.5-1
1424  - add LSB headers into init scripts  - update to 3.2.5
1425  - disable internal log rotation  - add TimeoutSec=0 to systemd service file
1426    
1427  * Fri May 02 2008 Jarod Wilson <jwilson@redhat.com> - 1.4.5-3  * Thu Mar 02 2017 Kodai Terashima <kodai.terashima@zabbix.com> - 3.2.4-2
1428  - Seems the zabbix folks replaced the original 1.4.5 tarball with  - remove TimeoutSec for systemd
   an updated tarball or something -- it actually does contain a  
   tiny bit of additional code... So update to newer 1.4.5.  
1429    
1430  * Tue Apr 08 2008 Jarod Wilson <jwilson@redhat.com> - 1.4.5-2  * Mon Feb 27 2017 Kodai Terashima <kodai.terashima@zabbix.com> - 3.2.4-1
1431  - Fix building w/postgresql (#441456)  - update to 3.2.4
1432    - add TimeoutSec for systemd service file
1433    
1434  * Tue Mar 25 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.4.5-1  * Wed Dec 21 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.2.3-1
1435  - Update to 1.4.5  - update to 3.2.3
1436    
1437  * Thu Feb 14 2008 Jarod Wilson <jwilson@redhat.com> - 1.4.4-2  * Thu Dec 08 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.2.2-1
1438  - Bump and rebuild with gcc 4.3  - update to 3.2.2
1439    
1440  * Mon Dec 17 2007 Jarod Wilson <jwilson@redhat.com> - 1.4.4-1  * Sun Oct 02 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.2.1-1
1441  - New upstream release  - update to 3.2.1
1442  - Fixes two crasher bugs in 1.4.3 release  - use zabbix user and group for Java Gateway
1443    - add SuccessExitStatus=143 for Java Gateway servie file
1444    
1445  * Wed Dec 12 2007 Jarod Wilson <jwilson@redhat.com> - 1.4.3-1  * Tue Sep 13 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.2.0-1
1446  - New upstream release  - update to 3.2.0
1447    - add *.conf for Include parameter in agent configuration file
1448    
1449  * Thu Dec 06 2007 Release Engineering <rel-eng at fedoraproject dot org> - 1.4.2-5  * Mon Sep 12 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.2.0rc2-1
1450  - Rebuild for deps  - update to 3.2.0rc2
1451    
1452  * Sat Dec 01 2007 Dan Horak <dan[at]danny.cz> 1.4.2-4  * Fri Sep 09 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.2.0rc1-1
1453  - add security fix (#407181)  - update to 3.2.0rc1
1454    
1455  * Thu Sep 20 2007 Dan Horak <dan[at]danny.cz> 1.4.2-3  * Thu Sep 01 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.2.0beta2-1
1456  - Add a patch to clean a warning during compile  - update to 3.2.0beta2
 - Add a patch to fix cpu load computations  
1457    
1458  * Tue Aug 21 2007 Jarod Wilson <jwilson@redhat.com> 1.4.2-2  * Fri Aug 26 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.2.0beta1-1
1459  - Account for binaries moving from %%_bindir to %%_sbindir  - update to 3.2.0beta1
1460    
1461  * Tue Aug 21 2007 Jarod Wilson <jwilson@redhat.com> 1.4.2-1  * Fri Aug 12 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.2.0alpha1-1
1462  - New upstream release  - update to 3.2.0alpha1
1463    
1464  * Mon Jul 02 2007 Jarod Wilson <jwilson@redhat.com> 1.4.1-1  * Sun Jul 24 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.0.4-1
1465  - New upstream release  - update to 3.0.4
1466    
1467  * Fri Jun 29 2007 Jarod Wilson <jwilson@redhat.com> 1.4-3  * Sun May 22 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.0.3-1
1468  - Install correct sql init files (#244991)  - update to 3.0.3
1469  - Add Requires: php-bcmath to zabbix-web (#245767)  - fix java gateway systemd script to use java options
1470    
1471  * Wed May 30 2007 Jarod Wilson <jwilson@redhat.com> 1.4-2  * Wed Apr 20 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.0.2-1
1472  - Add placeholder zabbix.conf.php  - update to 3.0.2
1473    - remove ZBX-10459.patch
1474    
1475  * Tue May 29 2007 Jarod Wilson <jwilson@redhat.com> 1.4-1  * Sat Apr 02 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.0.1-2
1476  - New upstream release  - fix proxy packges doesn't have schema.sql.gz
1477    - add server and web packages for RHEL6
1478    - add ZBX-10459.patch
1479    
1480  * Fri Mar 30 2007 Jarod Wilson <jwilson@redhat.com> 1.1.7-1  * Sun Feb 28 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.0.1-1
1481  - New upstream release  - update to 3.0.1
1482    - remove DBSocker parameter
1483    
1484  * Wed Feb 07 2007 Jarod Wilson <jwilson@redhat.com> 1.1.6-1  * Sat Feb 20 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.0.0-2
1485  - New upstream release  - agent, proxy and java-gateway for RHEL 5 and 6
1486    
1487  * Thu Feb 01 2007 Jarod Wilson <jwilson@redhat.com> 1.1.5-1  * Mon Feb 15 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.0.0-1
1488  - New upstream release  - update to 3.0.0
1489    
1490  * Tue Jan 02 2007 Jarod Wilson <jwilson@redhat.com> 1.1.4-5  * Thu Feb 11 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.0.0rc2
1491  - Add explicit R:php to zabbix-web (#220676)  - update to 3.0.0rc2
1492    - add TIMEOUT parameter for java gateway conf
1493    
1494  * Wed Dec 13 2006 Jarod Wilson <jwilson@redhat.com> 1.1.4-4  * Thu Feb 04 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.0.0rc1
1495  - Fix snmp polling buffer overflow (#218065)  - update to 3.0.0rc1
1496    
1497  * Wed Nov 29 2006 Jarod Wilson <jwilson@redhat.com> 1.1.4-3  * Sat Jan 30 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.0.0beta2
1498  - Rebuild for updated libnetsnmp  - update to 3.0.0beta2
1499    
1500  * Thu Nov 16 2006 Jarod Wilson <jwilson@redhat.com> 1.1.4-2  * Thu Jan 21 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.0.0beta1
1501  - Fix up pt_br  - update to 3.0.0beta1
 - Add Req-pre on useradd  
1502    
1503  * Wed Nov 15 2006 Jarod Wilson <jwilson@redhat.com> 1.1.4-1  * Thu Jan 14 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.0.0alpha6
1504  - Update to 1.1.4  - update to 3.0.0alpla6
1505    - remove zabbix_agent conf and binary
1506    
1507  * Tue Nov 14 2006 Jarod Wilson <jwilson@redhat.com> 1.1.3-3  * Wed Jan 13 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.0.0alpha5
1508  - Add BR: gnutls-devel, R: net-snmp-libs  - update to 3.0.0alpha5
1509    
1510  * Tue Nov 14 2006 Jarod Wilson <jwilson@redhat.com> 1.1.3-2  * Fri Nov 13 2015 Kodai Terashima <kodai.terashima@zabbix.com> - 3.0.0alpha4-1
1511  - Fix php-pgsql Requires  - update to 3.0.0alpha4
1512    
1513  * Tue Nov 14 2006 Jarod Wilson <jwilson@redhat.com> 1.1.3-1  * Thu Oct 29 2015 Kodai Terashima <kodai.terashima@zabbix.com> - 3.0.0alpha3-2
1514  - Update to 1.1.3  - fix web-pgsql package dependency
1515    - add --with-openssl option
1516    
1517  * Mon Oct 02 2006 Jarod Wilson <jwilson@redhat.com> 1.1.2-1  * Mon Oct 19 2015 Kodai Terashima <kodai.terashima@zabbix.com> - 3.0.0alpha3-1
1518  - Update to 1.1.2  - update to 3.0.0alpha3
 - Enable alternate building with postgresql support  
1519    
1520  * Thu Aug 17 2006 Jarod Wilson <jwilson@redhat.com> 1.1.1-2  * Tue Sep 29 2015 Kodai Terashima <kodai.terashima@zabbix.com> - 3.0.0alpha2-3
1521  - Yank out Requires: mysql-server  - add IfModule for mod_php5 in apache configuration file
1522  - Add Requires: for php-gd and fping  - fix missing proxy_mysql alternatives symlink
1523    - chagne snmptrap log filename
1524    - remove include dir from server and proxy conf
1525    
1526  * Tue Aug 15 2006 Jarod Wilson <jwilson@redhat.com> 1.1.1-1  * Fri Sep 18 2015 Kodai Terashima <kodai.terashima@zabbix.com> - 3.0.0alpha2-2
1527  - Update to 1.1.1  - fix create.sql doesn't contain schema.sql & images.sql
 - More macroification  
 - Fix up zabbix-web Requires:  
 - Prep for enabling postgres support  
1528    
1529  * Thu Jul 27 2006 Jarod Wilson <jwilson@redhat.com> 1.1-2  * Tue Sep 15 2015 Kodai Terashima <kodai.terashima@zabbix.com> - 3.0.0alpha2-1
1530  - Add Requires: on chkconfig and service  - update to 3.0.0alpha2
 - Remove openssl-devel from BR, mysql-devel pulls it in  
 - Alter scriptlets to match Fedora conventions  
1531    
1532  * Tue Jul 11 2006 Jarod Wilson <jwilson@redhat.com> 1.1-1  * Sat Aug 22 2015 Kodai Terashima <kodai.terashima@zabbix.com> - 2.5.0-1
1533  - Initial build for Fedora Extras  - create spec file from scratch
1534    - update to 2.5.0


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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