]> TLD Linux GIT Repositories - packages/zabbix.git/commitdiff
- updated to 6.0.2
authorMarcin Krol <hawk@tld-linux.org>
Thu, 24 Mar 2022 17:58:45 +0000 (18:58 +0100)
committerMarcin Krol <hawk@tld-linux.org>
Thu, 24 Mar 2022 17:58:45 +0000 (18:58 +0100)
always_compile_ipc.patch
sqlite3_dbname.patch
tld.patch
zabbix.spec

index 4551e8da0a8d631e0ad0a1dcf79c54e820117999..64773dc1fc8be95f996caa6161a2562d08f9034f 100644 (file)
@@ -1,7 +1,7 @@
-diff -ur zabbix-5.4.3.orig/configure.ac zabbix-5.4.3/configure.ac
---- zabbix-5.4.3.orig/configure.ac     2021-07-21 09:21:30.000000000 +0200
-+++ zabbix-5.4.3/configure.ac  2021-07-26 15:22:01.354383385 +0200
-@@ -1682,7 +1682,7 @@
+diff -ur zabbix-6.0.2.orig/configure.ac zabbix-6.0.2/configure.ac
+--- zabbix-6.0.2.orig/configure.ac     2022-03-24 18:49:21.146483364 +0100
++++ zabbix-6.0.2/configure.ac  2022-03-24 18:49:30.113504119 +0100
+@@ -1685,7 +1685,7 @@
  AM_CONDITIONAL(HAVE_LIBXML2, test "x$have_libxml2" = "xyes")
  
  dnl Check if Zabbix internal IPC services are used
index f6dcd6b52c925091074bc6647adad8953584fa42..7129df8ba176e2da3857273230bb769f11ceef3f 100644 (file)
@@ -1,7 +1,7 @@
-diff -ur zabbix-5.4.3.orig/conf/zabbix_proxy.conf zabbix-5.4.3/conf/zabbix_proxy.conf
---- zabbix-5.4.3.orig/conf/zabbix_proxy.conf   2021-07-26 15:14:02.107383385 +0200
-+++ zabbix-5.4.3/conf/zabbix_proxy.conf        2021-07-26 15:18:42.151383385 +0200
-@@ -160,6 +160,7 @@
+diff -ur zabbix-6.0.2.orig/conf/zabbix_proxy.conf zabbix-6.0.2/conf/zabbix_proxy.conf
+--- zabbix-6.0.2.orig/conf/zabbix_proxy.conf   2022-03-24 18:48:25.803355270 +0100
++++ zabbix-6.0.2/conf/zabbix_proxy.conf        2022-03-24 18:48:53.037418309 +0100
+@@ -153,6 +153,7 @@
  ### Option: DBName
  #     Database name.
  #     For SQLite3 path to database file must be provided. DBUser and DBPassword are ignored.
@@ -9,10 +9,10 @@ diff -ur zabbix-5.4.3.orig/conf/zabbix_proxy.conf zabbix-5.4.3/conf/zabbix_proxy
  #     If the Net Service Name connection method is used to connect to Oracle database, specify the service name from
  #     the tnsnames.ora file or set to empty string; also see the TWO_TASK environment variable if DBName is set to
  #     empty string.
-diff -ur zabbix-5.4.3.orig/src/libs/zbxdb/db.c zabbix-5.4.3/src/libs/zbxdb/db.c
---- zabbix-5.4.3.orig/src/libs/zbxdb/db.c      2021-07-19 16:04:10.000000000 +0200
-+++ zabbix-5.4.3/src/libs/zbxdb/db.c   2021-07-26 15:17:02.917383385 +0200
-@@ -388,6 +388,7 @@
+diff -ur zabbix-6.0.2.orig/src/libs/zbxdb/db.c zabbix-6.0.2/src/libs/zbxdb/db.c
+--- zabbix-6.0.2.orig/src/libs/zbxdb/db.c      2022-03-24 18:48:25.580354753 +0100
++++ zabbix-6.0.2/src/libs/zbxdb/db.c   2022-03-24 18:48:53.037418309 +0100
+@@ -402,6 +402,7 @@
        unsigned int    i = 0;
  #elif defined(HAVE_SQLITE3)
        char            *p, *path = NULL;
