diff options
Diffstat (limited to 'databases')
-rw-r--r-- | databases/postgresql83-server/Makefile | 3 | ||||
-rw-r--r-- | databases/postgresql83-server/files/pgsql.sh | 6 |
2 files changed, 7 insertions, 2 deletions
diff --git a/databases/postgresql83-server/Makefile b/databases/postgresql83-server/Makefile index ee5ef656f21..9e2a06df063 100644 --- a/databases/postgresql83-server/Makefile +++ b/databases/postgresql83-server/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/03/04 12:43:44 adam Exp $ +# $NetBSD: Makefile,v 1.2 2008/11/11 13:50:50 joerg Exp $ PKGNAME= postgresql83-server-${BASE_VERS} COMMENT= PostgreSQL database server programs +PKGREVISION= 1 PKG_DESTDIR_SUPPORT= user-destdir diff --git a/databases/postgresql83-server/files/pgsql.sh b/databases/postgresql83-server/files/pgsql.sh index 327de64044b..e49dfd2e035 100644 --- a/databases/postgresql83-server/files/pgsql.sh +++ b/databases/postgresql83-server/files/pgsql.sh @@ -1,6 +1,6 @@ #!@RCD_SCRIPTS_SHELL@ # -# $NetBSD: pgsql.sh,v 1.1.1.1 2008/03/04 12:43:46 adam Exp $ +# $NetBSD: pgsql.sh,v 1.2 2008/11/11 13:50:50 joerg Exp $ # # PostgreSQL database rc.d control script # @@ -65,6 +65,8 @@ pgsql_initdb() { initdb="@PG_PREFIX@/bin/initdb" + cd / + if [ ! -x ${initdb} ]; then return 1 fi @@ -89,6 +91,8 @@ pgsql_doit() { action=$1 + cd / + case ${action} in start|restart) if [ -n "${pgsql_flags}" ]; then |