summaryrefslogtreecommitdiff
path: root/mk/bsd.pkg.mk
diff options
context:
space:
mode:
authorjlam <jlam>2005-11-04 20:06:14 +0000
committerjlam <jlam>2005-11-04 20:06:14 +0000
commit10a2d934cfecc0d6ffb5ad93ad4bc2e6bc06ec3f (patch)
tree3bf03f5c15a46145320ede81d97e056918c5b46b /mk/bsd.pkg.mk
parent5fcf9851336d2a4a5036d21c6717d71dd8e4ada4 (diff)
downloadpkgsrc-10a2d934cfecc0d6ffb5ad93ad4bc2e6bc06ec3f.tar.gz
Use ${SLEEP} instead of sleep, and note that we use the sleep tool if
we're doing locking.
Diffstat (limited to 'mk/bsd.pkg.mk')
-rw-r--r--mk/bsd.pkg.mk15
1 files changed, 9 insertions, 6 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 4aea40953c9..ea136b92496 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1739 2005/11/04 11:27:41 rillig Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1740 2005/11/04 20:06:14 jlam Exp $
#
# This file is in the public domain.
#
@@ -822,11 +822,11 @@ USE_TOOLS+= date
USE_TOOLS+= mail
.endif
-# We need shlock if we're using locking to synchronize multiple builds
-# over the same pkgsrc tree.
+# We need shlock and sleep if we're using locking to synchronize multiple
+# builds over the same pkgsrc tree.
#
.if ${PKGSRC_LOCKTYPE} != "none"
-USE_TOOLS+= shlock
+USE_TOOLS+= shlock sleep
.endif
# If MANZ is defined, then we want the final man pages to be compressed.
@@ -1634,7 +1634,7 @@ _ACQUIRE_LOCK= \
${ECHO} "=> Lock is held by pid `cat ${LOCKFILE}`"; \
case "${PKGSRC_LOCKTYPE}" in \
once) exit 1 ;; \
- sleep) sleep ${PKGSRC_SLEEPSECS} ;; \
+ sleep) ${SLEEP} ${PKGSRC_SLEEPSECS} ;; \
esac \
done; \
if [ "${PKG_VERBOSE}" != "" ]; then \
@@ -2099,7 +2099,10 @@ real-su-install: ${MESSAGE}
${_PKG_SILENT}${_PKG_DEBUG} \
for dir in ${INSTALLATION_DIRS}; do \
case $$dir in \
- /*) ;; \
+ ${PREFIX}/*) ;; \
+ *) continue ;; \
+ done; \
+ case $$dir in \
*bin|*bin/*|*libexec|*libexec/*) \
${INSTALL_PROGRAM_DIR} ${PREFIX}/$$dir ;; \
${PKGMANDIR}/*) \