From 101716ac56de31da244132db69ddf27d801b5098 Mon Sep 17 00:00:00 2001 From: Martin Bravenboer Date: Wed, 6 Aug 2003 14:20:26 +0000 Subject: [PATCH] * fix expression and build script for sun j2re for linux. Build script should be improved to handle to installation stuff Sun is doing in their script. svn path=/nixpkgs/trunk/; revision=260 --- pkgs/j2re/j2re-sun-linux-build.sh | 16 ++++++++++++++++ pkgs/j2re/j2re-sun-linux.fix | 12 ++++++++++++ 2 files changed, 28 insertions(+) create mode 100755 pkgs/j2re/j2re-sun-linux-build.sh create mode 100644 pkgs/j2re/j2re-sun-linux.fix diff --git a/pkgs/j2re/j2re-sun-linux-build.sh b/pkgs/j2re/j2re-sun-linux-build.sh new file mode 100755 index 000000000000..8fc4545332b3 --- /dev/null +++ b/pkgs/j2re/j2re-sun-linux-build.sh @@ -0,0 +1,16 @@ +#! /bin/sh + +mkdir -p $out || exit 1 +cd $out || exit 1 +tail +473 $binzip > j2re.exe || exit 1 +chmod u+x j2re.exe || exit 1 +./j2re.exe || exit 1 +rm j2re.exe || exit 1 +mv j2re1.4.2/* . || exit 1 +rmdir j2re1.4.2 || exit 1 + +PACKED_JARS="lib/rt lib/jsse lib/charsets lib/ext/localedata lib/plugin javaws/javaws" + +for i in $PACKED_JARS; do + lib/unpack $i.pack $i.jar || exit 1 +done \ No newline at end of file diff --git a/pkgs/j2re/j2re-sun-linux.fix b/pkgs/j2re/j2re-sun-linux.fix new file mode 100644 index 000000000000..83249cca8140 --- /dev/null +++ b/pkgs/j2re/j2re-sun-linux.fix @@ -0,0 +1,12 @@ +Package( + [ ("name", "j2re-sun-linux-1.4.2") + , ("build", Relative("j2re/j2re-sun-linux-build.sh")) + + , ("binzip", App(IncludeFix("fetchurl/fetchurl.fix"), + [ ("url", "http://java.sun.com/webapps/download/AutoDL?BundleId=8573") + , ("md5", "2f0ab3bdc03ea51a2da6d0b33e4360f4") + ])) + + , ("glibc", IncludeFix("glibc/glibc.fix")) + ] +) \ No newline at end of file