OK. On my side, I installed from the tarball without problems, and Java runs as expected.
Proposed basis for a patch (needs improvement):
--- get-java6-jre.old 2015-01-27 14:00:49.816045136 +0100
+++ get-java6-jre.new 2015-01-27 14:13:54.862635672 +0100
@@ -5,16 +5,15 @@
#
# Author : Eric Joseph-Alexandre <erjo@slitaz.org>
-PACKAGE="java6-jre"
+PACKAGE="java8-jre"
WEB_SITE="http://www.java.com/"
SHORT_DESC="SUN Java Runtime."
DEPENDS="xorg-libXtst"
-TARBALL="jre.bin"
+TARBALL="AutoDL?BundleId=101398"
TEMP_DIR="/tmp/$PACKAGE.$$"
ROOT="$1"
-URL="$(wget -O - ${WEB_SITE}en/download/manual_v6.jsp | \
- sed '/self-extracting/!d;s/.*href="\([^"]*\).*/\1/;q')"
+URL="http://javadl.sun.com/webapps/download/AutoDL?BundleId=101398"
# Check if we are root starting anything
if test $(id -u) != 0 ; then
@@ -37,20 +36,16 @@
cd $TEMP_DIR
# Download the file
-test -f $TARBALL || wget $URL -O $TARBALL
-if [ ! -f $TARBALL ]; then
+test -f "$TARBALL" || wget "$URL" -O "$TARBALL"
+if [ ! -f "$TARBALL" ]; then
cd $CUR_DIR
rm -rf $TEMP_DIR
echo "Could not download $TARBALL. Exiting."
exit 1
fi
-# Do not trust 'df' free space
-sed -i 's/exit 3$//' $TARBALL
-
# Run the install file user may agree to SUN EULA
-chmod +x $TARBALL
-sh ${TARBALL}
+tar -xzf "$TARBALL"
# Make the package
@@ -60,7 +55,7 @@
mv jre${VERSION} $PACKAGE-$VERSION/fs/usr/lib/java
# extracted pkg can be removed: Save RAM
-rm -rf $TARBALL
+rm -rf "$TARBALL"
#delete unecessary files
rm -rf $PACKAGE-$VERSION/fs/usr/lib/java/jre${VERSION}/man
I couldn't come up with a correct regexp for the URL= bit. If someone can, here's the wget command to be used as input:
wget -O - ${WEB_SITE}en/download/linux_manual.jsp
I don't know what to do with the "don't trust df" part.
Also, the file should be renamed to get-java8-jre (note the 8) or to the more generic get-java-jre.
Hope this helps.