diff options
author | jlam <jlam@pkgsrc.org> | 2006-03-17 08:02:41 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-03-17 08:02:41 +0000 |
commit | 3a47f5851163e6e2e0e094d6b6900ac5f8d56f56 (patch) | |
tree | 3ba206776ec93c478dbe07b00dd67c1242be833f /mk/bsd.pkg.mk | |
parent | f9703bae535da16934c495b3a145e6cdca43a3e6 (diff) | |
download | pkgsrc-3a47f5851163e6e2e0e094d6b6900ac5f8d56f56.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}/*) \ |