X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;f=zabbix.spec;h=7d472360996da7b59b082a852484df2954860808;hb=6a45060fe891b74ccd92391fcb1f5a67e09d802c;hp=577c1752511d2be26f85ff69033b66c0fe84965d;hpb=228f0620b13ac9924232fa515b0b1cf46e861834;p=packages%2Fzabbix.git diff --git a/zabbix.spec b/zabbix.spec index 577c175..7d47236 100644 --- a/zabbix.spec +++ b/zabbix.spec @@ -10,16 +10,18 @@ %define databases %{?with_sqlite3:sqlite3} %{?with_pgsql:postgresql} %{?with_mysql:mysql} %define any_database %{with pgsql}%{with mysql}%{with sqlite3} +%define _noautoreq 'pear(.*\.php)' + %define php_min_version 5.4.0 Summary: Zabbix - network monitoring software Summary(pl.UTF-8): Zabbix - oprogramowanie do monitorowania sieci Name: zabbix -Version: 5.0.7 -Release: 0.3 +Version: 6.0.14 +Release: 1 License: GPL v2+ Group: Networking/Utilities -Source0: https://cdn.zabbix.com/zabbix/sources/stable/5.0/%{name}-%{version}.tar.gz -# Source0-md5: e0798bb1b53ab7b451556dc34c3b1827 +Source0: https://cdn.zabbix.com/zabbix/sources/stable/6.0/%{name}-%{version}.tar.gz +# Source0-md5: 199db00f68ce0ea14320ba926265fe9d Source1: %{name}-apache.conf Source2: %{name}_agentd.init Source3: %{name}_server.init @@ -413,7 +415,15 @@ EOF fi ln -sf %{_sbindir}/zabbix_server-postgresql %{_sbindir}/zabbix_server || : +%post server +/sbin/chkconfig --add zabbix_server +%service zabbix_server restart + %postun server +if [ "$1" = "0" ]; then + %service -q zabbix_server stop + /sbin/chkconfig --del zabbix_server +fi if [ "$1" = "0" ]; then if [ -L %{_sbindir}/zabbix_server ] ; then rm -f %{_sbindir}/zabbix_server || : @@ -439,6 +449,21 @@ ln -sf %{_sbindir}/zabbix_proxy-postgresql %{_sbindir}/zabbix_proxy || : %post proxy-sqlite3 ln -sf %{_sbindir}/zabbix_proxy-sqlite3 %{_sbindir}/zabbix_proxy || : +%post proxy +/sbin/chkconfig --add zabbix_server +%service zabbix_server restart + +%postun proxy +if [ "$1" = "0" ]; then + %service -q zabbix_proxy stop + /sbin/chkconfig --del zabbix_proxy +fi +if [ "$1" = "0" ]; then + if [ -L %{_sbindir}/zabbix_proxy ] ; then + rm -f %{_sbindir}/zabbix_proxy || : + fi +fi + %files %defattr(644,root,root,755) %doc AUTHORS ChangeLog README