summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorseb <seb@pkgsrc.org>2003-09-02 12:01:14 +0000
committerseb <seb@pkgsrc.org>2003-09-02 12:01:14 +0000
commite6a76686a81b0d29faf76e575d0ff02ee0577af8 (patch)
tree47ad08e0a6c717dd83714175fe3e569c61f23f90 /mk
parent7010a0904cadf9e05653a37c8b34de8c71c2ee75 (diff)
downloadpkgsrc-e6a76686a81b0d29faf76e575d0ff02ee0577af8.tar.gz
Test for ${PREFIX} existence before mkdir'ing it.
This fix NO_MTREE installation on Solaris when ${PREFIX} already exists and is a symlink. Example: # uname -sr SunOS 5.9 # cd /tmp # rm -f foo # ln -s /etc foo # /bin/mkdir -p /tmp/foo mkdir: "/tmp/foo": Exists but is not a directory #
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 5892c0f040f..acbd8737d70 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1252 2003/09/02 06:59:42 jlam Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1253 2003/09/02 12:01:14 seb Exp $
#
# This file is in the public domain.
#
@@ -2530,7 +2530,7 @@ real-su-install: ${MESSAGE}
${ECHO_MSG} "Become root and try again to ensure correct permissions."; \
fi
.else
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${PREFIX}
+ ${_PKG_SILENT}${_PKG_DEBUG}[ -d ${PREFIX} ] || ${MKDIR} ${PREFIX}
.endif # !NO_MTREE
${_PKG_SILENT}${_PKG_DEBUG}cd ${.CURDIR} && ${MAKE} ${MAKEFLAGS} pre-install-script
${_PKG_SILENT}${_PKG_DEBUG}cd ${.CURDIR} && ${MAKE} ${MAKEFLAGS} pre-install