summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam>2006-03-10 22:23:02 +0000
committerjlam <jlam>2006-03-10 22:23:02 +0000
commit87d7fb90d4e9a0285221dde4291d1db113db385e (patch)
tree8fc8045de6b610f4d44a736ce415d5b082f41400
parente57b3d75c8be0dc212814dc7f9425b3c7261f32d (diff)
downloadpkgsrc-87d7fb90d4e9a0285221dde4291d1db113db385e.tar.gz
Don't define DEINSTALL_FILE or INSTALL_FILE if the corresponding *_SRC
variables are empty.
-rw-r--r--mk/install/bsd.pkginstall.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/install/bsd.pkginstall.mk b/mk/install/bsd.pkginstall.mk
index 17e51e9a1bf..70272ff6ea6 100644
--- a/mk/install/bsd.pkginstall.mk
+++ b/mk/install/bsd.pkginstall.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkginstall.mk,v 1.36 2006/03/09 23:31:51 jlam Exp $
+# $NetBSD: bsd.pkginstall.mk,v 1.37 2006/03/10 22:23:02 jlam Exp $
#
# This Makefile fragment is included by bsd.pkg.mk and implements the
# common INSTALL/DEINSTALL scripts framework. To use the pkginstall
@@ -806,8 +806,12 @@ INSTALL_SCRIPTS_ENV+= PKG_REFCOUNT_DBDIR=${PKG_REFCOUNT_DBDIR}
# script logic in bsd.pkg.mk
#
.if !empty(_USE_PKGINSTALL:M[yY][eE][sS])
+. if !empty(DEINSTALL_SRC)
DEINSTALL_FILE= ${PKG_DB_TMPDIR}/+DEINSTALL
+. endif
+. if !empty(INSTALL_SRC)
INSTALL_FILE= ${PKG_DB_TMPDIR}/+INSTALL
+. endif
pre-install-script: generate-install-scripts
${_PKG_SILENT}${_PKG_DEBUG}cd ${PKG_DB_TMPDIR} && \