git: 62a9b5415957 - main - textproc/kibana8: Update to 8.6.0

From: Juraj Lutter <otis_at_FreeBSD.org>
Date: Thu, 12 Jan 2023 10:36:55 UTC
The branch main has been updated by otis:

URL: https://cgit.FreeBSD.org/ports/commit/?id=62a9b541595791ea6223e66841b5cf0026c2f373

commit 62a9b541595791ea6223e66841b5cf0026c2f373
Author:     Juraj Lutter <otis@FreeBSD.org>
AuthorDate: 2023-01-12 08:20:08 +0000
Commit:     Juraj Lutter <otis@FreeBSD.org>
CommitDate: 2023-01-12 10:36:40 +0000

    textproc/kibana8: Update to 8.6.0
    
    Release notes:
    https://www.elastic.co/guide/en/kibana/8.6/release-notes-8.6.0.html
---
 textproc/kibana8/Makefile                                  |  4 ++--
 textproc/kibana8/distinfo                                  | 10 +++++-----
 textproc/kibana8/files/patch-config_kibana.yml             | 10 +++++-----
 .../patch-src_setup__node__env_node__version__validator.js | 14 ++++++++------
 4 files changed, 20 insertions(+), 18 deletions(-)

diff --git a/textproc/kibana8/Makefile b/textproc/kibana8/Makefile
index 833d77bebd89..26aee1ed15e4 100644
--- a/textproc/kibana8/Makefile
+++ b/textproc/kibana8/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	kibana
-DISTVERSION=	8.5.3
+DISTVERSION=	8.6.0
 DISTVERSIONSUFFIX=	-darwin-x86_64
 CATEGORIES=	textproc www
 MASTER_SITES=	https://artifacts.elastic.co/downloads/kibana/ \
@@ -47,7 +47,7 @@ BINS=		kibana-encryption-keys kibana-keystore kibana-plugin \
 # Set node-nan version here
 _NODE_NAN_VER=	2.17.0
 # Set node-re version here
-_NODE_RE2_VER=	1.17.8
+_NODE_RE2_VER=	1.18.0
 #######################################################################
 
 _NODECMD=	${LOCALBASE}/bin/node --version
diff --git a/textproc/kibana8/distinfo b/textproc/kibana8/distinfo
index 0c43143e6786..c7e906fffcdf 100644
--- a/textproc/kibana8/distinfo
+++ b/textproc/kibana8/distinfo
@@ -1,7 +1,7 @@
-TIMESTAMP = 1670966063
-SHA256 (kibana-8.5.3-darwin-x86_64.tar.gz) = 5df94f135e6b25fbce02618914544b18d1193e6e71a6daa8281afded896f8bb3
-SIZE (kibana-8.5.3-darwin-x86_64.tar.gz) = 150367363
+TIMESTAMP = 1673471563
+SHA256 (kibana-8.6.0-darwin-x86_64.tar.gz) = 82d0dc9f9bba0df0554e377b46a895ae1aec61a626b845173e1c5ace885754c4
+SIZE (kibana-8.6.0-darwin-x86_64.tar.gz) = 152583948
 SHA256 (nodejs-nan-v2.17.0_GH0.tar.gz) = bcf5dfe59c26377b2096d903ecf6c2dbdae92528b1373a0565c40fe07537610d
 SIZE (nodejs-nan-v2.17.0_GH0.tar.gz) = 179443
-SHA256 (uhop-node-re2-1.17.8_GH0.tar.gz) = 4cf8c52cd92ae26eff9b26a9a213ea25eb97fbe381da2a5755c6ea8015ee347f
-SIZE (uhop-node-re2-1.17.8_GH0.tar.gz) = 41523
+SHA256 (uhop-node-re2-1.18.0_GH0.tar.gz) = 1a756518dc35ee07318e414338afaa8186c03d5929a609c51259d978359ee6b8
+SIZE (uhop-node-re2-1.18.0_GH0.tar.gz) = 51921
diff --git a/textproc/kibana8/files/patch-config_kibana.yml b/textproc/kibana8/files/patch-config_kibana.yml
index 9fd5b414496c..c5420a65b3ad 100644
--- a/textproc/kibana8/files/patch-config_kibana.yml
+++ b/textproc/kibana8/files/patch-config_kibana.yml
@@ -1,11 +1,11 @@
---- config/kibana.yml.orig	2021-10-26 12:51:47 UTC
+--- config/kibana.yml.orig	2023-01-04 12:19:12 UTC
 +++ config/kibana.yml
-@@ -91,7 +91,7 @@
- #elasticsearch.logQueries: false
+@@ -125,7 +125,7 @@
+ #path.data: data
  
  # Specifies the path where Kibana creates the process ID file.
 -#pid.file: /run/kibana/kibana.pid
 +pid.file: /var/run/kibana.pid
  
- # Enables you to specify a file where Kibana stores log output.
- #logging.dest: stdout
+ # Set the interval in milliseconds to sample system and process performance
+ # metrics. Minimum is 100ms. Defaults to 5000ms.
diff --git a/textproc/kibana8/files/patch-src_setup__node__env_node__version__validator.js b/textproc/kibana8/files/patch-src_setup__node__env_node__version__validator.js
index 1bf9870031e9..16b7d7ade89a 100644
--- a/textproc/kibana8/files/patch-src_setup__node__env_node__version__validator.js
+++ b/textproc/kibana8/files/patch-src_setup__node__env_node__version__validator.js
@@ -1,16 +1,18 @@
---- src/setup_node_env/node_version_validator.js.orig	2021-10-07 21:19:53 UTC
+--- src/setup_node_env/node_version_validator.js.orig	2023-01-04 12:19:12 UTC
 +++ src/setup_node_env/node_version_validator.js
-@@ -14,11 +14,11 @@ var pkg = require('../../package.json'); // Note: This
+@@ -15,13 +15,13 @@ var pkg = require('../../package.json');
  var currentVersion = process && process.version || null;
  var rawRequiredVersion = pkg && pkg.engines && pkg.engines.node || null;
  var requiredVersion = rawRequiredVersion ? 'v' + rawRequiredVersion : rawRequiredVersion;
--var isVersionValid = !!currentVersion && !!requiredVersion && currentVersion === requiredVersion; // Validates current the NodeJS version compatibility when Kibana starts.
-+var isVersionValid = !!currentVersion && !!requiredVersion && currentVersion >= requiredVersion; // Validates current the NodeJS version compatibility when Kibana starts.
+-var isVersionValid = !!currentVersion && !!requiredVersion && currentVersion === requiredVersion;
++var isVersionValid = !!currentVersion && !!requiredVersion && currentVersion >= requiredVersion;
  
+ // Validates current the NodeJS version compatibility when Kibana starts.
  if (!isVersionValid) {
--  var errorMessage = 'Kibana does not support the current Node.js version ' + currentVersion + '. Please use Node.js ' + requiredVersion + '.'; // Actions to apply when validation fails: error report + exit.
-+  var errorMessage = 'Kibana does not support the current Node.js version ' + currentVersion + '. Please use Node.js >= ' + requiredVersion + '.'; // Actions to apply when validation fails: error report + exit.
+-  var errorMessage = 'Kibana does not support the current Node.js version ' + currentVersion + '. Please use Node.js ' + requiredVersion + '.';
++  var errorMessage = 'Kibana does not support the current Node.js version ' + currentVersion + '. Please use Node.js >= ' + requiredVersion + '.';
  
+   // Actions to apply when validation fails: error report + exit.
    console.error(errorMessage);
    process.exit(1);
 -}