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.

65 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 - 2007 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. # SSL support
  32. pkginstalled openssl && \
  33. var_append extraconfopt " " "--with-openssl"
  34. # --with-tcl build Tcl modules (PL/Tcl)
  35. # Perl module support (PL/Perl)
  36. if pkginstalled perl; then
  37. var_append extraconfopt " " "--with-perl"
  38. fi
  39. # Python modules support (PL/Python)
  40. if pkginstalled python; then
  41. var_append extraconfopt " " "--with-python"
  42. fi
  43. postgresql_pm() {
  44. # Create the data directory
  45. mkdir -p $root/$localstatedir/data
  46. chown -R postgres:postgres $root/$localstatedir/data
  47. # Create the Profile
  48. echo "Creating /etc/profile.d/$pkg ..."
  49. cat <<- EOT > $root/etc/profile.d/$pkg
  50. export PGDATA=$localstatedir/data
  51. EOT
  52. }
  53. hook_add postmake 5 "postgresql_pm"