@ -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 - 201 0 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"