git: 35d87da9988c - main - textproc/opensearch-dashboards: Update to 1.2.0

From: Romain Tartière <romain_at_FreeBSD.org>
Date: Fri, 26 Nov 2021 23:08:53 UTC
The branch main has been updated by romain:

URL: https://cgit.FreeBSD.org/ports/commit/?id=35d87da9988c372f5d2866778efb0ade41d78e8a

commit 35d87da9988c372f5d2866778efb0ade41d78e8a
Author:     Romain Tartière <romain@FreeBSD.org>
AuthorDate: 2021-11-26 23:07:39 +0000
Commit:     Romain Tartière <romain@FreeBSD.org>
CommitDate: 2021-11-26 23:08:40 +0000

    textproc/opensearch-dashboards: Update to 1.2.0
    
    Resease notes:
    https://opensearch.org/blog/releases/2021/11/launch-announcement-1-2-0/
    
    With hat:       opensearch
---
 textproc/opensearch-dashboards/Makefile                        |  5 +----
 textproc/opensearch-dashboards/distinfo                        |  6 +++---
 ...-plugins_reportsDashboards_server_routes_utils_constants.js | 10 +++++-----
 3 files changed, 9 insertions(+), 12 deletions(-)

diff --git a/textproc/opensearch-dashboards/Makefile b/textproc/opensearch-dashboards/Makefile
index b0c5963fbe65..1f61a724594c 100644
--- a/textproc/opensearch-dashboards/Makefile
+++ b/textproc/opensearch-dashboards/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	opensearch-dashboards
-DISTVERSION=	1.1.0
-PORTREVISION=	1
+DISTVERSION=	1.2.0
 DISTVERSIONSUFFIX=	-linux-x64
 CATEGORIES=	textproc www
 MASTER_SITES=	https://artifacts.opensearch.org/releases/bundle/${PORTNAME}/${DISTVERSION}/
@@ -16,8 +15,6 @@ BUILD_DEPENDS=	npm-node14>0:www/npm-node14
 USES=		nodejs:14,build,run python:build
 USE_RC_SUBR=	${PORTNAME}
 
-WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
-
 _DEVDIR=	${WRKDIR}/.devdir
 
 post-patch:
diff --git a/textproc/opensearch-dashboards/distinfo b/textproc/opensearch-dashboards/distinfo
index 5356cc0cbc48..4da5abd8b199 100644
--- a/textproc/opensearch-dashboards/distinfo
+++ b/textproc/opensearch-dashboards/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1633497768
-SHA256 (opensearch-dashboards-1.1.0-linux-x64.tar.gz) = 51e3093daa23097694892d35a0b0eb42b3d7b7b683553fa34cca92913b4b4190
-SIZE (opensearch-dashboards-1.1.0-linux-x64.tar.gz) = 202916767
+TIMESTAMP = 1637961679
+SHA256 (opensearch-dashboards-1.2.0-linux-x64.tar.gz) = 14623798e61be6913e2a218d6ba3e308e5036359d7bda58482ad2f1340aa3c85
+SIZE (opensearch-dashboards-1.2.0-linux-x64.tar.gz) = 209294108
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 bef199433323..520cc7c3a192 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,11 +1,11 @@
---- plugins/reportsDashboards/server/routes/utils/constants.js.orig	2021-09-16 00:07:34 UTC
+--- plugins/reportsDashboards/server/routes/utils/constants.js.orig	2021-11-22 18:22:17 UTC
 +++ plugins/reportsDashboards/server/routes/utils/constants.js
-@@ -130,7 +130,7 @@ const SECURITY_CONSTANTS = {
-   PROXY_AUTH_IP_HEADER: 'x-forwarded-for'
- };
+@@ -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;
 -const CHROMIUM_PATH = `${__dirname}/../../../.chromium/headless_shell`;
-+const CHROMIUM_PATH = '%%LOCALBASE%%/bin/chrome';
++const CHROMIUM_PATH = `%%LOCALBASE%%/bin/chrome`;
  /**
   * Metric constants
   */