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