|
|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
Name: zabbix
|
|
|
|
|
Version: 6.0.17
|
|
|
|
|
Release: %{?alphatag:%{?alphatag}.}release1%{?dist}.alma
|
|
|
|
|
Version: 6.0.41
|
|
|
|
|
Release: %{?alphatag:%{?alphatag}.}release1%{?dist}.alma.1
|
|
|
|
|
Summary: The Enterprise-class open source monitoring solution
|
|
|
|
|
Group: Applications/Internet
|
|
|
|
|
License: GPLv2+
|
|
|
|
|
@ -27,15 +27,20 @@ Source21: zabbix-agent2.init
|
|
|
|
|
Source22: zabbix-agent2.sysconfig
|
|
|
|
|
Source23: zabbix-web-service.service
|
|
|
|
|
Source24: zabbix_policy.te
|
|
|
|
|
Source25: zabbix_java_gateway_openjdk11.env
|
|
|
|
|
Source26: zabbix_java_gateway_openjdk17.env
|
|
|
|
|
Source27: zabbix_java_gateway_openjdk21.env
|
|
|
|
|
Patch0: frontend.patch
|
|
|
|
|
Patch1: fping3-sourceip-option.patch
|
|
|
|
|
Patch2: java-gateway.patch
|
|
|
|
|
Patch2: java-gateway-el8.patch
|
|
|
|
|
Patch3: conf.patch
|
|
|
|
|
Patch4: agent2.conf.patch
|
|
|
|
|
Patch5: rhel6-go11.6.patch
|
|
|
|
|
Patch6: conf.var.run.patch
|
|
|
|
|
Patch7: agent2.conf.var.run.patch
|
|
|
|
|
Patch8: agent2.conf.socket.patch
|
|
|
|
|
Patch9: java-gateway-el9.patch
|
|
|
|
|
Patch10: el6.conf.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
@ -44,22 +49,26 @@ BuildRequires: selinux-policy-devel
|
|
|
|
|
|
|
|
|
|
Buildroot: %{_tmppath}/zabbix-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
|
|
%{!?rhel: %global rhel 0}
|
|
|
|
|
%{!?amzn: %global amzn 0}
|
|
|
|
|
|
|
|
|
|
%{!?build_agent: %global build_agent 1}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} >= 6
|
|
|
|
|
%ifarch x86_64 aarch64
|
|
|
|
|
%if 0%{?rhel} >= 7 || %{amzn} >= 2023
|
|
|
|
|
%{!?build_agent2: %global build_agent2 1}
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{?rhel} >= 8
|
|
|
|
|
%if (0%{?rhel} >= 8 && 0%{?rhel} <= 9) || %{amzn} >= 2023
|
|
|
|
|
%{!?build_web_service: %global build_web_service 1}
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} >= 7
|
|
|
|
|
%if (0%{?rhel} >= 7 && 0%{?rhel} <= 9) || %{amzn} >= 2023
|
|
|
|
|
%{!?build_proxy: %global build_proxy 1}
|
|
|
|
|
%{!?build_java_gateway: %global build_java_gateway 1}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} >= 8
|
|
|
|
|
%if (0%{?rhel} >= 8 && 0%{?rhel} <= 9) || %{amzn} >= 2023
|
|
|
|
|
%{!?build_server: %global build_server 1}
|
|
|
|
|
%{!?build_frontend: %global build_frontend 1}
|
|
|
|
|
%endif
|
|
|
|
|
@ -77,7 +86,7 @@ Buildroot: %{_tmppath}/zabbix-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} >= 7
|
|
|
|
|
%if 0%{?rhel} >= 7 || %{amzn} >= 2023
|
|
|
|
|
%{!?build_selinux_policy: %global build_selinux_policy 1}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
@ -87,39 +96,43 @@ Buildroot: %{_tmppath}/zabbix-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# Enable hardening
|
|
|
|
|
%if 0%{?rhel} >= 8
|
|
|
|
|
%if 0%{?rhel} >= 8 || %{amzn} >= 2023
|
|
|
|
|
%global _hardened_build 1
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
%if 0%{?rhel} >= 8
|
|
|
|
|
%if 0%{?rhel} >= 8 || %{amzn} >= 2023
|
|
|
|
|
BuildRequires: mariadb-connector-c-devel
|
|
|
|
|
BuildRequires: postgresql-devel >= 12.0
|
|
|
|
|
BuildRequires: sqlite-devel
|
|
|
|
|
BuildRequires: net-snmp-devel
|
|
|
|
|
BuildRequires: openldap-devel
|
|
|
|
|
BuildRequires: gnutls-devel
|
|
|
|
|
BuildRequires: unixODBC-devel
|
|
|
|
|
BuildRequires: curl-devel >= 7.13.1
|
|
|
|
|
%if %{amzn} == 0
|
|
|
|
|
BuildRequires: OpenIPMI-devel >= 2
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: libssh-devel >= 0.9.0
|
|
|
|
|
BuildRequires: java-devel >= 1.6.0
|
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
|
BuildRequires: libevent-devel
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{?rhel} >= 7
|
|
|
|
|
%if 0%{?rhel} >= 7 || %{amzn} >= 2023
|
|
|
|
|
BuildRequires: pcre2-devel
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: pcre-devel
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{?rhel} >= 6
|
|
|
|
|
%if 0%{?rhel} >= 6 || %{amzn} >= 2023
|
|
|
|
|
BuildRequires: openssl-devel >= 1.0.1
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{?rhel} >= 7
|
|
|
|
|
%if 0%{?rhel} >= 7 || %{amzn} >= 2023
|
|
|
|
|
BuildRequires: systemd
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{?build_selinux_policy}
|
|
|
|
|
BuildRequires: policycoreutils-devel
|
|
|
|
|
%if 0%{?rhel} >= 9 || %{amzn} >= 2023
|
|
|
|
|
BuildRequires: selinux-policy-devel
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
@ -133,7 +146,7 @@ Summary: Zabbix agent
|
|
|
|
|
Group: Applications/Internet
|
|
|
|
|
Requires: logrotate
|
|
|
|
|
Requires(pre): /usr/sbin/useradd
|
|
|
|
|
%if 0%{?rhel} >= 7
|
|
|
|
|
%if 0%{?rhel} >= 7 || %{amzn} >= 2023
|
|
|
|
|
Requires(post): systemd
|
|
|
|
|
Requires(preun): systemd
|
|
|
|
|
Requires(preun): systemd
|
|
|
|
|
@ -162,7 +175,7 @@ To be installed on monitored systems.
|
|
|
|
|
Summary: Zabbix agent 2
|
|
|
|
|
Group: Applications/Internet
|
|
|
|
|
Requires: logrotate
|
|
|
|
|
%if 0%{?rhel} >= 7
|
|
|
|
|
%if 0%{?rhel} >= 7 || %{amzn} >= 2023
|
|
|
|
|
Requires(post): systemd
|
|
|
|
|
Requires(preun): systemd
|
|
|
|
|
Requires(preun): systemd
|
|
|
|
|
@ -386,11 +399,45 @@ Japanese font configuration for Zabbix web frontend
|
|
|
|
|
%package java-gateway
|
|
|
|
|
Summary: Zabbix java gateway
|
|
|
|
|
Group: Applications/Internet
|
|
|
|
|
Requires: java-headless >= 1.6.0
|
|
|
|
|
%if 0%{?rhel} == 7 || 0%{?rhel} == 8
|
|
|
|
|
Requires: zabbix-java-gateway-openjdk
|
|
|
|
|
%else
|
|
|
|
|
Requires: java-headless >= 1.8.0
|
|
|
|
|
%endif
|
|
|
|
|
Requires(post): systemd
|
|
|
|
|
Requires(preun): systemd
|
|
|
|
|
Requires(postun): systemd
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} == 7 || 0%{?rhel} == 8
|
|
|
|
|
%package java-gateway-openjdk11
|
|
|
|
|
Summary: Dependency metapackage for zabbix-java-gateway
|
|
|
|
|
Group: Applications/Internet
|
|
|
|
|
Requires: java-11-openjdk-headless
|
|
|
|
|
Provides: zabbix-java-gateway-openjdk
|
|
|
|
|
|
|
|
|
|
%description java-gateway-openjdk11
|
|
|
|
|
Dependency metapackage for zabbix-java-gateway
|
|
|
|
|
|
|
|
|
|
%package java-gateway-openjdk17
|
|
|
|
|
Summary: Dependency metapackage for zabbix-java-gateway
|
|
|
|
|
Group: Applications/Internet
|
|
|
|
|
Requires: java-17-openjdk-headless
|
|
|
|
|
Provides: zabbix-java-gateway-openjdk
|
|
|
|
|
|
|
|
|
|
%description java-gateway-openjdk17
|
|
|
|
|
Dependency metapackage for zabbix-java-gateway
|
|
|
|
|
|
|
|
|
|
%package java-gateway-openjdk21
|
|
|
|
|
Summary: Dependency metapackage for zabbix-java-gateway
|
|
|
|
|
Group: Applications/Internet
|
|
|
|
|
Requires: java-21-openjdk-headless
|
|
|
|
|
Provides: zabbix-java-gateway-openjdk
|
|
|
|
|
|
|
|
|
|
%description java-gateway-openjdk21
|
|
|
|
|
Dependency metapackage for zabbix-java-gateway
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description java-gateway
|
|
|
|
|
Zabbix java gateway
|
|
|
|
|
%endif
|
|
|
|
|
@ -444,7 +491,6 @@ find ui/locale -name '*.sh' | xargs rm -f
|
|
|
|
|
# traceroute command path for global script
|
|
|
|
|
sed -i -e 's|/usr/bin/traceroute|/bin/traceroute|' database/mysql/data.sql
|
|
|
|
|
sed -i -e 's|/usr/bin/traceroute|/bin/traceroute|' database/postgresql/data.sql
|
|
|
|
|
sed -i -e 's|/usr/bin/traceroute|/bin/traceroute|' database/sqlite3/data.sql
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?build_server}
|
|
|
|
|
@ -469,6 +515,9 @@ mv database/sqlite3/schema.sql database/sqlite3/proxy.sql
|
|
|
|
|
|
|
|
|
|
%if 0%{?build_java_gateway}
|
|
|
|
|
%patch2 -p1
|
|
|
|
|
%if 0%{?amzn} >= 2023 || 0%{?rhel} >= 9
|
|
|
|
|
%patch9 -p1
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# update config files
|
|
|
|
|
@ -492,6 +541,12 @@ mv database/sqlite3/schema.sql database/sqlite3/proxy.sql
|
|
|
|
|
%patch8 -p1
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} <= 6
|
|
|
|
|
%if 0%{?build_agent2}
|
|
|
|
|
%patch10 -p1
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
# Build consists of 1-3 configure/make passes, one for each database.
|
|
|
|
|
# pass 1: is sqlite proxy, may be omitted.
|
|
|
|
|
@ -506,21 +561,23 @@ build_conf_common="
|
|
|
|
|
--with-net-snmp
|
|
|
|
|
--with-ldap
|
|
|
|
|
--with-libcurl
|
|
|
|
|
%if %{amzn} == 0
|
|
|
|
|
--with-openipmi
|
|
|
|
|
%endif
|
|
|
|
|
--with-unixodbc
|
|
|
|
|
%if 0%{?rhel} >= 8
|
|
|
|
|
%if 0%{?rhel} >= 8 || %{amzn} >= 2023
|
|
|
|
|
--with-ssh
|
|
|
|
|
%else
|
|
|
|
|
--with-ssh2
|
|
|
|
|
%endif
|
|
|
|
|
--with-libxml2
|
|
|
|
|
--with-libevent
|
|
|
|
|
%if 0%{?rhel} >= 7
|
|
|
|
|
%if 0%{?rhel} >= 7 || %{amzn} >= 2023
|
|
|
|
|
--with-libpcre2
|
|
|
|
|
%else
|
|
|
|
|
--with-libpcre
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{?rhel} >= 6
|
|
|
|
|
%if 0%{?rhel} >= 6 || %{amzn} >= 2023
|
|
|
|
|
--with-openssl
|
|
|
|
|
%endif
|
|
|
|
|
"
|
|
|
|
|
@ -602,7 +659,7 @@ make_flags="$make_flags ALERT_SCRIPTS_PATH=/usr/lib/zabbix/alertscripts"
|
|
|
|
|
# pass 1
|
|
|
|
|
if [ -n "$build_conf_1" ]; then
|
|
|
|
|
%configure $build_conf_common $build_conf_1
|
|
|
|
|
make $make_flags
|
|
|
|
|
make -j16 $make_flags
|
|
|
|
|
mv src/zabbix_proxy/zabbix_proxy src/zabbix_proxy/zabbix_proxy_sqlite3
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
@ -610,7 +667,7 @@ fi
|
|
|
|
|
# pass 2
|
|
|
|
|
if [ -n "$build_conf_2" ]; then
|
|
|
|
|
%configure $build_conf_common $build_conf_2
|
|
|
|
|
make $make_flags
|
|
|
|
|
make -j16 $make_flags
|
|
|
|
|
%if 0%{?build_server}
|
|
|
|
|
mv src/zabbix_server/zabbix_server src/zabbix_server/zabbix_server_pgsql
|
|
|
|
|
%endif
|
|
|
|
|
@ -623,7 +680,7 @@ fi
|
|
|
|
|
# pass 3
|
|
|
|
|
if [ -n "$build_conf_3" ]; then
|
|
|
|
|
%configure $build_conf_common $build_conf_3
|
|
|
|
|
make $make_flags
|
|
|
|
|
make -j16 $make_flags
|
|
|
|
|
%if 0%{?build_server}
|
|
|
|
|
mv src/zabbix_server/zabbix_server "src/zabbix_server/zabbix_server_$build_db_3"
|
|
|
|
|
%endif
|
|
|
|
|
@ -670,7 +727,7 @@ install -dm 755 $RPM_BUILD_ROOT%{_docdir}/zabbix-agent-%{version}
|
|
|
|
|
cat %{SOURCE3} | sed \
|
|
|
|
|
-e 's|COMPONENT|agentd|g' \
|
|
|
|
|
> $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/zabbix-agent
|
|
|
|
|
%if 0%{?rhel} >= 7
|
|
|
|
|
%if 0%{?rhel} >= 7 || %{amzn} >= 2023
|
|
|
|
|
install -Dm 0644 -p %{SOURCE10} $RPM_BUILD_ROOT%{_unitdir}/zabbix-agent.service
|
|
|
|
|
install -Dm 0644 -p %{SOURCE15} $RPM_BUILD_ROOT%{_tmpfilesdir}/zabbix-agent.conf
|
|
|
|
|
%else
|
|
|
|
|
@ -690,7 +747,7 @@ cat %{SOURCE3} | sed \
|
|
|
|
|
-e 's|COMPONENT|agent2|g' \
|
|
|
|
|
> $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/zabbix-agent2
|
|
|
|
|
cp man/zabbix_agent2.man $RPM_BUILD_ROOT%{_mandir}/man8/zabbix_agent2.8
|
|
|
|
|
%if 0%{?rhel} >= 7
|
|
|
|
|
%if 0%{?rhel} >= 7 || %{amzn} >= 2023
|
|
|
|
|
install -Dm 0644 -p %{SOURCE19} $RPM_BUILD_ROOT%{_unitdir}/zabbix-agent2.service
|
|
|
|
|
install -Dm 0644 -p %{SOURCE15} $RPM_BUILD_ROOT%{_tmpfilesdir}/zabbix_agent2.conf
|
|
|
|
|
%else
|
|
|
|
|
@ -702,7 +759,7 @@ install -Dm 0644 -p %{SOURCE22} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/zabbix-a
|
|
|
|
|
|
|
|
|
|
%if 0%{?build_web_service}
|
|
|
|
|
cat %{SOURCE3} | sed \
|
|
|
|
|
-e 's|COMPONENT|web-service|g' \
|
|
|
|
|
-e 's|COMPONENT|web_service|g' \
|
|
|
|
|
> $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/zabbix-web-service
|
|
|
|
|
cp man/zabbix_web_service.man $RPM_BUILD_ROOT%{_mandir}/man8/zabbix_web_service.8
|
|
|
|
|
install -Dm 0644 -p %{SOURCE23} $RPM_BUILD_ROOT%{_unitdir}/zabbix-web-service.service
|
|
|
|
|
@ -725,24 +782,26 @@ cp database/mysql/proxy.sql $RPM_BUILD_ROOT%{_datadir}/zabbix-sql-scripts/mysql
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{?build_server}
|
|
|
|
|
cp database/mysql/server.sql.gz $RPM_BUILD_ROOT%{_datadir}/zabbix-sql-scripts/mysql
|
|
|
|
|
cp database/mysql/double.sql $RPM_BUILD_ROOT%{_datadir}/zabbix-sql-scripts/mysql
|
|
|
|
|
cp database/mysql/history_pk_prepare.sql $RPM_BUILD_ROOT%{_datadir}/zabbix-sql-scripts/mysql
|
|
|
|
|
cp database/mysql/option-patches/double.sql $RPM_BUILD_ROOT%{_datadir}/zabbix-sql-scripts/mysql
|
|
|
|
|
cp database/mysql/option-patches/history_pk_prepare.sql $RPM_BUILD_ROOT%{_datadir}/zabbix-sql-scripts/mysql
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?build_with_pgsql}
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/zabbix-sql-scripts/postgresql
|
|
|
|
|
mkdir $RPM_BUILD_ROOT%{_datadir}/zabbix-sql-scripts/postgresql/tsdb_history_pk_upgrade_no_compression
|
|
|
|
|
mkdir $RPM_BUILD_ROOT%{_datadir}/zabbix-sql-scripts/postgresql/tsdb_history_pk_upgrade_with_compression
|
|
|
|
|
%if 0%{?build_proxy}
|
|
|
|
|
cp database/postgresql/proxy.sql $RPM_BUILD_ROOT%{_datadir}/zabbix-sql-scripts/postgresql
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{?build_server}
|
|
|
|
|
cp database/postgresql/server.sql.gz $RPM_BUILD_ROOT%{_datadir}/zabbix-sql-scripts/postgresql
|
|
|
|
|
cp database/postgresql/timescaledb.sql $RPM_BUILD_ROOT%{_datadir}/zabbix-sql-scripts/postgresql
|
|
|
|
|
cp database/postgresql/double.sql $RPM_BUILD_ROOT%{_datadir}/zabbix-sql-scripts/postgresql
|
|
|
|
|
cp database/postgresql/history_pk_prepare.sql $RPM_BUILD_ROOT%{_datadir}/zabbix-sql-scripts/postgresql
|
|
|
|
|
cp database/postgresql/timescaledb/schema.sql $RPM_BUILD_ROOT%{_datadir}/zabbix-sql-scripts/postgresql/timescaledb.sql
|
|
|
|
|
cp database/postgresql/option-patches/double.sql $RPM_BUILD_ROOT%{_datadir}/zabbix-sql-scripts/postgresql
|
|
|
|
|
cp database/postgresql/option-patches/history_pk_prepare.sql $RPM_BUILD_ROOT%{_datadir}/zabbix-sql-scripts/postgresql
|
|
|
|
|
%endif
|
|
|
|
|
cp -R database/postgresql/tsdb_history_pk_upgrade_no_compression $RPM_BUILD_ROOT%{_datadir}/zabbix-sql-scripts/postgresql
|
|
|
|
|
cp -R database/postgresql/tsdb_history_pk_upgrade_with_compression $RPM_BUILD_ROOT%{_datadir}/zabbix-sql-scripts/postgresql
|
|
|
|
|
cp -R database/postgresql/timescaledb/option-patches/without-compression/*.sql $RPM_BUILD_ROOT%{_datadir}/zabbix-sql-scripts/postgresql/tsdb_history_pk_upgrade_no_compression
|
|
|
|
|
cp -R database/postgresql/timescaledb/option-patches/with-compression/*.sql $RPM_BUILD_ROOT%{_datadir}/zabbix-sql-scripts/postgresql/tsdb_history_pk_upgrade_with_compression
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?build_with_sqlite} && 0%{?build_proxy}
|
|
|
|
|
@ -798,6 +857,13 @@ rm $RPM_BUILD_ROOT%{_sbindir}/zabbix_java/lib/logback-console.xml
|
|
|
|
|
mv $RPM_BUILD_ROOT%{_sbindir}/zabbix_java $RPM_BUILD_ROOT%{_datadir}/zabbix-java-gateway
|
|
|
|
|
install -Dm 0644 -p %{SOURCE13} $RPM_BUILD_ROOT%{_unitdir}/zabbix-java-gateway.service
|
|
|
|
|
install -Dm 0644 -p %{SOURCE15} $RPM_BUILD_ROOT%{_tmpfilesdir}/zabbix-java-gateway.conf
|
|
|
|
|
%if 0%{?rhel} >= 7 && 0%{?rhel} <= 8
|
|
|
|
|
install -Dm 0755 -p %{SOURCE25} $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_java_gateway_openjdk11.env
|
|
|
|
|
%if 0%{?rhel} == 8
|
|
|
|
|
install -Dm 0755 -p %{SOURCE26} $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_java_gateway_openjdk17.env
|
|
|
|
|
install -Dm 0755 -p %{SOURCE27} $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_java_gateway_openjdk21.env
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -806,7 +872,6 @@ mkdir -p $RPM_BUILD_ROOT%{_datadir}/selinux/packages/zabbix
|
|
|
|
|
mv zabbix_policy.pp $RPM_BUILD_ROOT%{_datadir}/selinux/packages/zabbix
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
@ -828,7 +893,7 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
%attr(0755,zabbix,zabbix) %dir %{_localstatedir}/run/zabbix
|
|
|
|
|
%{_sbindir}/zabbix_agentd
|
|
|
|
|
%{_mandir}/man8/zabbix_agentd.8*
|
|
|
|
|
%if 0%{?rhel} >= 7
|
|
|
|
|
%if 0%{?rhel} >= 7 || %{amzn} >= 2023
|
|
|
|
|
%{_unitdir}/zabbix-agent.service
|
|
|
|
|
%{_tmpfilesdir}/zabbix-agent.conf
|
|
|
|
|
%else
|
|
|
|
|
@ -856,7 +921,7 @@ getent passwd zabbix > /dev/null || \
|
|
|
|
|
:
|
|
|
|
|
|
|
|
|
|
%post agent
|
|
|
|
|
%if 0%{?rhel} >= 7
|
|
|
|
|
%if 0%{?rhel} >= 7 || %{amzn} >= 2023
|
|
|
|
|
%systemd_post zabbix-agent.service
|
|
|
|
|
%else
|
|
|
|
|
/sbin/chkconfig --add zabbix-agent || :
|
|
|
|
|
@ -864,7 +929,7 @@ getent passwd zabbix > /dev/null || \
|
|
|
|
|
|
|
|
|
|
%preun agent
|
|
|
|
|
if [ "$1" = 0 ]; then
|
|
|
|
|
%if 0%{?rhel} >= 7
|
|
|
|
|
%if 0%{?rhel} >= 7 || %{amzn} >= 2023
|
|
|
|
|
%systemd_preun zabbix-agent.service
|
|
|
|
|
%else
|
|
|
|
|
/sbin/service zabbix-agent stop >/dev/null 2>&1
|
|
|
|
|
@ -874,7 +939,7 @@ fi
|
|
|
|
|
:
|
|
|
|
|
|
|
|
|
|
%postun agent
|
|
|
|
|
%if 0%{?rhel} >= 7
|
|
|
|
|
%if 0%{?rhel} >= 7 || %{amzn} >= 2023
|
|
|
|
|
%systemd_postun_with_restart zabbix-agent.service
|
|
|
|
|
%else
|
|
|
|
|
if [ $1 -ge 1 ]; then
|
|
|
|
|
@ -912,7 +977,7 @@ fi
|
|
|
|
|
%attr(0755,zabbix,zabbix) %dir %{_localstatedir}/run/zabbix
|
|
|
|
|
%{_sbindir}/zabbix_agent2
|
|
|
|
|
%{_mandir}/man8/zabbix_agent2.8*
|
|
|
|
|
%if 0%{?rhel} >= 7
|
|
|
|
|
%if 0%{?rhel} >= 7 || %{amzn} >= 2023
|
|
|
|
|
%{_unitdir}/zabbix-agent2.service
|
|
|
|
|
%{_tmpfilesdir}/zabbix_agent2.conf
|
|
|
|
|
%else
|
|
|
|
|
@ -928,7 +993,7 @@ getent passwd zabbix > /dev/null || \
|
|
|
|
|
:
|
|
|
|
|
|
|
|
|
|
%post agent2
|
|
|
|
|
%if 0%{?rhel} >= 7
|
|
|
|
|
%if 0%{?rhel} >= 7 || %{amzn} >= 2023
|
|
|
|
|
%systemd_post zabbix-agent2.service
|
|
|
|
|
%endif
|
|
|
|
|
# make sure that agent2 log file is create with proper attributes (ZBX-18243)
|
|
|
|
|
@ -938,7 +1003,7 @@ if [ $1 == 1 ] && [ ! -f %{_localstatedir}/log/zabbix/zabbix_agent2.log ]; then
|
|
|
|
|
fi
|
|
|
|
|
:
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} >= 7
|
|
|
|
|
%if 0%{?rhel} >= 7 || %{amzn} >= 2023
|
|
|
|
|
%preun agent2
|
|
|
|
|
%systemd_preun zabbix-agent2.service
|
|
|
|
|
:
|
|
|
|
|
@ -1276,7 +1341,7 @@ then
|
|
|
|
|
rm %{_datadir}/zabbix/fonts/graphfont.ttf
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
%if 0%{?rhel} >= 9
|
|
|
|
|
%if 0%{?rhel} >= 9 || %{amzn} >= 2023
|
|
|
|
|
# remove bad link to fonts/dejavu/DejaVuSans.ttf during upgrade on rhel 9
|
|
|
|
|
if [ "$1" = 2 ]; then
|
|
|
|
|
/usr/sbin/update-alternatives --remove zabbix-web-font \
|
|
|
|
|
@ -1284,7 +1349,7 @@ if [ "$1" = 2 ]; then
|
|
|
|
|
fi
|
|
|
|
|
%endif
|
|
|
|
|
/usr/sbin/update-alternatives --install %{_datadir}/zabbix/assets/fonts/graphfont.ttf \
|
|
|
|
|
%if 0%{?rhel} >= 9
|
|
|
|
|
%if 0%{?rhel} >= 9 || %{amzn} >= 2023
|
|
|
|
|
zabbix-web-font %{_datadir}/fonts/dejavu-sans-fonts/DejaVuSans.ttf 10
|
|
|
|
|
%else
|
|
|
|
|
zabbix-web-font %{_datadir}/fonts/dejavu/DejaVuSans.ttf 10
|
|
|
|
|
@ -1312,7 +1377,7 @@ fi
|
|
|
|
|
|
|
|
|
|
%preun web
|
|
|
|
|
if [ "$1" = 0 ]; then
|
|
|
|
|
%if 0%{?rhel} >= 9
|
|
|
|
|
%if 0%{?rhel} >= 9 || %{amzn} >= 2023
|
|
|
|
|
/usr/sbin/update-alternatives --remove zabbix-web-font \
|
|
|
|
|
%{_datadir}/fonts/dejavu-sans-fonts/DejaVuSans.ttf
|
|
|
|
|
%else
|
|
|
|
|
@ -1365,8 +1430,23 @@ fi
|
|
|
|
|
%postun java-gateway
|
|
|
|
|
%systemd_postun_with_restart zabbix-java-gateway.service
|
|
|
|
|
:
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} == 7 || 0%{?rhel} == 8
|
|
|
|
|
%files java-gateway-openjdk11
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%{_sysconfdir}/zabbix/zabbix_java_gateway_openjdk11.env
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} == 8
|
|
|
|
|
%files java-gateway-openjdk17
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%{_sysconfdir}/zabbix/zabbix_java_gateway_openjdk17.env
|
|
|
|
|
|
|
|
|
|
%files java-gateway-openjdk21
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%{_sysconfdir}/zabbix/zabbix_java_gateway_openjdk21.env
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?build_selinux_policy}
|
|
|
|
|
%files selinux-policy
|
|
|
|
|
@ -1386,8 +1466,183 @@ if [ $1 = 0 ] && semodule -l | grep -q zabbix_policy; then semodule -r zabbix_po
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon May 22 2023 Eduard Abdullin <eabdullin@almalinux.org> - 6.0.17-release1.alma
|
|
|
|
|
- update to 6.0.17
|
|
|
|
|
* Wed Sep 10 2025 Eduard Abdullin <eabdullin@almalinux.org> - 6.0.41-release1.alma
|
|
|
|
|
- Add BR
|
|
|
|
|
|
|
|
|
|
* Tue Aug 19 2025 Zabbix Packager <info@zabbix.com> - 6.0.41-release1
|
|
|
|
|
- update to 6.0.41
|
|
|
|
|
|
|
|
|
|
* Tue Aug 12 2025 Zabbix Packager <info@zabbix.com> - 6.0.41-rc1.release1
|
|
|
|
|
- update to 6.0.41rc1
|
|
|
|
|
- removed agent2 on el6, does not compile anymore
|
|
|
|
|
|
|
|
|
|
* Tue Apr 22 2025 Zabbix Packager <info@zabbix.com> - 6.0.40-release1
|
|
|
|
|
- update to 6.0.40
|
|
|
|
|
|
|
|
|
|
* Mon Apr 14 2025 Zabbix Packager <info@zabbix.com> - 6.0.40-rc1.release1
|
|
|
|
|
- update to 6.0.40rc1
|
|
|
|
|
|
|
|
|
|
* Mon Mar 17 2025 Zabbix Packager <info@zabbix.com> - 6.0.39-release3
|
|
|
|
|
- added el6.conf.patch (ZBX-26267)
|
|
|
|
|
|
|
|
|
|
* Mon Mar 17 2025 Zabbix Packager <info@zabbix.com> - 6.0.39-release2
|
|
|
|
|
- fixed zabbix_java_gateway*.env not found error (ZBX-26119)
|
|
|
|
|
|
|
|
|
|
* Mon Feb 24 2025 Zabbix Packager <info@zabbix.com> - 6.0.39-release1
|
|
|
|
|
- update to 6.0.39
|
|
|
|
|
|
|
|
|
|
* Mon Feb 17 2025 Zabbix Packager <info@zabbix.com> - 6.0.39-rc1.release1
|
|
|
|
|
- update to 6.0.39rc1
|
|
|
|
|
|
|
|
|
|
* Thu Feb 06 2025 Zabbix Packager <info@zabbix.com> - 6.0.38-release3
|
|
|
|
|
- added java-gateway patch for amnz2023
|
|
|
|
|
- added java-gateway-openjdk* packages on el8 (ZBX-25947)
|
|
|
|
|
- replaced java-gateway dependency with java-11-openjdk on el8
|
|
|
|
|
|
|
|
|
|
* Fri Jan 31 2025 Zabbix Packager <info@zabbix.com> - 6.0.38-release2
|
|
|
|
|
- fixed IPMI pollers
|
|
|
|
|
|
|
|
|
|
* Mon Jan 27 2025 Zabbix Packager <info@zabbix.com> - 6.0.38-release1
|
|
|
|
|
- update to 6.0.38
|
|
|
|
|
|
|
|
|
|
* Mon Jan 20 2025 Zabbix Packager <info@zabbix.com> - 6.0.38-rc1.release1
|
|
|
|
|
- update to 6.0.38rc1
|
|
|
|
|
- fixed path to optional database patches
|
|
|
|
|
|
|
|
|
|
* Tue Dec 17 2024 Zabbix Packager <info@zabbix.com> - 6.0.37-release1
|
|
|
|
|
- update to 6.0.37
|
|
|
|
|
- added support for amazon linux 2023
|
|
|
|
|
|
|
|
|
|
* Wed Dec 11 2024 Zabbix Packager <info@zabbix.com> - 6.0.37-rc1.release1
|
|
|
|
|
- update to 6.0.37rc1
|
|
|
|
|
|
|
|
|
|
* Tue Nov 19 2024 Zabbix Packager <info@zabbix.com> - 6.0.36-release1
|
|
|
|
|
- update to 6.0.36
|
|
|
|
|
|
|
|
|
|
* Tue Nov 12 2024 Zabbix Packager <info@zabbix.com> - 6.0.36-rc1.release1
|
|
|
|
|
- update to 6.0.36rc1
|
|
|
|
|
|
|
|
|
|
* Mon Oct 21 2024 Zabbix Packager <info@zabbix.com> - 6.0.35-release1
|
|
|
|
|
- update to 6.0.35
|
|
|
|
|
|
|
|
|
|
* Mon Oct 14 2024 Zabbix Packager <info@zabbix.com> - 6.0.35-rc1.release1
|
|
|
|
|
- update to 6.0.35rc1
|
|
|
|
|
|
|
|
|
|
* Fri Sep 27 2024 Zabbix Packager <info@zabbix.com> - 6.0.34-release2
|
|
|
|
|
- added OpenSSL compilation flags
|
|
|
|
|
|
|
|
|
|
* Thu Sep 26 2024 Zabbix Packager <info@zabbix.com> - 6.0.34-release1
|
|
|
|
|
- update to 6.0.34
|
|
|
|
|
|
|
|
|
|
* Tue Sep 24 2024 Zabbix Packager <info@zabbix.com> - 6.0.34-rc2.release1
|
|
|
|
|
- update to 6.0.34rc2
|
|
|
|
|
|
|
|
|
|
* Mon Sep 16 2024 Zabbix Packager <info@zabbix.com> - 6.0.34-rc1.release1
|
|
|
|
|
- update to 6.0.34rc1
|
|
|
|
|
|
|
|
|
|
* Tue Aug 13 2024 Zabbix Packager <info@zabbix.com> - 6.0.33-release2
|
|
|
|
|
- update to 6.0.33
|
|
|
|
|
|
|
|
|
|
* Tue Aug 06 2024 Zabbix Packager <info@zabbix.com> - 6.0.33-rc1.release2
|
|
|
|
|
- second release of 6.0.33rc1
|
|
|
|
|
|
|
|
|
|
* Tue Aug 06 2024 Zabbix Packager <info@zabbix.com> - 6.0.33-rc1.release1
|
|
|
|
|
- update to 6.0.33rc1
|
|
|
|
|
|
|
|
|
|
* Mon Jul 15 2024 Zabbix Packager <info@zabbix.com> - 6.0.32-release1
|
|
|
|
|
- update to 6.0.32
|
|
|
|
|
|
|
|
|
|
* Tue Jul 09 2024 Zabbix Packager <info@zabbix.com> - 6.0.32-rc1.release1
|
|
|
|
|
- update to 6.0.32rc1
|
|
|
|
|
|
|
|
|
|
* Mon Jun 17 2024 Zabbix Packager <info@zabbix.com> - 6.0.31-release1
|
|
|
|
|
- update to 6.0.31
|
|
|
|
|
|
|
|
|
|
* Mon Jun 10 2024 Zabbix Packager <info@zabbix.com> - 6.0.31-rc1.release1
|
|
|
|
|
- update to 6.0.31rc1
|
|
|
|
|
|
|
|
|
|
* Tue May 21 2024 Zabbix Packager <info@zabbix.com> - 6.0.30-release1
|
|
|
|
|
- update to 6.0.30
|
|
|
|
|
|
|
|
|
|
* Wed May 15 2024 Zabbix Packager <info@zabbix.com> - 6.0.30-rc1.release1
|
|
|
|
|
- update to 6.0.30rc1
|
|
|
|
|
|
|
|
|
|
* Mon Apr 22 2024 Zabbix Packager <info@zabbix.com> - 6.0.29-release1
|
|
|
|
|
- update to 6.0.29
|
|
|
|
|
|
|
|
|
|
* Mon Apr 15 2024 Zabbix Packager <info@zabbix.com> - 6.0.29-rc1.release1
|
|
|
|
|
- update to 6.0.29rc1
|
|
|
|
|
|
|
|
|
|
* Mon Mar 25 2024 Zabbix Packager <info@zabbix.com> - 6.0.28-release1
|
|
|
|
|
- update to 6.0.28
|
|
|
|
|
|
|
|
|
|
* Mon Mar 18 2024 Zabbix Packager <info@zabbix.com> - 6.0.28-rc1.release1
|
|
|
|
|
- update to 6.0.28rc1
|
|
|
|
|
|
|
|
|
|
* Mon Feb 26 2024 Zabbix Packager <info@zabbix.com> - 6.0.27-release1
|
|
|
|
|
- update to 6.0.27
|
|
|
|
|
|
|
|
|
|
* Mon Feb 19 2024 Zabbix Packager <info@zabbix.com> - 6.0.27-rc1.release1
|
|
|
|
|
- update to 6.0.27rc1
|
|
|
|
|
|
|
|
|
|
* Mon Jan 29 2024 Zabbix Packager <info@zabbix.com> - 6.0.26-release1
|
|
|
|
|
- update to 6.0.26
|
|
|
|
|
|
|
|
|
|
* Mon Jan 22 2024 Zabbix Packager <info@zabbix.com> - 6.0.26-rc1.release1
|
|
|
|
|
- update to 6.0.26rc1
|
|
|
|
|
|
|
|
|
|
* Wed Dec 13 2023 Zabbix Packager <info@zabbix.com> - 6.0.25-release1
|
|
|
|
|
- update to 6.0.25
|
|
|
|
|
|
|
|
|
|
* Thu Dec 07 2023 Zabbix Packager <info@zabbix.com> - 6.0.25-rc1.release1
|
|
|
|
|
- update to 6.0.25rc1
|
|
|
|
|
|
|
|
|
|
* Thu Nov 30 2023 Zabbix Packager <info@zabbix.com> - 6.0.24-release1
|
|
|
|
|
- update to 6.0.24
|
|
|
|
|
|
|
|
|
|
* Thu Nov 23 2023 Zabbix Packager <info@zabbix.com> - 6.0.24-rc1.release1
|
|
|
|
|
- update to 6.0.24rc1
|
|
|
|
|
- added After statements for postgresql 15 and 16 to server and proxy systemd unit files
|
|
|
|
|
|
|
|
|
|
* Tue Oct 31 2023 Zabbix Packager <info@zabbix.com> - 6.0.23-release1
|
|
|
|
|
- update to 6.0.23
|
|
|
|
|
|
|
|
|
|
* Mon Oct 23 2023 Zabbix Packager <info@zabbix.com> - 6.0.23-rc1.release1
|
|
|
|
|
- update to 6.0.23rc1
|
|
|
|
|
|
|
|
|
|
* Mon Sep 25 2023 Zabbix Packager <info@zabbix.com> - 6.0.22-release1
|
|
|
|
|
- update to 6.0.22
|
|
|
|
|
|
|
|
|
|
* Tue Sep 19 2023 Zabbix Packager <info@zabbix.com> - 6.0.22-rc1.release1
|
|
|
|
|
- update to 6.0.22rc1
|
|
|
|
|
|
|
|
|
|
* Wed Sep 06 2023 Zabbix Packager <info@zabbix.com> - 6.0.21-release2
|
|
|
|
|
- added support for aarch64
|
|
|
|
|
|
|
|
|
|
* Tue Aug 22 2023 Zabbix Packager <info@zabbix.com> - 6.0.21-release1
|
|
|
|
|
- update to 6.0.21
|
|
|
|
|
|
|
|
|
|
* Tue Aug 15 2023 Zabbix Packager <info@zabbix.com> - 6.0.21-rc1.release1
|
|
|
|
|
- update to 6.0.21rc1
|
|
|
|
|
- fixed web_service logrotate configuration file (ZBX-23169)
|
|
|
|
|
|
|
|
|
|
* Mon Jul 31 2023 Zabbix Packager <info@zabbix.com> - 6.0.20-release1
|
|
|
|
|
- update to 6.0.20
|
|
|
|
|
|
|
|
|
|
* Mon Jul 24 2023 Zabbix Packager <info@zabbix.com> - 6.0.20-rc1.release1
|
|
|
|
|
- update to 6.0.20rc1
|
|
|
|
|
|
|
|
|
|
* Tue Jun 27 2023 Zabbix Packager <info@zabbix.com> - 6.0.19-release1
|
|
|
|
|
- update to 6.0.19
|
|
|
|
|
|
|
|
|
|
* Mon Jun 19 2023 Zabbix Packager <info@zabbix.com> - 6.0.19-rc1.release1
|
|
|
|
|
- update to 6.0.19rc1
|
|
|
|
|
|
|
|
|
|
* Tue May 30 2023 Zabbix Packager <info@zabbix.com> - 6.0.18-release1
|
|
|
|
|
- update to 6.0.18
|
|
|
|
|
|
|
|
|
|
* Mon May 22 2023 Zabbix Packager <info@zabbix.com> - 6.0.18-rc1.release1
|
|
|
|
|
- update to 6.0.18rc1
|
|
|
|
|
|
|
|
|
|
* Mon Apr 24 2023 Zabbix Packager <info@zabbix.com> - 6.0.17-release1
|
|
|
|
|
- update to 6.0.17
|
|
|
|
|
|