From 974511775b8d7bda403dafd4d262c459f40529e7 Mon Sep 17 00:00:00 2001 From: sunpoet Date: Thu, 18 Apr 2013 16:32:40 +0000 Subject: - Change cache directory from ~/.npm to WRKSRC/tmp to avoid access on ~root/ PR: ports/177091 Submitted by: John Marino Obtained from: crees Feature safe: yes --- www/npm/Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'www') diff --git a/www/npm/Makefile b/www/npm/Makefile index dfe009f5f2c..ee2f59b2740 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 -- cgit