aboutsummaryrefslogtreecommitdiff
path: root/misc/openhab/openhab/files/patch-runtime_bin_setenv
diff options
context:
space:
mode:
authorAlexander Leidinger <netchild@FreeBSD.org>2021-06-20 09:02:42 +0000
committerAlexander Leidinger <netchild@FreeBSD.org>2021-06-20 09:06:12 +0000
commit207827e2a8e65c4b0933edd15c0b21233c7cfa67 (patch)
tree7e17970b30dcec35be5a324bf3cde525f4a8faf2 /misc/openhab/openhab/files/patch-runtime_bin_setenv
parent942a4d428e389e5abc61b5957fc37c4f758ff919 (diff)
downloadports-207827e2a8e65c4b0933edd15c0b21233c7cfa67.tar.gz
ports-207827e2a8e65c4b0933edd15c0b21233c7cfa67.zip
misc/openhab: new v3 based upon copy from openhab2
- copy openhab2* to openhab (follow upstream) - update to 3.0.2 - remove update script (no auto migration from v2, scrip may come back later, if needed) - use openhab instead openhabvX directories (follow upstream) - use openjdk 11 (new requirement) - add UPDATING entry for users which may want to switch to v3
Diffstat (limited to 'misc/openhab/openhab/files/patch-runtime_bin_setenv')
-rw-r--r--misc/openhab/openhab/files/patch-runtime_bin_setenv12
1 files changed, 12 insertions, 0 deletions
diff --git a/misc/openhab/openhab/files/patch-runtime_bin_setenv b/misc/openhab/openhab/files/patch-runtime_bin_setenv
new file mode 100644
index 000000000000..6963e5b7e82b
--- /dev/null
+++ b/misc/openhab/openhab/files/patch-runtime_bin_setenv
@@ -0,0 +1,12 @@
+--- runtime/bin/setenv.orig 2018-12-17 01:24:37 UTC
++++ runtime/bin/setenv
+@@ -139,6 +139,9 @@ locateJava() {
+ if [ "x${JAVA}" = "x" ] && [ -r /etc/gentoo-release ] ; then
+ JAVA_HOME=$(java-config --jre-home)
+ fi
++ if [ "x$JAVA_HOME" = "x" ]; then
++ eval $(env JAVAVM_DRYRUN=true %%LOCALBASE%%/bin/java | grep JAVA_HOME)
++ fi
+ if [ "x${JAVA}" = "x" ]; then
+ if [ "x${JAVA_HOME}" != "x" ]; then
+ if [ ! -d "${JAVA_HOME}" ]; then