diff options
author | Martin Bravenboer <martin.bravenboer@logicblox.com> | 2003-08-06 14:20:26 +0000 |
---|---|---|
committer | Martin Bravenboer <martin.bravenboer@logicblox.com> | 2003-08-06 14:20:26 +0000 |
commit | 101716ac56de31da244132db69ddf27d801b5098 (patch) | |
tree | 5c7a76a440b751d0beecf6e91465b8c6d697a3a7 /pkgs | |
parent | 3b783872d23db0101f78e1c3428b4f7ee4fc4d90 (diff) |
* 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
Diffstat (limited to 'pkgs')
-rwxr-xr-x | pkgs/j2re/j2re-sun-linux-build.sh | 16 | ||||
-rw-r--r-- | pkgs/j2re/j2re-sun-linux.fix | 12 |
2 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/j2re/j2re-sun-linux-build.sh b/pkgs/j2re/j2re-sun-linux-build.sh new file mode 100755 index 0000000000000..8fc4545332b34 --- /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 0000000000000..83249cca81404 --- /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 |