diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-01-23 16:46:30 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-01-23 16:46:30 +0000 |
commit | 1f1ada4b2afd8dd8de6ac1e0f94702abf05654bc (patch) | |
tree | 2d9c4727985711ca133f754404d7ef6c40d82be3 /net-analyzer/gsa/gsa-23.0.0.ebuild | |
parent | 02d5de423c2b7f8d7c873bcc7a1a222b1847149d (diff) |
gentoo auto-resync : 23:01:2024 - 16:46:30
Diffstat (limited to 'net-analyzer/gsa/gsa-23.0.0.ebuild')
-rw-r--r-- | net-analyzer/gsa/gsa-23.0.0.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/net-analyzer/gsa/gsa-23.0.0.ebuild b/net-analyzer/gsa/gsa-23.0.0.ebuild new file mode 100644 index 000000000000..1904c1691642 --- /dev/null +++ b/net-analyzer/gsa/gsa-23.0.0.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_NODE_N="node-modules" +MY_NODE_D="node_modules" +MY_NODE_PV="${PV}" + +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${PV}/${PN}-${MY_NODE_N}-${PV}.tar.xz +" + +SLOT="0" +LICENSE="AGPL-3+" +KEYWORDS="~amd64 ~x86" + +BDEPEND=" + >=net-libs/nodejs-18.0.0[ssl] + >=sys-apps/yarn-1.22 +" + +MY_NODE_DIR="${S}/${MY_NODE_D}/" + +src_prepare() { + default + # We will use pre-generated npm stuff. + mv "${WORKDIR}/${MY_NODE_D}" "${MY_NODE_DIR}" || die "couldn't move node_modules" + + # Make SVGR not traverse the path up to / looking for a + # configuration file. Fixes + # Error: EACCES: permission denied, open '/.config/svgrrc' + # in case a directory /.config exists, see https://bugs.gentoo.org/909731 + echo "runtimeConfig: false" > .svgrrc.yml || die +} + +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/* +} |