OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
2.7 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../sun-jdk-131/sun-jdk-131.conf
  5. # Copyright (C) 2006 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; version 2 of the License. A copy of the
  12. # GNU General Public License can be found in the file COPYING.
  13. # --- SDE-COPYRIGHT-NOTE-END ---
  14. . $base/package/*/*/java-sun-conf.in jre
  15. # Overrule the existing preconf script with a new one.
  16. java_preconf() {
  17. # eliminate interactivity and integrity checks.
  18. cp -v $java_srctar .
  19. sed -i 's,more <<,cat <<,' ${java_srctar##*/}
  20. sed -i 's,agreed=,agreed=1,' ${java_srctar##*/}
  21. # Here we hardcode the java extract dir. Since
  22. # java 1.3 is no longer maintained this is not
  23. # really a problem.
  24. java_home_original=jdk1.3.1_19
  25. # Ready to unpack/install the archive.
  26. sh ${java_srctar##*/}
  27. # Patch a few scripts to support x86-64 as well
  28. # in 32 bits modus.
  29. sed -i 's,ia32 | ia64,ia32 | x86_64 | ia64,' $java_home_original/bin/.java_wrapper
  30. sed -i 's,ia32 | ia64,ia32 | x86_64 | ia64,' $java_home_original/jre/bin/.java_wrapper
  31. sed -i 's,ia32 | ia64,ia32 | x86_64 | ia64 | i?86,' $java_home_original/bin/ControlPanel
  32. sed -i 's,ia32 | ia64,ia32 | x86_64 | ia64 | i?86,' $java_home_original/jre/bin/ControlPanel
  33. sed -i 's,i\[3-6\]86,i[3-6]86 | ia32 | x86_64 | ia64 | i?86,' $java_home_original/bin/realpath
  34. sed -i 's,i\[3-6\]86,i[3-6]86 | ia32 | x86_64 | ia64 | i?86,' $java_home_original/jre/bin/realpath
  35. # Patch the use of 'head -1' into 'head -n 1'
  36. sed -i 's,head -,head -n ,' $java_home_original/bin/.java_wrapper
  37. sed -i 's,head -,head -n ,' $java_home_original/jre/bin/.java_wrapper
  38. # To get a working java environment we need one thing more.
  39. # We need to ensure 'classic' behaviour. All others will result
  40. # in a missing 'libstdc++-libc6.1-1.so.2' library. Since this
  41. # package is only for a proof of concept I can live with this
  42. # behavior for the time being.
  43. cat <<-'EOT' > $java_home_original/jre/lib/jvm.cfg
  44. #
  45. # @(#)jvm.cfg 1.10 00/08/01
  46. #
  47. # Copyright 1999 by Sun Microsystems, Inc.,
  48. # 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  49. # All rights reserved.
  50. #
  51. # List of JVMs that can be used as the first option to java, javac, etc.
  52. # Order is important -- first in this list is the default JVM.
  53. #
  54. # Remark:
  55. # Only classic is currently supported, since the others will result
  56. # in a missing library 'libstdc++-libc6.1-1.so.2'. Until this library
  57. # is available the other possible JVMs can not be used.
  58. # end remark
  59. #-client
  60. #-hotspot
  61. #-server
  62. -classic
  63. EOT
  64. }