@@ -20,7 +20,7 @@ diff -ur zabbix-5.4.3.orig/src/libs/zbxdb/db.c zabbix-5.4.3/src/libs/zbxdb/db.c
  #endif
  
  #ifndef HAVE_MYSQL
-@@ -836,6 +837,10 @@
+@@ -851,6 +852,10 @@
        ZBX_UNUSED(ca);
        ZBX_UNUSED(cipher);
        ZBX_UNUSED(cipher_13);
index af7b49309f8fbc146ab4ba5dce4eaa8de271b891..262093f9880b9b4394b56f5b4a895755ea7424d0 100644 (file)
--- a/tld.patch
+++ b/tld.patch
@@ -1,6 +1,6 @@
-diff -ur zabbix-5.4.3.orig/conf/zabbix_agentd.conf zabbix-5.4.3/conf/zabbix_agentd.conf
---- zabbix-5.4.3.orig/conf/zabbix_agentd.conf  2021-07-19 16:04:10.000000000 +0200
-+++ zabbix-5.4.3/conf/zabbix_agentd.conf       2021-07-26 15:14:02.107383385 +0200
+diff -ur zabbix-6.0.2.orig/conf/zabbix_agentd.conf zabbix-6.0.2/conf/zabbix_agentd.conf
+--- zabbix-6.0.2.orig/conf/zabbix_agentd.conf  2022-03-14 10:57:00.000000000 +0100
++++ zabbix-6.0.2/conf/zabbix_agentd.conf       2022-03-24 18:45:54.814005822 +0100
 @@ -8,7 +8,7 @@
  #
  # Mandatory: no
@@ -19,7 +19,7 @@ diff -ur zabbix-5.4.3.orig/conf/zabbix_agentd.conf zabbix-5.4.3/conf/zabbix_agen
  
  ### Option: LogFileSize
  #     Maximum size of log file in MB.
-@@ -296,15 +296,12 @@
+@@ -302,15 +302,12 @@
  
  ### Option: Include
  #     You may include individual files or all files in a directory in the configuration file.
@@ -36,10 +36,10 @@ diff -ur zabbix-5.4.3.orig/conf/zabbix_agentd.conf zabbix-5.4.3/conf/zabbix_agen
  
  ####### USER-DEFINED MONITORED PARAMETERS #######
  
-diff -ur zabbix-5.4.3.orig/conf/zabbix_proxy.conf zabbix-5.4.3/conf/zabbix_proxy.conf
---- zabbix-5.4.3.orig/conf/zabbix_proxy.conf   2021-07-19 16:04:10.000000000 +0200
-+++ zabbix-5.4.3/conf/zabbix_proxy.conf        2021-07-26 15:14:02.107383385 +0200
-@@ -88,7 +88,7 @@
+diff -ur zabbix-6.0.2.orig/conf/zabbix_proxy.conf zabbix-6.0.2/conf/zabbix_proxy.conf
+--- zabbix-6.0.2.orig/conf/zabbix_proxy.conf   2022-03-14 10:57:00.000000000 +0100
++++ zabbix-6.0.2/conf/zabbix_proxy.conf        2022-03-24 18:45:54.815005824 +0100
+@@ -81,7 +81,7 @@
  # Default:
  # LogFile=
  
@@ -48,7 +48,7 @@ diff -ur zabbix-5.4.3.orig/conf/zabbix_proxy.conf zabbix-5.4.3/conf/zabbix_proxy
  
  ### Option: LogFileSize
  #     Maximum size of log file in MB.
-@@ -136,7 +136,7 @@
+@@ -129,7 +129,7 @@
  #
  # Mandatory: no
  # Default:
