From bc8b4f3695cb794ac49993f64dd85fb9cc0376bf Mon Sep 17 00:00:00 2001 From: Stefan Fiedler Date: Tue, 19 Jul 2005 13:50:18 +0000 Subject: [PATCH] Stefan Fiedler: add sun-jdk15 (1.5.0.3) add sun-jdk14 (1.4.2.08), required by openoffice make .bin files executable before extraction Index: package/java/sun-jdk14/sun-jdk14.conf =================================================================== [2005052221490030895] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@6219 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/java/sun-jdk14/head-tail.patch | 20 +++++++++++ package/java/sun-jdk14/sun-jdk14.conf | 12 +++++++ package/java/sun-jdk14/sun-jdk14.desc | 50 ++++++++++++++++++++++++++ package/java/sun-jdk15/sun-jdk15.conf | 10 ++++++ package/java/sun-jdk15/sun-jdk15.desc | 50 ++++++++++++++++++++++++++ 5 files changed, 142 insertions(+) create mode 100644 package/java/sun-jdk14/head-tail.patch create mode 100644 package/java/sun-jdk14/sun-jdk14.conf create mode 100644 package/java/sun-jdk14/sun-jdk14.desc create mode 100644 package/java/sun-jdk15/sun-jdk15.conf create mode 100644 package/java/sun-jdk15/sun-jdk15.desc diff --git a/package/java/sun-jdk14/head-tail.patch b/package/java/sun-jdk14/head-tail.patch new file mode 100644 index 000000000..ddc59cde8 --- /dev/null +++ b/package/java/sun-jdk14/head-tail.patch @@ -0,0 +1,20 @@ +--- j2sdk-1_4_2_08-linux-i586.bin 2005-05-21 03:31:21.000000000 +0200 ++++ java.bin 2005-05-21 11:43:00.000000000 +0200 +@@ -355,7 +355,7 @@ + esac + done + outname=install.sfx.$$ +-diskSpace=`df -k . | tail -1 | awk '{if ( $4 ~ /%/) { print $3 } else { print $4 } }'` ++diskSpace=`df -k . | tail -n1 | awk '{if ( $4 ~ /%/) { print $3 } else { print $4 } }'` + if [ $diskSpace -lt $diskSpaceRequired ]; then + printf "You will need atleast %s kBytes of Disk Free\n" $diskSpaceRequired + printf "Please free up the required Disk Space and try again\n" +@@ -363,7 +363,7 @@ + fi + trap 'rm -f $outname; exit 1' HUP INT QUIT TERM + echo "Unpacking..." +-tail +511 $0 > $outname ++tail -n+511 $0 > $outname + if [ -x /usr/bin/sum ] ; then + echo "Checksumming..." + diff --git a/package/java/sun-jdk14/sun-jdk14.conf b/package/java/sun-jdk14/sun-jdk14.conf new file mode 100644 index 000000000..758b84d22 --- /dev/null +++ b/package/java/sun-jdk14/sun-jdk14.conf @@ -0,0 +1,12 @@ +install_jdk () { + cp -a $archdir/j2sdk-${ver//./_}-linux-i586.bin java.bin + chmod +x java.bin + + patch -p0 < $confdir/head-tail.patch + + yes | ./java.bin + cp -a --reply=yes j2sdk1.4* /opt +} + +autoextract=0 +custmain="install_jdk" diff --git a/package/java/sun-jdk14/sun-jdk14.desc b/package/java/sun-jdk14/sun-jdk14.desc new file mode 100644 index 000000000..9d8642569 --- /dev/null +++ b/package/java/sun-jdk14/sun-jdk14.desc @@ -0,0 +1,50 @@ + +[COPY] --- ROCK-COPYRIGHT-NOTE-BEGIN --- +[COPY] +[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. +[COPY] Please add additional copyright information _after_ the line containing +[COPY] the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +[COPY] the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +[COPY] +[COPY] ROCK Linux: rock-src/package/stf/lsdvd/lsdvd.desc +[COPY] ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf +[COPY] +[COPY] This program is free software; you can redistribute it and/or modify +[COPY] it under the terms of the GNU General Public License as published by +[COPY] the Free Software Foundation; either version 2 of the License, or +[COPY] (at your option) any later version. A copy of the GNU General Public +[COPY] License can be found at Documentation/COPYING. +[COPY] +[COPY] Many people helped and are helping developing ROCK Linux. Please +[COPY] have a look at http://www.rocklinux.org/ and the Documentation/TEAM +[COPY] file for details. +[COPY] +[COPY] --- ROCK-COPYRIGHT-NOTE-END --- + +[I] JavaTM 2 Platform Standard Edition Development Kit 1.4.2 + +[T] Java 2 Platform, Standard Edition (J2SE) provides a complete applications +[T] environment for a wide range of computer systems. It also serves as the +[T] foundation for the Java 2 Platform, Enterprise Edition (J2EE) and Java Web +[T] Services. +[T] The J2SE Runtime Environment (JRE) provides all the software required to +[T] run Java applets and applications. +[T] The J2SE Development Kit (JDK) contains everything that is in the JRE, as +[T] well as tools for developing Java applets and applications. + +[U] http://java.sun.com/j2se/1.4.2/index.jsp + +[A] Sun Microsystems, Inc. + +[M] Stefan Fiedler + +[C] extra/development +[R] + x86 + +[L] Commercial +#[L] http://java.sun.com/j2se/1.4.2/j2sdk-1_4_2_08-license.txt +[S] Stable +[V] 1.4.2.08 +[P] O -?---5---9 500.000 + +[D] X j2sdk-1_4_2_08-linux-i586.bin http://java.sun.com/j2se/1.4.2/download.jsp NODIST NOAUTO diff --git a/package/java/sun-jdk15/sun-jdk15.conf b/package/java/sun-jdk15/sun-jdk15.conf new file mode 100644 index 000000000..67d0b743e --- /dev/null +++ b/package/java/sun-jdk15/sun-jdk15.conf @@ -0,0 +1,10 @@ +install_jdk () +{ + cp -a $archdir/jdk-${ver//./_}-linux-i586.bin java.bin + chmod +x java.bin + yes | ./java.bin + cp -a --reply=yes jdk1.5* /opt +} + +autoextract=0 +custmain="install_jdk" diff --git a/package/java/sun-jdk15/sun-jdk15.desc b/package/java/sun-jdk15/sun-jdk15.desc new file mode 100644 index 000000000..eb90a046e --- /dev/null +++ b/package/java/sun-jdk15/sun-jdk15.desc @@ -0,0 +1,50 @@ + +[COPY] --- ROCK-COPYRIGHT-NOTE-BEGIN --- +[COPY] +[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. +[COPY] Please add additional copyright information _after_ the line containing +[COPY] the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +[COPY] the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +[COPY] +[COPY] ROCK Linux: rock-src/package/stf/lsdvd/lsdvd.desc +[COPY] ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf +[COPY] +[COPY] This program is free software; you can redistribute it and/or modify +[COPY] it under the terms of the GNU General Public License as published by +[COPY] the Free Software Foundation; either version 2 of the License, or +[COPY] (at your option) any later version. A copy of the GNU General Public +[COPY] License can be found at Documentation/COPYING. +[COPY] +[COPY] Many people helped and are helping developing ROCK Linux. Please +[COPY] have a look at http://www.rocklinux.org/ and the Documentation/TEAM +[COPY] file for details. +[COPY] +[COPY] --- ROCK-COPYRIGHT-NOTE-END --- + +[I] JavaTM 2 Platform Standard Edition Development Kit 5.0 + +[T] Java 2 Platform, Standard Edition (J2SE) provides a complete applications +[T] environment for a wide range of computer systems. It also serves as the +[T] foundation for the Java 2 Platform, Enterprise Edition (J2EE) and Java Web +[T] Services. +[T] The J2SE Runtime Environment (JRE) provides all the software required to +[T] run Java applets and applications. +[T] The J2SE Development Kit (JDK) contains everything that is in the JRE, as +[T] well as tools for developing Java applets and applications. + +[U] http://java.sun.com/j2se/1.5.0/index.jsp + +[A] Sun Microsystems, Inc. + +[M] Stefan Fiedler + +[C] extra/development +[R] + x86 + +[L] Commercial +#[L] http://java.sun.com/j2se/1.5.0/jdk-1_5_0_03-license.txt +[S] Stable +[V] 1.5.0.3 +[P] O -?---5---9 500.000 + +[D] X jdk-1_5_0_3-linux-i586.bin http://java.sun.com/j2se/1.5.0/download.jsp NODIST NOAUTO