commit: 58675adefa2d60ceb74c001a6be4c8cdc39a329b Author: Florian Schmaus <flow <AT> gentoo <DOT> org> AuthorDate: Mon May 9 12:19:05 2022 +0000 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> CommitDate: Mon May 9 12:20:46 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58675ade
net-analyzer/gsa: new package, add 21.4.4 Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> Co-authored-by: Jonas Licht <jonas.licht <AT> fem.tu-ilmenau.de> net-analyzer/gsa/Manifest | 2 ++ net-analyzer/gsa/gsa-21.4.4.ebuild | 42 ++++++++++++++++++++++++++++++++++++ net-analyzer/gsa/metadata.xml | 20 +++++++++++++++++ profiles/arch/amd64/x32/package.mask | 5 +++++ 4 files changed, 69 insertions(+) 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>[email protected]</email> + <name>Jonas Licht</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>[email protected]</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> diff --git a/profiles/arch/amd64/x32/package.mask b/profiles/arch/amd64/x32/package.mask index a97d85f5a495..444da1029e7b 100644 --- a/profiles/arch/amd64/x32/package.mask +++ b/profiles/arch/amd64/x32/package.mask @@ -1,6 +1,11 @@ # Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 +# Jonas Licht <[email protected]> (2022-05-01) +# Requires net-libs/nodejs, plus mask all reverse-dependecies. +net-analyzer/gsa +net-analyzer/gsad + # Andrew Ammerlaan <[email protected]> (2022-02-13) # Requires qtwebengine sci-electronics/eagle
