aboutsummaryrefslogtreecommitdiffstats
path: root/databases/postgresql90-server/pkg-install-server
diff options
context:
space:
mode:
authorgirgen <girgen@FreeBSD.org>2008-01-22 22:08:48 +0800
committergirgen <girgen@FreeBSD.org>2008-01-22 22:08:48 +0800
commit519f88e4f1d6584b49c279946455e0332e650e52 (patch)
tree173cd3197c88015077f434937ffe4b03b7d8dffa /databases/postgresql90-server/pkg-install-server
parent8a9535de3767d2944d6e4f4bdb2b3bc3bf8ae0fa (diff)
downloadfreebsd-ports-gnome-519f88e4f1d6584b49c279946455e0332e650e52.tar.gz
freebsd-ports-gnome-519f88e4f1d6584b49c279946455e0332e650e52.tar.zst
freebsd-ports-gnome-519f88e4f1d6584b49c279946455e0332e650e52.zip
Update to RC2.
[1] Fix problem installing from package. [2] Use DISTVERSION instead of PORTVERSION. (the port reports now correct version 8.3.r2) [2] Enable more 8.3 features: - Add OPTION for the new XML data type (default: enabled) - Add OPTION for usage of system timezone data (default: included tzdata) PR: ports/119770 [1], ports/119561 [2] Submitted by: Artis Caune [1], Martin Matuska [2]
Diffstat (limited to 'databases/postgresql90-server/pkg-install-server')
-rw-r--r--databases/postgresql90-server/pkg-install-server26
1 files changed, 13 insertions, 13 deletions
diff --git a/databases/postgresql90-server/pkg-install-server b/databases/postgresql90-server/pkg-install-server
index 5abfa7862f64..8b6fcae11791 100644
--- a/databases/postgresql90-server/pkg-install-server
+++ b/databases/postgresql90-server/pkg-install-server
@@ -3,7 +3,6 @@
# $FreeBSD$
PATH=/bin:/usr/bin:/usr/sbin
-DB_DIR=${PKG_PREFIX}/${PGUSER}
backupwarning() { echo "
@@ -25,31 +24,32 @@ backupwarning() { echo "
case $2 in
PRE-INSTALL)
backupwarning
- USER=${PGUSER}
- GROUP=${PGGROUP}
+ PGUSER=${PGUSER:-pgsql}
+ PGGROUP=${PGGROUP:-pgsql}
+ DB_DIR=${PKG_PREFIX}/${PGUSER}
UID=70
GID=70
- if pw group show "${GROUP}" 2>/dev/null; then
- echo "You already have a group \"${GROUP}\", so I will use it."
+ if pw group show "${PGGROUP}" 2>/dev/null; then
+ echo "You already have a group \"${PGGROUP}\", so I will use it."
else
- if pw groupadd ${GROUP} -g ${GID}; then
- echo "Added group \"${GROUP}\"."
+ if pw groupadd ${PGGROUP} -g ${GID}; then
+ echo "Added group \"${PGGROUP}\"."
else
- echo "Adding group \"${GROUP}\" failed..."
+ echo "Adding group \"${PGGROUP}\" failed..."
exit 1
fi
fi
- if pw user show "${USER}" 2>/dev/null; then
- echo "You already have a user \"${USER}\", so I will use it."
+ if pw user show "${PGUSER}" 2>/dev/null; then
+ echo "You already have a user \"${PGUSER}\", so I will use it."
else
- if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \
+ if pw useradd ${PGUSER} -u ${UID} -g ${PGGROUP} -h - \
-d ${DB_DIR} -c "PostgreSQL Daemon"
then
- echo "Added user \"${USER}\"."
+ echo "Added user \"${PGUSER}\"."
else
- echo "Adding user \"${USER}\" failed..."
+ echo "Adding user \"${PGUSER}\" failed..."
exit 1
fi
fi