aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Alonso Cardenas Marquez <acm@FreeBSD.org>2022-05-22 05:20:34 +0000
committerJose Alonso Cardenas Marquez <acm@FreeBSD.org>2022-05-22 05:42:10 +0000
commit7e40d53281a2ff7cbe48724bcfbc9eed3921265d (patch)
treeb2dc8b90f2bf5c58a3d103a6138d7ebc83a88c4e
parent557ad9b56608f2aadf5df410417c49768289d968 (diff)
security/gsa: New port: Greenbone Security Assistant webpage written in React
- security/greenbone-security-assistant was splitted into gsa and gsad ports
-rw-r--r--security/gsa/Makefile48
-rw-r--r--security/gsa/distinfo5
-rw-r--r--security/gsa/pkg-descr10
3 files changed, 63 insertions, 0 deletions
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