From: Waldemar Kozaczuk <jwkozac...@gmail.com>
Committer: Nadav Har'El <n...@scylladb.com>
Branch: master

Added openjdk 8 zulu full jdk app

Message-Id: <1497128842-10966-1-git-send-email-jwkozac...@gmail.com>

---
diff --git a/openjdk8-zulu-full/Makefile b/openjdk8-zulu-full/Makefile
--- a/openjdk8-zulu-full/Makefile
+++ 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
--- a/openjdk8-zulu-full/latest.sh
+++ 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
--- a/openjdk8-zulu-full/module.py
+++ 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')

--
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to