aboutsummaryrefslogtreecommitdiff
path: root/databases/postgresql81-server
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1997-12-04 11:44:52 +0000
committerSatoshi Asami <asami@FreeBSD.org>1997-12-04 11:44:52 +0000
commit823b3209605add749dbdc5d85b633c9d1a0d68ba (patch)
tree560a781e73e72e13f57c10051b6f6b028df60ea1 /databases/postgresql81-server
parentc040613034b7446ee442566ca1fbb00802ce2496 (diff)
downloadports-823b3209605add749dbdc5d85b633c9d1a0d68ba.tar.gz
ports-823b3209605add749dbdc5d85b633c9d1a0d68ba.zip
Delete the database before installation if PACKAGE_BUILDING is defined
-- we are obviously not interested in keeping the old versions around in that case.
Notes
Notes: svn path=/head/; revision=8986
Diffstat (limited to 'databases/postgresql81-server')
-rw-r--r--databases/postgresql81-server/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/databases/postgresql81-server/Makefile b/databases/postgresql81-server/Makefile
index 1c98bc493c16..acbe10c0c3b1 100644
--- a/databases/postgresql81-server/Makefile
+++ b/databases/postgresql81-server/Makefile
@@ -3,7 +3,7 @@
# Date created: April 2, 1997
# Whom: Marc G. Fournier <scrappy@FreeBSD.ORG>
#
-# $Id: Makefile,v 1.19 1997/10/30 14:34:23 andreas Exp $
+# $Id: Makefile,v 1.20 1997/11/26 23:42:12 jseger Exp $
DISTNAME= postgresql-6.2.1
CATEGORIES= databases
@@ -65,6 +65,9 @@ post-build:
@ ${ECHO} "------------------------------------------------------------"
pre-install:
+.if defined(PACKAGE_BUILDING)
+ /bin/rm -rf ${PREFIX}/pgsql
+.endif
@ ${MKDIR} ${PREFIX}/pgsql
@ ${SETENV} ${MAKE_ENV} perl ${SCRIPTDIR}/createuser