git: 454a205f826e - main - textproc/opensearch13-*: Update to 1.3.9

From: Jose Alonso Cardenas Marquez <acm_at_FreeBSD.org>
Date: Sun, 16 Apr 2023 01:16:40 UTC
The branch main has been updated by acm:

URL: https://cgit.FreeBSD.org/ports/commit/?id=454a205f826e15ffa82023c78e178f38e6177f1b

commit 454a205f826e15ffa82023c78e178f38e6177f1b
Author:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
AuthorDate: 2023-04-16 01:14:24 +0000
Commit:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
CommitDate: 2023-04-16 01:16:30 +0000

    textproc/opensearch13-*: Update to 1.3.9
    
    ChangeLog at:   https://github.com/opensearch-project/OpenSearch/blob/main/release-notes/opensearch.release-notes-1.3.9.md
---
 textproc/opensearch-dashboards13/Makefile                     | 11 ++++++-----
 textproc/opensearch-dashboards13/distinfo                     |  6 +++---
 ...plugins_reportsDashboards_server_routes_utils_constants.js | 11 -----------
 textproc/opensearch13/Makefile                                |  2 +-
 textproc/opensearch13/distinfo                                |  6 +++---
 5 files changed, 13 insertions(+), 23 deletions(-)

diff --git a/textproc/opensearch-dashboards13/Makefile b/textproc/opensearch-dashboards13/Makefile
index ba1474e2557b..c71f65032d29 100644
--- a/textproc/opensearch-dashboards13/Makefile
+++ b/textproc/opensearch-dashboards13/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	opensearch-dashboards
-DISTVERSION=	1.3.6
+DISTVERSION=	1.3.9
 DISTVERSIONSUFFIX=	-linux-x64
 CATEGORIES=	textproc www
 MASTER_SITES=	https://artifacts.opensearch.org/releases/bundle/${PORTNAME}/${DISTVERSION}/
@@ -26,6 +26,8 @@ OPTIONS_DEFINE=	CHROME
 CHROME_DESC=	Add dependency on www/chromium (required for PDF reports)
 CHROME_RUN_DEPENDS=chrome:www/chromium
 
+NODE_VER=	14.21.1
+
 _DEVDIR=	${WRKDIR}/.devdir
 
 post-patch:
@@ -33,15 +35,14 @@ post-patch:
 		${WRKSRC}/bin/opensearch-dashboards \
 		${WRKSRC}/bin/opensearch-dashboards-keystore \
 		${WRKSRC}/bin/opensearch-dashboards-plugin \
-		${WRKSRC}/node_modules/re2/binding.gyp \
-		${WRKSRC}/plugins/reportsDashboards/server/routes/utils/constants.js
+		${WRKSRC}/node_modules/re2/binding.gyp
+	@${REINPLACE_CMD} -e 's|10.24.1|${NODE_VER}|g' ${WRKSRC}/package.json
 	${RM} \
 		${WRKSRC}/bin/*.orig \
 		${WRKSRC}/bin/*.bak \
 		${WRKSRC}/node_modules/re2/binding.gyp.orig \
 		${WRKSRC}/node_modules/re2/binding.gyp.bak \
-		${WRKSRC}/plugins/reportsDashboards/server/routes/utils/constants.js.orig \
-		${WRKSRC}/plugins/reportsDashboards/server/routes/utils/constants.js.bak
+		${WRKSRC}/package.json.bak
 	${RM} -r ${WRKSRC}/plugins/reportsDashboards/.chromium
 
 do-configure:
diff --git a/textproc/opensearch-dashboards13/distinfo b/textproc/opensearch-dashboards13/distinfo
index c059c4acdffb..bdbafbc80015 100644
--- a/textproc/opensearch-dashboards13/distinfo
+++ b/textproc/opensearch-dashboards13/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1670368957
-SHA256 (opensearch-dashboards-1.3.6-linux-x64.tar.gz) = 4b0cd477fdcbbd54d835d2f60412ea1946eca0c9c1029397139e5852d98d684d
-SIZE (opensearch-dashboards-1.3.6-linux-x64.tar.gz) = 250723484
+TIMESTAMP = 1681596241
+SHA256 (opensearch-dashboards-1.3.9-linux-x64.tar.gz) = 31069fc9f4eb19e4c2335c41e31c92d93c71885a900362f93f388d7be0afc6d5
+SIZE (opensearch-dashboards-1.3.9-linux-x64.tar.gz) = 164764900
diff --git a/textproc/opensearch-dashboards13/files/patch-plugins_reportsDashboards_server_routes_utils_constants.js b/textproc/opensearch-dashboards13/files/patch-plugins_reportsDashboards_server_routes_utils_constants.js
deleted file mode 100644
index 20519110401b..000000000000
--- a/textproc/opensearch-dashboards13/files/patch-plugins_reportsDashboards_server_routes_utils_constants.js
+++ /dev/null
@@ -1,11 +0,0 @@
---- plugins/reportsDashboards/server/routes/utils/constants.js.orig	2022-06-30 21:47:37 UTC
-+++ plugins/reportsDashboards/server/routes/utils/constants.js
-@@ -138,7 +138,7 @@ const replaceBlockedKeywords = htmlString => {
- };
- 
- exports.replaceBlockedKeywords = replaceBlockedKeywords;
--const CHROMIUM_PATH = `${__dirname}/../../../.chromium/headless_shell`;
-+const CHROMIUM_PATH = `%%LOCALBASE%%/bin/chrome`;
- /**
-  * Metric constants
-  */
diff --git a/textproc/opensearch13/Makefile b/textproc/opensearch13/Makefile
index 85edb72ba84f..288982aab1ca 100644
--- a/textproc/opensearch13/Makefile
+++ b/textproc/opensearch13/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	opensearch
-DISTVERSION=	1.3.6
+DISTVERSION=	1.3.9
 DISTVERSIONSUFFIX=	-linux-x64
 CATEGORIES=	textproc java devel
 MASTER_SITES=	https://artifacts.opensearch.org/releases/bundle/${PORTNAME}/${DISTVERSION}/
diff --git a/textproc/opensearch13/distinfo b/textproc/opensearch13/distinfo
index ce98a5e2c7ea..0569e3c2bee0 100644
--- a/textproc/opensearch13/distinfo
+++ b/textproc/opensearch13/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1670283394
-SHA256 (opensearch-1.3.6-linux-x64.tar.gz) = 0784cc05ec03dc9cac17dca923272ae08ebc9a43fbbbb61397024f1c90cdb024
-SIZE (opensearch-1.3.6-linux-x64.tar.gz) = 421906066
+TIMESTAMP = 1681596190
+SHA256 (opensearch-1.3.9-linux-x64.tar.gz) = cc8f086578e38d5998da015f9b89061c3c2e08962643b7e6eb28f3f25716a9be
+SIZE (opensearch-1.3.9-linux-x64.tar.gz) = 423200993