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.

63 lines
1.8 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../postgresql/postgresql.conf
  5. # Copyright (C) 2006 - 2009 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. # Copyright (C) 1998 - 2003 Clifford Wolf
  8. #
  9. # More information can be found in the files COPYING and README.
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; version 2 of the License. A copy of the
  14. # GNU General Public License can be found in the file COPYING.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. if [ $prefix_auto = 1 ] ; then
  17. if [ "$SDECFG_PKG_POSTGRESQL_PREFIX" ] ; then
  18. prefix="$SDECFG_PKG_POSTGRESQL_PREFIX"
  19. else
  20. prefix="opt/postgresql"
  21. fi
  22. set_confopt
  23. fi
  24. # check if we should build and install the contributed 3rd. party
  25. # applications and tools
  26. [ "$SDECFG_PKG_POSTGRESQL_CONTRIB" == 0 ] ||
  27. var_append patchfiles ' ' "$confdir/build_contrib.diff"
  28. var_append extraconfopt " " "--with-gnu-ld"
  29. # Enable thread-safety for libpq and ecpg by default
  30. var_append confopt ' ' "--enable-thread-safety"
  31. # --with-tcl build Tcl modules (PL/Tcl)
  32. for x in openssl perl python; do
  33. if pkginstalled $x; then
  34. var_append extraconfopt " " "--with-$x"
  35. fi
  36. done
  37. for x in readline; do
  38. if ! pkginstalled $x; then
  39. var_append extraconfopt " " "--without-$x"
  40. fi
  41. done
  42. postgresql_pm() {
  43. # Create the data directory
  44. mkdir -p $root/$localstatedir/data
  45. chown -R postgres:postgres $root/$localstatedir/data
  46. # Create the Profile
  47. echo "Creating /etc/profile.d/$pkg ..."
  48. cat <<- EOT > $root/etc/profile.d/$pkg
  49. export PGDATA=$localstatedir/data
  50. EOT
  51. }
  52. hook_add postmake 5 "postgresql_pm"