diff options
author | Florian Schmaus <flow@gentoo.org> | 2022-05-09 14:19:05 +0200 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2022-05-09 14:20:46 +0200 |
commit | 58675adefa2d60ceb74c001a6be4c8cdc39a329b (patch) | |
tree | 46cb3bcf01d1ee439fdcc76c407f0815eaad40a2 /net-analyzer | |
parent | net-analyzer/gvmd: fix LICENSE, gvm-sync-all helper, GVM_DEFAULT_DROP_USER (diff) | |
download | gentoo-58675adefa2d60ceb74c001a6be4c8cdc39a329b.tar.gz gentoo-58675adefa2d60ceb74c001a6be4c8cdc39a329b.tar.bz2 gentoo-58675adefa2d60ceb74c001a6be4c8cdc39a329b.zip |
net-analyzer/gsa: new package, add 21.4.4
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Co-authored-by: Jonas Licht <jonas.licht@fem.tu-ilmenau.de>
Diffstat (limited to 'net-analyzer')
-rw-r--r-- | net-analyzer/gsa/Manifest | 2 | ||||
-rw-r--r-- | net-analyzer/gsa/gsa-21.4.4.ebuild | 42 | ||||
-rw-r--r-- | net-analyzer/gsa/metadata.xml | 20 |
3 files changed, 64 insertions, 0 deletions
diff --git a/net-analyzer/gsa/Manifest b/net-analyzer/gsa/Manifest new file mode 100644 index 000000000000..dfae85233d9c --- /dev/null +++ b/net-analyzer/gsa/Manifest @@ -0,0 +1,2 @@ +DIST gsa-21.4.2-node_modules.tar.gz 86572528 BLAKE2B 1aec3d8636241d7cd4ca591133cdadd26d349bf4342ee1595a678871617b4b3a763348a7a0e6d44b50780f330362131d7ba72953a40f53e79b1f9709775999fb SHA512 c44f3822864b9f68cbfe0e4052b2295ab74cb2c429cd9aa667b19b8cfb423c49dc65b1455f785abecdc4329f31b43fe368b0bd5276b4ad95d5fa2e208bb4a4ec +DIST gsa-21.4.4.tar.gz 2471442 BLAKE2B b3ac937a87038d93e90223f7c33d087b0dbb043c4fcaa8a00c9d44148e686c064fdcc311899b7b3b4084658d23193bc128fb809f22621583898551f4348ece6f SHA512 5a7b45132a049adf608ccd8988d69a415290cc57d6e7537835a78e19aafb5dfdf204197576f69277726587efaccce189c1ccab55c43e5a0a7855c538b3bc4b67 diff --git a/net-analyzer/gsa/gsa-21.4.4.ebuild b/net-analyzer/gsa/gsa-21.4.4.ebuild new file mode 100644 index 000000000000..c806a73a5931 --- /dev/null +++ b/net-analyzer/gsa/gsa-21.4.4.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_NODE_N="node_modules" +MY_NODE_PV="21.4.2" + +DESCRIPTION="Greenbone Security Assistant" +HOMEPAGE="https://www.greenbone.net https://github.com/greenbone/gsa" +SRC_URI=" + https://github.com/greenbone/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz + https://github.com/greenbone/${PN}/releases/download/v${MY_NODE_PV}/gsa-node-modules-${MY_NODE_PV}.tar.gz -> ${PN}-${MY_NODE_PV}-${MY_NODE_N}.tar.gz +" + +SLOT="0" +LICENSE="AGPL-3+" +KEYWORDS="~amd64 ~x86" + +BDEPEND=" + >=net-libs/nodejs-14.0.0[ssl] + >=sys-apps/yarn-1.15.2 +" + +MY_NODE_DIR="${S}/${MY_NODE_N}/" + +src_prepare() { + default + # We will use pre-generated npm stuff. + mv "${WORKDIR}/${MY_NODE_N}" "${MY_NODE_DIR}" || die "couldn't move node_modules" +} + +src_compile() { + # setting correct PATH for finding react-js + NODE_ENV=production PATH="${PATH}:${MY_NODE_DIR}/.bin/" \ + yarn --offline build || die +} + +src_install() { + insinto "usr/share/gvm/gsad/web" + doins -r build/* +} diff --git a/net-analyzer/gsa/metadata.xml b/net-analyzer/gsa/metadata.xml new file mode 100644 index 000000000000..e0d8b744cdb9 --- /dev/null +++ b/net-analyzer/gsa/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>jonas.licht@gmail.com</email> + <name>Jonas Licht</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <longdescription lang="en"> + 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 + </longdescription> + <upstream> + <remote-id type="github">greenbone/gsa</remote-id> + </upstream> +</pkgmetadata> |