aboutsummaryrefslogtreecommitdiff
path: root/Mk/bsd.port.mk
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1995-05-10 09:30:09 +0000
committerSatoshi Asami <asami@FreeBSD.org>1995-05-10 09:30:09 +0000
commit6440765b48bc092fe2a59e94ca8bb3079419e43a (patch)
tree62cc4d7fb5b7f2976cd1c35e4004ce551e396d8d /Mk/bsd.port.mk
parent5a2c11e5f429700a7a8c9ee43abcd0d0995717fd (diff)
downloadports-6440765b48bc092fe2a59e94ca8bb3079419e43a.tar.gz
ports-6440765b48bc092fe2a59e94ca8bb3079419e43a.zip
Notes
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r--Mk/bsd.port.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index f2e71a34bc82..3ade1938f82e 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -3,7 +3,7 @@
# bsd.port.mk - 940820 Jordan K. Hubbard.
# This file is in the public domain.
#
-# $Id: bsd.port.mk,v 1.155 1995/05/04 18:53:26 adam Exp $
+# $Id: bsd.port.mk,v 1.156 1995/05/09 00:31:54 asami Exp $
#
# Please view me with 4 column tabs!
@@ -72,6 +72,8 @@
# PKGDIR - A direction containing any package creation files.
# (default: ${.CURDIR}/pkg)
# PKG_DBDIR - Where package installation is recorded (default: /var/db/pkg)
+# FORCE_PKG_REGISTER - If set, it will overwrite any existing package
+# registration information in ${PKG_DBDIR}/${PKGNAME}.
#
# NO_EXTRACT - Use a dummy (do-nothing) extract target.
# NO_CONFIGURE - Use a dummy (do-nothing) configure target.
@@ -1102,6 +1104,9 @@ describe:
fake-pkg:
@if [ ! -f ${PKGDIR}/PLIST -o ! -f ${PKGDIR}/COMMENT -o ! -f ${PKGDIR}/DESCR ]; then echo "** Missing package files for ${PKGNAME} - installation not recorded."; exit 1; fi
@if [ ! -d ${PKG_DBDIR} ]; then rm -f ${PKG_DBDIR}; mkdir -p ${PKG_DBDIR}; fi
+.if defined(FORCE_PKG_REGISTER)
+ @rm -rf ${PKG_DBDIR}/${PKGNAME}
+.endif
@if [ ! -d ${PKG_DBDIR}/${PKGNAME} ]; then \
${ECHO_MSG} "===> Registering installation for ${PKGNAME}"; \
mkdir -p ${PKG_DBDIR}/${PKGNAME}; \