]> git.pld-linux.org Git - packages/zabbix.git/blobdiff - zabbix.spec
Version: 3.4.4
[packages/zabbix.git] / zabbix.spec
index a4bf246812add67bbd6aa41059f9eec11b3dbbad..01d3a493aa48811ca5e0ae46201700607bccb375 100644 (file)
 Summary:       Zabbix - network monitoring software
 Summary(pl.UTF-8):     Zabbix - oprogramowanie do monitorowania sieci
 Name:          zabbix
-Version:       3.2.1
+Version:       3.4.4
 Release:       1
 License:       GPL v2+
 Group:         Networking/Utilities
 Source0:       http://downloads.sourceforge.net/zabbix/%{name}-%{version}.tar.gz
-# Source0-md5: 4f363b923ef2b5eefddee8dfc5f51e2b
+# Source0-md5: 3211dd373fa3424be3ab3a0ee9c48816
 Source1:       %{name}-apache.conf
 Source2:       %{name}_server.service
 Source3:       %{name}_agentd.service
@@ -28,18 +28,20 @@ Source5:    %{name}_java.service
 Source6:       %{name}.tmpfiles
 Patch0:                config.patch
 Patch1:                sqlite3_dbname.patch
-Patch2:                tag_conditions.patch
+Patch2:                sqlite3_dbname.patch
 URL:           http://zabbix.sourceforge.net/
 BuildRequires: OpenIPMI-devel
 BuildRequires: curl-devel
 BuildRequires: iksemel-devel
 %{?with_java:BuildRequires:    jdk}
+BuildRequires: libevent-devel
 BuildRequires: libssh2-devel
 BuildRequires: libxml2-devel
 %{?with_mysql:BuildRequires:   mysql-devel}
 BuildRequires: net-snmp-devel
 BuildRequires: openldap-devel >= 2.4.6
 BuildRequires: openssl-devel >= 0.9.7d
+BuildRequires: pcre-devel
 %{?with_pgsql:BuildRequires:   postgresql-devel}
 BuildRequires: rpmbuild(macros) >= 1.671
 %{?with_sqlite3:BuildRequires: sqlite3-devel}
@@ -136,6 +138,7 @@ Suggests:   php(pgsql)
 Suggests:      php(sqlite3)
 # used with sqlite3
 Suggests:      php(sysvsem)
+BuildArch:     noarch
 
 %description frontend-php
 This package provides web based (PHP) frontend for Zabbix.
@@ -159,8 +162,8 @@ Summary:    Zabbix proxy
 Summary(pl.UTF-8):     Proxy do Zabbiksa
 Group:         Networking/Utilities
 Requires:      %{name}-common = %{version}-%{release}
-Requires:      zabbix-proxy(db) = %{version}-%{release}
 Requires:      systemd-units >= 38
+Requires:      zabbix-proxy(db) = %{version}-%{release}
 
 %description proxy
 This package provides the Zabbix proxy.
@@ -173,8 +176,8 @@ Summary:    MySQL support for Zabbix proxy
 Summary(pl.UTF-8):     Obsługa MySQL dla proxy do Zabbiksa
 Group:         Networking/Utilities
 Provides:      %{name}-proxy(db) = %{version}-%{release}
-Obsoletes:     %{name}-proxy-postgresql
-Obsoletes:     %{name}-proxy-sqlite3
+Obsoletes:     zabbix-proxy-postgresql
+Obsoletes:     zabbix-proxy-sqlite3
 
 %description proxy-mysql
 This package provides the Zabbix proxy binary with MySQL support.
@@ -187,8 +190,8 @@ Summary:    PostgreSQL support for Zabbix proxy
 Summary(pl.UTF-8):     Obsługa PostgreSQL dla proxy do Zabbiksa
 Group:         Networking/Utilities
 Provides:      %{name}-proxy(db) = %{version}-%{release}
-Obsoletes:     %{name}-proxy-mysql
-Obsoletes:     %{name}-proxy-sqlite3
+Obsoletes:     zabbix-proxy-mysql
+Obsoletes:     zabbix-proxy-sqlite3
 
 %description proxy-postgresql
 This package provides the Zabbix proxy binary with PostgreSQL support.
@@ -201,8 +204,8 @@ Summary:    SQLite 3 support for Zabbix proxy
 Summary(pl.UTF-8):     Obsługa SQLite 3 dla proxy do Zabbiksa
 Group:         Networking/Utilities
 Provides:      %{name}-proxy(db) = %{version}-%{release}
-Obsoletes:     %{name}-proxy-mysql
-Obsoletes:     %{name}-proxy-postgresql
+Obsoletes:     zabbix-proxy-mysql
+Obsoletes:     zabbix-proxy-postgresql
 
 %description proxy-sqlite3
 This package provides the Zabbix proxy binary with SQLite 3 support.
