|
|
@ -29,6 +29,24 @@ var_append extraconfopt " " "--with-CXX" |
|
|
|
var_append extraconfopt " " "--with-gnu-ld" |
|
|
|
var_append extraconfopt " " "--with-perl" |
|
|
|
|
|
|
|
postgresql_pm() { |
|
|
|
# Create the data directory |
|
|
|
mkdir -p $root/$localstatedir/data |
|
|
|
chown -R postgres:postgres $root/$localstatedir/data |
|
|
|
|
|
|
|
# Create the Profile |
|
|
|
echo "Creating /etc/profile.d/$pkg ..." |
|
|
|
cat <<- EOT > $root/etc/profile.d/$pkg |
|
|
|
export PGDATA=$localstatedir/data |
|
|
|
EOT |
|
|
|
|
|
|
|
# Install the init |
|
|
|
install_init postgresql $confdir/postgresql.init |
|
|
|
} |
|
|
|
|
|
|
|
# other packages may need to know where postgres is. |
|
|
|
hook_add postmake 3 "echo \"pkg_postgresql_prefix=/$prefix\" \ |
|
|
|
> $root/var/adm/parse-config/postgresql" |
|
|
|
|
|
|
|
postmake="postgresql_pm" |
|
|
|
|