From: Waldemar Kozaczuk <[email protected]>
Committer: Waldemar Kozaczuk <[email protected]>
Branch: master
Add OpenJDK 11 Zulu app
Signed-off-by: Waldemar Kozaczuk <[email protected]>
---
diff --git a/openjdk11-zulu-java-base/Makefile
b/openjdk11-zulu-java-base/Makefile
--- a/openjdk11-zulu-java-base/Makefile
+++ b/openjdk11-zulu-java-base/Makefile
@@ -0,0 +1,7 @@
+#
+# Copyright (C) 2018 Waldemar Kozaczuk
+#
+# This work is open source software, licensed under the terms of the
+# BSD license as described in the LICENSE file in the top-level directory.
+#
+include ../openjdk9-zulu-java-base/Makefile
diff --git a/openjdk11-zulu-java-base/latest.sh
b/openjdk11-zulu-java-base/latest.sh
--- a/openjdk11-zulu-java-base/latest.sh
+++ b/openjdk11-zulu-java-base/latest.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+DOWNLOAD_URL=`wget -c -qO- http://www.azul.com/downloads/zulu/zulu-linux |
grep -o '<a href=['"'"'"][^"'"'"']*['"'"'"]' |
grep "jdk11.*linux.*64.tar.gz\"" | grep -o "https:.*tar.gz" | head -n 1`
+VERSION=`echo $DOWNLOAD_URL | grep -o "zulu11.*linux_x64"`
+
+if [ "$1" = "version" ]; then
+echo $VERSION
+else
+echo $DOWNLOAD_URL
+fi
diff --git a/openjdk11-zulu-java-base/module.py
b/openjdk11-zulu-java-base/module.py
--- a/openjdk11-zulu-java-base/module.py
+++ b/openjdk11-zulu-java-base/module.py
@@ -0,0 +1,18 @@
+#
+# Copyright (C) 2018 Waldemar Kozaczuk
+#
+# This work is open source software, licensed under the terms of the
+# BSD license as described in the LICENSE file in the top-level directory.
+#
+
+from osv.modules.filemap import FileMap
+from osv.modules import api
+
+api.require('java-non-isolated')
+provides = ['java','java8','java9','java10', 'java11']
+
+usr_files = FileMap()
+usr_files.add('${OSV_BASE}/apps/openjdk11-zulu-java-base/install').to('/').allow_symlink()
+usr_files.add('${OSV_BASE}/apps/openjdk11-zulu-java-base/install/usr/lib/jvm/java')
\
+ .to('/usr/lib/jvm/java') \
+ .allow_symlink()
--
You received this message because you are subscribed to the Google Groups "OSv
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.