@@ -57,7 +57,7 @@ diff -ur zabbix-5.4.3.orig/conf/zabbix_proxy.conf zabbix-5.4.3/conf/zabbix_proxy
  
  ### Option: SocketDir
  #     IPC socket directory.
-@@ -595,15 +595,12 @@
+@@ -605,15 +605,12 @@
  
  ### Option: Include
  #     You may include individual files or all files in a directory in the configuration file.
@@ -74,9 +74,9 @@ diff -ur zabbix-5.4.3.orig/conf/zabbix_proxy.conf zabbix-5.4.3/conf/zabbix_proxy
  
  ### Option: SSLCertLocation
  #     Location of SSL client certificates.
-diff -ur zabbix-5.4.3.orig/conf/zabbix_server.conf zabbix-5.4.3/conf/zabbix_server.conf
---- zabbix-5.4.3.orig/conf/zabbix_server.conf  2021-07-19 16:04:10.000000000 +0200
-+++ zabbix-5.4.3/conf/zabbix_server.conf       2021-07-26 15:14:02.108383385 +0200
+diff -ur zabbix-6.0.2.orig/conf/zabbix_server.conf zabbix-6.0.2/conf/zabbix_server.conf
+--- zabbix-6.0.2.orig/conf/zabbix_server.conf  2022-03-14 10:57:00.000000000 +0100
++++ zabbix-6.0.2/conf/zabbix_server.conf       2022-03-24 18:45:54.815005824 +0100
 @@ -35,7 +35,7 @@
  # Default:
  # LogFile=
@@ -95,7 +95,7 @@ diff -ur zabbix-5.4.3.orig/conf/zabbix_server.conf zabbix-5.4.3/conf/zabbix_serv
  
  ### Option: SocketDir
  #     IPC socket directory.
-@@ -645,15 +645,12 @@
+@@ -654,15 +654,12 @@
  
  ### Option: Include
  #     You may include individual files or all files in a directory in the configuration file.
@@ -112,10 +112,10 @@ diff -ur zabbix-5.4.3.orig/conf/zabbix_server.conf zabbix-5.4.3/conf/zabbix_serv
  
  ### Option: SSLCertLocation
  #     Location of SSL client certificates.
-diff -ur zabbix-5.4.3.orig/src/zabbix_agent/zabbix_agentd.c zabbix-5.4.3/src/zabbix_agent/zabbix_agentd.c
---- zabbix-5.4.3.orig/src/zabbix_agent/zabbix_agentd.c 2021-07-19 16:04:10.000000000 +0200
-+++ zabbix-5.4.3/src/zabbix_agent/zabbix_agentd.c      2021-07-26 15:14:02.108383385 +0200
-@@ -605,7 +605,7 @@
+diff -ur zabbix-6.0.2.orig/src/zabbix_agent/zabbix_agentd.c zabbix-6.0.2/src/zabbix_agent/zabbix_agentd.c
+--- zabbix-6.0.2.orig/src/zabbix_agent/zabbix_agentd.c 2022-03-14 10:57:00.000000000 +0100
++++ zabbix-6.0.2/src/zabbix_agent/zabbix_agentd.c      2022-03-24 18:45:54.815005824 +0100
+@@ -607,7 +607,7 @@
                CONFIG_LOAD_MODULE_PATH = zbx_strdup(CONFIG_LOAD_MODULE_PATH, DEFAULT_LOAD_MODULE_PATH);
  
        if (NULL == CONFIG_PID_FILE)
@@ -124,9 +124,9 @@ diff -ur zabbix-5.4.3.orig/src/zabbix_agent/zabbix_agentd.c zabbix-5.4.3/src/zab
  #endif
        if (NULL == CONFIG_LOG_TYPE_STR)
                CONFIG_LOG_TYPE_STR = zbx_strdup(CONFIG_LOG_TYPE_STR, ZBX_OPTION_LOGTYPE_FILE);
