Commit f49e69b6 authored by Marco Mariani's avatar Marco Mariani

copy downloaded policy files to build tree

parent ea623c87
......@@ -35,6 +35,7 @@ parts =
slapos-cookbook
directories
jdk
jdk-policy
ant
autoconf
automake
......@@ -64,12 +65,14 @@ slapos.cookbook =
[jdk-download]
# hack to download java bypassing javascript requirement
# hack to download java and policy files, bypassing javascript requirement
recipe = plone.recipe.command
location = ${buildout:parts-directory}/${:_buildout_section_name_}
web-dirname = 7u13-b20
filename = jdk-7u13-linux-x64.tar.gz
policy-filename = UnlimitedJCEPolicyJDK7.zip
zimbra-filename = jdk1.7.0_13.tgz
zimbra-target = ${zimbra-sources:location}/ThirdPartyBuilds/x86_64/java
stop-on-error = True
update = true
command =
......@@ -77,16 +80,28 @@ command =
wget --no-cookies --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com" \
"http://download.oracle.com/otn-pub/java/jdk/${:web-dirname}/${:filename}" \
-O ${:location}/${:filename}
mkdir -p ${zimbra-sources:location}/ThirdPartyBuilds/x86_64/java
cp ${:location}/${:filename} ${zimbra-sources:location}/ThirdPartyBuilds/x86_64/java/${:zimbra-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" \
http://download.oracle.com/otn-pub/java/jce/7/${:policy-filename} \
-O ${:location}/${:policy-filename}
[jdk]
# Uncompress the downloaded JDK
recipe = hexagonit.recipe.download
url = ${jdk-download:location}/${jdk-download:filename}
strip-top-level-dir = True
[jdk-policy]
# Uncompress the downloaded JDK
recipe = hexagonit.recipe.download
url = ${jdk-download:location}/${jdk-download:policy-filename}
destination = ${jdk-download:zimbra-target}/jce
strip-top-level-dir = True
[ant]
recipe = hexagonit.recipe.download
url = http://mirrors.linsrv.net/apache//ant/binaries/${:filename}
......
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