1 |
commit: 58675adefa2d60ceb74c001a6be4c8cdc39a329b |
2 |
Author: Florian Schmaus <flow <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 9 12:19:05 2022 +0000 |
4 |
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 9 12:20:46 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58675ade |
7 |
|
8 |
net-analyzer/gsa: new package, add 21.4.4 |
9 |
|
10 |
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> |
11 |
Co-authored-by: Jonas Licht <jonas.licht <AT> fem.tu-ilmenau.de> |
12 |
|
13 |
net-analyzer/gsa/Manifest | 2 ++ |
14 |
net-analyzer/gsa/gsa-21.4.4.ebuild | 42 ++++++++++++++++++++++++++++++++++++ |
15 |
net-analyzer/gsa/metadata.xml | 20 +++++++++++++++++ |
16 |
profiles/arch/amd64/x32/package.mask | 5 +++++ |
17 |
4 files changed, 69 insertions(+) |
18 |
|
19 |
diff --git a/net-analyzer/gsa/Manifest b/net-analyzer/gsa/Manifest |
20 |
new file mode 100644 |
21 |
index 000000000000..dfae85233d9c |
22 |
--- /dev/null |
23 |
+++ b/net-analyzer/gsa/Manifest |
24 |
@@ -0,0 +1,2 @@ |
25 |
+DIST gsa-21.4.2-node_modules.tar.gz 86572528 BLAKE2B 1aec3d8636241d7cd4ca591133cdadd26d349bf4342ee1595a678871617b4b3a763348a7a0e6d44b50780f330362131d7ba72953a40f53e79b1f9709775999fb SHA512 c44f3822864b9f68cbfe0e4052b2295ab74cb2c429cd9aa667b19b8cfb423c49dc65b1455f785abecdc4329f31b43fe368b0bd5276b4ad95d5fa2e208bb4a4ec |
26 |
+DIST gsa-21.4.4.tar.gz 2471442 BLAKE2B b3ac937a87038d93e90223f7c33d087b0dbb043c4fcaa8a00c9d44148e686c064fdcc311899b7b3b4084658d23193bc128fb809f22621583898551f4348ece6f SHA512 5a7b45132a049adf608ccd8988d69a415290cc57d6e7537835a78e19aafb5dfdf204197576f69277726587efaccce189c1ccab55c43e5a0a7855c538b3bc4b67 |
27 |
|
28 |
diff --git a/net-analyzer/gsa/gsa-21.4.4.ebuild b/net-analyzer/gsa/gsa-21.4.4.ebuild |
29 |
new file mode 100644 |
30 |
index 000000000000..c806a73a5931 |
31 |
--- /dev/null |
32 |
+++ b/net-analyzer/gsa/gsa-21.4.4.ebuild |
33 |
@@ -0,0 +1,42 @@ |
34 |
+# Copyright 1999-2022 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=8 |
38 |
+ |
39 |
+MY_NODE_N="node_modules" |
40 |
+MY_NODE_PV="21.4.2" |
41 |
+ |
42 |
+DESCRIPTION="Greenbone Security Assistant" |
43 |
+HOMEPAGE="https://www.greenbone.net https://github.com/greenbone/gsa" |
44 |
+SRC_URI=" |
45 |
+ https://github.com/greenbone/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz |
46 |
+ 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 |
47 |
+" |
48 |
+ |
49 |
+SLOT="0" |
50 |
+LICENSE="AGPL-3+" |
51 |
+KEYWORDS="~amd64 ~x86" |
52 |
+ |
53 |
+BDEPEND=" |
54 |
+ >=net-libs/nodejs-14.0.0[ssl] |
55 |
+ >=sys-apps/yarn-1.15.2 |
56 |
+" |
57 |
+ |
58 |
+MY_NODE_DIR="${S}/${MY_NODE_N}/" |
59 |
+ |
60 |
+src_prepare() { |
61 |
+ default |
62 |
+ # We will use pre-generated npm stuff. |
63 |
+ mv "${WORKDIR}/${MY_NODE_N}" "${MY_NODE_DIR}" || die "couldn't move node_modules" |
64 |
+} |
65 |
+ |
66 |
+src_compile() { |
67 |
+ # setting correct PATH for finding react-js |
68 |
+ NODE_ENV=production PATH="${PATH}:${MY_NODE_DIR}/.bin/" \ |
69 |
+ yarn --offline build || die |
70 |
+} |
71 |
+ |
72 |
+src_install() { |
73 |
+ insinto "usr/share/gvm/gsad/web" |
74 |
+ doins -r build/* |
75 |
+} |
76 |
|
77 |
diff --git a/net-analyzer/gsa/metadata.xml b/net-analyzer/gsa/metadata.xml |
78 |
new file mode 100644 |
79 |
index 000000000000..e0d8b744cdb9 |
80 |
--- /dev/null |
81 |
+++ b/net-analyzer/gsa/metadata.xml |
82 |
@@ -0,0 +1,20 @@ |
83 |
+<?xml version="1.0" encoding="UTF-8"?> |
84 |
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
85 |
+<pkgmetadata> |
86 |
+ <maintainer type="person" proxied="yes"> |
87 |
+ <email>jonas.licht@×××××.com</email> |
88 |
+ <name>Jonas Licht</name> |
89 |
+ </maintainer> |
90 |
+ <maintainer type="project" proxied="proxy"> |
91 |
+ <email>proxy-maint@g.o</email> |
92 |
+ <name>Proxy Maintainers</name> |
93 |
+ </maintainer> |
94 |
+ <longdescription lang="en"> |
95 |
+ The Greenbone Security Assistant is the web interface developed for the Greenbone Security Manager appliances. |
96 |
+ It connects to the Greenbone Vulnerability Manager GVM to provide a full-featured user interface for vulnerability management. |
97 |
+ Greenbone Security Assistant consists of GSA - The webpage written in React and |
98 |
+ </longdescription> |
99 |
+ <upstream> |
100 |
+ <remote-id type="github">greenbone/gsa</remote-id> |
101 |
+ </upstream> |
102 |
+</pkgmetadata> |
103 |
|
104 |
diff --git a/profiles/arch/amd64/x32/package.mask b/profiles/arch/amd64/x32/package.mask |
105 |
index a97d85f5a495..444da1029e7b 100644 |
106 |
--- a/profiles/arch/amd64/x32/package.mask |
107 |
+++ b/profiles/arch/amd64/x32/package.mask |
108 |
@@ -1,6 +1,11 @@ |
109 |
# Copyright 1999-2022 Gentoo Authors |
110 |
# Distributed under the terms of the GNU General Public License v2 |
111 |
|
112 |
+# Jonas Licht <jonas.licht@×××××.com> (2022-05-01) |
113 |
+# Requires net-libs/nodejs, plus mask all reverse-dependecies. |
114 |
+net-analyzer/gsa |
115 |
+net-analyzer/gsad |
116 |
+ |
117 |
# Andrew Ammerlaan <andrewammerlaan@g.o> (2022-02-13) |
118 |
# Requires qtwebengine |
119 |
sci-electronics/eagle |