aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRomain Tartière <romain@FreeBSD.org>2022-07-08 17:11:03 +0000
committerRomain Tartière <romain@FreeBSD.org>2022-07-08 19:11:55 +0000
commit4f5da77d603f083e66c8cc66a4e6a94491d51928 (patch)
tree99d212092a7437aae284f98119c9729024eaa46a
parent2ef59578373c6592694fa7fee007ef02d3e93bd5 (diff)
downloadports-4f5da77d603f083e66c8cc66a4e6a94491d51928.tar.gz
ports-4f5da77d603f083e66c8cc66a4e6a94491d51928.zip
textproc/opensearch-dashboards: Update to 2.1.0
-rw-r--r--textproc/opensearch-dashboards/Makefile2
-rw-r--r--textproc/opensearch-dashboards/distinfo6
-rw-r--r--textproc/opensearch-dashboards/files/opensearch-dashboards.in3
-rw-r--r--textproc/opensearch-dashboards/files/patch-bin_opensearch-dashboards-keystore4
-rw-r--r--textproc/opensearch-dashboards/files/patch-bin_opensearch-dashboards-plugin4
-rw-r--r--textproc/opensearch-dashboards/files/patch-plugins_reportsDashboards_server_routes_utils_constants.js10
-rw-r--r--textproc/opensearch-dashboards/files/patch-src_setup__node__env_node__version__validator.js18
7 files changed, 14 insertions, 33 deletions
diff --git a/textproc/opensearch-dashboards/Makefile b/textproc/opensearch-dashboards/Makefile
index 3728c93683e2..8e0365f4e303 100644
--- a/textproc/opensearch-dashboards/Makefile
+++ b/textproc/opensearch-dashboards/Makefile
@@ -1,5 +1,5 @@
PORTNAME= opensearch-dashboards
-DISTVERSION= 2.0.0
+DISTVERSION= 2.1.0
DISTVERSIONSUFFIX= -linux-x64
CATEGORIES= textproc www
MASTER_SITES= https://artifacts.opensearch.org/releases/bundle/${PORTNAME}/${DISTVERSION}/
diff --git a/textproc/opensearch-dashboards/distinfo b/textproc/opensearch-dashboards/distinfo
index 7752662b83bd..a682f11dcc5e 100644
--- a/textproc/opensearch-dashboards/distinfo
+++ b/textproc/opensearch-dashboards/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1653931629
-SHA256 (opensearch-dashboards-2.0.0-linux-x64.tar.gz) = e2434659b02d9ee4502523198ac51f42f7b09845b0950986f4c2ff9e347fe474
-SIZE (opensearch-dashboards-2.0.0-linux-x64.tar.gz) = 227494898
+TIMESTAMP = 1657299734
+SHA256 (opensearch-dashboards-2.1.0-linux-x64.tar.gz) = 47b062e880372368b096abecd2f255d96ce8861dd87ada1ca5eaf052e72b17b7
+SIZE (opensearch-dashboards-2.1.0-linux-x64.tar.gz) = 227733934
diff --git a/textproc/opensearch-dashboards/files/opensearch-dashboards.in b/textproc/opensearch-dashboards/files/opensearch-dashboards.in
index 38d667de990c..7043fa9301a9 100644
--- a/textproc/opensearch-dashboards/files/opensearch-dashboards.in
+++ b/textproc/opensearch-dashboards/files/opensearch-dashboards.in
@@ -45,8 +45,7 @@ pidfile="/var/run/${name}.pid"
command="/usr/sbin/daemon"
command_args="-f ${opensearch_dashboards_syslog_output_flags} -P ${pidfile} -t ${name} \
/usr/bin/env NODE_ENV=production ${opensearch_dashboards_env} \
- ${NODE} --no-warnings --max-http-header-size=65536 \
- %%WWWDIR%%/src/cli/dist serve \
+ ${NODE} %%WWWDIR%%/src/cli/dist serve \
--config ${opensearch_dashboards_config} --log-file ${opensearch_dashboards_log} \
${opensearch_dashboards_args}"
diff --git a/textproc/opensearch-dashboards/files/patch-bin_opensearch-dashboards-keystore b/textproc/opensearch-dashboards/files/patch-bin_opensearch-dashboards-keystore
index d8c1b1d5387a..bf943cba637b 100644
--- a/textproc/opensearch-dashboards/files/patch-bin_opensearch-dashboards-keystore
+++ b/textproc/opensearch-dashboards/files/patch-bin_opensearch-dashboards-keystore
@@ -1,6 +1,6 @@
---- bin/opensearch-dashboards-keystore.orig 2021-07-02 23:30:56 UTC
+--- bin/opensearch-dashboards-keystore.orig 2022-06-30 21:38:00 UTC
+++ bin/opensearch-dashboards-keystore
-@@ -14,8 +14,8 @@ while [ -h "$SCRIPT" ] ; do
+@@ -26,8 +26,8 @@ while [ -h "$SCRIPT" ] ; do
done
DIR="$(dirname "${SCRIPT}")/.."
diff --git a/textproc/opensearch-dashboards/files/patch-bin_opensearch-dashboards-plugin b/textproc/opensearch-dashboards/files/patch-bin_opensearch-dashboards-plugin
index 358fc3f02326..1a3cff5bef3f 100644
--- a/textproc/opensearch-dashboards/files/patch-bin_opensearch-dashboards-plugin
+++ b/textproc/opensearch-dashboards/files/patch-bin_opensearch-dashboards-plugin
@@ -1,6 +1,6 @@
---- bin/opensearch-dashboards-plugin.orig 2021-07-02 23:30:56 UTC
+--- bin/opensearch-dashboards-plugin.orig 2022-06-30 21:38:00 UTC
+++ bin/opensearch-dashboards-plugin
-@@ -14,8 +14,8 @@ while [ -h "$SCRIPT" ] ; do
+@@ -26,8 +26,8 @@ while [ -h "$SCRIPT" ] ; do
done
DIR="$(dirname "${SCRIPT}")/.."
diff --git a/textproc/opensearch-dashboards/files/patch-plugins_reportsDashboards_server_routes_utils_constants.js b/textproc/opensearch-dashboards/files/patch-plugins_reportsDashboards_server_routes_utils_constants.js
index 520cc7c3a192..20519110401b 100644
--- a/textproc/opensearch-dashboards/files/patch-plugins_reportsDashboards_server_routes_utils_constants.js
+++ b/textproc/opensearch-dashboards/files/patch-plugins_reportsDashboards_server_routes_utils_constants.js
@@ -1,9 +1,9 @@
---- plugins/reportsDashboards/server/routes/utils/constants.js.orig 2021-11-22 18:22:17 UTC
+--- plugins/reportsDashboards/server/routes/utils/constants.js.orig 2022-06-30 21:47:37 UTC
+++ plugins/reportsDashboards/server/routes/utils/constants.js
-@@ -107,7 +107,7 @@ const SECURITY_CONSTANTS = {
- exports.SECURITY_CONSTANTS = SECURITY_CONSTANTS;
- const EXTRA_HEADERS = ['cookie', 'x-proxy-user', 'x-proxy-roles', 'x-forwarded-for'];
- exports.EXTRA_HEADERS = EXTRA_HEADERS;
+@@ -138,7 +138,7 @@ const replaceBlockedKeywords = htmlString => {
+ };
+
+ exports.replaceBlockedKeywords = replaceBlockedKeywords;
-const CHROMIUM_PATH = `${__dirname}/../../../.chromium/headless_shell`;
+const CHROMIUM_PATH = `%%LOCALBASE%%/bin/chrome`;
/**
diff --git a/textproc/opensearch-dashboards/files/patch-src_setup__node__env_node__version__validator.js b/textproc/opensearch-dashboards/files/patch-src_setup__node__env_node__version__validator.js
deleted file mode 100644
index d7fb2e5ead8b..000000000000
--- a/textproc/opensearch-dashboards/files/patch-src_setup__node__env_node__version__validator.js
+++ /dev/null
@@ -1,18 +0,0 @@
---- src/setup_node_env/node_version_validator.js.orig 2021-09-07 03:05:30 UTC
-+++ src/setup_node_env/node_version_validator.js
-@@ -38,11 +38,11 @@ var pkg = require('../../package.json'); // Note: This
- 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 OpenSearch Dashboards starts.
-+var isVersionValid = !!currentVersion && !!requiredVersion && currentVersion >= requiredVersion; // Validates current the NodeJS version compatibility when OpenSearch Dashboards starts.
-
- if (!isVersionValid) {
-- var errorMessage = 'OpenSearch Dashboards 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 = 'OpenSearch Dashboards 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);
--}
-\ No newline at end of file
-+}