summaryrefslogtreecommitdiff
path: root/textproc/opensearch/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/opensearch/Makefile')
-rw-r--r--textproc/opensearch/Makefile78
1 files changed, 27 insertions, 51 deletions
diff --git a/textproc/opensearch/Makefile b/textproc/opensearch/Makefile
index 5d892d18b277..1713a5a82e9f 100644
--- a/textproc/opensearch/Makefile
+++ b/textproc/opensearch/Makefile
@@ -1,13 +1,11 @@
PORTNAME= opensearch
-DISTVERSION?= 3.1.0
-DISTVERSIONSUFFIX= -linux-x64
-PORTREVISION?= 0
+DISTVERSION= 3.2.0
+DISTVERSIONSUFFIX= -linux-${OPENSEARCH_ARCH}
CATEGORIES= textproc java devel
MASTER_SITES= https://artifacts.opensearch.org/releases/bundle/${PORTNAME}/${DISTVERSION}/
-PKGNAMESUFFIX?= #
MAINTAINER= opensearch@FreeBSD.org
-COMMENT?= Full-text search engine for Java
+COMMENT= Full-text search engine for Java
WWW= https://opensearch.org
LICENSE= APACHE20
@@ -20,66 +18,50 @@ USES= cpe java shebangfix
JAVA_VERSION= 21+
USE_RC_SUBR= ${PORTNAME}
-SHEBANG_FILES= bin/opensearch bin/opensearch-cli \
- bin/opensearch-env bin/opensearch-env-from-file \
- bin/opensearch-keystore bin/opensearch-node \
- bin/opensearch-plugin bin/opensearch-shard \
+SHEBANG_FILES= bin/opensearch bin/opensearch-cli bin/opensearch-env \
+ bin/opensearch-env-from-file bin/opensearch-keystore \
+ bin/opensearch-node bin/opensearch-plugin bin/opensearch-shard \
plugins/opensearch-security/tools/audit_config_migrater.sh \
plugins/opensearch-security/tools/hash.sh \
plugins/opensearch-security/tools/install_demo_configuration.sh \
plugins/opensearch-security/tools/securityadmin.sh
-CONFLICTS?= opensearch13 opensearch210 opensearch213 opensearch216
+CONFLICTS_INSTALL= opensearch13 opensearch21[0369]
NO_BUILD= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}
-OPTIONS_DEFINE= PLUGINS
-OPTIONS_DEFAULT=PLUGINS
+OPTIONS_DEFINE= PLUGINS
+OPTIONS_DEFAULT= PLUGINS
.include <bsd.port.options.mk>
+OPENSEARCH_ARCH?= ${ARCH:S|aarch64|arm64|:S|amd64|x64|}
+
CONFIG_FILES= opensearch.yml jvm.options log4j2.properties
-PLUGINS_CONFIG_FILES?= \
- opensearch-notifications-core/notifications-core.yml \
- opensearch-notifications/notifications.yml \
- opensearch-observability/observability.yml
-.if ${PKGNAMESUFFIX} == "210" || ${PKGNAMESUFFIX} == "213" || ${PKGNAMESUFFIX} == "216"
-PLUGINS_CONFIG_FILES+= \
- opensearch-performance-analyzer/agent-stats-metadata \
- opensearch-performance-analyzer/log4j2.xml \
- opensearch-performance-analyzer/opensearch_security.policy \
- opensearch-performance-analyzer/performance-analyzer.properties \
- opensearch-performance-analyzer/plugin-stats-metadata \
- opensearch-performance-analyzer/rca.conf \
- opensearch-performance-analyzer/rca_idle_cluster_manager.conf \
- opensearch-performance-analyzer/rca_cluster_manager.conf \
- opensearch-performance-analyzer/supervisord.conf \
- opensearch-security/whitelist.yml
-.endif
-PLUGINS_CONFIG_FILES+= \
- opensearch-reports-scheduler/reports-scheduler.yml \
- opensearch-security/action_groups.yml \
- opensearch-security/allowlist.yml \
- opensearch-security/audit.yml \
- opensearch-security/config.yml \
- opensearch-security/internal_users.yml \
- opensearch-security/nodes_dn.yml \
- opensearch-security/roles.yml \
- opensearch-security/roles_mapping.yml \
- opensearch-security/tenants.yml
+PLUGINS_CONFIG_FILES?= opensearch-notifications-core/notifications-core.yml \
+ opensearch-notifications/notifications.yml \
+ opensearch-observability/observability.yml \
+ opensearch-reports-scheduler/reports-scheduler.yml \
+ opensearch-security/action_groups.yml \
+ opensearch-security/allowlist.yml \
+ opensearch-security/audit.yml \
+ opensearch-security/config.yml \
+ opensearch-security/internal_users.yml \
+ opensearch-security/nodes_dn.yml \
+ opensearch-security/roles.yml \
+ opensearch-security/roles_mapping.yml \
+ opensearch-security/tenants.yml
# Upstream provide some *.example files. These are also copied as sample filse
# but we do not register them as @sample to avoid installing filse that needs
# to be tuned a site specific way.
-PLUGINS_SAMPLE_CONFIG_FILES= \
- opensearch-security/opensearch.yml
+PLUGINS_SAMPLE_CONFIG_FILES= opensearch-security/opensearch.yml
BINS= opensearch opensearch-cli opensearch-env \
- opensearch-env-from-file opensearch-keystore \
- opensearch-node opensearch-plugin \
- opensearch-shard
+ opensearch-env-from-file opensearch-keystore opensearch-node \
+ opensearch-plugin opensearch-shard
SEARCHUSER?= opensearch
SEARCHGROUP?= ${SEARCHUSER}
@@ -115,9 +97,6 @@ do-install-PLUGINS-on:
${STAGEDIR}${ETCDIR}/opensearch-observability \
${STAGEDIR}${ETCDIR}/opensearch-reports-scheduler \
${STAGEDIR}${ETCDIR}/opensearch-security
-.if ${PKGNAMESUFFIX} == "210" || ${PKGNAMESUFFIX} == "213" || ${PKGNAMESUFFIX} == "216"
- ${MKDIR} ${STAGEDIR}${ETCDIR}/opensearch-performance-analyzer
-.endif
.for f in ${PLUGINS_CONFIG_FILES}
${INSTALL} ${WRKSRC}/config/${f} ${STAGEDIR}${ETCDIR}/${f}.sample
@@ -143,9 +122,6 @@ post-install:
${ECHO} "@dir(opensearch,opensearch,0750) ${ETCDIR}/opensearch-notifications-core" >> ${TMPPLIST}
${ECHO} "@dir(opensearch,opensearch,0750) ${ETCDIR}/opensearch-notifications" >> ${TMPPLIST}
${ECHO} "@dir(opensearch,opensearch,0750) ${ETCDIR}/opensearch-observability" >> ${TMPPLIST}
-.if ${PKGNAMESUFFIX} == "210" || ${PKGNAMESUFFIX} == "213" || ${PKGNAMESUFFIX} == "216"
- ${ECHO} "@dir(opensearch,opensearch,0750) ${ETCDIR}/opensearch-performance-analyzer" >> ${TMPPLIST}
-.endif
${ECHO} "@dir(opensearch,opensearch,0750) ${ETCDIR}/opensearch-reports-scheduler" >> ${TMPPLIST}
${ECHO} "@dir(opensearch,opensearch,0750) ${ETCDIR}/opensearch-security" >> ${TMPPLIST}
.endif