From: Waldemar Kozaczuk <jwkozac...@gmail.com>
Committer: Waldemar Kozaczuk <jwkozac...@gmail.com>
Branch: master
Added openjdk12 app
Signed-off-by: Waldemar Kozaczuk <jwkozac...@gmail.com>
---
diff --git a/openjdk12-zulu-java-base/Makefile
b/openjdk12-zulu-java-base/Makefile
--- a/openjdk12-zulu-java-base/Makefile
+++ b/openjdk12-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/openjdk12-zulu-java-base/latest.sh
b/openjdk12-zulu-java-base/latest.sh
--- a/openjdk12-zulu-java-base/latest.sh
+++ b/openjdk12-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 "jdk12.*linux.*64.tar.gz\"" | grep -o "https:.*tar.gz" | head -n 1`
+VERSION=`echo $DOWNLOAD_URL | grep -o "zulu12.*linux_x64"`
+
+if [ "$1" = "version" ]; then
+echo $VERSION
+else
+echo $DOWNLOAD_URL
+fi
diff --git a/openjdk12-zulu-java-base/module.py
b/openjdk12-zulu-java-base/module.py
--- a/openjdk12-zulu-java-base/module.py
+++ b/openjdk12-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', 'java12']
+
+usr_files = FileMap()
+usr_files.add('${OSV_BASE}/apps/openjdk12-zulu-java-base/install').to('/').allow_symlink()
+usr_files.add('${OSV_BASE}/apps/openjdk12-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 osv-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/osv-dev/000000000000fb8fe4058d74bc0b%40google.com.
For more options, visit https://groups.google.com/d/optout.