-diff -ur zabbix-5.4.3.orig/src/zabbix_java/lib/logback.xml zabbix-5.4.3/src/zabbix_java/lib/logback.xml
---- zabbix-5.4.3.orig/src/zabbix_java/lib/logback.xml  2021-03-29 10:33:08.000000000 +0200
-+++ zabbix-5.4.3/src/zabbix_java/lib/logback.xml       2021-07-26 15:14:02.108383385 +0200
+diff -ur zabbix-6.0.2.orig/src/zabbix_java/lib/logback.xml zabbix-6.0.2/src/zabbix_java/lib/logback.xml
+--- zabbix-6.0.2.orig/src/zabbix_java/lib/logback.xml  2022-03-14 10:57:00.000000000 +0100
++++ zabbix-6.0.2/src/zabbix_java/lib/logback.xml       2022-03-24 18:45:54.816005826 +0100
 @@ -2,10 +2,10 @@
  
        <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
@@ -140,9 +140,9 @@ diff -ur zabbix-5.4.3.orig/src/zabbix_java/lib/logback.xml zabbix-5.4.3/src/zabb
                        <minIndex>1</minIndex>
                        <maxIndex>3</maxIndex>
                </rollingPolicy>
-diff -ur zabbix-5.4.3.orig/src/zabbix_java/settings.sh zabbix-5.4.3/src/zabbix_java/settings.sh
---- zabbix-5.4.3.orig/src/zabbix_java/settings.sh      2021-03-29 10:33:08.000000000 +0200
-+++ zabbix-5.4.3/src/zabbix_java/settings.sh   2021-07-26 15:14:02.109383385 +0200
+diff -ur zabbix-6.0.2.orig/src/zabbix_java/settings.sh zabbix-6.0.2/src/zabbix_java/settings.sh
+--- zabbix-6.0.2.orig/src/zabbix_java/settings.sh      2022-03-14 10:57:00.000000000 +0100
++++ zabbix-6.0.2/src/zabbix_java/settings.sh   2022-03-24 18:45:54.816005826 +0100
 @@ -24,7 +24,7 @@
  # Default:
  # PID_FILE=
@@ -152,10 +152,10 @@ diff -ur zabbix-5.4.3.orig/src/zabbix_java/settings.sh zabbix-5.4.3/src/zabbix_j
  
  ### Option: zabbix.startPollers
  #     Number of worker threads to start.
-diff -ur zabbix-5.4.3.orig/src/zabbix_proxy/proxy.c zabbix-5.4.3/src/zabbix_proxy/proxy.c
---- zabbix-5.4.3.orig/src/zabbix_proxy/proxy.c 2021-07-19 16:04:10.000000000 +0200
-+++ zabbix-5.4.3/src/zabbix_proxy/proxy.c      2021-07-26 15:14:02.109383385 +0200
-@@ -495,7 +495,7 @@
+diff -ur zabbix-6.0.2.orig/src/zabbix_proxy/proxy.c zabbix-6.0.2/src/zabbix_proxy/proxy.c
+--- zabbix-6.0.2.orig/src/zabbix_proxy/proxy.c 2022-03-14 10:57:00.000000000 +0100
++++ zabbix-6.0.2/src/zabbix_proxy/proxy.c      2022-03-24 18:45:54.816005826 +0100
+@@ -501,7 +501,7 @@
                CONFIG_SNMPTRAP_FILE = zbx_strdup(CONFIG_SNMPTRAP_FILE, "/tmp/zabbix_traps.tmp");
  
        if (NULL == CONFIG_PID_FILE)
@@ -164,10 +164,10 @@ diff -ur zabbix-5.4.3.orig/src/zabbix_proxy/proxy.c zabbix-5.4.3/src/zabbix_prox
  
        if (NULL == CONFIG_TMPDIR)
                CONFIG_TMPDIR = zbx_strdup(CONFIG_TMPDIR, "/tmp");
