Browse Source

postgresql: Introduced SDECFG_PKG_POSTGRESQL_CLIENTONLY and reintroduced the TZ hack fe8c7bae158100994e553bd65248dbbd9d41e272 from the postgresql-next tree.

user/karasz/test/ecn
Nagy Karoly Gabriel 15 years ago
parent
commit
a546eb99c1
  1. 7
      database/postgresql/config.hlp
  2. 5
      database/postgresql/config.in
  3. 25
      database/postgresql/postgresql.conf

7
database/postgresql/config.hlp

@ -2,7 +2,7 @@
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../postgresql/config.hlp
# Copyright (C) 2006 The OpenSDE Project
# Copyright (C) 2006 - 2010 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
@ -26,3 +26,8 @@ SDECFG_PKG_POSTGRESQL_CONTRIB
within the PostgreSQL package should be build and installed.
Default: Yes
SDECFG_PKG_POSTGRESQL_CLIENTONLY
Enable this option if you want to have a PostgreSQL client only package.
Default: No

5
database/postgresql/config.in

@ -2,7 +2,7 @@
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../postgresql/config.in
# Copyright (C) 2006 The OpenSDE Project
# Copyright (C) 2006 - 2010 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
@ -22,5 +22,8 @@ then
bool "Include PostgreSQL contributed 3rd. Party Applications" \
SDECFG_PKG_POSTGRESQL_CONTRIB 1
bool "Install only PostgreSQL libraries and client" \
SDECFG_PKG_POSTGRESQL_CLIENTONLY 0
menu_end
fi

25
database/postgresql/postgresql.conf

@ -2,7 +2,7 @@
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../postgresql/postgresql.conf
# Copyright (C) 2006 - 2009 The OpenSDE Project
# Copyright (C) 2006 - 2010 The OpenSDE Project
# Copyright (C) 2004 - 2006 The T2 SDE Project
# Copyright (C) 1998 - 2003 Clifford Wolf
#
@ -23,6 +23,15 @@ if [ $prefix_auto = 1 ] ; then
set_confopt
fi
if [ "$SDECFG_PKG_POSTGRESQL_CLIENTONLY" == 1 ]; then
makeinstopt=
hook_add postmake 5 "postgresqlclient_pm"
else
hook_add postmake 5 "postgresql_pm"
fi
# check if we should build and install the contributed 3rd. party
# applications and tools
[ "$SDECFG_PKG_POSTGRESQL_CONTRIB" == 0 ] ||
@ -47,6 +56,18 @@ for x in readline; do
fi
done
# Do not build internal TZData if external is installed
if pkginstalled tzdata ; then
pkgprefix -t tzdata
var_append extraconfopt " " "--with-system-tzdata=$( pkgprefix datadir tzdata )/zoneinfo"
fi
postgresqlclient_pm() {
for x in src/{bin,include,interfaces} doc; do
eval $MAKE $makeopt -C $x install
done
}
postgresql_pm() {
# Create the data directory
mkdir -p $root/$localstatedir/data
@ -59,5 +80,3 @@ postgresql_pm() {
EOT
}
hook_add postmake 5 "postgresql_pm"

Loading…
Cancel
Save