aboutsummaryrefslogtreecommitdiff
path: root/textproc/opensearch-dashboards/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/opensearch-dashboards/Makefile')
-rw-r--r--textproc/opensearch-dashboards/Makefile18
1 files changed, 12 insertions, 6 deletions
diff --git a/textproc/opensearch-dashboards/Makefile b/textproc/opensearch-dashboards/Makefile
index 539461907fa0..a063a3a54bdf 100644
--- a/textproc/opensearch-dashboards/Makefile
+++ b/textproc/opensearch-dashboards/Makefile
@@ -1,23 +1,25 @@
PORTNAME= opensearch-dashboards
-DISTVERSION?= 3.2.0
-DISTVERSIONSUFFIX= -linux-x64
-PORTREVISION?= 0
+DISTVERSION= 3.2.0
+DISTVERSIONSUFFIX= -linux-${OPENSEARCH_ARCH}
+PORTREVISION= 1
CATEGORIES= textproc www
MASTER_SITES= https://artifacts.opensearch.org/releases/bundle/${PORTNAME}/${DISTVERSION}/
MAINTAINER= opensearch@FreeBSD.org
-COMMENT?= Visualization dashboards for OpenSearch
+COMMENT= Visualization dashboards for OpenSearch
WWW= https://opensearch.org
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+ONLY_FOR_ARCHS= aarch64 amd64
+
BUILD_DEPENDS= npm-node20>0:www/npm-node20
USES= nodejs:20,build,run python:build
USE_RC_SUBR= ${PORTNAME}
-CONFLICTS?= opensearch-dashboards210 opensearch-dashboards213 opensearch-dashboards216
+CONFLICTS_INSTALL= opensearch-dashboards219
NO_ARCH= yes
NO_BUILD= yes
@@ -30,6 +32,10 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}
_DEVDIR= ${WRKDIR}/.devdir
+.include <bsd.port.pre.mk>
+
+OPENSEARCH_ARCH= ${ARCH:S|aarch64|arm64|:S|amd64|x64|}
+
post-patch:
${RM} ${WRKSRC}/bin/*.orig ${WRKSRC}/bin/*.bak
${RM} -r ${WRKSRC}/plugins/reportsDashboards/.chromium
@@ -73,4 +79,4 @@ post-install:
${ECHO} "@dir ${WWWDIR}/plugins/securityAnalyticsDashboards/test/mocks/Rules/components/RulesTable" >> ${TMPPLIST}
${ECHO} "@dir ${WWWDIR}/plugins/securityDashboards/server/multitenancy/test" >> ${TMPPLIST}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>