diff options
author | rillig <rillig@pkgsrc.org> | 2005-05-18 19:42:01 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2005-05-18 19:42:01 +0000 |
commit | b66c5f6db0ae9cbaa8b3203e92d95ad43b2eeaa4 (patch) | |
tree | 7b7825a24e12ad2c72cd3662f636543a72f17b3a | |
parent | 748cb9a12e0029d763a8c55850a8086893c6299d (diff) | |
download | pkgsrc-b66c5f6db0ae9cbaa8b3203e92d95ad43b2eeaa4.tar.gz |
If NO_WRKDIR_SYMLINK is defined, no symlink to ${WRKSRC} is created when
the WRKOBJDIR is set explicitly. This allows for having pkgsrc mounted
r/w without actually modifying it.
-rw-r--r-- | mk/bsd.pkg.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 27bc387b9b5..ddfd741bfe4 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1670 2005/05/18 02:52:38 rillig Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1671 2005/05/18 19:42:01 rillig Exp $ # # This file is in the public domain. # @@ -1697,10 +1697,12 @@ ${WRKDIR}: ${RM} -f ${WRKDIR_BASENAME} || ${TRUE} . endif . endif +. if !defined(NO_WRKDIR_SYMLINK) ${_PKG_SILENT}${_PKG_DEBUG} \ if ${LN} -s ${WRKDIR} ${WRKDIR_BASENAME} 2>/dev/null; then \ ${ECHO} "${WRKDIR_BASENAME} -> ${WRKDIR}"; \ fi +. endif .endif # WRKOBJDIR |