]> git.pld-linux.org Git - packages/zabbix.git/blame - zabbix.spec
Version: 3.4.4
[packages/zabbix.git] / zabbix.spec
CommitLineData
06317756
JK
1# TODO:
2# - initscript for zabbix-agentd, zabbix-server, zabbix-proxy and zabbix-java
10a854a6
TO
3#
4# Conditional build:
7efbcfc2
JK
5%bcond_without pgsql # enable PostgreSQL support
6%bcond_without sqlite3 # enable sqlite3 support
cd323295 7%bcond_without mysql # enable MySQL support
cd323295
JK
8%bcond_without java # disable java support
9
7efbcfc2 10%define databases %{?with_pgsql:postgresql} %{?with_mysql:mysql} %{?with_sqlite3:sqlite3}
2a82feb1 11%define any_database %{with pgsql}%{with mysql}%{with sqlite3}
2fe2194b 12
0196d0f6 13%define php_min_version 5.4.0
06317756
JK
14Summary: Zabbix - network monitoring software
15Summary(pl.UTF-8): Zabbix - oprogramowanie do monitorowania sieci
10a854a6 16Name: zabbix
4ffaba52 17Version: 3.4.4
6f1890d8 18Release: 1
10a854a6 19License: GPL v2+
d0e25550 20Group: Networking/Utilities
88b80688 21Source0: http://downloads.sourceforge.net/zabbix/%{name}-%{version}.tar.gz
4ffaba52 22# Source0-md5: 3211dd373fa3424be3ab3a0ee9c48816
cd323295 23Source1: %{name}-apache.conf
0196d0f6
ER
24Source2: %{name}_server.service
25Source3: %{name}_agentd.service
26Source4: %{name}_proxy.service
27Source5: %{name}_java.service
28Source6: %{name}.tmpfiles
06317756 29Patch0: config.patch
7efbcfc2 30Patch1: sqlite3_dbname.patch
4ffaba52 31Patch2: sqlite3_dbname.patch
10a854a6 32URL: http://zabbix.sourceforge.net/
cd323295 33BuildRequires: OpenIPMI-devel
73af344b 34BuildRequires: curl-devel
35BuildRequires: iksemel-devel
cd323295 36%{?with_java:BuildRequires: jdk}
4ffaba52 37BuildRequires: libevent-devel
cd323295 38BuildRequires: libssh2-devel
0196d0f6 39BuildRequires: libxml2-devel
cd323295 40%{?with_mysql:BuildRequires: mysql-devel}
39709426 41BuildRequires: net-snmp-devel
246efd79 42BuildRequires: openldap-devel >= 2.4.6
2886d983 43BuildRequires: openssl-devel >= 0.9.7d
4ffaba52 44BuildRequires: pcre-devel
9ffbc0d2 45%{?with_pgsql:BuildRequires: postgresql-devel}
0196d0f6 46BuildRequires: rpmbuild(macros) >= 1.671
cd323295
JK
47%{?with_sqlite3:BuildRequires: sqlite3-devel}
48BuildRequires: unixODBC-devel
0196d0f6
ER
49Requires: %{name}-agentd = %{version}-%{release}
50Requires: %{name}-frontend-php = %{version}-%{release}
51Requires: %{name}-server = %{version}-%{release}
10a854a6
TO
52BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
53
a5bb35f6 54%define _sysconfdir /etc/%{name}
7dcff817
TP
55%define _appdir %{_datadir}/%{name}
56%define _webapps /etc/webapps
57%define _webapp %{name}
10a854a6
TO
58
59%description
06317756 60Zabbix is software that monitors numerous parameters of a network and
0196d0f6
ER
61the servers on that network. It is a useful tool for monitoring the
62health and integrity of servers. Zabbix uses a flexible notification
63mechanism that allows users to configure email based alerts for
64virtually any event. All monitored parameters are stored in a
65database. Zabbix offers excellent reporting and data visualisation
06317756
JK
66features based on the stored data. Zabbix supports both polling and
67trapping. All Zabbix reports and statistics, as well as configuration
7f4b6a83 68parameters, are accessed through a web-based front end.
69
ff14176a 70%description -l pl.UTF-8
06317756 71Zabbix to oprogramowanie do monitorowania licznych parametrów sieci i
1266ba50
TP
72serwerów sieciowych. Jest przydatny przy monitorowaniu działania
73serwerów. Jorzysta z elastycznego mechanizmu powiadamiania, który
74pozwala użytkownikom konfigurować powiadamianie pocztą elektroniczną
75dla praktycznie wszelkich zdarzeń. Monitorowane parametry są
06317756 76przechowywane w bazie danych. W oparciu o przechowywane dane Zabbix
1266ba50
TP
77oferuje świetne raportowanie i funkcje wizualizacji. Wspiera zarówno
78odpytywanie jak i pułapkowanie. Dostęp do wszystkich raportów i
06317756
JK
79statystyk Zabbiksa jest możliwy poprzez interfejs oparty o WWW.
80
81%package common
82Summary: Common files for Zabbix monitoring software
83Summary(pl.UTF-8): Wspólne pliki dla oprogramowania monitorującego Zabbix
84Group: Networking/Utilities
85Requires(postun): /usr/sbin/groupdel
86Requires(postun): /usr/sbin/userdel
87Requires(pre): /bin/id
88Requires(pre): /usr/bin/getgid
89Requires(pre): /usr/sbin/groupadd
90Requires(pre): /usr/sbin/useradd
91Provides: group(zabbix)
92Provides: user(zabbix)
93
94%description common
95Common files for Zabbix monitoring software.
96
97%description common -l pl.UTF-8
98Wspólne pliki dla oprogramowania monitorującego Zabbix.
10a854a6 99
cd323295 100%package agentd
06317756
JK
101Summary: Zabbix Agent
102Summary(pl.UTF-8): Agenta Zabbiksa
d0e25550 103Group: Networking/Utilities
06317756 104Requires: %{name}-common = %{version}-%{release}
0196d0f6 105Requires: systemd-units >= 38
96b8972f 106Obsoletes: zabbix-agent-inetd
cd323295 107Obsoletes: zabbix-agent-standalone
10a854a6 108
cd323295 109%description agentd
06317756 110Zabbix agent collects data from the local system for a Zabbix server.
90e6d4b1 111
cd323295 112%description agentd -l pl.UTF-8
06317756 113Agent zbiera dane z lokalnej maszyny dla serwera Zabbix.
7dcff817
TP
114
115%package frontend-php
06317756
JK
116Summary: PHP frontend for Zabbix
117Summary(pl.UTF-8): Interfejs PHP dla Zabbiksa
d0e25550 118Group: Applications/WWW
cd323295 119Requires: php(bcmath)
1d07384b 120Requires: php(core) >= %{php_min_version}
cd323295 121Requires: php(ctype)
1d07384b
JK
122Requires: php(gd)
123Requires: php(gettext)
8cc30dbd 124Requires: php(json)
cd323295
JK
125Requires: php(mbstring)
126Requires: php(pcre)
cd323295 127Requires: php(session)
1d07384b
JK
128Requires: php(sockets)
129Requires: php(xml)
130Requires: php(xmlreader)
131Requires: php(xmlwriter)
7dcff817 132Requires: webapps
cb5654b1 133Requires: webserver(alias)
66fbc8af 134Requires: webserver(indexfile)
7dcff817 135Requires: webserver(php)
7efbcfc2
JK
136Suggests: php(mysql)
137Suggests: php(pgsql)
138Suggests: php(sqlite3)
b8568b0f
AM
139# used with sqlite3
140Suggests: php(sysvsem)
ae9a7f61 141BuildArch: noarch
7dcff817
TP
142
143%description frontend-php
06317756 144This package provides web based (PHP) frontend for Zabbix.
7dcff817
TP
145
146%description frontend-php -l pl.UTF-8
06317756 147Ten pakiet dostarcza napisany w PHP frontend dla Zabbiksa.
7dcff817
TP
148
149%package get
06317756
JK
150Summary: Program retrieving data from Zabbix agent
151Summary(pl.UTF-8): Program odpytujÄcy agenta Zabbiksa
d0e25550 152Group: Networking/Utilities
7dcff817
TP
153
154%description get
06317756 155This package provides a program retrieving data from Zabbix agent.
7dcff817
TP
156
157%description get -l pl.UTF-8
06317756 158Ten pakiet zawiera program odpytujÄcy agenta Zabbiksa.
10a854a6 159
1b6bdd87 160%package proxy
161Summary: Zabbix proxy
06317756 162Summary(pl.UTF-8): Proxy do Zabbiksa
1b6bdd87 163Group: Networking/Utilities
06317756 164Requires: %{name}-common = %{version}-%{release}
0196d0f6 165Requires: systemd-units >= 38
9a6ace5d 166Requires: zabbix-proxy(db) = %{version}-%{release}
1b6bdd87 167
168%description proxy
06317756 169This package provides the Zabbix proxy.
1b6bdd87 170
171%description proxy -l pl.UTF-8
06317756 172Ten pakiet zawiera proxy Zabbix.
1b6bdd87 173
7efbcfc2
JK
174%package proxy-mysql
175Summary: MySQL support for Zabbix proxy
176Summary(pl.UTF-8): Obsługa MySQL dla proxy do Zabbiksa
177Group: Networking/Utilities
178Provides: %{name}-proxy(db) = %{version}-%{release}
9a6ace5d
ER
179Obsoletes: zabbix-proxy-postgresql
180Obsoletes: zabbix-proxy-sqlite3
7efbcfc2
JK
181
182%description proxy-mysql
183This package provides the Zabbix proxy binary with MySQL support.
184
185%description proxy-mysql -l pl.UTF-8
186Ten pakiet zawiera proxy Zabbix z obsługą MySQL.
187
188%package proxy-postgresql
189Summary: PostgreSQL support for Zabbix proxy
190Summary(pl.UTF-8): Obsługa PostgreSQL dla proxy do Zabbiksa
191Group: Networking/Utilities
192Provides: %{name}-proxy(db) = %{version}-%{release}
9a6ace5d
ER
193Obsoletes: zabbix-proxy-mysql
194Obsoletes: zabbix-proxy-sqlite3
7efbcfc2
JK
195
196%description proxy-postgresql
197This package provides the Zabbix proxy binary with PostgreSQL support.
198
199%description proxy-postgresql -l pl.UTF-8
200Ten pakiet zawiera proxy Zabbix z obsługą PostgreSQL.
201
202%package proxy-sqlite3
203Summary: SQLite 3 support for Zabbix proxy
204Summary(pl.UTF-8): Obsługa SQLite 3 dla proxy do Zabbiksa
205Group: Networking/Utilities
206Provides: %{name}-proxy(db) = %{version}-%{release}
9a6ace5d
ER
207Obsoletes: zabbix-proxy-mysql
208Obsoletes: zabbix-proxy-postgresql
7efbcfc2
JK
209
210%description proxy-sqlite3
211This package provides the Zabbix proxy binary with SQLite 3 support.
212
213%description proxy-sqlite3 -l pl.UTF-8
214Ten pakiet zawiera proxy Zabbix z obsługą SQLite 3.
215
10a854a6 216%package sender
7dcff817 217Summary: Zabbix sender
06317756 218Summary(pl.UTF-8): Program zawiadamiający Zabbiksa
d0e25550 219Group: Networking/Utilities
10a854a6
TO
220
221%description sender
06317756 222This package provides the Zabbix sender.
10a854a6 223
ff14176a 224%description sender -l pl.UTF-8
06317756 225Ten pakiet zawiera program zawiadamiający Zabbiksa.
a5bb35f6 226
a7e2963d 227%package server
7dcff817 228Summary: Zabbix server
06317756 229Summary(pl.UTF-8): Serwer Zabbiksa
d0e25550 230Group: Networking/Utilities
06317756 231Requires: %{name}-common = %{version}-%{release}
7efbcfc2 232Requires: %{name}-server(db) = %{version}-%{release}
0196d0f6
ER
233Requires: systemd-units >= 38
234Obsoletes: zabbix-suckerd
235Obsoletes: zabbix-trapper-inetd
236Obsoletes: zabbix-trapper-standalone
a7e2963d 237
238%description server
06317756 239This package provides the Zabbix server.
a7e2963d 240
241%description server -l pl.UTF-8
06317756 242Ten pakiet zawiera serwer Zabbiksa.
a7e2963d 243
7efbcfc2
JK
244%package server-mysql
245Summary: MySQL support for Zabbix server
246Summary(pl.UTF-8): Obsługa MySQL sla serwera Zabbiksa
247Group: Networking/Utilities
248Provides: %{name}-server(db) = %{version}-%{release}
9a6ace5d
ER
249Obsoletes: zabbix-server-postgresql
250Obsoletes: zabbix-server-sqlite3
7efbcfc2
JK
251
252%description server-mysql
9a6ace5d
ER
253This package provides the Zabbix server binary for use with MySQL
254database.
7efbcfc2
JK
255
256%description server-mysql -l pl.UTF-8
257Ten pakiet zawiera serwer Zabbiksa z obsługą bazy danych MySQL.
258
259%package server-postgresql
260Summary: PostgreSQL support for Zabbix server
261Summary(pl.UTF-8): Obsługa PostgreSQL sla serwera Zabbiksa
262Group: Networking/Utilities
263Provides: %{name}-server(db) = %{version}-%{release}
9a6ace5d
ER
264Obsoletes: zabbix-server-mysql
265Obsoletes: zabbix-server-sqlite3
7efbcfc2
JK
266
267%description server-postgresql
9a6ace5d
ER
268This package provides the Zabbix server binary for use with PostgreSQL
269database.
7efbcfc2
JK
270
271%description server-postgresql -l pl.UTF-8
272Ten pakiet zawiera serwer Zabbiksa z obsługą bazy danych PostgreSQL.
273
cd323295
JK
274%package java
275Summary: Zabbix Java Gateway
276Group: Networking/Utilities
06317756 277Requires: %{name}-common = %{version}-%{release}
0196d0f6 278Requires: systemd-units >= 38
cd323295
JK
279
280%description java
281This package provides the Zabbix Java Gateway.
282
10a854a6 283%prep
5d18cc59 284%setup -q
10a854a6 285
06317756 286%patch0 -p1
7efbcfc2 287%patch1 -p1
4ffaba52 288%patch2 -p1
06317756 289
10a854a6 290%build
7efbcfc2
JK
291
292configure() {
293 %configure \
2fe2194b 294 --enable-agent \
cd323295
JK
295 --enable-ipv6 \
296 %{__enable_disable java} \
73af344b 297 --with-jabber \
cd323295
JK
298 --with-ldap \
299 --with-libcurl \
300 --with-libxml2 \
301 --with-net-snmp \
302 --with-openipmi \
303 --with-openssl \
304 --with-ssh2 \
7efbcfc2
JK
305 --with-unixodbc \
306 "$@"
307}
308
309configure \
310 --disable-server \
9a6ace5d 311 --disable-proxy
10a854a6
TO
312
313%{__make}
314
7efbcfc2
JK
315# keep timestamps to prevent unneccessary rebuilds
316cp -a include/config.h include/config.h.old
317cp -a include/stamp-h1 include/stamp-h1.old
318
319for database in %{databases} ; do
320 configure \
321 --with-$database \
322 --enable-server \
323 --enable-proxy
324
325 # restore timestamps
326 touch --reference=include/config.h.old include/config.h
327 touch --reference=include/stamp-h1.old include/stamp-h1
328
329 # clean what needs rebuilding
330 for dir in src/libs/zbxdb* src/libs/zbxserver ; do
331 %{__make} -C $dir clean
332 done
333
334 touch include/zbxdb.h
335
336 %{__make}
337
338 %{__make} install \
339 -C src/zabbix_server \
340 DESTDIR=$PWD/install-${database}
341 %{__make} install \
342 -C src/zabbix_proxy \
343 DESTDIR=$PWD/install-${database}
344
345 # prepare dirs for %%doc
346 for dir in upgrades/dbpatches/* ; do
347 [ -d $dir/${database} ] || continue
348 mkdir -p install-${database}/upgrade/$(basename $dir)
349 cp -a $dir/${databases}/* install-${database}/upgrade/$(basename $dir)
350 done
351done
352
10a854a6
TO
353%install
354rm -rf $RPM_BUILD_ROOT
06317756 355install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/webapps/%{_webapp},%{_appdir}} \
6594aa3f 356 $RPM_BUILD_ROOT{/run/zabbix,/var/log/zabbix,%{systemdunitdir},%{systemdtmpfilesdir}}
10a854a6 357
2fe2194b 358%{__make} install \
cd323295
JK
359 DESTDIR=$RPM_BUILD_ROOT \
360 ZJG_DEST=$RPM_BUILD_ROOT%{_datadir}/zabbix_java
10a854a6 361
7efbcfc2
JK
362for database in %{databases} ; do
363 cp -p install-$database/%{_sbindir}/zabbix_server \
364 $RPM_BUILD_ROOT%{_sbindir}/zabbix_server-$database
365 cp -p install-$database/%{_sbindir}/zabbix_proxy \
366 $RPM_BUILD_ROOT%{_sbindir}/zabbix_proxy-$database
367done
368
369if [ -n "$database" ] ; then
370 ln -sf %{_sbindir}/zabbix_server-$database $RPM_BUILD_ROOT%{_sbindir}/zabbix_server
371 ln -sf %{_sbindir}/zabbix_proxy-$database $RPM_BUILD_ROOT%{_sbindir}/zabbix_proxy
372fi
373
374%if %{with sqlite3}
375install -d $RPM_BUILD_ROOT/var/lib/zabbix
376touch $RPM_BUILD_ROOT/var/lib/zabbix/zabbix.db
377%endif
378
7dcff817 379cp -r frontends $RPM_BUILD_ROOT%{_appdir}
06317756 380
0196d0f6
ER
381cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/apache.conf
382cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/httpd.conf
cd323295 383
06317756
JK
384install %{SOURCE2} $RPM_BUILD_ROOT%{systemdunitdir}/zabbix_server.service
385install %{SOURCE3} $RPM_BUILD_ROOT%{systemdunitdir}/zabbix_agentd.service
386install %{SOURCE4} $RPM_BUILD_ROOT%{systemdunitdir}/zabbix_proxy.service
387install %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/zabbix_java.service
388
6594aa3f 389cp -p %{SOURCE6} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/zabbix.conf
06317756
JK
390
391mv $RPM_BUILD_ROOT%{_appdir}/frontends/php/conf $RPM_BUILD_ROOT%{_sysconfdir}/frontend
392ln -s %{_sysconfdir}/frontend $RPM_BUILD_ROOT%{_appdir}/frontends/php/conf
393touch $RPM_BUILD_ROOT%{_sysconfdir}/frontend/zabbix.conf.php
394
cd323295
JK
395%if %{with java}
396mv $RPM_BUILD_ROOT%{_datadir}/zabbix_java/settings.sh $RPM_BUILD_ROOT%{_sysconfdir}/zabbix_java.conf
397ln -s %{_sysconfdir}/zabbix_java.conf $RPM_BUILD_ROOT%{_datadir}/zabbix_java/settings.sh
06317756
JK
398mv $RPM_BUILD_ROOT%{_datadir}/zabbix_java/lib/logback.xml $RPM_BUILD_ROOT%{_sysconfdir}/java-logback.xml
399ln -s %{_sysconfdir}/java-logback.xml $RPM_BUILD_ROOT%{_datadir}/zabbix_java/lib/logback.xml
400mv $RPM_BUILD_ROOT%{_datadir}/zabbix_java/lib/logback-console.xml $RPM_BUILD_ROOT%{_sysconfdir}/java-logback-console.xml
401ln -s %{_sysconfdir}/java-logback-console.xml $RPM_BUILD_ROOT%{_datadir}/zabbix_java/lib/logback-console.xml
cd323295
JK
402
403cat >$RPM_BUILD_ROOT%{_sbindir}/zabbix_java-start <<'EOF'
404#!/bin/sh
405
406exec %{_datadir}/zabbix_java/startup.sh "$@"
407EOF
408
409cat >$RPM_BUILD_ROOT%{_sbindir}/zabbix_java-stop <<'EOF'
410#!/bin/sh
411
412exec %{_datadir}/zabbix_java/shutdown.sh "$@"
413EOF
414%endif
10a854a6
TO
415
416%clean
417rm -rf $RPM_BUILD_ROOT
418
7dcff817
TP
419%triggerin frontend-php -- apache1 < 1.3.37-3, apache1-base
420%webapp_register apache %{_webapp}
421
422%triggerun frontend-php -- apache1 < 1.3.37-3, apache1-base
423%webapp_unregister apache %{_webapp}
424
425%triggerin frontend-php -- apache < 2.2.0, apache-base
426%webapp_register httpd %{_webapp}
427
428%triggerun frontend-php -- apache < 2.2.0, apache-base
429%webapp_unregister httpd %{_webapp}
430
06317756 431%pre common
78794d78
ER
432%groupadd -g 111 zabbix
433%useradd -d / -u 111 -g zabbix -c "Zabbix User" -s /bin/false zabbix
68fab610 434%addusertogroup -q zabbix proc
10a854a6 435
06317756
JK
436%postun common
437if [ "$1" = "0" ]; then
438 %userremove zabbix
439 %groupremove zabbix
440fi
441
7efbcfc2 442%post server-mysql
96b8972f 443if [ "$1" = 1 ]; then
cd323295 444 %banner -e %{name}-server <<-EOF
c4962172 445 You should create database for Zabbix.
7efbcfc2 446
cd323295 447 Running these should be fine in most cases:
c4962172 448 mysqladmin create zabbix
7efbcfc2
JK
449 zcat %{_docdir}/%{name}-server-mysql-%{version}/schema.sql.gz | mysql zabbix
450 zcat %{_docdir}/%{name}-server-mysql-%{version}/images.sql.gz | mysql zabbix
451 zcat %{_docdir}/%{name}-server-mysql-%{version}/data.sql.gz | mysql zabbix
452EOF
453fi
454ln -sf %{_sbindir}/zabbix_server-mysql %{_sbindir}/zabbix_server || :
455
456%post server-postgresql
457if [ "$1" = 1 ]; then
458 %banner -e %{name}-server <<-EOF
459 You should create database for Zabbix.
460
461 Running these should be fine in most cases:
462
463 createuser zabbix
464 createdb -O zabbix zabbix
465 zcat %{_docdir}/%{name}-server-postgresql-%{version}/schema.sql.gz | psql -u zabbix zabbix
466 zcat %{_docdir}/%{name}-server-postgresql-%{version}/images.sql.gz | psql -u zabbix zabbix
467 zcat %{_docdir}/%{name}-server-postgresql-%{version}/data.sql.gz | psql -u zabbix zabbix
468EOF
469fi
470ln -sf %{_sbindir}/zabbix_server-postgresql %{_sbindir}/zabbix_server || :
471
7efbcfc2 472%post server
06317756 473%systemd_post zabbix_server.service
c4962172 474
06317756
JK
475%preun server
476%systemd_preun zabbix_server.service
477
478%postun server
7efbcfc2
JK
479if [ "$1" = "0" ]; then
480 if [ -L %{_sbindir}/zabbix_server ] ; then
481 rm -f %{_sbindir}/zabbix_server || :
482 fi
483fi
06317756
JK
484%systemd_reload
485
486%post agentd
487%systemd_post zabbix_agentd.service
488
489%preun agentd
490%systemd_preun zabbix_agentd.service
491
492%postun agentd
493%systemd_reload
494
7efbcfc2
JK
495%post proxy-mysql
496ln -sf %{_sbindir}/zabbix_proxy-mysql %{_sbindir}/zabbix_proxy || :
497
498%post proxy-postgresql
499ln -sf %{_sbindir}/zabbix_proxy-postgresql %{_sbindir}/zabbix_proxy || :
500
501%post proxy-sqlite3
502ln -sf %{_sbindir}/zabbix_proxy-sqlite3 %{_sbindir}/zabbix_proxy || :
503
06317756
JK
504%post proxy
505%systemd_post zabbix_proxy.service
506
507%preun proxy
508%systemd_preun zabbix_proxy.service
509
510%postun proxy
511%systemd_reload
512
513%post java
514%systemd_post zabbix_java.service
515
516%preun java
517%systemd_preun zabbix_java.service
518
519%postun java
520%systemd_reload
10a854a6 521
10a854a6
TO
522%files
523%defattr(644,root,root,755)
cd323295 524%doc AUTHORS ChangeLog README
06317756
JK
525
526%files common
527%defattr(644,root,root,755)
528%doc AUTHORS ChangeLog README
529%attr(751,root,zabbix) %dir %{_sysconfdir}
530%attr(751,root,http) %dir %{_sysconfdir}/frontend
e4c376d6 531%dir %{_appdir}
7dcff817 532%dir %{_appdir}/frontends
06317756
JK
533%dir %attr(770,root,zabbix) /run/zabbix
534%dir %attr(775,root,zabbix) /var/log/zabbix
6594aa3f 535%{systemdtmpfilesdir}/zabbix.conf
10a854a6 536
cd323295 537%files agentd
10a854a6 538%defattr(644,root,root,755)
3e3c35a0 539%doc conf/zabbix_agentd/*.conf
7dcff817 540%attr(640,root,zabbix) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zabbix_agentd.conf
3e3c35a0 541%dir %attr(751,root,zabbix) %{_sysconfdir}/zabbix_agentd.conf.d
b0f13a65 542%attr(755,root,root) %{_sbindir}/zabbix_agentd
ed93a3d2 543%{_mandir}/man8/zabbix_agentd*
06317756 544%{systemdunitdir}/zabbix_agentd.service
10a854a6 545
7dcff817 546%files frontend-php
10a854a6 547%defattr(644,root,root,755)
7dcff817 548%attr(750,root,http) %dir %{_webapps}/%{_webapp}
7132ad20
ER
549%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/apache.conf
550%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/httpd.conf
06317756
JK
551%ghost %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/frontend/zabbix.conf.php
552%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/frontend/.htaccess
553%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/frontend/maintenance.inc.php
554%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/frontend/zabbix.conf.php.example
7132ad20 555%{_appdir}/frontends/php
10a854a6 556
a7e2963d 557%files get
10a854a6 558%defattr(644,root,root,755)
ed93a3d2 559%attr(755,root,root) %{_bindir}/zabbix_get
560%{_mandir}/man1/zabbix_get*
10a854a6 561
2a82feb1 562%if %{any_database}
1b6bdd87 563%files proxy
564%defattr(644,root,root,755)
cd323295 565%attr(640,root,zabbix) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zabbix_proxy.conf
3e3c35a0 566%dir %attr(751,root,zabbix) %{_sysconfdir}/zabbix_proxy.conf.d
7efbcfc2 567%ghost %attr(755,root,root) %{_sbindir}/zabbix_proxy
1b6bdd87 568%{_mandir}/man8/zabbix_proxy*
06317756 569%{systemdunitdir}/zabbix_proxy.service
2a82feb1 570%endif
1b6bdd87 571
7efbcfc2
JK
572%if %{with mysql}
573%files proxy-mysql
574%defattr(644,root,root,755)
575%attr(755,root,root) %{_sbindir}/zabbix_proxy-mysql
576%endif
577
578%if %{with pgsql}
579%files proxy-postgresql
580%defattr(644,root,root,755)
581%attr(755,root,root) %{_sbindir}/zabbix_proxy-postgresql
582%endif
583
584%if %{with sqlite3}
585%files proxy-sqlite3
586%defattr(644,root,root,755)
587%attr(755,root,root) %{_sbindir}/zabbix_proxy-sqlite3
588%endif
589
7dcff817
TP
590%files sender
591%defattr(644,root,root,755)
ed93a3d2 592%attr(755,root,root) %{_bindir}/zabbix_sender
593%{_mandir}/man1/zabbix_sender*
7dcff817 594
2a82feb1 595%if %{any_database}
a7e2963d 596%files server
10a854a6 597%defattr(644,root,root,755)
cd323295 598%doc upgrades/dbpatches
7efbcfc2 599%attr(640,root,zabbix) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zabbix_server.conf
3e3c35a0 600%dir %attr(751,root,zabbix) %{_sysconfdir}/zabbix_server.conf.d
7efbcfc2
JK
601%ghost %attr(755,root,root) %{_sbindir}/zabbix_server
602%{_mandir}/man8/zabbix_server*
603%{systemdunitdir}/zabbix_server.service
2a82feb1 604%endif
7efbcfc2 605
cd323295 606%if %{with mysql}
7efbcfc2
JK
607%files server-mysql
608%defattr(644,root,root,755)
609%doc database/mysql/*.sql install-mysql/upgrade
610%attr(755,root,root) %{_sbindir}/zabbix_server-mysql
cd323295 611%endif
7efbcfc2 612
06317756 613%if %{with pgsql}
7efbcfc2
JK
614%files server-postgresql
615%defattr(644,root,root,755)
616%doc database/postgresql/*.sql install-postgresql/upgrade
617%attr(755,root,root) %{_sbindir}/zabbix_server-postgresql
cd323295 618%endif
7efbcfc2 619
cd323295
JK
620%if %{with java}
621%files java
622%defattr(644,root,root,755)
623%attr(755,root,root) %{_sbindir}/zabbix_java-start
624%attr(755,root,root) %{_sbindir}/zabbix_java-stop
625%attr(640,root,zabbix) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zabbix_java.conf
06317756
JK
626%attr(640,root,zabbix) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/java-logback.xml
627%attr(640,root,zabbix) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/java-logback-console.xml
cd323295
JK
628%dir %{_datadir}/zabbix_java
629%{_datadir}/zabbix_java/bin
630%{_datadir}/zabbix_java/lib
631%{_datadir}/zabbix_java/settings.sh
632%attr(755,root,root) %{_datadir}/zabbix_java/shutdown.sh
633%attr(755,root,root) %{_datadir}/zabbix_java/startup.sh
06317756 634%{systemdunitdir}/zabbix_java.service
cd323295 635%endif
This page took 0.167424 seconds and 4 git commands to generate.