aboutsummaryrefslogtreecommitdiffstats
path: root/databases/postgresql90-server/Makefile
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>1997-12-04 19:44:52 +0800
committerasami <asami@FreeBSD.org>1997-12-04 19:44:52 +0800
commit827e1cc9e26d648ff6fe6cb649d03fb08d2998a9 (patch)
treeb5ece043b8a3ce123d3c945f7244a9aae8113bc5 /databases/postgresql90-server/Makefile
parent5d9fd8ad088a79a9af74a1f8e90cd9be659412bb (diff)
downloadfreebsd-ports-graphics-827e1cc9e26d648ff6fe6cb649d03fb08d2998a9.tar.gz
freebsd-ports-graphics-827e1cc9e26d648ff6fe6cb649d03fb08d2998a9.tar.zst
freebsd-ports-graphics-827e1cc9e26d648ff6fe6cb649d03fb08d2998a9.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.
Diffstat (limited to 'databases/postgresql90-server/Makefile')
-rw-r--r--databases/postgresql90-server/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/databases/postgresql90-server/Makefile b/databases/postgresql90-server/Makefile
index 1c98bc493c1..acbe10c0c3b 100644
--- a/databases/postgresql90-server/Makefile
+++ b/databases/postgresql90-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