diff options
author | jlam <jlam> | 2006-03-17 08:02:41 +0000 |
---|---|---|
committer | jlam <jlam> | 2006-03-17 08:02:41 +0000 |
commit | 495e8c3c0f4dc0849358fecd7c7362a1e56f6794 (patch) | |
tree | 3ba206776ec93c478dbe07b00dd67c1242be833f /mk/bsd.pkg.mk | |
parent | 5c6c7761744faf4534f5116c63b0d1a4e794d58f (diff) | |
download | pkgsrc-495e8c3c0f4dc0849358fecd7c7362a1e56f6794.tar.gz |
Allow INSTALLATION_DIRS to contain absolute paths so long as they being
with ${PREFIX}. This simplifies re-using variables that contain full
paths.
Diffstat (limited to 'mk/bsd.pkg.mk')
-rw-r--r-- | mk/bsd.pkg.mk | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index e83ceb24249..0ef54ea0199 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1810 2006/03/15 16:20:11 jlam Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1811 2006/03/17 08:02:41 jlam Exp $ # # This file is in the public domain. # @@ -1913,7 +1913,11 @@ real-su-install: ${MESSAGE} ${_PKG_SILENT}${_PKG_DEBUG} \ for dir in ${INSTALLATION_DIRS}; do \ case $$dir in \ - /*) ;; \ + ${PREFIX}/*) \ + dir=`${ECHO} $$dir | ${SED} "s|^${PREFIX}/||"` ;; \ + /*) continue ;; \ + esac; \ + case $$dir in \ *bin|*bin/*|*libexec|*libexec/*) \ ${INSTALL_PROGRAM_DIR} ${PREFIX}/$$dir ;; \ ${PKGMANDIR}/*) \ |