summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDet2015-07-19 01:43:21 +0300
committerDet2015-07-19 01:43:21 +0300
commit1fd89b715e43d1329d2a7537e56304d2fb712ec0 (patch)
tree30c9c72542695c027bd62ed613e506512c187035
parent71ebc1adc3af3e7147bd37560e0d4b336527f3f9 (diff)
downloadaur-1fd89b715e43d1329d2a7537e56304d2fb712ec0.tar.gz
8u51-2: Install Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD15
-rw-r--r--jce_policy-8.zipbin0 -> 8409 bytes
3 files changed, 15 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index cbcafd8d004..ff3a6690336 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = jre
pkgdesc = Oracle Java Runtime Environment
pkgver = 8u51
- pkgrel = 1
+ pkgrel = 2
url = http://www.oracle.com/technetwork/java/javase/downloads/index.html
install = jre.install
arch = i686
@@ -40,7 +40,9 @@ pkgbase = jre
backup = etc/java-jre8/psfont.properties.ja
backup = etc/java-jre8/psfontj2d.properties
backup = etc/java-jre8/sound.properties
+ source = http://download.oracle.com/otn-pub/java/jce/8/jce_policy-8.zip
source = policytool-jre8.desktop
+ md5sums = b3c7031bc65c28c2340302065e7d00d3
md5sums = 762729fa0faba8ff2b5a29c249c95079
source_i686 = http://download.oracle.com/otn-pub/java/jdk/8u51-b16/jre-8u51-linux-i586.tar.gz
md5sums_i686 = f234dacdff97e6ac5ff3e85d58f2d158
diff --git a/PKGBUILD b/PKGBUILD
index fa0989a9569..c261740b31a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@ _major=8
_minor=51
_build=b16
pkgver=${_major}u${_minor}
-pkgrel=1
+pkgrel=2
pkgdesc="Oracle Java Runtime Environment"
arch=('i686' 'x86_64')
url=http://www.oracle.com/technetwork/java/javase/downloads/index.html
@@ -43,10 +43,12 @@ backup=("etc/java-$_jname/amd64/jvm.cfg"
"etc/java-$_jname/sound.properties")
[[ $CARCH = i686 ]] && backup[0]="etc/java-$_jname/i386/jvm.cfg"
install=$pkgname.install
-source=("policytool-$_jname.desktop")
+source=("http://download.oracle.com/otn-pub/java/jce/$_major/jce_policy-$_major.zip"
+ "policytool-$_jname.desktop")
source_i686=("http://download.oracle.com/otn-pub/java/jdk/$pkgver-$_build/$pkgname-$pkgver-linux-i586.tar.gz")
source_x86_64=("http://download.oracle.com/otn-pub/java/jdk/$pkgver-$_build/$pkgname-$pkgver-linux-x64.tar.gz")
-md5sums=('762729fa0faba8ff2b5a29c249c95079')
+md5sums=('b3c7031bc65c28c2340302065e7d00d3'
+ '762729fa0faba8ff2b5a29c249c95079')
md5sums_i686=('f234dacdff97e6ac5ff3e85d58f2d158')
md5sums_x86_64=('3c4e3ed6b1c61fe18b9a88ea8b2d9384')
## Alternative mirror, if your local one is throttled:
@@ -123,6 +125,13 @@ package() {
mv COPYRIGHT LICENSE README *.txt "$pkgdir"/usr/share/licenses/java$_major-$pkgname/
ln -sf /usr/share/licenses/java$_major-$pkgname/ "$pkgdir"/usr/share/licenses/$pkgname
+ msg2 "Installing Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files..."
+ # Replace default "strong", but limited, cryptography to get an "unlimited strength" one for
+ # things like 256-bit AES. Enabled by default in OpenJDK:
+ # - http://suhothayan.blogspot.com/2012/05/how-to-install-java-cryptography.html
+ # - http://www.eyrie.org/~eagle/notes/debian/jce-policy.html
+ install -m644 "$srcdir"/UnlimitedJCEPolicyJDK$_major/*.jar lib/security/
+
msg2 "Enabling copy+paste in unsigned applets..."
# Copy/paste from system clipboard to unsigned Java applets has been disabled since 6u24:
# - https://blogs.oracle.com/kyle/entry/copy_and_paste_in_java
diff --git a/jce_policy-8.zip b/jce_policy-8.zip
new file mode 100644
index 00000000000..63cd0cd12b3
--- /dev/null
+++ b/jce_policy-8.zip
Binary files differ