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>
This commit is contained in:
Florian Schmaus
2022-05-09 14:19:05 +02:00
parent 123dc0e869
commit 58675adefa
4 changed files with 69 additions and 0 deletions

View File

@@ -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

View File

@@ -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/*
}

View File

@@ -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>

View File

@@ -1,6 +1,11 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Jonas Licht <jonas.licht@gmail.com> (2022-05-01)
# Requires net-libs/nodejs, plus mask all reverse-dependecies.
net-analyzer/gsa
net-analyzer/gsad
# Andrew Ammerlaan <andrewammerlaan@gentoo.org> (2022-02-13)
# Requires qtwebengine
sci-electronics/eagle