diff options
author | jlam <jlam@pkgsrc.org> | 2005-11-04 20:06:14 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2005-11-04 20:06:14 +0000 |
commit | 371f4af5b40c949fd8ca6552142cb3078872e672 (patch) | |
tree | 3bf03f5c15a46145320ede81d97e056918c5b46b /mk | |
parent | ce6c51d8e65c3f36898d9b7eeb9ff098d783f53b (diff) | |
download | pkgsrc-371f4af5b40c949fd8ca6552142cb3078872e672.tar.gz |
Use ${SLEEP} instead of sleep, and note that we use the sleep tool if
we're doing locking.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 15 |
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}/*) \ |