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.

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