View | Details | Raw Unified | Return to bug 256921
Collapse All | Expand All

(-)b/textproc/elasticsearch7/Makefile (+1 lines)
Lines 2-7 Link Here
2
2
3
PORTNAME=	elasticsearch
3
PORTNAME=	elasticsearch
4
PORTVERSION=	7.10.1
4
PORTVERSION=	7.10.1
5
PORTREVISION=	1
5
CATEGORIES=	textproc java devel
6
CATEGORIES=	textproc java devel
6
MASTER_SITES=	https://artifacts.elastic.co/downloads/${PORTNAME}/
7
MASTER_SITES=	https://artifacts.elastic.co/downloads/${PORTNAME}/
7
PKGNAMESUFFIX=	7
8
PKGNAMESUFFIX=	7
(-)b/textproc/elasticsearch7/files/patch-bin__elasticsearch-env (+26 lines)
Added Link Here
1
--- bin/elasticsearch-env.orig	2021-07-01 17:19:56.338467000 +0200
2
+++ bin/elasticsearch-env	2021-07-01 17:20:48.513451000 +0200
3
@@ -40,12 +40,17 @@
4
   JAVA="$JAVA_HOME/bin/java"
5
   JAVA_TYPE="JAVA_HOME"
6
 else
7
-  if [ "$(uname -s)" = "Darwin" ]; then
8
-    # macOS has a different structure
9
-    JAVA="$ES_HOME/jdk.app/Contents/Home/bin/java"
10
-  else
11
-    JAVA="$ES_HOME/jdk/bin/java"
12
-  fi
13
+  case "$(uname -s)" in
14
+    "Darwin")
15
+      JAVA="$ES_HOME/jdk.app/Contents/Home/bin/java"
16
+      ;;
17
+    "FreeBSD")
18
+      JAVA=%%LOCALBASE%%/bin/java
19
+      ;;
20
+    *)
21
+      JAVA="$ES_HOME/jdk/bin/java"
22
+      ;;
23
+  esac
24
   JAVA_TYPE="bundled jdk"
25
 fi
26
 

Return to bug 256921