---
 openjdk8-zulu-full/Makefile  | 30 ++++++++++++++++++++++++++++++
 openjdk8-zulu-full/latest.sh |  3 +++
 openjdk8-zulu-full/module.py | 19 +++++++++++++++++++
 3 files changed, 52 insertions(+)
 create mode 100644 openjdk8-zulu-full/Makefile
 create mode 100755 openjdk8-zulu-full/latest.sh
 create mode 100644 openjdk8-zulu-full/module.py

diff --git a/openjdk8-zulu-full/Makefile b/openjdk8-zulu-full/Makefile
new file mode 100644
index 0000000..6678c6f
--- /dev/null
+++ b/openjdk8-zulu-full/Makefile
@@ -0,0 +1,30 @@
+#
+# Copyright (C) 2017 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.
+#
+
+jvm_dir=install/usr/lib/jvm
+
+java8_jdk_tarball_url = $(shell ./latest.sh)
+
+java8_name = $(shell echo $(java8_jdk_tarball_url) | grep -o zulu8.*x64)
+
+SRC = $(shell readlink -f ../..)
+
+module:
+       mkdir -p upstream
+       wget -c -O upstream/openjdk8.tar.gz $(java8_jdk_tarball_url)
+       rm -rf install
+       mkdir -p $(jvm_dir)/java
+       cd install && tar xfz ../upstream/openjdk8.tar.gz
+       mv install/$(java8_name)/jre $(jvm_dir)/java/jre
+       rm -rf install/$(java8_name)
+       rm -rf $(jvm_dir)/java/jre/bin
+       rm -rf $(jvm_dir)/java/jre/lib/security/cacerts
+       rm -rf $(jvm_dir)/java/jre/lib/audio/*
+       ln -s /etc/pki/java/cacerts install/usr/lib/jvm/java/jre/lib/security/
+
+clean:
+       rm -rf upstream install
diff --git a/openjdk8-zulu-full/latest.sh b/openjdk8-zulu-full/latest.sh
new file mode 100755
index 0000000..9fec74f
--- /dev/null
+++ b/openjdk8-zulu-full/latest.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+wget -qO- http://www.azul.com/downloads/zulu/zulu-linux | grep 
"jdk8.*linux.*64.tar.gz\"" | grep -o "http:.*tar.gz" | head -1
diff --git a/openjdk8-zulu-full/module.py b/openjdk8-zulu-full/module.py
new file mode 100644
index 0000000..aed0634
--- /dev/null
+++ b/openjdk8-zulu-full/module.py
@@ -0,0 +1,19 @@
+#
+# Copyright (C) 2017 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-cmd')
+provides = ['java']
+
+usr_files = FileMap()
+usr_files.add('${OSV_BASE}/apps/openjdk8-zulu-full/install').to('/').allow_symlink()
+#usr_files.add('${OSV_BASE}/apps/openjdk8-zulu-full/install/usr/lib/jvm/java') 
\
+#    .to('/usr/lib/jvm/java') \
+#    .allow_symlink()
+usr_files.link('/usr/lib/jvm/jre').to('/usr/lib/jvm/java/jre')
-- 
2.7.4

-- 
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.

Reply via email to