@@ -243,11 +246,12 @@ Summary:  MySQL support for Zabbix server
 Summary(pl.UTF-8):     Obsługa MySQL sla serwera Zabbiksa
 Group:         Networking/Utilities
 Provides:      %{name}-server(db) = %{version}-%{release}
-Obsoletes:     %{name}-server-postgresql
-Obsoletes:     %{name}-server-sqlite3
+Obsoletes:     zabbix-server-postgresql
+Obsoletes:     zabbix-server-sqlite3
 
 %description server-mysql
-This package provides the Zabbix server binary for use with MySQL database.
+This package provides the Zabbix server binary for use with MySQL
+database.
 
 %description server-mysql -l pl.UTF-8
 Ten pakiet zawiera serwer Zabbiksa z obsługą bazy danych MySQL.
@@ -257,34 +261,16 @@ Summary:  PostgreSQL support for Zabbix server
 Summary(pl.UTF-8):     Obsługa PostgreSQL sla serwera Zabbiksa
 Group:         Networking/Utilities
 Provides:      %{name}-server(db) = %{version}-%{release}
-Obsoletes:     %{name}-server-mysql
-Obsoletes:     %{name}-server-sqlite3
+Obsoletes:     zabbix-server-mysql
+Obsoletes:     zabbix-server-sqlite3
 
 %description server-postgresql
-This package provides the Zabbix server binary for use with PostgreSQL database.
+This package provides the Zabbix server binary for use with PostgreSQL
+database.
 
 %description server-postgresql -l pl.UTF-8
 Ten pakiet zawiera serwer Zabbiksa z obsługą bazy danych PostgreSQL.
 
-%package server-sqlite3
-Summary:       SQLite 3 support for Zabbix server
-Summary(pl.UTF-8):     Obsługa SQLite 3 sla serwera Zabbiksa
-Group:         Networking/Utilities
-Requires(post):        /bin/zcat
-Provides:      %{name}-server(db) = %{version}-%{release}
-Obsoletes:     %{name}-server-mysql
-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
@@ -322,7 +308,7 @@ configure() {
 
 configure \
        --disable-server \
-       --disable-proxy 
+       --disable-proxy
 
 %{__make}
 
@@ -445,6 +431,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
@@ -482,21 +469,6 @@ EOF
 fi
 ln -sf %{_sbindir}/zabbix_server-postgresql %{_sbindir}/zabbix_server || :
 
-%post server-sqlite3
-if [ "$1" = 1 ]; then
-       if [ ! -f /var/lib/zabbix/zabbix.db ] ; then
-               %banner -e %{name}-server <<-EOF
-               Creating sqlite3 database for Zabbix in /var/lib/zabbix/zabbix.db
-EOF
-               zcat %{_docdir}/%{name}-server-sqlite3-%{version}/schema.sql.gz | sqlite3 /var/lib/zabbix/zabbix.db && \
-               zcat %{_docdir}/%{name}-server-sqlite3-%{version}/images.sql.gz | sqlite3 /var/lib/zabbix/zabbix.db && \
-               zcat %{_docdir}/%{name}-server-sqlite3-%{version}/data.sql.gz | sqlite3 /var/lib/zabbix/zabbix.db && \
-               chown zabbix:zabbix /var/lib/zabbix/zabbix.db && \
-               chmod 644 /var/lib/zabbix/zabbix.db || :
-       fi
-fi
-ln -sf %{_sbindir}/zabbix_server-sqlite3 %{_sbindir}/zabbix_server || :
-
 %post server
 %systemd_post zabbix_server.service
 
@@ -574,12 +546,13 @@ ln -sf %{_sbindir}/zabbix_proxy-sqlite3 %{_sbindir}/zabbix_proxy || :
 %files frontend-php
 %defattr(644,root,root,755)
 %attr(750,root,http) %dir %{_webapps}/%{_webapp}
-%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/*
-%{_appdir}/frontends/php
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/apache.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/httpd.conf
 %ghost %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/frontend/zabbix.conf.php
 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/frontend/.htaccess
 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/frontend/maintenance.inc.php
 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/frontend/zabbix.conf.php.example
+%{_appdir}/frontends/php
 
 %files get
 %defattr(644,root,root,755)
@@ -644,15 +617,6 @@ ln -sf %{_sbindir}/zabbix_proxy-sqlite3 %{_sbindir}/zabbix_proxy || :
 %attr(755,root,root) %{_sbindir}/zabbix_server-postgresql
 %endif
 
-%if %{with sqlite3}
-%files server-sqlite3
-%defattr(644,root,root,755)
-%doc database/sqlite3/*.sql
-%attr(755,root,root) %{_sbindir}/zabbix_server-sqlite3
-%dir %attr(771,root,zabbix) /var/lib/zabbix
-%ghost %attr(644,zabbix,zabbix) /var/lib/zabbix/zabbix.db
-%endif
-
 %if %{with java}
 %files java
 %defattr(644,root,root,755)
This page took 0.033764 seconds and 4 git commands to generate.