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

Contents of /rpms/zabbix/contribs9/zabbix.spec

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


Revision 1.5 - (show annotations) (download)
Thu May 14 03:52:35 2020 UTC (4 years, 5 months ago) by jpp
Branch: MAIN
CVS Tags: zabbix-4_4_6-2_el6_sme, HEAD
Changes since 1.4: +1 -1 lines
* Sun May 10 2020 Jean-Philipe Pialasse <tests@pialasse.com> 4.4.6-2.sme
- import 4.4.6 for SME SErver [SME: 10944]
- add Provides: zabbix to prevent conflicts on upgrade from fws when
  both agent and server or proxy are installed

1 Name: zabbix
2 Version: 4.4.6
3 Release: %{?alphatag:0.}2%{?alphatag}%{?dist}
4 Summary: The Enterprise-class open source monitoring solution
5 Group: Applications/Internet
6 License: GPLv2+
7 URL: http://www.zabbix.com/
8 Source0: %{name}-%{version}%{?alphatag}.tar.gz
9 Source1: zabbix-web22.conf
10 Source2: zabbix-web24.conf
11 Source3: zabbix-logrotate.in
12 Source4: zabbix-java-gateway.init
13 Source5: zabbix-agent.init
14 Source6: zabbix-server.init
15 Source7: zabbix-proxy.init
16 Source10: zabbix-agent.service
17 Source11: zabbix-server.service
18 Source12: zabbix-proxy.service
19 Source13: zabbix-java-gateway.service
20 Source14: zabbix_java_gateway-sysd
21 Source15: zabbix-tmpfiles.conf
22 Source16: zabbix-php-fpm.conf
23 Source17: zabbix-web-fcgi.conf
24 Source18: zabbix-nginx.conf
25 Source19: zabbix-agent2.service
26 Source20: zabbix-agent.sysconfig
27 Patch0: config.patch
28 Patch1: fping3-sourceip-option.patch
29
30 Buildroot: %{_tmppath}/zabbix-%{version}-%{release}-root-%(%{__id_u} -n)
31
32 %ifarch x86_64
33 %if 0%{?rhel} >= 8
34 %define build_agent2 1
35 %endif
36 %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
73 Zabbix is the ultimate enterprise-level software designed for
74 real-time monitoring of millions of metrics collected from tens of
75 thousands of servers, virtual machines and network devices.
76
77 %package agent
78 Summary: Old Zabbix Agent
79 Group: Applications/Internet
80 Requires: logrotate
81 Requires(pre): /usr/sbin/useradd
82 %if 0%{?rhel} >= 7
83 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
96 Zabbix agent to be installed on monitored systems.
97
98 %else
99 %description agent
100 Old implementation of zabbix agent.
101 To be installed on monitored systems.
102
103 %package agent2
104 Summary: New Zabbix Agent
105 Group: Applications/Internet
106 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 js
136 Zabbix js command line utility.
137
138 %package proxy-mysql
139 Summary: Zabbix proxy for MySQL or MariaDB database
140 Group: Applications/Internet
141 Requires: fping
142 %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
159 Zabbix proxy with MySQL or MariaDB database support.
160
161 %package proxy-pgsql
162 Summary: Zabbix proxy for PostgreSQL database
163 Group: Applications/Internet
164 Requires: fping
165 %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
182 Zabbix proxy with PostgreSQL database support.
183
184 %package proxy-sqlite3
185 Summary: Zabbix proxy for SQLite3 database
186 Group: Applications/Internet
187 Requires: fping
188 %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
205 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
278 Summary: Zabbix web frontend common package
279 Group: Application/Internet
280 BuildArch: noarch
281 %if 0%{?rhel} == 7
282 Requires: httpd
283 Requires: php >= 5.4
284 %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
302 Zabbix web frontend common package
303
304 %package web-mysql
305 Summary: Zabbix web frontend for MySQL
306 Group: Applications/Internet
307 BuildArch: noarch
308 %if 0%{?rhel} == 7
309 Requires: php-mysql
310 %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
322 Zabbix web frontend for MySQL
323
324 %package web-pgsql
325 Summary: Zabbix web frontend for PostgreSQL
326 Group: Applications/Internet
327 BuildArch: noarch
328 %if 0%{?rhel} >= 7
329 Requires: php-pgsql
330 %endif
331 Requires: zabbix-web = %{version}-%{release}
332 Provides: zabbix-web-database = %{version}-%{release}
333
334 %description web-pgsql
335 Zabbix web frontend for PostgreSQL
336
337 %package web-japanese
338 Summary: Japanese font settings for Zabbix frontend
339 Group: Applications/Internet
340 BuildArch: noarch
341 %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 %endif
381
382 %prep
383 %setup0 -q -n %{name}-%{version}%{?alphatag}
384 %patch0 -p1
385 %if 0%{?rhel} >= 7
386 %patch1 -p1
387 %endif
388
389 ## remove font file
390 rm -f frontends/php/assets/fonts/DejaVuSans.ttf
391
392 # replace font in defines.inc.php
393 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
434
435 build_flags="
436 --enable-dependency-tracking
437 --sysconfdir=/etc/zabbix
438 --libdir=%{_libdir}/zabbix
439 --enable-agent
440 %if 0%{?build_agent2}
441 --enable-agent2
442 %endif
443 --enable-proxy
444 --enable-ipv6
445 --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}
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
477 %endif
478 mv src/zabbix_proxy/zabbix_proxy src/zabbix_proxy/zabbix_proxy_mysql
479
480 %configure $build_flags --with-postgresql
481 make %{?_smp_mflags}
482 %if 0%{?build_server}
483 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
486
487 %if 0%{?build_server}
488 touch src/zabbix_server/zabbix_server
489 %endif
490 touch src/zabbix_proxy/zabbix_proxy
491
492 %install
493
494 rm -rf $RPM_BUILD_ROOT
495
496 # 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
501 %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}/
510 rm $RPM_BUILD_ROOT%{_sbindir}/zabbix_server
511 %endif
512 install -m 0755 -p src/zabbix_proxy/zabbix_proxy_* $RPM_BUILD_ROOT%{_sbindir}/
513 rm $RPM_BUILD_ROOT%{_sbindir}/zabbix_proxy
514
515 # delete unnecessary files from java gateway
516 rm $RPM_BUILD_ROOT%{_sbindir}/zabbix_java/settings.sh
517 rm $RPM_BUILD_ROOT%{_sbindir}/zabbix_java/startup.sh
518 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
682 rm -rf $RPM_BUILD_ROOT
683
684 %pre agent
685 getent group zabbix > /dev/null || groupadd -r zabbix
686 getent passwd zabbix > /dev/null || \
687 useradd -r -g zabbix -d %{_localstatedir}/lib/zabbix -s /sbin/nologin \
688 -c "Zabbix Monitoring System" zabbix
689 :
690
691 %post agent
692 %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 %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
767 %endif
768 /usr/sbin/update-alternatives --install %{_sbindir}/zabbix_proxy \
769 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
832 rm /var/lib/alternatives/zabbix-web-font
833 if [ -h %{_datadir}/zabbix/fonts/graphfont.ttf ]; then
834 rm %{_datadir}/zabbix/fonts/graphfont.ttf
835 fi
836 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
871 if [ "$1" = 0 ]; then
872 %if 0%{?rhel} >= 7
873 %systemd_preun zabbix-agent.service
874 %else
875 /sbin/service zabbix-agent stop >/dev/null 2>&1
876 /sbin/chkconfig --del zabbix-agent
877 %endif
878 fi
879 :
880
881 %if 0%{?build_agent2}
882 %preun agent2
883 %systemd_preun zabbix-agent2.service
884 :
885 %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
898 :
899
900 %preun proxy-pgsql
901 if [ "$1" = 0 ]; then
902 %if 0%{?rhel} >= 7
903 %systemd_preun zabbix-proxy.service
904 %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 %preun proxy-sqlite3
914 if [ "$1" = 0 ]; then
915 %if 0%{?rhel} >= 7
916 %systemd_preun zabbix-proxy.service
917 %else
918 /sbin/service zabbix-proxy stop >/dev/null 2>&1
919 /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 %preun java-gateway
927 if [ $1 -eq 0 ]; then
928 %if 0%{?rhel} >= 7
929 %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 %if 0%{?build_server}
938 %preun server-mysql
939 if [ "$1" = 0 ]; then
940 %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 %preun server-pgsql
952 if [ "$1" = 0 ]; then
953 %if 0%{?rhel} >= 7
954 %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
1054 %defattr(-,root,root,-)
1055 %doc AUTHORS ChangeLog COPYING NEWS README conf/zabbix_agentd/userparameter_mysql.conf
1056 %config(noreplace) %{_sysconfdir}/zabbix/zabbix_agentd.conf
1057 %config(noreplace) %{_sysconfdir}/logrotate.d/zabbix-agent
1058 %dir %{_sysconfdir}/zabbix/zabbix_agentd.d
1059 %attr(0755,zabbix,zabbix) %dir %{_localstatedir}/log/zabbix
1060 %attr(0755,zabbix,zabbix) %dir %{_localstatedir}/run/zabbix
1061 %{_sbindir}/zabbix_agentd
1062 %{_mandir}/man8/zabbix_agentd.8*
1063 %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 %if 0%{?build_agent2}
1072 %files agent2
1073 %defattr(-,root,root,-)
1074 %doc AUTHORS ChangeLog COPYING NEWS README
1075 %config(noreplace) %{_sysconfdir}/zabbix/zabbix_agent2.conf
1076 %config(noreplace) %{_sysconfdir}/logrotate.d/zabbix-agent2
1077 %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
1104 %defattr(-,root,root,-)
1105 %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
1120
1121 %files proxy-pgsql
1122 %defattr(-,root,root,-)
1123 %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
1138
1139 %files proxy-sqlite3
1140 %defattr(-,root,root,-)
1141 %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
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
1215 %defattr(-,root,root,-)
1216 %doc AUTHORS ChangeLog COPYING NEWS README
1217 %dir %attr(0750,apache,apache) %{_sysconfdir}/zabbix/web
1218 %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
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
1230
1231 %files web-mysql
1232 %defattr(-,root,root,-)
1233
1234 %files web-pgsql
1235 %defattr(-,root,root,-)
1236
1237 %files web-japanese
1238 %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
1256 * Sun May 10 2020 Jean-Philipe Pialasse <tests@pialasse.com> 4.4.6-2.sme
1257 - 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 * Tue Aug 28 2018 Zabbix Packager <info@zabbix.com> - 4.0.0-1.1beta1
1367 - update to 4.0.0beta1
1368
1369 * Mon Jul 23 2018 Zabbix Packager <info@zabbix.com> - 4.0.0-1.1alpha9
1370 - update to 4.0.0alpha9
1371 - add PHP variable max_input_vars = 10000, overriding default 1000
1372
1373 * Mon Jun 18 2018 Zabbix Packager <info@zabbix.com> - 4.0.0-1.1alpha8
1374 - update to 4.0.0alpha8
1375
1376 * Wed May 30 2018 Zabbix Packager <info@zabbix.com> - 4.0.0-1.1alpha7
1377 - update to 4.0.0alpha7
1378
1379 * Fri Apr 27 2018 Zabbix Packager <info@zabbix.com> - 4.0.0-1.1alpha6
1380 - 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 Mar 26 2018 Vladimir Levijev <vladimir.levijev@zabbix.com> - 4.0.0-1.1alpha5
1385 - update to 4.0.0alpha5
1386
1387 * Tue Feb 27 2018 Vladimir Levijev <vladimir.levijev@zabbix.com> - 4.0.0-1.1alpha4
1388 - update to 4.0.0alpha4
1389
1390 * Mon Feb 05 2018 Vladimir Levijev <vladimir.levijev@zabbix.com> - 4.0.0-1.1alpha3
1391 - update to 4.0.0alpha3
1392
1393 * Tue Jan 09 2018 Vladimir Levijev <vladimir.levijev@zabbix.com> - 4.0.0-1.1alpha2
1394 - update to 4.0.0alpha2
1395
1396 * Tue Dec 19 2017 Vladimir Levijev <vladimir.levijev@zabbix.com> - 4.0.0-1alpha1
1397 - update to 4.0.0alpha1
1398
1399 * Thu Nov 09 2017 Vladimir Levijev <vladimir.levijev@zabbix.com> - 3.4.4-2
1400 - add missing translation (.mo) files
1401
1402 * Tue Nov 07 2017 Vladimir Levijev <vladimir.levijev@zabbix.com> - 3.4.4-1
1403 - 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 * Tue Oct 17 2017 Vladimir Levijev <vladimir.levijev@zabbix.com> - 3.4.3-1
1407 - update to 3.4.3
1408
1409 * Mon Sep 25 2017 Vladimir Levijev <vladimir.levijev@zabbix.com> - 3.4.2-1
1410 - update to 3.4.2
1411
1412 * Mon Aug 28 2017 Vladimir Levijev <vladimir.levijev@zabbix.com> - 3.4.1-1
1413 - update to 3.4.1
1414 - change SocketDir to /var/run/zabbix
1415
1416 * Mon Aug 21 2017 Vladimir Levijev <vladimir.levijev@zabbix.com> - 3.4.0-1
1417 - update to 3.4.0
1418
1419 * Wed Apr 26 2017 Kodai Terashima <kodai.terashima@zabbix.com> - 3.4.0-1alpha1
1420 - update to 3.4.0alpla1 r68116
1421 - add libpcre and libevent for compile option
1422
1423 * Sun Apr 23 2017 Kodai Terashima <kodai.terashima@zabbix.com> - 3.2.5-1
1424 - update to 3.2.5
1425 - add TimeoutSec=0 to systemd service file
1426
1427 * Thu Mar 02 2017 Kodai Terashima <kodai.terashima@zabbix.com> - 3.2.4-2
1428 - remove TimeoutSec for systemd
1429
1430 * Mon Feb 27 2017 Kodai Terashima <kodai.terashima@zabbix.com> - 3.2.4-1
1431 - update to 3.2.4
1432 - add TimeoutSec for systemd service file
1433
1434 * Wed Dec 21 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.2.3-1
1435 - update to 3.2.3
1436
1437 * Thu Dec 08 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.2.2-1
1438 - update to 3.2.2
1439
1440 * Sun Oct 02 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.2.1-1
1441 - update to 3.2.1
1442 - use zabbix user and group for Java Gateway
1443 - add SuccessExitStatus=143 for Java Gateway servie file
1444
1445 * Tue Sep 13 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.2.0-1
1446 - update to 3.2.0
1447 - add *.conf for Include parameter in agent configuration file
1448
1449 * Mon Sep 12 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.2.0rc2-1
1450 - update to 3.2.0rc2
1451
1452 * Fri Sep 09 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.2.0rc1-1
1453 - update to 3.2.0rc1
1454
1455 * Thu Sep 01 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.2.0beta2-1
1456 - update to 3.2.0beta2
1457
1458 * Fri Aug 26 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.2.0beta1-1
1459 - update to 3.2.0beta1
1460
1461 * Fri Aug 12 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.2.0alpha1-1
1462 - update to 3.2.0alpha1
1463
1464 * Sun Jul 24 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.0.4-1
1465 - update to 3.0.4
1466
1467 * Sun May 22 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.0.3-1
1468 - update to 3.0.3
1469 - fix java gateway systemd script to use java options
1470
1471 * Wed Apr 20 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.0.2-1
1472 - update to 3.0.2
1473 - remove ZBX-10459.patch
1474
1475 * Sat Apr 02 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.0.1-2
1476 - fix proxy packges doesn't have schema.sql.gz
1477 - add server and web packages for RHEL6
1478 - add ZBX-10459.patch
1479
1480 * Sun Feb 28 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.0.1-1
1481 - update to 3.0.1
1482 - remove DBSocker parameter
1483
1484 * Sat Feb 20 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.0.0-2
1485 - agent, proxy and java-gateway for RHEL 5 and 6
1486
1487 * Mon Feb 15 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.0.0-1
1488 - update to 3.0.0
1489
1490 * Thu Feb 11 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.0.0rc2
1491 - update to 3.0.0rc2
1492 - add TIMEOUT parameter for java gateway conf
1493
1494 * Thu Feb 04 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.0.0rc1
1495 - update to 3.0.0rc1
1496
1497 * Sat Jan 30 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.0.0beta2
1498 - update to 3.0.0beta2
1499
1500 * Thu Jan 21 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.0.0beta1
1501 - update to 3.0.0beta1
1502
1503 * Thu Jan 14 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.0.0alpha6
1504 - update to 3.0.0alpla6
1505 - remove zabbix_agent conf and binary
1506
1507 * Wed Jan 13 2016 Kodai Terashima <kodai.terashima@zabbix.com> - 3.0.0alpha5
1508 - update to 3.0.0alpha5
1509
1510 * Fri Nov 13 2015 Kodai Terashima <kodai.terashima@zabbix.com> - 3.0.0alpha4-1
1511 - update to 3.0.0alpha4
1512
1513 * Thu Oct 29 2015 Kodai Terashima <kodai.terashima@zabbix.com> - 3.0.0alpha3-2
1514 - fix web-pgsql package dependency
1515 - add --with-openssl option
1516
1517 * Mon Oct 19 2015 Kodai Terashima <kodai.terashima@zabbix.com> - 3.0.0alpha3-1
1518 - update to 3.0.0alpha3
1519
1520 * Tue Sep 29 2015 Kodai Terashima <kodai.terashima@zabbix.com> - 3.0.0alpha2-3
1521 - add IfModule for mod_php5 in apache configuration file
1522 - fix missing proxy_mysql alternatives symlink
1523 - chagne snmptrap log filename
1524 - remove include dir from server and proxy conf
1525
1526 * Fri Sep 18 2015 Kodai Terashima <kodai.terashima@zabbix.com> - 3.0.0alpha2-2
1527 - fix create.sql doesn't contain schema.sql & images.sql
1528
1529 * Tue Sep 15 2015 Kodai Terashima <kodai.terashima@zabbix.com> - 3.0.0alpha2-1
1530 - update to 3.0.0alpha2
1531
1532 * Sat Aug 22 2015 Kodai Terashima <kodai.terashima@zabbix.com> - 2.5.0-1
1533 - create spec file from scratch
1534 - update to 2.5.0

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