commit: 570af757b13bba700afd06fbe7131788fa591265 Author: Giuseppe Foti <foti.giuseppe <AT> gmail <DOT> com> AuthorDate: Wed Apr 23 22:13:35 2025 +0000 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> CommitDate: Tue Apr 29 07:35:21 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=570af757
net-analyzer/gsa: add 24.6.1 Signed-off-by: Giuseppe Foti <foti.giuseppe <AT> gmail.com> Closes: https://github.com/gentoo/gentoo/pull/41722 Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> net-analyzer/gsa/Manifest | 2 ++ net-analyzer/gsa/gsa-24.6.1.ebuild | 49 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) diff --git a/net-analyzer/gsa/Manifest b/net-analyzer/gsa/Manifest index ad8082fe070f..9c70b55300dc 100644 --- a/net-analyzer/gsa/Manifest +++ b/net-analyzer/gsa/Manifest @@ -1,4 +1,6 @@ DIST gsa-23.3.0.tar.gz 3508732 BLAKE2B 13aa2c7922778c16bc0c2349fb638fbbc96bb9fc2c005310815f0e0b9194b2afb7648cb7efe7f9e9b18b1756224d964c3feba53334d71a9f5f26156cde0a6fde SHA512 d9eaa282ba4babf3f42939f4918b5726fa539e4c4fe64e89ae77cf1887b2f10d5a97f085b168264e7b23c468f194e0c58c565ee86458812065947a4d96c43788 DIST gsa-24.1.0.tar.gz 3649272 BLAKE2B 4c848b31a4734df5f355711c920e8edf24882f8191f568d10373fda1607408a08260a25a9efd423da802283eddbeca7830162087ec1906341939735bd9c27f1c SHA512 33cbbf6219175d09c48d3a192835cb817e85587dfc2f8c0a4f47f3b8c547bd182c8763300b1b9a8d508665bcd949e762945c67ac1d78b6a3aceb1d930876da50 +DIST gsa-24.6.1.tar.gz 3718084 BLAKE2B 8ea4796fbeb9674a0de011590c9f704cc86313146945f8567c28eeea7241820b9d1cf6a8a2f6ae8117222199e8f6a2618dadaecb36a9c980c57333647a41814d SHA512 86f498aaf2e573fe9349150641d073593a828524a541c71c90bf6b00fa7d0d995b4fa1e64f9a63172aab2757d4cca5ba60bb79e44e6e117ead86e728d03a59a8 DIST gsa-node-modules-23.3.0.tar.xz 23747600 BLAKE2B 85a5e30f7c74fa572da26437ac224126cbd657c1b8fc81dddbb0ab037ea0d9ece90cafb2a9678770017e837d1a914ae662cebddcfef9aeeaf9285aaebc1cab8b SHA512 3b03791d775b2318e91db27f49d199dc70d420242751568a663f3cff43cd11610cb3e46664ff8dd295bed974559d815b84421c72643af86ab540d1114c958d80 DIST gsa-node-modules-24.1.0.tar.xz 24875460 BLAKE2B 7d3f635d627ce2be1a311a46be4ea01696ea10aa543c2eb1c6da56dfc9bc4ad41c37b6f97385545fc3488f2eb2fbeea8b2c92e623c638ea8ebbf2d95b83896e5 SHA512 c305f4be38f68ebf0352862063ce2145c5112c33cd5d9fb2a12389480ed6e54edc2b885378d0df1facb5d08eced7517af835b78600fbaeb92baa5d0c6684ee9c +DIST gsa-node-modules-24.6.1.tar.xz 26032304 BLAKE2B 2cc78875e0fb3a363dc4f052605f5ffc94f346b28616c82067dbfe9d5b4e4052b977d61f1a0fe68f8ab9396bf102ca76f925060d6eb34360dbce9246eeeca1e2 SHA512 b014aa339e4e56642ed39fae99a4f3d030d2df3ede61a88f05bfdb52717cbde942c9467d1a1bea146f9daeef7dccbd6d6d9105c0cfb977945d55a88bbeca17fd diff --git a/net-analyzer/gsa/gsa-24.6.1.ebuild b/net-analyzer/gsa/gsa-24.6.1.ebuild new file mode 100644 index 000000000000..c36571c2ab3d --- /dev/null +++ b/net-analyzer/gsa/gsa-24.6.1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2025 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 +" + +LICENSE="AGPL-3+" +SLOT="0" +KEYWORDS="~amd64" + +BDEPEND=" + >=net-libs/nodejs-20.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/* +}
