aboutsummaryrefslogtreecommitdiff
path: root/www/npm/Makefile
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2013-04-18 16:32:40 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2013-04-18 16:32:40 +0000
commite4dda689a5d8a36181715ebf71ead7cfaa5eaa46 (patch)
tree74a716f4a7ef3a2dff1416a7bddbef95ba247c11 /www/npm/Makefile
parent5a73402b7614d1c818b4e6d6a3a2b05eafe88bca (diff)
downloadports-e4dda689a5d8a36181715ebf71ead7cfaa5eaa46.tar.gz
ports-e4dda689a5d8a36181715ebf71ead7cfaa5eaa46.zip
- Change cache directory from ~/.npm to WRKSRC/tmp to avoid access on ~root/
PR: ports/177091 Submitted by: John Marino <draco@marino.st> Obtained from: crees Feature safe: yes
Notes
Notes: svn path=/head/; revision=316049
Diffstat (limited to 'www/npm/Makefile')
-rw-r--r--www/npm/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/www/npm/Makefile b/www/npm/Makefile
index dfe009f5f2c6..ee2f59b2740c 100644
--- a/www/npm/Makefile
+++ b/www/npm/Makefile
@@ -44,6 +44,9 @@ RUN_DEPENDS+= node-devel>=0.8.0:${PORTSDIR}/www/node-devel
RUN_DEPENDS+= node>=0.8.0:${PORTSDIR}/www/node
.endif
+post-patch:
+ @${REINPLACE_CMD} -e 's|node cli.js|& --cache ${WRKSRC}/tmp|' ${WRKSRC}/Makefile
+
# maintainer section:
# require: bash, git, gmake, node