Commit f49e69b6 authored by Marco Mariani's avatar Marco Mariani

copy downloaded policy files to build tree

parent ea623c87
...@@ -35,6 +35,7 @@ parts = ...@@ -35,6 +35,7 @@ parts =
slapos-cookbook slapos-cookbook
directories directories
jdk jdk
jdk-policy
ant ant
autoconf autoconf
automake automake
...@@ -64,12 +65,14 @@ slapos.cookbook = ...@@ -64,12 +65,14 @@ slapos.cookbook =
[jdk-download] [jdk-download]
# hack to download java bypassing javascript requirement # hack to download java and policy files, bypassing javascript requirement
recipe = plone.recipe.command recipe = plone.recipe.command
location = ${buildout:parts-directory}/${:_buildout_section_name_} 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
zimbra-filename = jdk1.7.0_13.tgz 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 =
...@@ -77,16 +80,28 @@ command = ...@@ -77,16 +80,28 @@ 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-sources:location}/ThirdPartyBuilds/x86_64/java mkdir -p ${:zimbra-target}
cp ${:location}/${:filename} ${zimbra-sources:location}/ThirdPartyBuilds/x86_64/java/${:zimbra-filename} 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] [jdk]
# Uncompress the downloaded JDK
recipe = hexagonit.recipe.download recipe = hexagonit.recipe.download
url = ${jdk-download:location}/${jdk-download:filename} url = ${jdk-download:location}/${jdk-download:filename}
strip-top-level-dir = True 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] [ant]
recipe = hexagonit.recipe.download recipe = hexagonit.recipe.download
url = http://mirrors.linsrv.net/apache//ant/binaries/${:filename} 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