Dash:
[t2-trunk.git] / package / database / postgresql / postgresql.conf
blobd852c636f9e35a7f5ed6e9ab2943f9199703aad6
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/postgresql/postgresql.conf
3 # Copyright (C) 2004 - 2021 The T2 SDE Project
4 # Copyright (C) 1998 - 2003 ROCK Linux Project
5
6 # This Copyright note is generated by scripts/Create-CopyPatch,
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 version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
13 if [ $prefix_auto = 1 ]; then
14         if [ "$SDECFG_PKG_POSTGRESQL_CORE_PREFIX" ]; then
15                 prefix="$SDECFG_PKG_POSTGRESQL_CORE_PREFIX"
16           else
17                 prefix="opt/postgresql"
18          fi
19         set_confopt
22 var_append extraconfopt " " "--with-CXX"
23 var_append extraconfopt " " "--with-gnu-ld"
24 var_append extraconfopt " " "--with-perl"
25 var_append extraconfopt " " "--with-openssl"
27 #  --with-tcl              build Tcl modules (PL/Tcl)
28 if pkginstalled perl; then
29         var_append extraconfopt " " "--with-perl"
31 if pkginstalled python; then
32         var_append extraconfopt " " "--with-python"
35 postgresql_pm() {
36         # Create the data directory
37         mkdir -p $root$localstatedir/lib/postgres/
38         chown -R postgres:postgres $root$localstatedir/lib/postgres
40         # Create the Profile
41         echo "Creating /etc/profile.d/$pkg ..."
42         cat <<- EOT > $root/etc/profile.d/$pkg
43                 export PGDATA=$localstatedir/lib/postgres
44         EOT
47 hook_add postmake 5 "postgresql_pm"
49 hook_add postmake 4 "make -C contrib/"
50 hook_add postdoc  3 "cp -dR contrib/ $docdir/"