Diff gsa-21.4.4 with a gsa-22.7.0
/usr/portage/net-analyzer/gsa/gsa-22.7.0.ebuild 2023-10-09 14:52:33.312368446 +0300 | ||
---|---|---|
1 |
# Copyright 1999-2022 Gentoo Authors |
|
1 |
# Copyright 1999-2023 Gentoo Authors |
|
2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
3 | 3 | |
4 | 4 |
EAPI=8 |
5 | 5 | |
6 |
MY_NODE_N="node_modules" |
|
7 |
MY_NODE_PV="21.4.2" |
|
6 |
MY_NODE_N="node-modules" |
|
7 |
MY_NODE_D="node_modules" |
|
8 |
MY_NODE_PV="${PV}" |
|
8 | 9 | |
9 | 10 |
DESCRIPTION="Greenbone Security Assistant" |
10 | 11 |
HOMEPAGE="https://www.greenbone.net https://github.com/greenbone/gsa" |
11 | 12 |
SRC_URI=" |
12 | 13 |
https://github.com/greenbone/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz |
13 |
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 |
|
14 |
https://github.com/greenbone/${PN}/releases/download/v${PV}/${PN}-${MY_NODE_N}-${PV}.tar.xz |
|
14 | 15 |
" |
15 | 16 | |
16 | 17 |
SLOT="0" |
... | ... | |
22 | 23 |
>=sys-apps/yarn-1.15.2 |
23 | 24 |
" |
24 | 25 | |
25 |
MY_NODE_DIR="${S}/${MY_NODE_N}/" |
|
26 |
MY_NODE_DIR="${S}/${MY_NODE_D}/" |
|
26 | 27 | |
27 | 28 |
src_prepare() { |
28 | 29 |
default |
29 | 30 |
# We will use pre-generated npm stuff. |
30 |
mv "${WORKDIR}/${MY_NODE_N}" "${MY_NODE_DIR}" || die "couldn't move node_modules" |
|
31 |
mv "${WORKDIR}/${MY_NODE_D}" "${MY_NODE_DIR}" || die "couldn't move node_modules" |
|
32 | ||
33 |
# Make SVGR not traverse the path up to / looking for a |
|
34 |
# configuration file. Fixes |
|
35 |
# Error: EACCES: permission denied, open '/.config/svgrrc' |
|
36 |
# in case a directory /.config exists, see https://bugs.gentoo.org/909731 |
|
37 |
echo "runtimeConfig: false" > .svgrrc.yml || die |
|
31 | 38 |
} |
32 | 39 | |
33 | 40 |
src_compile() { |