1 |
commit: b4a09896292f29a452c61a882aab111f2352106c |
2 |
Author: Hasan ÇALIŞIR <hasan.calisir <AT> psauxit <DOT> com> |
3 |
AuthorDate: Mon Aug 12 17:38:49 2019 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 28 04:03:04 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4a09896 |
7 |
|
8 |
net-analyzer/greenbone-security-assistant: bump to 8.0.1. |
9 |
|
10 |
Package-Manager: Portage-2.3.69, Repoman-2.3.16 |
11 |
Signed-off-by: Hasan ÇALIŞIR <hasan.calisir <AT> psauxit.com> |
12 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
13 |
|
14 |
net-analyzer/greenbone-security-assistant/Manifest | 2 + |
15 |
...enbone-security-assistant-8.0.1-cmakelist.patch | 30 +++++ |
16 |
.../greenbone-security-assistant-8.0.1-node.patch | 34 ++++++ |
17 |
.../greenbone-security-assistant-8.0.1-pid.patch | 11 ++ |
18 |
...reenbone-security-assistant-8.0.1-reactjs.patch | 20 ++++ |
19 |
.../greenbone-security-assistant-8.0.1-sbin.patch | 12 ++ |
20 |
...ecurity-assistant-8.0.1-uninstall-snippet.patch | 12 ++ |
21 |
.../files/gsad-daemon.conf | 19 +++ |
22 |
.../greenbone-security-assistant/files/gsad.init | 20 ++++ |
23 |
.../files/gsad.logrotate | 13 +++ |
24 |
.../files/gsad.service | 18 +++ |
25 |
.../greenbone-security-assistant-8.0.1.ebuild | 127 +++++++++++++++++++++ |
26 |
.../greenbone-security-assistant/metadata.xml | 9 ++ |
27 |
13 files changed, 327 insertions(+) |
28 |
|
29 |
diff --git a/net-analyzer/greenbone-security-assistant/Manifest b/net-analyzer/greenbone-security-assistant/Manifest |
30 |
index db30d43db81..4b67fa50814 100644 |
31 |
--- a/net-analyzer/greenbone-security-assistant/Manifest |
32 |
+++ b/net-analyzer/greenbone-security-assistant/Manifest |
33 |
@@ -1 +1,3 @@ |
34 |
DIST greenbone-security-assistant-7.0.3.tar.gz 2918954 BLAKE2B 4a6cd5d8378bcbb0a9df6cb5b8f6560060f15d0b0cb53d2c61692cb2bc2cd86af6e9cdeb5040c4d7020c3b016779a76ec517d54614388c62aaedd596f55fa3c4 SHA512 7e1c1ef939ba08dab3b78baf1aa9c110be2febfbed5d67eefe8110c60f5089a1af44bc26693657226f417c6bd516a4a656eb159dae2a78f878e1a1b6c222b117 |
35 |
+DIST greenbone-security-assistant-8.0.1-node_modules.tar.gz 34084175 BLAKE2B 17c9e24961b63b957f932e4c5970113499ad65655b42e624284fb22a495d50c12e5f8289da4e17db717885b65909a6e18213fa312052c9c06c9bdc37816204f1 SHA512 552ea55fe218ae2345fa45b43af349825f255ccd86137dd245679efe6abc805d16c4ced3599f644d9b9f2686047b486d5e0c8aa4eaa0cbbf13157b9e2dbc8cc2 |
36 |
+DIST greenbone-security-assistant-8.0.1.tar.gz 1558918 BLAKE2B 75287784ed215300cfb30101d39b06b134092ca2d4311bcca976be23cc289529c6a8d661b99cb28e890c68f27e93a9259681add067749a772b7e3aea28761f3b SHA512 b91c1c4b8073c3ad3d3d636abbaa7881393f1448eae7366636ff618391c199c240e6bc4c848740a4267b4142aa872fb91c0798b8034d152d16016e650fbda2b8 |
37 |
|
38 |
diff --git a/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-8.0.1-cmakelist.patch b/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-8.0.1-cmakelist.patch |
39 |
new file mode 100644 |
40 |
index 00000000000..d0fc7963a50 |
41 |
--- /dev/null |
42 |
+++ b/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-8.0.1-cmakelist.patch |
43 |
@@ -0,0 +1,30 @@ |
44 |
+--- a/gsad/config/CMakeLists.txt 2019-07-18 20:39:10.331949702 +0300 |
45 |
++++ b/gsad/config/CMakeLists.txt 2019-07-18 20:40:18.946830294 +0300 |
46 |
+@@ -16,27 +16,3 @@ |
47 |
+ # along with this program; if not, write to the Free Software |
48 |
+ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
49 |
+ |
50 |
+-if (NOT SYSTEMD_SERVICE_DIR) |
51 |
+- set (SYSTEMD_SERVICE_DIR "${CMAKE_INSTALL_PREFIX}/lib/systemd/system") |
52 |
+-endif (NOT SYSTEMD_SERVICE_DIR) |
53 |
+- |
54 |
+-if (NOT DEFAULT_CONFIG_DIR) |
55 |
+- set (DEFAULT_CONFIG_DIR "${CMAKE_INSTALL_PREFIX}/etc/default") |
56 |
+-endif (NOT DEFAULT_CONFIG_DIR) |
57 |
+- |
58 |
+-if (NOT LOGROTATE_DIR) |
59 |
+- set (LOGROTATE_DIR "${CMAKE_INSTALL_PREFIX}/etc/logrotate.d") |
60 |
+-endif (NOT LOGROTATE_DIR) |
61 |
+- |
62 |
+-configure_file (gsad.service.in gsad.service) |
63 |
+-configure_file (gsad.logrotate.in gsad.logrotate) |
64 |
+- |
65 |
+-install (FILES ${CMAKE_CURRENT_BINARY_DIR}/gsad.service |
66 |
+- DESTINATION ${SYSTEMD_SERVICE_DIR}/) |
67 |
+- |
68 |
+-install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/gsad.default |
69 |
+- DESTINATION ${DEFAULT_CONFIG_DIR}/ RENAME gsad) |
70 |
+- |
71 |
+-install (FILES ${CMAKE_CURRENT_BINARY_DIR}/gsad.logrotate |
72 |
+- DESTINATION ${LOGROTATE_DIR}/ RENAME gsad) |
73 |
+- |
74 |
|
75 |
diff --git a/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-8.0.1-node.patch b/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-8.0.1-node.patch |
76 |
new file mode 100644 |
77 |
index 00000000000..116bd48264d |
78 |
--- /dev/null |
79 |
+++ b/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-8.0.1-node.patch |
80 |
@@ -0,0 +1,34 @@ |
81 |
+--- a/gsa/CMakeLists.txt 2019-07-17 16:45:39.000000000 +0300 |
82 |
++++ b/gsa/CMakeLists.txt 2019-07-17 22:24:49.466906757 +0300 |
83 |
+@@ -1095,28 +1095,17 @@ |
84 |
+ ${GSA_JS_SRC_FILES} |
85 |
+ PARENT_SCOPE) |
86 |
+ |
87 |
+- |
88 |
+-add_custom_command (OUTPUT node-modules.stamp |
89 |
+- DEPENDS ${GSA_PKG_FILES} |
90 |
+- COMMAND ${INSTALLER} "${INSTALLER_ARGS}" "install" |
91 |
+- COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_CURRENT_BINARY_DIR}/node-modules.stamp |
92 |
+- WORKING_DIRECTORY ${GSA_SRC_DIR} |
93 |
+- COMMENT "Install gsa-ng js dependencies") |
94 |
+- |
95 |
+- |
96 |
+ add_custom_command (OUTPUT bundle.stamp |
97 |
+- COMMAND ${CMAKE_COMMAND} -E env REACT_APP_VERSION=${PROJECT_VERSION_STRING} ${INSTALLER} "${INSTALLER_ARGS}" run build |
98 |
++ COMMAND ${CMAKE_COMMAND} -E env REACT_APP_VERSION=${PROJECT_VERSION_STRING} ${INSTALLER} --offline run build |
99 |
+ COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_CURRENT_BINARY_DIR}/bundle.stamp |
100 |
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} |
101 |
+- DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/node-modules.stamp |
102 |
+- ${GSA_PKG_FILES} |
103 |
++ DEPENDS ${GSA_PKG_FILES} |
104 |
+ ${GSA_STATIC_SRC_FILES} |
105 |
+ ${GSA_JS_SRC_FILES} |
106 |
+ COMMENT "Build gsa-ng install files") |
107 |
+ |
108 |
+ add_custom_target (gsa-ng ALL |
109 |
+- DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/node-modules.stamp |
110 |
+- ${CMAKE_CURRENT_BINARY_DIR}/bundle.stamp) |
111 |
++ DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/bundle.stamp) |
112 |
+ |
113 |
+ set (GSA_STATIC_BUILD_FILES |
114 |
+ ${GSA_BUILD_DIR}/index.html) |
115 |
|
116 |
diff --git a/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-8.0.1-pid.patch b/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-8.0.1-pid.patch |
117 |
new file mode 100644 |
118 |
index 00000000000..a318c87225e |
119 |
--- /dev/null |
120 |
+++ b/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-8.0.1-pid.patch |
121 |
@@ -0,0 +1,11 @@ |
122 |
+--- a/CMakeLists.txt |
123 |
++++ b/CMakeLists.txt |
124 |
+@@ -222,7 +222,7 @@ if (NOT DATADIR) |
125 |
+ endif (NOT DATADIR) |
126 |
+ |
127 |
+ if (NOT GSAD_PID_DIR) |
128 |
+- set (GSAD_PID_DIR "${LOCALSTATEDIR}/run") |
129 |
++ set (GSAD_PID_DIR "/run") |
130 |
+ endif (NOT GSAD_PID_DIR) |
131 |
+ |
132 |
+ set (OPENVAS_STATE_DIR "${LOCALSTATEDIR}/lib/openvas") |
133 |
|
134 |
diff --git a/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-8.0.1-reactjs.patch b/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-8.0.1-reactjs.patch |
135 |
new file mode 100644 |
136 |
index 00000000000..19a4731db75 |
137 |
--- /dev/null |
138 |
+++ b/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-8.0.1-reactjs.patch |
139 |
@@ -0,0 +1,20 @@ |
140 |
+--- a/gsa/package.json 2019-07-17 16:45:39.000000000 +0300 |
141 |
++++ b/gsa/package.json 2019-07-17 22:40:31.371899489 +0300 |
142 |
+@@ -66,12 +66,12 @@ |
143 |
+ "x2js": "^3.2.6" |
144 |
+ }, |
145 |
+ "scripts": { |
146 |
+- "test": "react-scripts test", |
147 |
+- "test:coverage": "react-scripts test --coverage --maxWorkers 2", |
148 |
++ "test": "NODE_ENV=production node_modules/react-scripts/bin/react-scripts.js test", |
149 |
++ "test:coverage": "NODE_ENV=production node_modules/react-scripts/bin/react-scripts.js test --coverage --maxWorkers 2", |
150 |
+ "lint": "eslint --max-warnings 0 src", |
151 |
+- "start": "react-scripts start", |
152 |
+- "build": "react-scripts build", |
153 |
+- "eject": "react-scripts eject" |
154 |
++ "start": "NODE_ENV=production node_modules/react-scripts/bin/react-scripts.js start", |
155 |
++ "build": "NODE_ENV=production node_modules/react-scripts/bin/react-scripts.js build", |
156 |
++ "eject": "NODE_ENV=production node_modules/react-scripts/bin/react-scripts.js eject" |
157 |
+ }, |
158 |
+ "devDependencies": { |
159 |
+ "@types/jest": "^24.0.12", |
160 |
|
161 |
diff --git a/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-8.0.1-sbin.patch b/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-8.0.1-sbin.patch |
162 |
new file mode 100644 |
163 |
index 00000000000..c1825ba3f5d |
164 |
--- /dev/null |
165 |
+++ b/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-8.0.1-sbin.patch |
166 |
@@ -0,0 +1,12 @@ |
167 |
+--- a/gsad/src/CMakeLists.txt 2019-07-21 23:07:38.375683800 +0300 |
168 |
++++ a/gsad/src/CMakeLists.txt 2019-07-21 23:08:17.301651451 +0300 |
169 |
+@@ -175,7 +175,7 @@ |
170 |
+ ## Install |
171 |
+ |
172 |
+ install (TARGETS gsad |
173 |
+- RUNTIME DESTINATION ${SBINDIR} |
174 |
++ RUNTIME DESTINATION ${BINDIR} |
175 |
+ LIBRARY DESTINATION ${LIBDIR} |
176 |
+ ARCHIVE DESTINATION ${LIBDIR}/static) |
177 |
+ |
178 |
+ |
179 |
|
180 |
diff --git a/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-8.0.1-uninstall-snippet.patch b/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-8.0.1-uninstall-snippet.patch |
181 |
new file mode 100644 |
182 |
index 00000000000..3b075951aba |
183 |
--- /dev/null |
184 |
+++ b/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-8.0.1-uninstall-snippet.patch |
185 |
@@ -0,0 +1,12 @@ |
186 |
+--- a/gsa/CMakeLists.txt 2019-07-18 23:14:04.639202986 +0300 |
187 |
++++ b/gsa/CMakeLists.txt 2019-07-18 23:21:54.568052589 +0300 |
188 |
+@@ -1116,9 +1116,6 @@ |
189 |
+ install (FILES public/robots.txt |
190 |
+ DESTINATION ${GSA_DEST_DIR}) |
191 |
+ |
192 |
+-# remove old generated files |
193 |
+-install (CODE "file(REMOVE_RECURSE ${GSA_DEST_DIR}/static)") |
194 |
+- |
195 |
+ install (DIRECTORY |
196 |
+ ${GSA_BUILD_DIR}/static |
197 |
+ ${GSA_BUILD_DIR}/img |
198 |
|
199 |
diff --git a/net-analyzer/greenbone-security-assistant/files/gsad-daemon.conf b/net-analyzer/greenbone-security-assistant/files/gsad-daemon.conf |
200 |
new file mode 100644 |
201 |
index 00000000000..f7c7ee514e5 |
202 |
--- /dev/null |
203 |
+++ b/net-analyzer/greenbone-security-assistant/files/gsad-daemon.conf |
204 |
@@ -0,0 +1,19 @@ |
205 |
+# Greenbone Security Assistant command args |
206 |
+ |
207 |
+# e.g. --foreground | e.g. --no-redirect |
208 |
+GSAD_OPTIONS="--no-redirect" |
209 |
+ |
210 |
+# GSAD listen adress |
211 |
+GSAD_LISTEN_ADDRESS="--listen=127.0.0.1" |
212 |
+ |
213 |
+# GSAD listen port |
214 |
+GSAD_LISTEN_PORT="--port=9392" |
215 |
+ |
216 |
+# GVMD listen address |
217 |
+GVMD_LISTEN_ADDRESS="--mlisten=127.0.0.1" |
218 |
+ |
219 |
+# GVMD listen port |
220 |
+GVMD_LISTEN_PORT="--mport=9390" |
221 |
+ |
222 |
+# TLS Settings |
223 |
+GSAD_GNUTLS_PRIORITIES="--gnutls-priorities=NORMAL" |
224 |
|
225 |
diff --git a/net-analyzer/greenbone-security-assistant/files/gsad.init b/net-analyzer/greenbone-security-assistant/files/gsad.init |
226 |
new file mode 100644 |
227 |
index 00000000000..6d431bd2119 |
228 |
--- /dev/null |
229 |
+++ b/net-analyzer/greenbone-security-assistant/files/gsad.init |
230 |
@@ -0,0 +1,20 @@ |
231 |
+#!/sbin/openrc-run |
232 |
+# Copyright 1999-2019 Gentoo Authors |
233 |
+# Distributed under the terms of the GNU General Public License v2 |
234 |
+ |
235 |
+: ${GSAD_USER:=gvm} |
236 |
+: ${GSAD_GROUP:=gvm} |
237 |
+: ${GSAD_TIMEOUT:=30} |
238 |
+ |
239 |
+name="Greenbone Security Assistant (GSA)" |
240 |
+command="/usr/bin/gsad" |
241 |
+command_args="${GSAD_OPTIONS} ${GSAD_LISTEN_ADDRESS} ${GSAD_LISTEN_PORT} ${GVMD_LISTEN_ADDRESS} ${GVMD_LISTEN_PORT} ${GSAD_GNUTLS_PRIORITIES}" |
242 |
+command_background="true" |
243 |
+command_user="${GSAD_USER}:${GSAD_GROUP}" |
244 |
+pidfile="/run/gsad.pid" |
245 |
+retry="${GSAD_TIMEOUT}" |
246 |
+ |
247 |
+depend() { |
248 |
+ after bootmisc |
249 |
+ need localmount net gvmd |
250 |
+} |
251 |
|
252 |
diff --git a/net-analyzer/greenbone-security-assistant/files/gsad.logrotate b/net-analyzer/greenbone-security-assistant/files/gsad.logrotate |
253 |
new file mode 100644 |
254 |
index 00000000000..f80bba881c7 |
255 |
--- /dev/null |
256 |
+++ b/net-analyzer/greenbone-security-assistant/files/gsad.logrotate |
257 |
@@ -0,0 +1,13 @@ |
258 |
+# Copyright 1999-2019 Gentoo Authors |
259 |
+# Distributed under the terms of the GNU General Public License v2 |
260 |
+# Daemon ignore HUP so we use 'copytruncate' instead of 'create' |
261 |
+# with safe file size to prevent losing log entries. |
262 |
+ |
263 |
+/var/log/gvm/gsad.log { |
264 |
+ compress |
265 |
+ missingok |
266 |
+ notifempty |
267 |
+ sharedscripts |
268 |
+ copytruncate |
269 |
+ maxsize 10M |
270 |
+} |
271 |
|
272 |
diff --git a/net-analyzer/greenbone-security-assistant/files/gsad.service b/net-analyzer/greenbone-security-assistant/files/gsad.service |
273 |
new file mode 100644 |
274 |
index 00000000000..91e79187800 |
275 |
--- /dev/null |
276 |
+++ b/net-analyzer/greenbone-security-assistant/files/gsad.service |
277 |
@@ -0,0 +1,18 @@ |
278 |
+[Unit] |
279 |
+Description=Greenbone Security Assistant |
280 |
+After=network.target |
281 |
+After=openvassd.service |
282 |
+After=gvmd.service |
283 |
+Wants=gvmd.service |
284 |
+ |
285 |
+[Service] |
286 |
+Type=forking |
287 |
+User=gvm |
288 |
+Group=gvm |
289 |
+EnvironmentFile=-/etc/gvm/sysconfig/gsad-daemon.conf |
290 |
+ExecStart=/usr/bin/gsad $GSAD_OPTIONS $GSAD_LISTEN_ADDRESS $GSAD_LISTEN_PORT $GVMD_LISTEN_ADDRESS $GVMD_LISTEN_PORT $GSAD_GNUTLS_PRIORITIES |
291 |
+Restart=always |
292 |
+RestartSec=10 |
293 |
+ |
294 |
+[Install] |
295 |
+WantedBy=multi-user.target |
296 |
|
297 |
diff --git a/net-analyzer/greenbone-security-assistant/greenbone-security-assistant-8.0.1.ebuild b/net-analyzer/greenbone-security-assistant/greenbone-security-assistant-8.0.1.ebuild |
298 |
new file mode 100644 |
299 |
index 00000000000..6177f8f1383 |
300 |
--- /dev/null |
301 |
+++ b/net-analyzer/greenbone-security-assistant/greenbone-security-assistant-8.0.1.ebuild |
302 |
@@ -0,0 +1,127 @@ |
303 |
+# Copyright 1999-2019 Gentoo Authors |
304 |
+# Distributed under the terms of the GNU General Public License v2 |
305 |
+ |
306 |
+EAPI=7 |
307 |
+ |
308 |
+CMAKE_MAKEFILE_GENERATOR="emake" |
309 |
+inherit cmake-utils flag-o-matic systemd toolchain-funcs |
310 |
+ |
311 |
+MY_PN="gsa" |
312 |
+MY_DN="gsad" |
313 |
+MY_NODE_N="node_modules" |
314 |
+ |
315 |
+DESCRIPTION="Greenbone Security Assistant" |
316 |
+HOMEPAGE="https://www.greenbone.net/en/" |
317 |
+SRC_URI="https://github.com/greenbone/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz |
318 |
+ https://github.com/greenbone/gsa/releases/download/v8.0.1/gsa-node-modules-8.0.1.tar.gz -> ${P}-${MY_NODE_N}.tar.gz" |
319 |
+ |
320 |
+SLOT="0" |
321 |
+LICENSE="GPL-2+" |
322 |
+KEYWORDS="~amd64 ~x86" |
323 |
+IUSE="extras" |
324 |
+ |
325 |
+DEPEND=" |
326 |
+ dev-libs/libgcrypt:0= |
327 |
+ dev-libs/libxslt |
328 |
+ >=net-analyzer/gvm-libs-10.0.1 |
329 |
+ net-libs/gnutls:= |
330 |
+ net-libs/libmicrohttpd[messages]" |
331 |
+ |
332 |
+RDEPEND=" |
333 |
+ ${DEPEND} |
334 |
+ !~net-analyzer/greenbone-security-assistant-7.0.3 |
335 |
+ ~net-analyzer/openvas-scanner-6.0.1 |
336 |
+ >=net-analyzer/gvmd-8.0.1" |
337 |
+ |
338 |
+BDEPEND=" |
339 |
+ >=net-libs/nodejs-8.12.0 |
340 |
+ >=sys-apps/yarn-1.15.2 |
341 |
+ virtual/pkgconfig |
342 |
+ extras? ( app-doc/doxygen[dot] |
343 |
+ app-doc/xmltoman |
344 |
+ app-text/htmldoc |
345 |
+ dev-python/polib |
346 |
+ sys-devel/gettext |
347 |
+ )" |
348 |
+ |
349 |
+BUILD_DIR="${WORKDIR}/${MY_PN}-${PV}_build" |
350 |
+S="${WORKDIR}/${MY_PN}-${PV}" |
351 |
+MY_NODE_DIR="${S}/${MY_PN}/" |
352 |
+ |
353 |
+PATCHES=( |
354 |
+ # QA fix for 8.0.0. |
355 |
+ "${FILESDIR}/${P}-pid.patch" |
356 |
+ # Disable yarn-fetch during compile. |
357 |
+ "${FILESDIR}/${P}-node.patch" |
358 |
+ # Fix react-env path for react.js. |
359 |
+ "${FILESDIR}/${P}-reactjs.patch" |
360 |
+ # Remove ugly uninstall-snippet that causes failing re-emerge. |
361 |
+ "${FILESDIR}/${P}-uninstall-snippet.patch" |
362 |
+ # Remove unnecessary install paths/files. |
363 |
+ "${FILESDIR}/${P}-cmakelist.patch" |
364 |
+ # Install exec. to /usr/bin instead of /usr/sbin |
365 |
+ "${FILESDIR}/${P}-sbin.patch" |
366 |
+) |
367 |
+ |
368 |
+src_prepare() { |
369 |
+ cmake-utils_src_prepare |
370 |
+ # We will use pre-generated npm stuff. |
371 |
+ mv "${WORKDIR}/${MY_NODE_N}" "${MY_NODE_DIR}" || die "couldn't move node_modules" |
372 |
+ # Update .yarnrc accordingly. |
373 |
+ echo "--modules-folder ${MY_NODE_DIR}" >> "${S}/${MY_PN}/.yarnrc" || die "echo failed" |
374 |
+ # QA-Fix | Remove !CLANG doxygen warnings for 8.0.1 |
375 |
+ if use extras; then |
376 |
+ if ! tc-is-clang; then |
377 |
+ local f |
378 |
+ for f in gsad/doc/*.in |
379 |
+ do |
380 |
+ sed -i \ |
381 |
+ -e "s*CLANG_ASSISTED_PARSING = NO*#CLANG_ASSISTED_PARSING = NO*g" \ |
382 |
+ -e "s*CLANG_OPTIONS*#CLANG_OPTIONS*g" \ |
383 |
+ "${f}" || die "couldn't disable CLANG parsing" |
384 |
+ done |
385 |
+ fi |
386 |
+ fi |
387 |
+} |
388 |
+ |
389 |
+src_configure() { |
390 |
+ local mycmakeargs=( |
391 |
+ "-DCMAKE_INSTALL_PREFIX=${EPREFIX}/usr" |
392 |
+ "-DLOCALSTATEDIR=${EPREFIX}/var" |
393 |
+ "-DSYSCONFDIR=${EPREFIX}/etc" |
394 |
+ ) |
395 |
+ # Add release hardening flags for 8.0.1 |
396 |
+ append-cflags -D_FORTIFY_SOURCE=2 -fstack-protector |
397 |
+ append-ldflags -Wl,-z,relro -Wl,-z,now |
398 |
+ cmake-utils_src_configure |
399 |
+} |
400 |
+ |
401 |
+src_compile() { |
402 |
+ cmake-utils_src_compile |
403 |
+ if use extras; then |
404 |
+ cmake-utils_src_make -C "${BUILD_DIR}" doc |
405 |
+ cmake-utils_src_make doc-full -C "${BUILD_DIR}" doc |
406 |
+ HTML_DOCS=( "${BUILD_DIR}/${MY_DN}/doc/generated/html/." ) |
407 |
+ fi |
408 |
+ cmake-utils_src_make rebuild_cache |
409 |
+} |
410 |
+ |
411 |
+src_install() { |
412 |
+ cmake-utils_src_install |
413 |
+ |
414 |
+ insinto /etc/gvm/sysconfig |
415 |
+ doins "${FILESDIR}/${MY_DN}-daemon.conf" |
416 |
+ |
417 |
+ dodir /etc/gvm/reverse-proxy |
418 |
+ insinto /etc/gvm/reverse-proxy |
419 |
+ doins "${FILESDIR}/${MY_PN}.nginx.reverse.proxy.example" |
420 |
+ fowners -R gvm:gvm /etc/gvm |
421 |
+ |
422 |
+ newinitd "${FILESDIR}/${MY_DN}.init" "${MY_DN}" |
423 |
+ newconfd "${FILESDIR}/${MY_DN}-daemon.conf" "${MY_DN}" |
424 |
+ |
425 |
+ insinto /etc/logrotate.d |
426 |
+ newins "${FILESDIR}/${MY_DN}.logrotate" "${MY_DN}" |
427 |
+ |
428 |
+ systemd_dounit "${FILESDIR}/${MY_DN}.service" |
429 |
+} |
430 |
|
431 |
diff --git a/net-analyzer/greenbone-security-assistant/metadata.xml b/net-analyzer/greenbone-security-assistant/metadata.xml |
432 |
index 6a3196eff3b..5a350f963a3 100644 |
433 |
--- a/net-analyzer/greenbone-security-assistant/metadata.xml |
434 |
+++ b/net-analyzer/greenbone-security-assistant/metadata.xml |
435 |
@@ -12,4 +12,13 @@ |
436 |
<use> |
437 |
<flag name="extras">Pdf results, extra fonts, html docs support</flag> |
438 |
</use> |
439 |
+ <longdescription lang="en"> |
440 |
+ The Greenbone Security Assistant is the web interface developed for the Greenbone Security Manager appliances. |
441 |
+ It connects to the Greenbone Vulnerability Manager GVM to provide a full-featured user interface for vulnerability management. |
442 |
+ Greenbone Security Assistant consists of GSA - The webpage written in React and |
443 |
+ GSAD - The HTTP server talking to the GVM daemon. |
444 |
+ </longdescription> |
445 |
+ <upstream> |
446 |
+ <remote-id type="github">greenbone/gsa</remote-id> |
447 |
+ </upstream> |
448 |
</pkgmetadata> |