summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-05-18 06:13:54 +0000
committerjlam <jlam@pkgsrc.org>2001-05-18 06:13:54 +0000
commitd4ab5f3da9fe86089b37eadc33d72a41f9173e4a (patch)
tree0c27f6a483f2147dd5215474668a71aaa262501b /databases
parent5f0d65a65d06ab11887e87d2b31ddea30430b8ff (diff)
downloadpkgsrc-d4ab5f3da9fe86089b37eadc33d72a41f9173e4a.tar.gz
Move the message that informs the user of the possible need to dump the
databases prior to installing a new version of PostgreSQL from PRE-INSTALL time to DEINSTALL time. Remove ${CAT} from the INSTALL file as it's no longer needed in the script.
Diffstat (limited to 'databases')
-rw-r--r--databases/postgresql-server/Makefile3
-rw-r--r--databases/postgresql-server/pkg/DEINSTALL16
-rw-r--r--databases/postgresql-server/pkg/INSTALL8
3 files changed, 17 insertions, 10 deletions
diff --git a/databases/postgresql-server/Makefile b/databases/postgresql-server/Makefile
index 6af4e167abc..a570f9d4a4a 100644
--- a/databases/postgresql-server/Makefile
+++ b/databases/postgresql-server/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2001/05/16 15:28:42 jlam Exp $
+# $NetBSD: Makefile,v 1.4 2001/05/18 06:13:54 jlam Exp $
.include "../../databases/postgresql/Makefile.common"
.include "../../databases/postgresql/Makefile.ssl"
@@ -79,7 +79,6 @@ pre-install:
-e "s|@PGHOME@|${PGHOME}|g" \
-e "s|@ADDUSER@|${ADDUSER}|g" \
-e "s|@ADDGROUP@|${ADDGROUP}|g" \
- -e "s|@CAT@|${CAT}|g" \
-e "s|@CHGRP@|${CHGRP}|g" \
-e "s|@CHOWN@|${CHOWN}|g" \
-e "s|@GREP@|${GREP}|g" \
diff --git a/databases/postgresql-server/pkg/DEINSTALL b/databases/postgresql-server/pkg/DEINSTALL
index 1d117a35766..1986ee39007 100644
--- a/databases/postgresql-server/pkg/DEINSTALL
+++ b/databases/postgresql-server/pkg/DEINSTALL
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: DEINSTALL,v 1.1.1.1 2001/05/14 14:50:25 jlam Exp $
+# $NetBSD: DEINSTALL,v 1.2 2001/05/18 06:13:55 jlam Exp $
#
PKGNAME=$1
@@ -15,6 +15,20 @@ RM="@RM@"
case ${STAGE} in
DEINSTALL)
+ ${CAT} << EOF
+===========================================================================
+
+If you intend to upgrade your PostgreSQL installation, you may need to
+perform a dump-and-restore to move your current databases into the newer
+PostgreSQL installation. Please dump your databases *prior* to installing
+the new PostgreSQL.
+
+Please see the Backup and Restore section of the PostgreSQL Administrator's
+Guide (databases/postgresql-docs) for complete information on how to
+perform the databases dump.
+
+===========================================================================
+EOF
;;
POST-DEINSTALL)
diff --git a/databases/postgresql-server/pkg/INSTALL b/databases/postgresql-server/pkg/INSTALL
index a5d813f679b..69999e38152 100644
--- a/databases/postgresql-server/pkg/INSTALL
+++ b/databases/postgresql-server/pkg/INSTALL
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: INSTALL,v 1.2 2001/05/14 20:38:56 jlam Exp $
+# $NetBSD: INSTALL,v 1.3 2001/05/18 06:13:55 jlam Exp $
PKGNAME=$1
STAGE=$2
@@ -11,7 +11,6 @@ PGHOME=@PGHOME@
ADDUSER="@ADDUSER@"
ADDGROUP="@ADDGROUP@"
-CAT="@CAT@"
CHGRP="@CHGRP@"
CHOWN="@CHOWN@"
GREP="@GREP@"
@@ -22,11 +21,6 @@ TOUCH="@TOUCH@"
case ${STAGE} in
PRE-INSTALL)
- ${CAT} << EOF
-------------------------------------------------------------
-Dump existing databases, before installing new db version !!
-------------------------------------------------------------
-EOF
# Group... the default's shipped with NetBSD
# We need to check that ${GROUP} exists before adding the user.
# Do it with chgrp to be able to use NIS.