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.

46 lines
1.3 KiB

  1. #!/bin/sh
  2. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. #
  5. # T2 SDE: package/.../java-dirtree/java-jdk-conf.in
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This program is free software; you can redistribute it and/or modify
  11. # it under the terms of the GNU General Public License as published by
  12. # the Free Software Foundation; version 2 of the License. A copy of the
  13. # GNU General Public License can be found in the file COPYING.
  14. # --- T2-COPYRIGHT-NOTE-END ---
  15. pkgprefix -t java-dirtree
  16. prefix=$( pkgprefix java-dirtree )/$pkg
  17. set_confopt
  18. if [ "$1" = "jre" ]; then
  19. hook_add postmake 5 'jre_populate_profile'
  20. else
  21. hook_add postmake 5 'jdk_populate_profile'
  22. fi
  23. jdk_populate_profile() {
  24. cat <<-EOT > $root/`pkgprefix sysconfdir java-dirtree`/$pkg.in
  25. JAVA_HOME=/$prefix
  26. CLASSPATH=$libdir:/$prefix/jre/lib:\$CLASSPATH
  27. MANPATH=$mandir:\$MANPATH
  28. PATH=$bindir:/$prefix/jre/bin:\$PATH
  29. export JAVA_HOME CLASSPATH MANPATH PATH
  30. EOT
  31. }
  32. jre_populate_profile() {
  33. cat <<-EOT > $root/`pkgprefix sysconfdir java-dirtree`/$pkg.in
  34. JRE_HOME=/$prefix
  35. CLASSPATH=$libdir:\$CLASSPATH
  36. MANPATH=$mandir:\$MANPATH
  37. PATH=$bindir:\$PATH
  38. export JRE_HOME CLASSPATH MANPATH PATH
  39. EOT
  40. }