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.

47 lines
1.5 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../oc4j/oc4j.conf
  5. # Copyright (C) 2006 - 2008 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. # Oracle Container for Java depends on a java runtime environment.
  15. # Since we do not care to much which one, we just check for the java
  16. # directory tree being around.
  17. pkgprefix -t java-dirtree
  18. prefix=opt/$pkg
  19. set_confopt
  20. # Prevent executing normal make and install build steps.
  21. # This package has custom make and install.
  22. makeopt=
  23. makeinstopt=
  24. # Make sure zip extraction ends up extracting all files into a
  25. # special directory ($pgk-$ver). This is necessary since the
  26. # zip archive does itself not have a common root dir.
  27. var_append zipopt ' ' -d$pkg-$ver
  28. # Custom installation.
  29. oc4j_postmake() {
  30. # Copy the extracted archive to the current prefix location.
  31. # But make sure to preserve any possible links.
  32. tar -c * | tar -x -C /$prefix
  33. # Make sure we end up using the proper environment. For
  34. # we set the required env var in profile.d
  35. cat <<-EOT > $root/etc/profile.d/$pkg
  36. ORACLE_HOME=/$prefix
  37. export ORACLE_HOME
  38. EOT
  39. }
  40. hook_add postmake 5 oc4j_postmake