1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00
freebsd-ports/security/gsa/Makefile
Jose Alonso Cardenas Marquez 0b1f933be6
security/gvm: Update to 23.10.0
- security/gsa: update to 23.3.0
- security/gsad: update to 22.12.0
- security/gvm-libs: update to 22.12.1
- security/gvmd: update to 23.10.0
- security/openvas: update to 23.9.0 [1]
- security/py-gvm-tools: update to 24.8.0
- security/py-notus-scanner: update to 22.6.4
- security/py-python-gvm: update to 24.8.0
- security/py-greenbone-feed-sync: update to 24.3.0

PR:		281414
Reported by:	wen [1]
2024-09-19 23:34:30 -07:00

68 lines
1.7 KiB
Makefile

PORTNAME= gsa
DISTVERSIONPREFIX= v
DISTVERSION= 23.3.0
CATEGORIES= security
MAINTAINER= acm@FreeBSD.org
COMMENT= Greenbone Security Assistant webpage written in React
WWW= https://github.com/greenbone/gsa
LICENSE= AGPLv3+
BUILD_DEPENDS= npm-node18>0:www/npm-node18
RUN_DEPENDS= ${LOCALBASE}/sbin/gsad:security/gsad
USES= nodejs:build
USE_GITHUB= yes
GH_ACCOUNT= greenbone
GH_PROJECT= gsa
NPM_BIN= ${LOCALBASE}/bin/npm
# to rebuild the deps archive:
# 1. set DEV_UPDATE_MODE=yes
# 2. make makesum build
# 3. upload the *-cache archive
# 4. set DEV_UPDATE_MODE=no
# 5. make clean makesum
DEV_UPDATE_MODE= no
DEPS_CACHE_DIR= ${WRKSRC}
.if (${DEV_UPDATE_MODE} == "yes")
NPM_ARGS= install
post-patch:
@${RM} ${WKRSRC}/package-lock.json
post-build:
@cd ${DEPS_CACHE_DIR} && ${TAR} czf ${DISTDIR}/${DIST_SUBDIR}/${PORTNAME}-cache-${DISTVERSION}${EXTRACT_SUFX} node_modules
@${ECHO} "(!!!) Please upload the cache archive: ${DISTDIR}/${DIST_SUBDIR}/${PORTNAME}-cache-${DISTVERSION}${EXTRACT_SUFX}"
.else
MASTER_SITES+= LOCAL/acm/gsa/:npm_cache
DISTFILES+= ${PORTNAME}-cache-${DISTVERSION}${EXTRACT_SUFX}:npm_cache
NPM_ARGS= run build
post-extract:
@${MV} ${WRKDIR}/node_modules ${WRKSRC}
.endif
do-build:
@cd ${WRKSRC} && \
${NPM_BIN} ${NPM_ARGS}
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/gvm/gsad/web
(cd ${WRKSRC}/build && ${COPYTREE_SHARE} . \
${STAGEDIR}/${PREFIX}/share/gvm/gsad/web)
post-install:
@${ECHO_CMD} "share/gvm/gsad/web/index.html" >> ${TMPPLIST}
@${ECHO_CMD} "share/gvm/gsad/web/robots.txt" >> ${TMPPLIST}
@cd ${WRKSRC}/build && \
${FIND} -s img locales assets -not -type d \
-exec ${ECHO_CMD} "share/gvm/gsad/web/{}" \; >> ${TMPPLIST}
.include <bsd.port.mk>