]> git.pld-linux.org Git - packages/zabbix.git/blobdiff - zabbix.spec
Add 'zabbix' user to the 'proc' group
[packages/zabbix.git] / zabbix.spec
index ca734ef792c01ed4442647cd2f68d1b4e0790cd7..9117d9cb0816613c8d9ed87d3994c092dda4ea21 100644 (file)
@@ -8,17 +8,18 @@
 %bcond_without java    # disable java support
 
 %define databases %{?with_pgsql:postgresql} %{?with_mysql:mysql} %{?with_sqlite3:sqlite3}
+%define any_database %{with pgsql}%{with mysql}%{with sqlite3}
 
 %define                php_min_version 5.4.0
 Summary:       Zabbix - network monitoring software
 Summary(pl.UTF-8):     Zabbix - oprogramowanie do monitorowania sieci
 Name:          zabbix
-Version:       3.2.0
-Release:       0.3
+Version:       3.2.3
+Release:       2
 License:       GPL v2+
 Group:         Networking/Utilities
 Source0:       http://downloads.sourceforge.net/zabbix/%{name}-%{version}.tar.gz
-# Source0-md5: e2491b482868059f251902d5f636eacb
+# Source0-md5: b058115f9218b085310cd07bbbeb9cd0
 Source1:       %{name}-apache.conf
 Source2:       %{name}_server.service
 Source3:       %{name}_agentd.service
@@ -126,10 +127,14 @@ Requires: php(xml)
 Requires:      php(xmlreader)
 Requires:      php(xmlwriter)
 Requires:      webapps
+Requires:      webserver(alias)
+Requires:      webserver(indexfile)
 Requires:      webserver(php)
 Suggests:      php(mysql)
 Suggests:      php(pgsql)
 Suggests:      php(sqlite3)
+# used with sqlite3
+Suggests:      php(sysvsem)
 
 %description frontend-php
 This package provides web based (PHP) frontend for Zabbix.
@@ -272,9 +277,13 @@ Obsoletes: %{name}-server-postgresql
 %description server-sqlite3
 This package provides the Zabbix server binary for use with SQLite 3 database.
 
+NOTE: Support for SQLite 3 is EXPERIMENTAL and not recommended.
+
 %description server-sqlite3 -l pl.UTF-8
 Ten pakiet zawiera serwer Zabbiksa z obsługą bazy danych SQLite 3.
 
+INFO: Wsparcie dla SQLite 3 jest EKSPERYMENTALNE i nie rekomendowane.
+
 %package java
 Summary:       Zabbix Java Gateway
 Group:         Networking/Utilities
@@ -434,6 +443,7 @@ rm -rf $RPM_BUILD_ROOT
 %pre common
 %groupadd -g 111 zabbix
 %useradd -d / -u 111 -g zabbix -c "Zabbix User" -s /bin/false zabbix
+%addusertogroup -q zabbix proc
 
 %postun common
 if [ "$1" = "0" ]; then
@@ -553,7 +563,9 @@ ln -sf %{_sbindir}/zabbix_proxy-sqlite3 %{_sbindir}/zabbix_proxy || :
 
 %files agentd
 %defattr(644,root,root,755)
+%doc conf/zabbix_agentd/*.conf
 %attr(640,root,zabbix) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zabbix_agentd.conf
+%dir %attr(751,root,zabbix) %{_sysconfdir}/zabbix_agentd.conf.d
 %attr(755,root,root) %{_sbindir}/zabbix_agentd
 %{_mandir}/man8/zabbix_agentd*
 %{systemdunitdir}/zabbix_agentd.service
@@ -573,12 +585,15 @@ ln -sf %{_sbindir}/zabbix_proxy-sqlite3 %{_sbindir}/zabbix_proxy || :
 %attr(755,root,root) %{_bindir}/zabbix_get
 %{_mandir}/man1/zabbix_get*
 
+%if %{any_database}
 %files proxy
 %defattr(644,root,root,755)
 %attr(640,root,zabbix) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zabbix_proxy.conf
+%dir %attr(751,root,zabbix) %{_sysconfdir}/zabbix_proxy.conf.d
 %ghost %attr(755,root,root) %{_sbindir}/zabbix_proxy
 %{_mandir}/man8/zabbix_proxy*
 %{systemdunitdir}/zabbix_proxy.service
+%endif
 
 %if %{with mysql}
 %files proxy-mysql
@@ -603,13 +618,16 @@ ln -sf %{_sbindir}/zabbix_proxy-sqlite3 %{_sbindir}/zabbix_proxy || :
 %attr(755,root,root) %{_bindir}/zabbix_sender
 %{_mandir}/man1/zabbix_sender*
 
+%if %{any_database}
 %files server
 %defattr(644,root,root,755)
 %doc upgrades/dbpatches
 %attr(640,root,zabbix) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zabbix_server.conf
+%dir %attr(751,root,zabbix) %{_sysconfdir}/zabbix_server.conf.d
 %ghost %attr(755,root,root) %{_sbindir}/zabbix_server
 %{_mandir}/man8/zabbix_server*
 %{systemdunitdir}/zabbix_server.service
+%endif
 
 %if %{with mysql}
 %files server-mysql
This page took 0.097798 seconds and 4 git commands to generate.