2 # - initscript for zabbix-agentd, zabbix-server, zabbix-proxy and zabbix-java
5 %bcond_without pgsql # enable PostgreSQL support
6 %bcond_without sqlite3 # enable sqlite3 support
7 %bcond_without mysql # enable MySQL support
8 %bcond_without java # disable java support
10 %define databases %{?with_pgsql:postgresql} %{?with_mysql:mysql} %{?with_sqlite3:sqlite3}
11 %define any_database %{with pgsql}%{with mysql}%{with sqlite3}
13 %define php_min_version 5.4.0
14 Summary: Zabbix - network monitoring software
15 Summary(pl.UTF-8): Zabbix - oprogramowanie do monitorowania sieci
20 Group: Networking/Utilities
21 Source0: http://downloads.sourceforge.net/zabbix/%{name}-%{version}.tar.gz
22 # Source0-md5: 87428256f7e48b8bf10a926df27a34c8
23 Source1: %{name}-apache.conf
24 Source2: %{name}_server.service
25 Source3: %{name}_agentd.service
26 Source4: %{name}_proxy.service
27 Source5: %{name}_java.service
28 Source6: %{name}.tmpfiles
30 Patch1: sqlite3_dbname.patch
31 URL: http://zabbix.sourceforge.net/
32 BuildRequires: OpenIPMI-devel
33 BuildRequires: curl-devel
34 BuildRequires: iksemel-devel
35 %{?with_java:BuildRequires: jdk}
36 BuildRequires: libssh2-devel
37 BuildRequires: libxml2-devel
38 %{?with_mysql:BuildRequires: mysql-devel}
39 BuildRequires: net-snmp-devel
40 BuildRequires: openldap-devel >= 2.4.6
41 BuildRequires: openssl-devel >= 0.9.7d
42 %{?with_pgsql:BuildRequires: postgresql-devel}
43 BuildRequires: rpmbuild(macros) >= 1.671
44 %{?with_sqlite3:BuildRequires: sqlite3-devel}
45 BuildRequires: unixODBC-devel
46 Requires: %{name}-agentd = %{version}-%{release}
47 Requires: %{name}-frontend-php = %{version}-%{release}
48 Requires: %{name}-server = %{version}-%{release}
49 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51 %define _sysconfdir /etc/%{name}
52 %define _appdir %{_datadir}/%{name}
53 %define _webapps /etc/webapps
54 %define _webapp %{name}
57 Zabbix is software that monitors numerous parameters of a network and
58 the servers on that network. It is a useful tool for monitoring the
59 health and integrity of servers. Zabbix uses a flexible notification
60 mechanism that allows users to configure email based alerts for
61 virtually any event. All monitored parameters are stored in a
62 database. Zabbix offers excellent reporting and data visualisation
63 features based on the stored data. Zabbix supports both polling and
64 trapping. All Zabbix reports and statistics, as well as configuration
65 parameters, are accessed through a web-based front end.
67 %description -l pl.UTF-8
68 Zabbix to oprogramowanie do monitorowania licznych parametrów sieci i
69 serwerów sieciowych. Jest przydatny przy monitorowaniu działania
70 serwerów. Jorzysta z elastycznego mechanizmu powiadamiania, który
71 pozwala użytkownikom konfigurować powiadamianie pocztą elektroniczną
72 dla praktycznie wszelkich zdarzeń. Monitorowane parametry są
73 przechowywane w bazie danych. W oparciu o przechowywane dane Zabbix
74 oferuje świetne raportowanie i funkcje wizualizacji. Wspiera zarówno
75 odpytywanie jak i pułapkowanie. Dostęp do wszystkich raportów i
76 statystyk Zabbiksa jest możliwy poprzez interfejs oparty o WWW.
79 Summary: Common files for Zabbix monitoring software
80 Summary(pl.UTF-8): Wspólne pliki dla oprogramowania monitorującego Zabbix
81 Group: Networking/Utilities
82 Requires(postun): /usr/sbin/groupdel
83 Requires(postun): /usr/sbin/userdel
84 Requires(pre): /bin/id
85 Requires(pre): /usr/bin/getgid
86 Requires(pre): /usr/sbin/groupadd
87 Requires(pre): /usr/sbin/useradd
88 Provides: group(zabbix)
89 Provides: user(zabbix)
92 Common files for Zabbix monitoring software.
94 %description common -l pl.UTF-8
95 Wspólne pliki dla oprogramowania monitorującego Zabbix.
99 Summary(pl.UTF-8): Agenta Zabbiksa
100 Group: Networking/Utilities
101 Requires: %{name}-common = %{version}-%{release}
102 Requires: systemd-units >= 38
103 Obsoletes: zabbix-agent-inetd
104 Obsoletes: zabbix-agent-standalone
107 Zabbix agent collects data from the local system for a Zabbix server.
109 %description agentd -l pl.UTF-8
110 Agent zbiera dane z lokalnej maszyny dla serwera Zabbix.
112 %package frontend-php
113 Summary: PHP frontend for Zabbix
114 Summary(pl.UTF-8): Interfejs PHP dla Zabbiksa
115 Group: Applications/WWW
116 Requires: php(bcmath)
117 Requires: php(core) >= %{php_min_version}
120 Requires: php(gettext)
122 Requires: php(mbstring)
124 Requires: php(session)
125 Requires: php(sockets)
127 Requires: php(xmlreader)
128 Requires: php(xmlwriter)
130 Requires: webserver(alias)
131 Requires: webserver(indexfile)
132 Requires: webserver(php)
135 Suggests: php(sqlite3)
137 Suggests: php(sysvsem)
139 %description frontend-php
140 This package provides web based (PHP) frontend for Zabbix.
142 %description frontend-php -l pl.UTF-8
143 Ten pakiet dostarcza napisany w PHP frontend dla Zabbiksa.
146 Summary: Program retrieving data from Zabbix agent
147 Summary(pl.UTF-8): Program odpytujÄcy agenta Zabbiksa
148 Group: Networking/Utilities
151 This package provides a program retrieving data from Zabbix agent.
153 %description get -l pl.UTF-8
154 Ten pakiet zawiera program odpytujÄcy agenta Zabbiksa.
157 Summary: Zabbix proxy
158 Summary(pl.UTF-8): Proxy do Zabbiksa
159 Group: Networking/Utilities
160 Requires: %{name}-common = %{version}-%{release}
161 Requires: zabbix-proxy(db) = %{version}-%{release}
162 Requires: systemd-units >= 38
165 This package provides the Zabbix proxy.
167 %description proxy -l pl.UTF-8
168 Ten pakiet zawiera proxy Zabbix.
171 Summary: MySQL support for Zabbix proxy
172 Summary(pl.UTF-8): Obsługa MySQL dla proxy do Zabbiksa
173 Group: Networking/Utilities
174 Provides: %{name}-proxy(db) = %{version}-%{release}
175 Obsoletes: %{name}-proxy-postgresql
176 Obsoletes: %{name}-proxy-sqlite3
178 %description proxy-mysql
179 This package provides the Zabbix proxy binary with MySQL support.
181 %description proxy-mysql -l pl.UTF-8
182 Ten pakiet zawiera proxy Zabbix z obsługą MySQL.
184 %package proxy-postgresql
185 Summary: PostgreSQL support for Zabbix proxy
186 Summary(pl.UTF-8): Obsługa PostgreSQL dla proxy do Zabbiksa
187 Group: Networking/Utilities
188 Provides: %{name}-proxy(db) = %{version}-%{release}
189 Obsoletes: %{name}-proxy-mysql
190 Obsoletes: %{name}-proxy-sqlite3
192 %description proxy-postgresql
193 This package provides the Zabbix proxy binary with PostgreSQL support.
195 %description proxy-postgresql -l pl.UTF-8
196 Ten pakiet zawiera proxy Zabbix z obsługą PostgreSQL.
198 %package proxy-sqlite3
199 Summary: SQLite 3 support for Zabbix proxy
200 Summary(pl.UTF-8): Obsługa SQLite 3 dla proxy do Zabbiksa
201 Group: Networking/Utilities
202 Provides: %{name}-proxy(db) = %{version}-%{release}
203 Obsoletes: %{name}-proxy-mysql
204 Obsoletes: %{name}-proxy-postgresql
206 %description proxy-sqlite3
207 This package provides the Zabbix proxy binary with SQLite 3 support.
209 %description proxy-sqlite3 -l pl.UTF-8
210 Ten pakiet zawiera proxy Zabbix z obsługą SQLite 3.
213 Summary: Zabbix sender
214 Summary(pl.UTF-8): Program zawiadamiający Zabbiksa
215 Group: Networking/Utilities
218 This package provides the Zabbix sender.
220 %description sender -l pl.UTF-8
221 Ten pakiet zawiera program zawiadamiający Zabbiksa.
224 Summary: Zabbix server
225 Summary(pl.UTF-8): Serwer Zabbiksa
226 Group: Networking/Utilities
227 Requires: %{name}-common = %{version}-%{release}
228 Requires: %{name}-server(db) = %{version}-%{release}
229 Requires: systemd-units >= 38
230 Obsoletes: zabbix-suckerd
231 Obsoletes: zabbix-trapper-inetd
232 Obsoletes: zabbix-trapper-standalone
235 This package provides the Zabbix server.
237 %description server -l pl.UTF-8
238 Ten pakiet zawiera serwer Zabbiksa.
240 %package server-mysql
241 Summary: MySQL support for Zabbix server
242 Summary(pl.UTF-8): Obsługa MySQL sla serwera Zabbiksa
243 Group: Networking/Utilities
244 Provides: %{name}-server(db) = %{version}-%{release}
245 Obsoletes: %{name}-server-postgresql
246 Obsoletes: %{name}-server-sqlite3
248 %description server-mysql
249 This package provides the Zabbix server binary for use with MySQL database.
251 %description server-mysql -l pl.UTF-8
252 Ten pakiet zawiera serwer Zabbiksa z obsługą bazy danych MySQL.
254 %package server-postgresql
255 Summary: PostgreSQL support for Zabbix server
256 Summary(pl.UTF-8): Obsługa PostgreSQL sla serwera Zabbiksa
257 Group: Networking/Utilities
258 Provides: %{name}-server(db) = %{version}-%{release}
259 Obsoletes: %{name}-server-mysql
260 Obsoletes: %{name}-server-sqlite3
262 %description server-postgresql
263 This package provides the Zabbix server binary for use with PostgreSQL database.
265 %description server-postgresql -l pl.UTF-8
266 Ten pakiet zawiera serwer Zabbiksa z obsługą bazy danych PostgreSQL.
268 %package server-sqlite3
269 Summary: SQLite 3 support for Zabbix server
270 Summary(pl.UTF-8): Obsługa SQLite 3 sla serwera Zabbiksa
271 Group: Networking/Utilities
272 Requires(post): /bin/zcat
273 Provides: %{name}-server(db) = %{version}-%{release}
274 Obsoletes: %{name}-server-mysql
275 Obsoletes: %{name}-server-postgresql
277 %description server-sqlite3
278 This package provides the Zabbix server binary for use with SQLite 3 database.
280 NOTE: Support for SQLite 3 is EXPERIMENTAL and not recommended.
282 %description server-sqlite3 -l pl.UTF-8
283 Ten pakiet zawiera serwer Zabbiksa z obsługą bazy danych SQLite 3.
285 INFO: Wsparcie dla SQLite 3 jest EKSPERYMENTALNE i nie rekomendowane.
288 Summary: Zabbix Java Gateway
289 Group: Networking/Utilities
290 Requires: %{name}-common = %{version}-%{release}
291 Requires: systemd-units >= 38
294 This package provides the Zabbix Java Gateway.
308 %{__enable_disable java} \
327 # keep timestamps to prevent unneccessary rebuilds
328 cp -a include/config.h include/config.h.old
329 cp -a include/stamp-h1 include/stamp-h1.old
331 for database in %{databases} ; do
338 touch --reference=include/config.h.old include/config.h
339 touch --reference=include/stamp-h1.old include/stamp-h1
341 # clean what needs rebuilding
342 for dir in src/libs/zbxdb* src/libs/zbxserver ; do
343 %{__make} -C $dir clean
346 touch include/zbxdb.h
351 -C src/zabbix_server \
352 DESTDIR=$PWD/install-${database}
354 -C src/zabbix_proxy \
355 DESTDIR=$PWD/install-${database}
357 # prepare dirs for %%doc
358 for dir in upgrades/dbpatches/* ; do
359 [ -d $dir/${database} ] || continue
360 mkdir -p install-${database}/upgrade/$(basename $dir)
361 cp -a $dir/${databases}/* install-${database}/upgrade/$(basename $dir)
366 rm -rf $RPM_BUILD_ROOT
367 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/webapps/%{_webapp},%{_appdir}} \
368 $RPM_BUILD_ROOT{/run/zabbix,/var/log/zabbix,%{systemdunitdir},%{systemdtmpfilesdir}}
371 DESTDIR=$RPM_BUILD_ROOT \
372 ZJG_DEST=$RPM_BUILD_ROOT%{_datadir}/zabbix_java
374 for database in %{databases} ; do
375 cp -p install-$database/%{_sbindir}/zabbix_server \
376 $RPM_BUILD_ROOT%{_sbindir}/zabbix_server-$database
377 cp -p install-$database/%{_sbindir}/zabbix_proxy \
378 $RPM_BUILD_ROOT%{_sbindir}/zabbix_proxy-$database
381 if [ -n "$database" ] ; then
382 ln -sf %{_sbindir}/zabbix_server-$database $RPM_BUILD_ROOT%{_sbindir}/zabbix_server
383 ln -sf %{_sbindir}/zabbix_proxy-$database $RPM_BUILD_ROOT%{_sbindir}/zabbix_proxy
387 install -d $RPM_BUILD_ROOT/var/lib/zabbix
388 touch $RPM_BUILD_ROOT/var/lib/zabbix/zabbix.db
391 cp -r frontends $RPM_BUILD_ROOT%{_appdir}
393 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/apache.conf
394 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/httpd.conf
396 install %{SOURCE2} $RPM_BUILD_ROOT%{systemdunitdir}/zabbix_server.service
397 install %{SOURCE3} $RPM_BUILD_ROOT%{systemdunitdir}/zabbix_agentd.service
398 install %{SOURCE4} $RPM_BUILD_ROOT%{systemdunitdir}/zabbix_proxy.service
399 install %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/zabbix_java.service
401 cp -p %{SOURCE6} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/zabbix.conf
403 mv $RPM_BUILD_ROOT%{_appdir}/frontends/php/conf $RPM_BUILD_ROOT%{_sysconfdir}/frontend
404 ln -s %{_sysconfdir}/frontend $RPM_BUILD_ROOT%{_appdir}/frontends/php/conf
405 touch $RPM_BUILD_ROOT%{_sysconfdir}/frontend/zabbix.conf.php
408 mv $RPM_BUILD_ROOT%{_datadir}/zabbix_java/settings.sh $RPM_BUILD_ROOT%{_sysconfdir}/zabbix_java.conf
409 ln -s %{_sysconfdir}/zabbix_java.conf $RPM_BUILD_ROOT%{_datadir}/zabbix_java/settings.sh
410 mv $RPM_BUILD_ROOT%{_datadir}/zabbix_java/lib/logback.xml $RPM_BUILD_ROOT%{_sysconfdir}/java-logback.xml
411 ln -s %{_sysconfdir}/java-logback.xml $RPM_BUILD_ROOT%{_datadir}/zabbix_java/lib/logback.xml
412 mv $RPM_BUILD_ROOT%{_datadir}/zabbix_java/lib/logback-console.xml $RPM_BUILD_ROOT%{_sysconfdir}/java-logback-console.xml
413 ln -s %{_sysconfdir}/java-logback-console.xml $RPM_BUILD_ROOT%{_datadir}/zabbix_java/lib/logback-console.xml
415 cat >$RPM_BUILD_ROOT%{_sbindir}/zabbix_java-start <<'EOF'
418 exec %{_datadir}/zabbix_java/startup.sh "$@"
421 cat >$RPM_BUILD_ROOT%{_sbindir}/zabbix_java-stop <<'EOF'
424 exec %{_datadir}/zabbix_java/shutdown.sh "$@"
429 rm -rf $RPM_BUILD_ROOT
431 %triggerin frontend-php -- apache1 < 1.3.37-3, apache1-base
432 %webapp_register apache %{_webapp}
434 %triggerun frontend-php -- apache1 < 1.3.37-3, apache1-base
435 %webapp_unregister apache %{_webapp}
437 %triggerin frontend-php -- apache < 2.2.0, apache-base
438 %webapp_register httpd %{_webapp}
440 %triggerun frontend-php -- apache < 2.2.0, apache-base
441 %webapp_unregister httpd %{_webapp}
444 %groupadd -g 111 zabbix
445 %useradd -d / -u 111 -g zabbix -c "Zabbix User" -s /bin/false zabbix
446 %addusertogroup -q zabbix proc
449 if [ "$1" = "0" ]; then
455 if [ "$1" = 1 ]; then
456 %banner -e %{name}-server <<-EOF
457 You should create database for Zabbix.
459 Running these should be fine in most cases:
460 mysqladmin create zabbix
461 zcat %{_docdir}/%{name}-server-mysql-%{version}/schema.sql.gz | mysql zabbix
462 zcat %{_docdir}/%{name}-server-mysql-%{version}/images.sql.gz | mysql zabbix
463 zcat %{_docdir}/%{name}-server-mysql-%{version}/data.sql.gz | mysql zabbix
466 ln -sf %{_sbindir}/zabbix_server-mysql %{_sbindir}/zabbix_server || :
468 %post server-postgresql
469 if [ "$1" = 1 ]; then
470 %banner -e %{name}-server <<-EOF
471 You should create database for Zabbix.
473 Running these should be fine in most cases:
476 createdb -O zabbix zabbix
477 zcat %{_docdir}/%{name}-server-postgresql-%{version}/schema.sql.gz | psql -u zabbix zabbix
478 zcat %{_docdir}/%{name}-server-postgresql-%{version}/images.sql.gz | psql -u zabbix zabbix
479 zcat %{_docdir}/%{name}-server-postgresql-%{version}/data.sql.gz | psql -u zabbix zabbix
482 ln -sf %{_sbindir}/zabbix_server-postgresql %{_sbindir}/zabbix_server || :
485 if [ "$1" = 1 ]; then
486 if [ ! -f /var/lib/zabbix/zabbix.db ] ; then
487 %banner -e %{name}-server <<-EOF
488 Creating sqlite3 database for Zabbix in /var/lib/zabbix/zabbix.db
490 zcat %{_docdir}/%{name}-server-sqlite3-%{version}/schema.sql.gz | sqlite3 /var/lib/zabbix/zabbix.db && \
491 zcat %{_docdir}/%{name}-server-sqlite3-%{version}/images.sql.gz | sqlite3 /var/lib/zabbix/zabbix.db && \
492 zcat %{_docdir}/%{name}-server-sqlite3-%{version}/data.sql.gz | sqlite3 /var/lib/zabbix/zabbix.db && \
493 chown zabbix:zabbix /var/lib/zabbix/zabbix.db && \
494 chmod 644 /var/lib/zabbix/zabbix.db || :
497 ln -sf %{_sbindir}/zabbix_server-sqlite3 %{_sbindir}/zabbix_server || :
500 %systemd_post zabbix_server.service
503 %systemd_preun zabbix_server.service
506 if [ "$1" = "0" ]; then
507 if [ -L %{_sbindir}/zabbix_server ] ; then
508 rm -f %{_sbindir}/zabbix_server || :
514 %systemd_post zabbix_agentd.service
517 %systemd_preun zabbix_agentd.service
523 ln -sf %{_sbindir}/zabbix_proxy-mysql %{_sbindir}/zabbix_proxy || :
525 %post proxy-postgresql
526 ln -sf %{_sbindir}/zabbix_proxy-postgresql %{_sbindir}/zabbix_proxy || :
529 ln -sf %{_sbindir}/zabbix_proxy-sqlite3 %{_sbindir}/zabbix_proxy || :
532 %systemd_post zabbix_proxy.service
535 %systemd_preun zabbix_proxy.service
541 %systemd_post zabbix_java.service
544 %systemd_preun zabbix_java.service
550 %defattr(644,root,root,755)
551 %doc AUTHORS ChangeLog README
554 %defattr(644,root,root,755)
555 %doc AUTHORS ChangeLog README
556 %attr(751,root,zabbix) %dir %{_sysconfdir}
557 %attr(751,root,http) %dir %{_sysconfdir}/frontend
559 %dir %{_appdir}/frontends
560 %dir %attr(770,root,zabbix) /run/zabbix
561 %dir %attr(775,root,zabbix) /var/log/zabbix
562 %{systemdtmpfilesdir}/zabbix.conf
565 %defattr(644,root,root,755)
566 %doc conf/zabbix_agentd/*.conf
567 %attr(640,root,zabbix) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zabbix_agentd.conf
568 %dir %attr(751,root,zabbix) %{_sysconfdir}/zabbix_agentd.conf.d
569 %attr(755,root,root) %{_sbindir}/zabbix_agentd
570 %{_mandir}/man8/zabbix_agentd*
571 %{systemdunitdir}/zabbix_agentd.service
574 %defattr(644,root,root,755)
575 %attr(750,root,http) %dir %{_webapps}/%{_webapp}
576 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/*
577 %{_appdir}/frontends/php
578 %ghost %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/frontend/zabbix.conf.php
579 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/frontend/.htaccess
580 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/frontend/maintenance.inc.php
581 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/frontend/zabbix.conf.php.example
584 %defattr(644,root,root,755)
585 %attr(755,root,root) %{_bindir}/zabbix_get
586 %{_mandir}/man1/zabbix_get*
590 %defattr(644,root,root,755)
591 %attr(640,root,zabbix) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zabbix_proxy.conf
592 %dir %attr(751,root,zabbix) %{_sysconfdir}/zabbix_proxy.conf.d
593 %ghost %attr(755,root,root) %{_sbindir}/zabbix_proxy
594 %{_mandir}/man8/zabbix_proxy*
595 %{systemdunitdir}/zabbix_proxy.service
600 %defattr(644,root,root,755)
601 %attr(755,root,root) %{_sbindir}/zabbix_proxy-mysql
605 %files proxy-postgresql
606 %defattr(644,root,root,755)
607 %attr(755,root,root) %{_sbindir}/zabbix_proxy-postgresql
612 %defattr(644,root,root,755)
613 %attr(755,root,root) %{_sbindir}/zabbix_proxy-sqlite3
617 %defattr(644,root,root,755)
618 %attr(755,root,root) %{_bindir}/zabbix_sender
619 %{_mandir}/man1/zabbix_sender*
623 %defattr(644,root,root,755)
624 %doc upgrades/dbpatches
625 %attr(640,root,zabbix) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zabbix_server.conf
626 %dir %attr(751,root,zabbix) %{_sysconfdir}/zabbix_server.conf.d
627 %ghost %attr(755,root,root) %{_sbindir}/zabbix_server
628 %{_mandir}/man8/zabbix_server*
629 %{systemdunitdir}/zabbix_server.service
634 %defattr(644,root,root,755)
635 %doc database/mysql/*.sql install-mysql/upgrade
636 %attr(755,root,root) %{_sbindir}/zabbix_server-mysql
640 %files server-postgresql
641 %defattr(644,root,root,755)
642 %doc database/postgresql/*.sql install-postgresql/upgrade
643 %attr(755,root,root) %{_sbindir}/zabbix_server-postgresql
647 %files server-sqlite3
648 %defattr(644,root,root,755)
649 %doc database/sqlite3/*.sql
650 %attr(755,root,root) %{_sbindir}/zabbix_server-sqlite3
651 %dir %attr(771,root,zabbix) /var/lib/zabbix
652 %ghost %attr(644,zabbix,zabbix) /var/lib/zabbix/zabbix.db
657 %defattr(644,root,root,755)
658 %attr(755,root,root) %{_sbindir}/zabbix_java-start
659 %attr(755,root,root) %{_sbindir}/zabbix_java-stop
660 %attr(640,root,zabbix) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zabbix_java.conf
661 %attr(640,root,zabbix) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/java-logback.xml
662 %attr(640,root,zabbix) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/java-logback-console.xml
663 %dir %{_datadir}/zabbix_java
664 %{_datadir}/zabbix_java/bin
665 %{_datadir}/zabbix_java/lib
666 %{_datadir}/zabbix_java/settings.sh
667 %attr(755,root,root) %{_datadir}/zabbix_java/shutdown.sh
668 %attr(755,root,root) %{_datadir}/zabbix_java/startup.sh
669 %{systemdunitdir}/zabbix_java.service