This repository has been archived by the owner on Sep 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add jdk8 for Linux using the template for jdk
- Loading branch information
Showing
4 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
#### Download in build because we have to set cookies #### | ||
if [ "$ARCH" = "32" ]; then | ||
curl -v -j -k -L -H "Cookie: oraclelicense=accept-securebackup-cookie" -b gpw_e24=http%3A%2F%2Fwww.oracle.com -o jdk.tar.gz -L 'http://download.oracle.com/otn-pub/java/jdk/8u77-b03/jdk-8u77-linux-i586.tar.gz' | ||
lib="i386" | ||
else | ||
curl -v -j -k -L -H "Cookie: oraclelicense=accept-securebackup-cookie" -b gpw_e24=http%3A%2F%2Fwww.oracle.com -o jdk.tar.gz -L 'http://download.oracle.com/otn-pub/java/jdk/8u77-b03/jdk-8u77-linux-x64.tar.gz' | ||
lib="amd64" | ||
# jdk/lib/amd64/ | ||
# jdk/lib/amd64/jli/ | ||
fi | ||
|
||
# Extract files | ||
tar -xzvf jdk.tar.gz | ||
mv jdk1.8.0_77 "$PREFIX/jdk" | ||
|
||
# Make symlinks so that things are in the prefix's bin directory | ||
mkdir -p "$PREFIX/bin" | ||
cd "$PREFIX/bin" | ||
for filename in ../jdk/bin/*; do | ||
ln -s $filename $(basename $filename) | ||
done | ||
|
||
# Make symlinks so that things are in the prefix's lib directory | ||
mkdir -p "$PREFIX/lib" | ||
cd "$PREFIX/lib" | ||
for filename in ../jdk/lib/${lib}/* ../jdk/lib/${lib}/jli/*; do | ||
ln -s $filename $(basename $filename) | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package: | ||
name: jdk8 | ||
version: !!str 8.u77 | ||
|
||
requirements: | ||
build: | ||
- curl | ||
|
||
test: | ||
commands: | ||
- java -version | ||
|
||
about: | ||
home: http://www.oracle.com/technetwork/java/javase/ | ||
license: Oracle Binary Code License Agreement |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
echo "By installing the JDK package, you are agreeing to the Oracle Binary Code License Agreement for Java SE." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
echo "By installing the JDK package, you are agreeing to the Oracle Binary Code License Agreement for Java SE." |