diff --git a/package/alessandro/php/php.conf b/package/alessandro/php/php.conf index 8188db004..8d57fab43 100644 --- a/package/alessandro/php/php.conf +++ b/package/alessandro/php/php.conf @@ -34,7 +34,7 @@ if [ "$ROCKCFG_PKG_PHP_mysql" = 1 ] ; then var_append extraconfopt " " "--with-mysql$pkg_php_shared" fi -[ "$ROCKCFG_PKG_PHP_postgresql" = 1 ] && var_append extraconfopt " " "--with-pgsql" +[ "$ROCKCFG_PKG_PHP_postgresql" = 1 ] && var_append extraconfopt " " "--with-pgsql=${pkg_postgresql_prefix}" [ "$ROCKCFG_PKG_PHP_openldap" = 1 ] && var_append extraconfopt " " "--with-ldap=${pkg_openldap_prefix}" [ "$ROCKCFG_PKG_PHP_openssl" = 1 ] && var_append extraconfopt " " "--with-openssl" diff --git a/package/michiel/postgresql/postgresql.conf b/package/michiel/postgresql/postgresql.conf index 30df31e39..fbe4f60ca 100644 --- a/package/michiel/postgresql/postgresql.conf +++ b/package/michiel/postgresql/postgresql.conf @@ -28,3 +28,7 @@ fi var_append extraconfopt " " "--with-CXX" var_append extraconfopt " " "--with-gnu-ld" var_append extraconfopt " " "--with-perl" + +# other packages may need to know where postgres is. +hook_add postmake 3 "echo \"pkg_postgresql_prefix=/$prefix\" \ + > $root/var/adm/parse-config/postgresql"