Skip to content

Commit

Permalink
Merge branch 'master' of github.com:lunar-linux/moonbase-other
Browse files Browse the repository at this point in the history
  • Loading branch information
florin65 committed Jul 28, 2012
2 parents e8c21a6 + c88ff2c commit 85e031c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
3 changes: 0 additions & 3 deletions compilers/sun-jdk/DEPENDS
@@ -1,4 +1 @@
depends unzip
# the download location redirects to HTTPS protocol
# and we need to make sure wget verifies the certificate
depends ca-certificates
4 changes: 4 additions & 0 deletions compilers/sun-jdk/PRE_BUILD
Expand Up @@ -10,6 +10,10 @@ fi &&
JDK_ARCHIVE=jdk-$VERSION-linux-$bits.tar.gz &&
JDK_POLICY=UnlimitedJCEPolicyJDK7.zip &&

if ! module_installed ca-certificates; then
message "${PROBLEM_COLOR}If the following downloads fail, please make sure you build wget with SSL support and and got ca-certificates installed${DEFAULT_COLOR}"
fi

wget -c --header "Cookie: gpw_e24=a" http://download.oracle.com/otn-pub/java/jdk/$FVERSION/$JDK_ARCHIVE &&
wget -c --header "Cookie: gpw_e24=a" http://download.oracle.com/otn-pub/java/jce/7/$JDK_POLICY &&

Expand Down
3 changes: 0 additions & 3 deletions compilers/sun-jre/DEPENDS
@@ -1,4 +1 @@
depends unzip
# the download location redirects to HTTPS protocol
# and we need to make sure wget verifies the certificate
depends ca-certificates
15 changes: 12 additions & 3 deletions compilers/sun-jre/PRE_BUILD
@@ -1,15 +1,24 @@
default_pre_build &&

CURDIR="`pwd`" &&
cd $SOURCE_CACHE &&

JDK_POLICY=UnlimitedJCEPolicyJDK7.zip &&
if ! module_installed ca-certificates; then
message "${PROBLEM_COLOR}If the following download fails, please make sure you build wget with SSL support and and got ca-certificates installed${DEFAULT_COLOR}"
fi
wget -c --header "Cookie: gpw_e24=a" http://download.oracle.com/otn-pub/java/jce/7/$JDK_POLICY &&

JCE_SHA1_VFY='7d3c9ee89536b82cd21c680088b1bced16017253 UnlimitedJCEPolicyJDK7.zip' &&
JCE_SHA1_TST=`sha1sum UnlimitedJCEPolicyJDK7.zip` &&

if [ "$JCE_SHA1_VFY" != "$JCE_SHA1_TST" ]; then
message "Bad checksum of $JDK_POLICY file - deleting"
rm -f $JDK_POLICY
exit 1
message "Bad checksum of $JDK_POLICY file - deleting"
rm -f $JDK_POLICY
exit 1
fi &&

cd $SOURCE_DIRECTORY/lib/security &&
unzip $SOURCE_CACHE/$JDK_POLICY &&

cd "$CURDIR"

0 comments on commit 85e031c

Please sign in to comment.