git: 7e40d53281a2 - main - security/gsa: New port: Greenbone Security Assistant webpage written in React
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 22 May 2022 05:44:24 UTC
The branch main has been updated by acm: URL: https://cgit.FreeBSD.org/ports/commit/?id=7e40d53281a2ff7cbe48724bcfbc9eed3921265d commit 7e40d53281a2ff7cbe48724bcfbc9eed3921265d Author: Jose Alonso Cardenas Marquez <acm@FreeBSD.org> AuthorDate: 2022-05-22 05:20:34 +0000 Commit: Jose Alonso Cardenas Marquez <acm@FreeBSD.org> CommitDate: 2022-05-22 05:42:10 +0000 security/gsa: New port: Greenbone Security Assistant webpage written in React - security/greenbone-security-assistant was splitted into gsa and gsad ports --- security/gsa/Makefile | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ security/gsa/distinfo | 5 +++++ security/gsa/pkg-descr | 10 ++++++++++ 3 files changed, 63 insertions(+) diff --git a/security/gsa/Makefile b/security/gsa/Makefile new file mode 100644 index 000000000000..6423c3c86c57 --- /dev/null +++ b/security/gsa/Makefile @@ -0,0 +1,48 @@ +PORTNAME= gsa +DISTVERSIONPREFIX= v +DISTVERSION= 21.4.4 +CATEGORIES= security +MASTER_SITES= LOCAL/acm/gsa/:yarn_cache +DISTFILES= ${PORTNAME}-cache${EXTRACT_SUFX}:yarn_cache + +MAINTAINER= acm@FreeBSD.org +COMMENT= Greenbone Security Assistant webpage written in React + +LICENSE= AGPLv3+ + +BUILD_DEPENDS= yarn:www/yarn +RUN_DEPENDS= ${LOCALBASE}/sbin/gsad:security/gsad + +USES= nodejs:build + +USE_GITHUB= yes +GH_ACCOUNT= greenbone +GH_PROJECT= gsa + +YARN_BIN= ${LOCALBASE}/bin/yarn +YARN_ARGS= --offline + +post-patch: + ${ECHO_CMD} 'yarn-offline-mirror "${WRKDIR}/yarn-offline-cache"' >> \ + ${WRKSRC}/.yarnrc + +do-build: + @cd ${WRKSRC} && \ + ${YARN_BIN} ${YARN_ARGS} + @cd ${WRKSRC} && \ + ${YARN_BIN} ${YARN_ARGS} build + +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 static -not -type d \ + -exec ${ECHO_CMD} "share/gvm/gsad/web/{}" \; >> ${TMPPLIST} + +.include <bsd.port.mk> diff --git a/security/gsa/distinfo b/security/gsa/distinfo new file mode 100644 index 000000000000..afff531a586d --- /dev/null +++ b/security/gsa/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1650923898 +SHA256 (gsa-cache.tar.gz) = 0d020dddef6d6157fd1565b9b392c8ca5958eb094570e2fb38191c5f358ac0a8 +SIZE (gsa-cache.tar.gz) = 61959406 +SHA256 (greenbone-gsa-v21.4.4_GH0.tar.gz) = 251e2ffed64eba49a4ca196775fbfe9543510fb737431fc103cca009ee4c9490 +SIZE (greenbone-gsa-v21.4.4_GH0.tar.gz) = 2471442 diff --git a/security/gsa/pkg-descr b/security/gsa/pkg-descr new file mode 100644 index 000000000000..7c5e8859d13d --- /dev/null +++ b/security/gsa/pkg-descr @@ -0,0 +1,10 @@ +The Greenbone Security Assistant is the web interface developed for the +Greenbone Security Manager appliances. + +It connects to the Greenbone Vulnerability Manager GVM to provide a +full-featured user interface for vulnerability management. + +Greenbone Security Assistant consists of GSA - The webpage written in React +and GSAD - The HTTP server talking to the GVM daemon + +WWW: https://github.com/greenbone/gsa