Commit f268ae55 authored by Julien Muchembled's avatar Julien Muchembled

java: clean up

parent 87534074
...@@ -9,26 +9,23 @@ parts = ...@@ -9,26 +9,23 @@ parts =
[java-jdk] [java-jdk]
recipe = plone.recipe.command recipe = slapos.recipe.build
command = echo "Error: unsupported platform" && false update =
stop-on-error = true from zc.buildout import UserError
location = raise UserError("unsupported platform")
[java-jdk:linux and bits64] [java-jdk:linux and platform.machine() == 'x86_64']
recipe = slapos.recipe.cmmi recipe = slapos.recipe.cmmi
shared = true shared = true
url = https://download.java.net/java/GA/jdk12.0.2/e482c34c86bd4bf8b56c0b35558996b9/10/GPL/openjdk-12.0.2_linux-x64_bin.tar.gz url = https://download.java.net/java/GA/jdk12.0.2/e482c34c86bd4bf8b56c0b35558996b9/10/GPL/openjdk-12.0.2_linux-x64_bin.tar.gz
md5sum = f5da6f4dec81bdd2a096184ec1d69216 md5sum = f5da6f4dec81bdd2a096184ec1d69216
configure-command = : configure-command = :
make-binary = : make-binary = :
pre-install =
mkdir -p @@LOCATION@@
cp -r * @@LOCATION@@
post-install = post-install =
for file in @@LOCATION@@/bin/* ; do mv * %(location)s
for file in %(location)s/bin/* ; do
echo appending rpath to $file echo appending rpath to $file
${patchelf:location}/bin/patchelf --set-rpath ${:rpath} $file ${patchelf:location}/bin/patchelf --set-rpath %(rpath)s $file
done done
rpath = ${zlib:location}/lib:@@LOCATION@@/lib rpath = ${zlib:location}/lib:@@LOCATION@@/lib
location = @@LOCATION@@
...@@ -9,42 +9,34 @@ parts = ...@@ -9,42 +9,34 @@ parts =
[java-re] [java-re]
<= java-re-7 <= java-re-7
[java-common]
recipe = slapos.recipe.build:download-unpacked
url = http://javadl.sun.com/webapps/download/AutoDL?BundleId=${:bundle-id}
[java-re-7] [java-re-7]
recipe = slapos.recipe.build <= java-common
slapos_promisee =
directory:bin
directory:lib
directory:man
directory:plugin
file:lib/rt.jar
file:bin/java
# http://java.com/en/download/manual_java7.jsp # http://java.com/en/download/manual_java7.jsp
x86 = http://javadl.sun.com/webapps/download/AutoDL?BundleId=97798 90a6b9e2a32d06c18a3f16b485f0d1ea
x86-64 = http://javadl.sun.com/webapps/download/AutoDL?BundleId=97800 7605134662f6c87131eca5745895fe84 [java-re-7:linux and platform.machine() == 'i686']
install = bundle-id = 97798
url, md5sum = options[guessPlatform()].split() md5sum = 90a6b9e2a32d06c18a3f16b485f0d1ea
extract_dir = self.extract(self.download(url, md5sum))
workdir = guessworkdir(extract_dir) [java-re-7:linux and platform.machine() == 'x86_64']
self.copyTree(workdir, location) bundle-id = 97800
md5sum = 7605134662f6c87131eca5745895fe84
[java-re-8] [java-re-8]
recipe = slapos.recipe.build <= java-common
slapos_promisee =
directory:bin
directory:lib
directory:man
directory:plugin
file:lib/rt.jar
file:bin/java
# https://www.java.com/en/download/manual.jsp # https://www.java.com/en/download/manual.jsp
# Update 161 # Update 161
x86 = http://javadl.oracle.com/webapps/download/AutoDL?BundleId=230530_2f38c3b165be4555a1fa6e98c45e0808 32db95dd417fd7949922206b2a61aa19
x86-64 = http://javadl.oracle.com/webapps/download/AutoDL?BundleId=230532_2f38c3b165be4555a1fa6e98c45e0808 4385bc121b085862be623f4a31e7e0b4 [java-re-8:linux and platform.machine() == 'i686']
install = bundle-id = 230530_2f38c3b165be4555a1fa6e98c45e0808
url, md5sum = options[guessPlatform()].split() md5sum = 90a6b9e2a32d06c18a3f16b485f0d1ea
extract_dir = self.extract(self.download(url, md5sum))
workdir = guessworkdir(extract_dir) [java-re-8:linux and platform.machine() == 'x86_64']
self.copyTree(workdir, location) bundle-id = 230532_2f38c3b165be4555a1fa6e98c45e0808
md5sum = 4385bc121b085862be623f4a31e7e0b4
[java-re-8-output] [java-re-8-output]
# Shared binary location to ease migration # Shared binary location to ease migration
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment