Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add support for JCE Unlimited Strength Jurisdiction Policy Files (#31) #37

Merged
merged 1 commit into from

2 participants

@ladios

Download and symlink "Java Cryptography Extension (JCE) Unlimited
Strength Jurisdiction Policy Files" required by the current release of
upstream.

@ladios ladios Add support for JCE Unlimited Strength Jurisdiction Policy Files (#31)
Download and symlink "Java Cryptography Extension (JCE) Unlimited
Strength Jurisdiction Policy Files" required by the current release of
upstream.
a04fad4
@flexiondotorg flexiondotorg merged commit 6c3607d into flexiondotorg:master
@ladios ladios deleted the ladios:fix_31 branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 13, 2012
  1. @ladios

    Add support for JCE Unlimited Strength Jurisdiction Policy Files (#31)

    ladios authored
    Download and symlink "Java Cryptography Extension (JCE) Unlimited
    Strength Jurisdiction Policy Files" required by the current release of
    upstream.
This page is out of date. Refresh to see the latest.
Showing with 27 additions and 0 deletions.
  1. +27 −0 oab-java.sh
View
27 oab-java.sh
@@ -475,6 +475,33 @@ do
pid=$!;progress_loop $pid
done
+# Get JCE download index
+DOWNLOAD_INDEX=`grep -P -o "/technetwork/java/javase/downloads/jce-${JAVA_VER}-download-\d+\.html" /tmp/oab-index.html | uniq`
+ncecho " [x] Getting Java Cryptography Extension download page "
+wget http://www.oracle.com/${DOWNLOAD_INDEX} -O /tmp/oab-download-jce.html >> "$log" 2>&1 &
+pid=$!;progress $pid
+
+# Get JCE download URL, size, and cookies required for download
+if [ "${JAVA_UPSTREAM}" == "sun-java6" ]; then
+ JCE_POLICY="jce_policy-6.zip"
+ DOWNLOAD_PATH=`grep "jce[^']*-6-oth-JPR'\]\['path" /tmp/oab-download-jce.html | cut -d'=' -f2 | cut -d'"' -f2`
+ DOWNLOAD_URL="${DOWNLOAD_PATH}${JCE_POLICY}"
+ COOKIES="oraclelicense=accept-securebackup-cookie;gpw_e24=http://edelivery.oracle.com"
+else
+ JCE_POLICY="UnlimitedJCEPolicyJDK7.zip"
+ DOWNLOAD_URL=`grep ${JCE_POLICY} /tmp/oab-download-jce.html | cut -d'{' -f2 | cut -d',' -f3 | cut -d'"' -f4`
+ COOKIES="oraclelicensejce-7-oth-JPR=accept-securebackup-cookie;gpw_e24=http://edelivery.oracle.com"
+fi
+DOWNLOAD_SIZE=`grep ${JCE_POLICY} /tmp/oab-download-jce.html | cut -d'{' -f2 | cut -d',' -f2 | cut -d'"' -f4`
+
+ncecho " [x] Downloading ${JCE_POLICY} : ${DOWNLOAD_SIZE} "
+wget --no-check-certificate --header="Cookie: ${COOKIES}" -c "${DOWNLOAD_URL}" -O ${WORK_PATH}/pkg/${JCE_POLICY} >> "$log" 2>&1 &
+pid=$!;progress_loop $pid
+
+ncecho " [x] Symlinking ${JCE_POLICY} "
+ln -s ${WORK_PATH}/pkg/${JCE_POLICY} ${WORK_PATH}/src/${JCE_POLICY} >> "$log" 2>&1 &
+pid=$!;progress_loop $pid
+
# Determine the new version
NEW_VERSION="${DEB_VERSION}~${LSB_CODE}1"
Something went wrong with that request. Please try again.