1 |
commit: b253f47698aeeeb58aa2fd3ccf00cdaa4e7bbd4b |
2 |
Author: Florian Schmaus <flow <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 9 09:33:15 2022 +0000 |
4 |
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 9 09:35:59 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b253f476 |
7 |
|
8 |
net-analyzer/ospd-openvas: fix systemd service and conf location |
9 |
|
10 |
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> |
11 |
|
12 |
...pd-openvas-21.4.4-r2.ebuild => ospd-openvas-21.4.4-r3.ebuild} | 9 +++++++-- |
13 |
1 file changed, 7 insertions(+), 2 deletions(-) |
14 |
|
15 |
diff --git a/net-analyzer/ospd-openvas/ospd-openvas-21.4.4-r2.ebuild b/net-analyzer/ospd-openvas/ospd-openvas-21.4.4-r3.ebuild |
16 |
similarity index 87% |
17 |
rename from net-analyzer/ospd-openvas/ospd-openvas-21.4.4-r2.ebuild |
18 |
rename to net-analyzer/ospd-openvas/ospd-openvas-21.4.4-r3.ebuild |
19 |
index 83fcc3b84069..e6e08ba90a4d 100644 |
20 |
--- a/net-analyzer/ospd-openvas/ospd-openvas-21.4.4-r2.ebuild |
21 |
+++ b/net-analyzer/ospd-openvas/ospd-openvas-21.4.4-r3.ebuild |
22 |
@@ -39,6 +39,9 @@ src_prepare() { |
23 |
|
24 |
# https://github.com/greenbone/ospd-openvas/pull/649 |
25 |
sed -i '/^Group=gvm/d' config/ospd-openvas.service || die |
26 |
+ |
27 |
+ # https://github.com/greenbone/ospd-openvas/pull/653 |
28 |
+ sed -i 's;/usr/local/bin/;/usr/bin/;' config/ospd-openvas.service || die |
29 |
} |
30 |
|
31 |
python_compile() { |
32 |
@@ -54,9 +57,11 @@ python_install() { |
33 |
|
34 |
dodoc "${FILESDIR}"/redis.conf.example |
35 |
|
36 |
- insinto /etc/openvas |
37 |
+ insinto /etc/gvm |
38 |
doins config/${PN}.conf |
39 |
- fowners -R gvm:gvm /etc/openvas |
40 |
+ if ! use prefix; then |
41 |
+ fowners -R gvm:gvm /etc/gvm |
42 |
+ fi |
43 |
|
44 |
newinitd "${FILESDIR}/${PN}.initd" "${PN}" |
45 |
newconfd "${FILESDIR}/${PN}.confd" "${PN}" |