summaryrefslogtreecommitdiff
path: root/databases/postgresql91-server/pkg-install
diff options
context:
space:
mode:
authorSean Chittenden <seanc@FreeBSD.org>2003-01-04 01:10:15 +0000
committerSean Chittenden <seanc@FreeBSD.org>2003-01-04 01:10:15 +0000
commit62e1bb44328db7be12796334d8be63e24d48df05 (patch)
tree3a0c0b58f7ea4a90c14173ab0245e14436624053 /databases/postgresql91-server/pkg-install
parentI get the stupid award for this port. It NOW installs in the RIGHT place. (diff)
Update PostgreSQL to 7.3.1[1]. Fixes builds for spac64. Many speed,
security, and feature additions. Reduce diffs between postgresql-devel port. Re-initdb required when upgrading from previous release. See release notes for details. Schemas added are system catalogs updated. ::braces for impact:: http://developer.postgresql.org/docs/postgres/release.html#RELEASE-7-3-1 PR: ports/46701 Submitted by: girgen@pingpong.net
Diffstat (limited to 'databases/postgresql91-server/pkg-install')
-rw-r--r--databases/postgresql91-server/pkg-install31
1 files changed, 19 insertions, 12 deletions
diff --git a/databases/postgresql91-server/pkg-install b/databases/postgresql91-server/pkg-install
index ffcd42a5796c..a4bde386e5c5 100644
--- a/databases/postgresql91-server/pkg-install
+++ b/databases/postgresql91-server/pkg-install
@@ -6,20 +6,24 @@ PATH=/bin:/usr/sbin
DB_DIR=${PKG_PREFIX}/pgsql
-case $2 in
-PRE-INSTALL)
+backupwarning() {
echo "
-=========== BACKUP YOUR DATA! =============
-As always, backup your data before
-upgrading. If the upgrade leads to a higher
-minor revision (e.g. 7.1.x -> 7.2), a dump
-and restore of all databases is
-required. This is *NOT* done by the port!
-
-Press ctrl-C *now* if you need to pg_dump.
-===========================================
+ =========== BACKUP YOUR DATA! =============
+ As always, backup your data before
+ upgrading. If the upgrade leads to a higher
+ minor revision (e.g. 7.2.x -> 7.3), a dump
+ and restore of all databases is
+ required. This is *NOT* done by the port!
+
+ Press ctrl-C *now* if you need to pg_dump.
+ ===========================================
"
- sleep 3
+ sleep 5
+}
+
+case $2 in
+PRE-INSTALL)
+ backupwarning
USER=pgsql
GROUP=${USER}
UID=70
@@ -55,4 +59,7 @@ Press ctrl-C *now* if you need to pg_dump.
fi
;;
+BACKUPWARNING)
+ backupwarning
+ ;;
esac