summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2019-02-06 18:45:55 +0000
committerschmonz <schmonz@pkgsrc.org>2019-02-06 18:45:55 +0000
commit0afbf5db450542f60fa721b11cb2e666fefc41d0 (patch)
treed7e4373c484c3e0e355dcaeab5a07d95baaf2184
parenta26bcba4f178d8aaafbaea9fc03d9828d901d96a (diff)
downloadpkgsrc-0afbf5db450542f60fa721b11cb2e666fefc41d0.tar.gz
${PGUSER} doesn't have read permission in every conceivable working
directory, which causes errors for several actions. But the caller's working directory isn't needed for anything. cd into ${pgsql_home} early, just after reading rc.conf. Bump PKGREVISION.
-rw-r--r--databases/postgresql10-server/Makefile3
-rw-r--r--databases/postgresql10-server/files/pgsql.sh4
-rw-r--r--databases/postgresql11-server/Makefile3
-rw-r--r--databases/postgresql11-server/files/pgsql.sh4
-rw-r--r--databases/postgresql93-server/Makefile3
-rw-r--r--databases/postgresql93-server/files/pgsql.sh4
-rw-r--r--databases/postgresql94-server/Makefile3
-rw-r--r--databases/postgresql94-server/files/pgsql.sh4
-rw-r--r--databases/postgresql95-server/Makefile3
-rw-r--r--databases/postgresql95-server/files/pgsql.sh4
-rw-r--r--databases/postgresql96-server/Makefile3
-rw-r--r--databases/postgresql96-server/files/pgsql.sh4
12 files changed, 30 insertions, 12 deletions
diff --git a/databases/postgresql10-server/Makefile b/databases/postgresql10-server/Makefile
index 303b5dbcdbf..4c92905e4a9 100644
--- a/databases/postgresql10-server/Makefile
+++ b/databases/postgresql10-server/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.4 2018/11/09 18:12:24 adam Exp $
+# $NetBSD: Makefile,v 1.5 2019/02/06 18:45:55 schmonz Exp $
PKGNAME= ${DISTNAME:C/-/10-server-/}
+PKGREVISION= 1
COMMENT= PostgreSQL database server programs
# mips has no TAS implementation
diff --git a/databases/postgresql10-server/files/pgsql.sh b/databases/postgresql10-server/files/pgsql.sh
index 01fac305b84..6cd6a40fbd9 100644
--- a/databases/postgresql10-server/files/pgsql.sh
+++ b/databases/postgresql10-server/files/pgsql.sh
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: pgsql.sh,v 1.1 2017/10/23 20:33:50 adam Exp $
+# $NetBSD: pgsql.sh,v 1.2 2019/02/06 18:45:55 schmonz Exp $
#
# PostgreSQL database rc.d control script
#
@@ -45,6 +45,8 @@ elif [ -f /etc/rc.conf ]; then
. /etc/rc.conf
fi
+cd "${pgsql_home}"
+
command_args="-w -s -D ${pgsql_home}/data -m fast -l ${pgsql_home}/errlog"
if [ -n "${pgsql_flags}" ]; then
command_args="${command_args} -o \\\"${pgsql_flags}\\\""
diff --git a/databases/postgresql11-server/Makefile b/databases/postgresql11-server/Makefile
index 3f898b54406..130dc4c6c86 100644
--- a/databases/postgresql11-server/Makefile
+++ b/databases/postgresql11-server/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.1 2018/10/23 16:02:52 adam Exp $
+# $NetBSD: Makefile,v 1.2 2019/02/06 18:45:55 schmonz Exp $
PKGNAME= ${DISTNAME:C/-/11-server-/}
+PKGREVISION= 1
COMMENT= PostgreSQL database server programs
# mips has no TAS implementation
diff --git a/databases/postgresql11-server/files/pgsql.sh b/databases/postgresql11-server/files/pgsql.sh
index cb061e1169f..6cd6a40fbd9 100644
--- a/databases/postgresql11-server/files/pgsql.sh
+++ b/databases/postgresql11-server/files/pgsql.sh
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: pgsql.sh,v 1.1 2018/10/23 16:02:52 adam Exp $
+# $NetBSD: pgsql.sh,v 1.2 2019/02/06 18:45:55 schmonz Exp $
#
# PostgreSQL database rc.d control script
#
@@ -45,6 +45,8 @@ elif [ -f /etc/rc.conf ]; then
. /etc/rc.conf
fi
+cd "${pgsql_home}"
+
command_args="-w -s -D ${pgsql_home}/data -m fast -l ${pgsql_home}/errlog"
if [ -n "${pgsql_flags}" ]; then
command_args="${command_args} -o \\\"${pgsql_flags}\\\""
diff --git a/databases/postgresql93-server/Makefile b/databases/postgresql93-server/Makefile
index e78a7837c20..ac8ebd2dc5d 100644
--- a/databases/postgresql93-server/Makefile
+++ b/databases/postgresql93-server/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.14 2018/11/09 18:12:25 adam Exp $
+# $NetBSD: Makefile,v 1.15 2019/02/06 18:45:55 schmonz Exp $
PKGNAME= ${DISTNAME:C/-/93-server-/}
+PKGREVISION= 1
COMMENT= PostgreSQL database server programs
# mips has no TAS implementation
diff --git a/databases/postgresql93-server/files/pgsql.sh b/databases/postgresql93-server/files/pgsql.sh
index c502401e8f0..6cd6a40fbd9 100644
--- a/databases/postgresql93-server/files/pgsql.sh
+++ b/databases/postgresql93-server/files/pgsql.sh
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: pgsql.sh,v 1.1 2013/09/10 15:32:33 adam Exp $
+# $NetBSD: pgsql.sh,v 1.2 2019/02/06 18:45:55 schmonz Exp $
#
# PostgreSQL database rc.d control script
#
@@ -45,6 +45,8 @@ elif [ -f /etc/rc.conf ]; then
. /etc/rc.conf
fi
+cd "${pgsql_home}"
+
command_args="-w -s -D ${pgsql_home}/data -m fast -l ${pgsql_home}/errlog"
if [ -n "${pgsql_flags}" ]; then
command_args="${command_args} -o \\\"${pgsql_flags}\\\""
diff --git a/databases/postgresql94-server/Makefile b/databases/postgresql94-server/Makefile
index b279e5139ba..831ab9bdf5e 100644
--- a/databases/postgresql94-server/Makefile
+++ b/databases/postgresql94-server/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.6 2018/11/09 18:12:26 adam Exp $
+# $NetBSD: Makefile,v 1.7 2019/02/06 18:45:55 schmonz Exp $
PKGNAME= ${DISTNAME:C/-/94-server-/}
+PKGREVISION= 1
COMMENT= PostgreSQL database server programs
# mips has no TAS implementation
diff --git a/databases/postgresql94-server/files/pgsql.sh b/databases/postgresql94-server/files/pgsql.sh
index b9dcfcc10c0..6cd6a40fbd9 100644
--- a/databases/postgresql94-server/files/pgsql.sh
+++ b/databases/postgresql94-server/files/pgsql.sh
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: pgsql.sh,v 1.1 2015/01/14 21:01:19 adam Exp $
+# $NetBSD: pgsql.sh,v 1.2 2019/02/06 18:45:55 schmonz Exp $
#
# PostgreSQL database rc.d control script
#
@@ -45,6 +45,8 @@ elif [ -f /etc/rc.conf ]; then
. /etc/rc.conf
fi
+cd "${pgsql_home}"
+
command_args="-w -s -D ${pgsql_home}/data -m fast -l ${pgsql_home}/errlog"
if [ -n "${pgsql_flags}" ]; then
command_args="${command_args} -o \\\"${pgsql_flags}\\\""
diff --git a/databases/postgresql95-server/Makefile b/databases/postgresql95-server/Makefile
index d9b7633ed79..bf4c96ae57a 100644
--- a/databases/postgresql95-server/Makefile
+++ b/databases/postgresql95-server/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.6 2018/11/09 18:12:27 adam Exp $
+# $NetBSD: Makefile,v 1.7 2019/02/06 18:45:55 schmonz Exp $
PKGNAME= ${DISTNAME:C/-/95-server-/}
+PKGREVISION= 1
COMMENT= PostgreSQL database server programs
# mips has no TAS implementation
diff --git a/databases/postgresql95-server/files/pgsql.sh b/databases/postgresql95-server/files/pgsql.sh
index 34ddcca4f5c..6cd6a40fbd9 100644
--- a/databases/postgresql95-server/files/pgsql.sh
+++ b/databases/postgresql95-server/files/pgsql.sh
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: pgsql.sh,v 1.1 2016/02/25 21:37:37 tnn Exp $
+# $NetBSD: pgsql.sh,v 1.2 2019/02/06 18:45:55 schmonz Exp $
#
# PostgreSQL database rc.d control script
#
@@ -45,6 +45,8 @@ elif [ -f /etc/rc.conf ]; then
. /etc/rc.conf
fi
+cd "${pgsql_home}"
+
command_args="-w -s -D ${pgsql_home}/data -m fast -l ${pgsql_home}/errlog"
if [ -n "${pgsql_flags}" ]; then
command_args="${command_args} -o \\\"${pgsql_flags}\\\""
diff --git a/databases/postgresql96-server/Makefile b/databases/postgresql96-server/Makefile
index ef054c320ef..c8b2eaf665f 100644
--- a/databases/postgresql96-server/Makefile
+++ b/databases/postgresql96-server/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.3 2018/11/09 18:12:28 adam Exp $
+# $NetBSD: Makefile,v 1.4 2019/02/06 18:45:56 schmonz Exp $
PKGNAME= ${DISTNAME:C/-/96-server-/}
+PKGREVISION= 1
COMMENT= PostgreSQL database server programs
# mips has no TAS implementation
diff --git a/databases/postgresql96-server/files/pgsql.sh b/databases/postgresql96-server/files/pgsql.sh
index 6f3cc991f36..2b73cacdce0 100644
--- a/databases/postgresql96-server/files/pgsql.sh
+++ b/databases/postgresql96-server/files/pgsql.sh
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: pgsql.sh,v 1.1 2016/10/29 19:41:55 adam Exp $
+# $NetBSD: pgsql.sh,v 1.2 2019/02/06 18:45:56 schmonz Exp $
#
# PostgreSQL database rc.d control script
#
@@ -45,6 +45,8 @@ elif [ -f /etc/rc.conf ]; then
. /etc/rc.conf
fi
+cd "${pgsql_home}"
+
command_args="-w -s -D ${pgsql_home}/data -m fast -l ${pgsql_home}/errlog"
if [ -n "${pgsql_flags}" ]; then
command_args="${command_args} -o \\\"${pgsql_flags}\\\""