Commit 251f9c43 authored by Marco Mariani's avatar Marco Mariani

fixed jdk and policy file setup

parent f49e69b6
...@@ -35,7 +35,8 @@ parts = ...@@ -35,7 +35,8 @@ parts =
slapos-cookbook slapos-cookbook
directories directories
jdk jdk
jdk-policy jdk-sources
jdk-sources-policy
ant ant
autoconf autoconf
automake automake
...@@ -71,8 +72,6 @@ location = ${buildout:parts-directory}/${:_buildout_section_name_} ...@@ -71,8 +72,6 @@ location = ${buildout:parts-directory}/${:_buildout_section_name_}
web-dirname = 7u13-b20 web-dirname = 7u13-b20
filename = jdk-7u13-linux-x64.tar.gz filename = jdk-7u13-linux-x64.tar.gz
policy-filename = UnlimitedJCEPolicyJDK7.zip policy-filename = UnlimitedJCEPolicyJDK7.zip
zimbra-filename = jdk1.7.0_13.tgz
zimbra-target = ${zimbra-sources:location}/ThirdPartyBuilds/x86_64/java
stop-on-error = True stop-on-error = True
update = true update = true
command = command =
...@@ -80,8 +79,6 @@ command = ...@@ -80,8 +79,6 @@ command =
wget --no-cookies --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com" \ wget --no-cookies --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com" \
"http://download.oracle.com/otn-pub/java/jdk/${:web-dirname}/${:filename}" \ "http://download.oracle.com/otn-pub/java/jdk/${:web-dirname}/${:filename}" \
-O ${:location}/${:filename} -O ${:location}/${:filename}
mkdir -p ${:zimbra-target}
cp ${:location}/${:filename} ${:zimbra-target}/${:zimbra-filename}
wget --no-cookies --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com" \ wget --no-cookies --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com" \
http://download.oracle.com/otn-pub/java/jce/7/${:policy-filename} \ http://download.oracle.com/otn-pub/java/jce/7/${:policy-filename} \
-O ${:location}/${:policy-filename} -O ${:location}/${:policy-filename}
...@@ -94,11 +91,22 @@ url = ${jdk-download:location}/${jdk-download:filename} ...@@ -94,11 +91,22 @@ url = ${jdk-download:location}/${jdk-download:filename}
strip-top-level-dir = True strip-top-level-dir = True
[jdk-policy] [jdk-sources]
# Uncompress the downloaded JDK # copy the jdk tarball inside the build tree
recipe = plone.recipe.command
zimbra-target = ${zimbra-sources:location}/ThirdPartyBuilds/x86_64/java
zimbra-filename = jdk1.7.0_13.tgz
update-command = ${:command}
command =
mkdir -p ${:zimbra-target}
cp ${jdk-download:location}/${jdk-download:filename} ${:zimbra-target}/${:zimbra-filename}
[jdk-sources-policy]
# copy the java policy inside the build tree
recipe = hexagonit.recipe.download recipe = hexagonit.recipe.download
url = ${jdk-download:location}/${jdk-download:policy-filename} url = ${jdk-download:location}/${jdk-download:policy-filename}
destination = ${jdk-download:zimbra-target}/jce destination = ${jdk-sources:zimbra-target}/jce
strip-top-level-dir = True strip-top-level-dir = True
......
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