mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-16 07:58:04 +00:00
security/bitwarden-cli: fix checksum phase
Use PKGNAMEPREFIX, PORTNAME, PKGNAMESUFFIX, and DISTVERSION for the name of the prefetched node modules archive instead of PKGNAME. PKGNAME contains PKGVERSION, which contains PORTREVISION. Using PORTREVISION in the archive filename is inconvenient when PORTREVISION is bumped. While here, disable audit and funding information when prefetching node modules with npm.
This commit is contained in:
parent
eecd094e32
commit
2038ace504
@ -49,7 +49,7 @@ PORTDOCS= CONTRIBUTING.md README.md SECURITY.md
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
PREFETCH_FILE= ${PKGNAME}-node-modules${EXTRACT_SUFX}
|
||||
PREFETCH_FILE= ${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}-${DISTVERSION}-node-modules${EXTRACT_SUFX}
|
||||
PREFETCH_TIMESTAMP= 1699354730
|
||||
PKG_NODE_VER= 18.15.0
|
||||
PKG_FETCH_VER= 3.5
|
||||
@ -69,7 +69,8 @@ pre-fetch:
|
||||
${CP} -R ${FILESDIR}/packagejsons/* ${WRKDIR}/node-modules-cache; \
|
||||
cd ${WRKDIR}/node-modules-cache && \
|
||||
${SETENV} HOME=${WRKDIR} npm install -g --prefix=${WRKDIR} npm@9.9.0 && \
|
||||
${SETENV} HOME=${WRKDIR} PATH=${WRKDIR}/bin:${PATH} npm ci --ignore-scripts --no-progress; \
|
||||
${SETENV} HOME=${WRKDIR} PATH=${WRKDIR}/bin:${PATH} \
|
||||
npm ci --ignore-scripts --no-progress --no-audit --no-fund; \
|
||||
${FIND} ${WRKDIR}/node-modules-cache -depth 1 -print | \
|
||||
${GREP} -v node_modules | ${XARGS} ${RM} -r; \
|
||||
${FIND} ${WRKDIR}/node-modules-cache -type d -exec ${CHMOD} 755 {} ';'; \
|
||||
|
Loading…
Reference in New Issue
Block a user