-diff -ur zabbix-5.4.3.orig/src/zabbix_server/server.c zabbix-5.4.3/src/zabbix_server/server.c
---- zabbix-5.4.3.orig/src/zabbix_server/server.c       2021-07-19 16:04:11.000000000 +0200
-+++ zabbix-5.4.3/src/zabbix_server/server.c    2021-07-26 15:14:02.110383385 +0200
-@@ -520,7 +520,7 @@
+diff -ur zabbix-6.0.2.orig/src/zabbix_server/server.c zabbix-6.0.2/src/zabbix_server/server.c
+--- zabbix-6.0.2.orig/src/zabbix_server/server.c       2022-03-14 10:57:00.000000000 +0100
++++ zabbix-6.0.2/src/zabbix_server/server.c    2022-03-24 18:45:54.817005828 +0100
+@@ -556,7 +556,7 @@
                CONFIG_SNMPTRAP_FILE = zbx_strdup(CONFIG_SNMPTRAP_FILE, "/tmp/zabbix_traps.tmp");
  
        if (NULL == CONFIG_PID_FILE)
@@ -176,9 +176,9 @@ diff -ur zabbix-5.4.3.orig/src/zabbix_server/server.c zabbix-5.4.3/src/zabbix_se
  
        if (NULL == CONFIG_ALERT_SCRIPTS_PATH)
                CONFIG_ALERT_SCRIPTS_PATH = zbx_strdup(CONFIG_ALERT_SCRIPTS_PATH, DEFAULT_ALERT_SCRIPTS_PATH);
-diff -ur zabbix-5.4.3.orig/ui/include/classes/core/CConfigFile.php zabbix-5.4.3/ui/include/classes/core/CConfigFile.php
---- zabbix-5.4.3.orig/ui/include/classes/core/CConfigFile.php  2021-07-19 16:04:11.000000000 +0200
-+++ zabbix-5.4.3/ui/include/classes/core/CConfigFile.php       2021-07-26 15:14:02.110383385 +0200
+diff -ur zabbix-6.0.2.orig/ui/include/classes/core/CConfigFile.php zabbix-6.0.2/ui/include/classes/core/CConfigFile.php
+--- zabbix-6.0.2.orig/ui/include/classes/core/CConfigFile.php  2022-03-14 10:57:00.000000000 +0100
++++ zabbix-6.0.2/ui/include/classes/core/CConfigFile.php       2022-03-24 18:45:54.817005828 +0100
 @@ -25,7 +25,7 @@
        const CONFIG_ERROR = 2;
        const CONFIG_VAULT_ERROR = 3;
