aboutsummaryrefslogtreecommitdiffstats
path: root/www/npm
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2013-04-19 00:32:40 +0800
committersunpoet <sunpoet@FreeBSD.org>2013-04-19 00:32:40 +0800
commit974511775b8d7bda403dafd4d262c459f40529e7 (patch)
tree74a716f4a7ef3a2dff1416a7bddbef95ba247c11 /www/npm
parente4bd1ea9a1e5998ef225b78b1a8f548eea25c96b (diff)
downloadfreebsd-ports-gnome-974511775b8d7bda403dafd4d262c459f40529e7.tar.gz
freebsd-ports-gnome-974511775b8d7bda403dafd4d262c459f40529e7.tar.zst
freebsd-ports-gnome-974511775b8d7bda403dafd4d262c459f40529e7.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
Diffstat (limited to 'www/npm')
-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