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.

66 lines
1.9 KiB

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