@@ -188,10 +188,10 @@ diff -ur zabbix-5.4.3.orig/ui/include/classes/core/CConfigFile.php zabbix-5.4.3/
  
        private static $supported_db_types = [
                ZBX_DB_MYSQL => true,
-diff -ur zabbix-5.4.3.orig/ui/include/classes/core/ZBase.php zabbix-5.4.3/ui/include/classes/core/ZBase.php
---- zabbix-5.4.3.orig/ui/include/classes/core/ZBase.php        2021-07-19 16:04:11.000000000 +0200
-+++ zabbix-5.4.3/ui/include/classes/core/ZBase.php     2021-07-26 15:14:02.110383385 +0200
-@@ -373,7 +373,7 @@
+diff -ur zabbix-6.0.2.orig/ui/include/classes/core/ZBase.php zabbix-6.0.2/ui/include/classes/core/ZBase.php
+--- zabbix-6.0.2.orig/ui/include/classes/core/ZBase.php        2022-03-14 10:57:00.000000000 +0100
++++ zabbix-6.0.2/ui/include/classes/core/ZBase.php     2022-03-24 18:45:54.817005828 +0100
+@@ -368,7 +368,7 @@
         * @throws Exception
         */
        protected function setMaintenanceMode() {
@@ -200,7 +200,7 @@ diff -ur zabbix-5.4.3.orig/ui/include/classes/core/ZBase.php zabbix-5.4.3/ui/inc
  
                if (defined('ZBX_DENY_GUI_ACCESS')) {
                        if (!isset($ZBX_GUI_ACCESS_IP_RANGE) || !in_array(CWebUser::getIp(), $ZBX_GUI_ACCESS_IP_RANGE)) {
-@@ -386,7 +386,7 @@
+@@ -381,7 +381,7 @@
         * Load zabbix config file.
         */
        protected function loadConfigFile() {
@@ -209,19 +209,10 @@ diff -ur zabbix-5.4.3.orig/ui/include/classes/core/ZBase.php zabbix-5.4.3/ui/inc
                $config = new CConfigFile($configFile);
                $this->config = $config->load();
        }
-diff -ur zabbix-5.4.3.orig/ui/include/classes/setup/CSetupWizard.php zabbix-5.4.3/ui/include/classes/setup/CSetupWizard.php
---- zabbix-5.4.3.orig/ui/include/classes/setup/CSetupWizard.php        2021-07-19 16:04:11.000000000 +0200
-+++ zabbix-5.4.3/ui/include/classes/setup/CSetupWizard.php     2021-07-26 15:14:02.111383385 +0200
-@@ -618,7 +618,7 @@
-               $this->setConfig('ZBX_CONFIG_FILE_CORRECT', true);
--              $config_file_name = APP::getInstance()->getRootDir().CConfigFile::CONFIG_FILE_PATH;
-+              $config_file_name = CConfigFile::CONFIG_FILE_PATH;
-               $config = new CConfigFile($config_file_name);
-               $config->config = [
-                       'DB' => [
-@@ -970,7 +970,7 @@
+diff -ur zabbix-6.0.2.orig/ui/include/classes/setup/CSetupWizard.php zabbix-6.0.2/ui/include/classes/setup/CSetupWizard.php
+--- zabbix-6.0.2.orig/ui/include/classes/setup/CSetupWizard.php        2022-03-14 10:57:00.000000000 +0100
++++ zabbix-6.0.2/ui/include/classes/setup/CSetupWizard.php     2022-03-24 18:46:52.896140242 +0100
+@@ -271,7 +271,7 @@
                                // make zabbix.conf.php downloadable
                                header('Content-Type: application/x-httpd-php');
                                header('Content-Disposition: attachment; filename="'.basename(CConfigFile::CONFIG_FILE_PATH).'"');
@@ -230,3 +221,12 @@ diff -ur zabbix-5.4.3.orig/ui/include/classes/setup/CSetupWizard.php zabbix-5.4.
                                $config->config = [
                                        'DB' => [
                                                'TYPE' => $this->getConfig('DB_TYPE'),
+@@ -821,7 +821,7 @@
+               $this->setConfig('ZBX_CONFIG_FILE_CORRECT', true);
+-              $config_file_name = APP::getInstance()->getRootDir().CConfigFile::CONFIG_FILE_PATH;
++              $config_file_name = CConfigFile::CONFIG_FILE_PATH;
+               $config = new CConfigFile($config_file_name);
+               $config->config = [
+                       'DB' => [
index c3bf2af99d57f3c61c834347d5a196f96bb2b8a8..e461ec6161e0540871310410ade7288d9c12d07f 100644 (file)
 Summary:       Zabbix - network monitoring software
 Summary(pl.UTF-8):     Zabbix - oprogramowanie do monitorowania sieci
 Name:          zabbix
-Version:       5.4.3
+Version:       6.0.2
 Release:       1
 License:       GPL v2+
 Group:         Networking/Utilities
-Source0:       https://cdn.zabbix.com/zabbix/sources/stable/5.4/%{name}-%{version}.tar.gz
-# Source0-md5: 5dccb536c164e45c7d5c1a5a9d64be43
+Source0:       https://cdn.zabbix.com/zabbix/sources/stable/6.0/%{name}-%{version}.tar.gz
+# Source0-md5: 0f4e73d44b01374a65f18bfe521a3ee8
 Source1:       %{name}-apache.conf
 Source2:       %{name}_agentd.init
 Source3:       %{name}_server.init