Commit f3a6831f authored by Chris Thurber's avatar Chris Thurber Committed by GitHub

Merge pull request #2740 from uberhacker/update-jdk8-package

Update jdk8 from 8u172 to 8u181
parents 545b75cb 63fd21f3
......@@ -3,40 +3,40 @@ require 'package'
class Jdk8 < Package
description 'The JDK is a development environment for building applications, applets, and components using the Java programming language.'
homepage 'http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html'
version '8u172'
version '8u181'
source_url 'http://hg.openjdk.java.net/jdk8/jdk8/archive/2a8f4c022aa0.tar.gz'
source_sha256 'e632ae353ccfb90957cbb6a5818ee063710a41e7b97b490ee58ca5f627d863f1'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/jdk8-8u172-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/jdk8-8u172-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/jdk8-8u172-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/jdk8-8u172-chromeos-x86_64.tar.xz',
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/jdk8-8u181-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/jdk8-8u181-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/jdk8-8u181-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/jdk8-8u181-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '90f418f144133a3776017729599465f9efa1b675ae402c20d22e9007bce901ad',
armv7l: '90f418f144133a3776017729599465f9efa1b675ae402c20d22e9007bce901ad',
i686: 'efe0479401b215616a682a1bcb487d0a9dd1646354bfa344c39f0510f14c3ff0',
x86_64: '827c56c9b2b24cbac1000c13146f568eb6d6ffaa8fde2db702569eaff169e92e',
aarch64: '79d39e708a48b1b38369df5c7b9dbc370150b516992c264e87ce84bc9645da0e',
armv7l: '79d39e708a48b1b38369df5c7b9dbc370150b516992c264e87ce84bc9645da0e',
i686: '5eac08d3901b5bca84cdb897b74d5433fe196b5824654da271052f3360c7492a',
x86_64: 'aeae8471e898fa7b90664eb96a2874c6906ca4f04bbe914aa3d756922b265634',
})
def self.install
case ARCH
when 'aarch64', 'armv7l'
system 'wget -c --header "Cookie: oraclelicense=accept-securebackup-cookie" --no-check-certificate https://download.oracle.com/otn-pub/java/jdk/8u172-b11/a58eab1ec242421181065cdc37240b08/jdk-8u172-linux-arm32-vfp-hflt.tar.gz'
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('jdk-8u172-linux-arm32-vfp-hflt.tar.gz') ) == '965e6cca2255a34e0e44ba8cf00c53472bc9837f080d58ad6e82309ac162e694'
system 'tar xvf jdk-8u172-linux-arm32-vfp-hflt.tar.gz'
system 'wget -c --header "Cookie: oraclelicense=accept-securebackup-cookie" --no-check-certificate https://download.oracle.com/otn-pub/java/jdk/8u181-b13/96a7b8442fe848ef90c96a2fad6ed6d1/jdk-8u181-linux-arm32-vfp-hflt.tar.gz'
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('jdk-8u181-linux-arm32-vfp-hflt.tar.gz') ) == 'c72e37da3c34531949b74a5bd846a3862933408df6306358fcea27876158ef7e'
system 'tar xvf jdk-8u181-linux-arm32-vfp-hflt.tar.gz'
when 'i686'
system 'wget -c --header "Cookie: oraclelicense=accept-securebackup-cookie" --no-check-certificate https://download.oracle.com/otn-pub/java/jdk/8u172-b11/a58eab1ec242421181065cdc37240b08/jdk-8u172-linux-i586.tar.gz'
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('jdk-8u172-linux-i586.tar.gz') ) == '0a4310d31246924d5c3cd161b9da7f446acef373e6484452c80de8d8519f5a33'
system 'tar xvf jdk-8u172-linux-i586.tar.gz'
system 'wget -c --header "Cookie: oraclelicense=accept-securebackup-cookie" --no-check-certificate https://download.oracle.com/otn-pub/java/jdk/8u181-b13/96a7b8442fe848ef90c96a2fad6ed6d1/jdk-8u181-linux-i586.tar.gz'
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('jdk-8u181-linux-i586.tar.gz') ) == 'd78a023abffb7ce4aade43e6db64bbad5984e7c82c54c332da445c9a79c1a904'
system 'tar xvf jdk-8u181-linux-i586.tar.gz'
when 'x86_64'
system 'wget -c --header "Cookie: oraclelicense=accept-securebackup-cookie" --no-check-certificate https://download.oracle.com/otn-pub/java/jdk/8u172-b11/a58eab1ec242421181065cdc37240b08/jdk-8u172-linux-x64.tar.gz'
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('jdk-8u172-linux-x64.tar.gz') ) == '28a00b9400b6913563553e09e8024c286b506d8523334c93ddec6c9ec7e9d346'
system 'tar xvf jdk-8u172-linux-x64.tar.gz'
system 'wget -c --header "Cookie: oraclelicense=accept-securebackup-cookie" --no-check-certificate https://download.oracle.com/otn-pub/java/jdk/8u181-b13/96a7b8442fe848ef90c96a2fad6ed6d1/jdk-8u181-linux-x64.tar.gz'
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('jdk-8u181-linux-x64.tar.gz') ) == '1845567095bfbfebd42ed0d09397939796d05456290fb20a83c476ba09f991d3'
system 'tar xvf jdk-8u181-linux-x64.tar.gz'
end
system "mkdir -p #{CREW_DEST_PREFIX}/share/jdk8"
FileUtils.cd('jdk1.8.0_172') do
FileUtils.cd('jdk1.8.0_181') do
system "rm -f src.zip"
system "cp -r * #{CREW_DEST_PREFIX}/share/jdk8"
end
......
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