Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/nessus-bin/
Date: Fri, 28 Aug 2020 12:42:32
Message-Id: 1598617056.4dd259e91aa64316e138c4cd1c5bd38823bfc374.marecki@gentoo
1 commit: 4dd259e91aa64316e138c4cd1c5bd38823bfc374
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 28 12:17:36 2020 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 28 12:17:36 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4dd259e9
7
8 net-analyzer/nessus-bin: handle version updates properly
9
10 Nessus must be made aware of a new version of its core components having
11 been installed. Do it the same way as upstream distro packages, i.e. use
12 the undocumented nessuscli command 'install'.
13
14 This is safe to do while nessusd-bin is running but it WILL be necessary
15 to restart the service so that the dashboard is updated as well. In
16 fact, Nessus UI will complain about the version discrepancy between the
17 core and the dashboard until the service has been restarted.
18
19 Closes: https://bugs.gentoo.org/739178
20 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
21
22 ...nessus-bin-8.11.1.ebuild => nessus-bin-8.11.1-r1.ebuild} | 13 +++++++------
23 1 file changed, 7 insertions(+), 6 deletions(-)
24
25 diff --git a/net-analyzer/nessus-bin/nessus-bin-8.11.1.ebuild b/net-analyzer/nessus-bin/nessus-bin-8.11.1-r1.ebuild
26 similarity index 77%
27 rename from net-analyzer/nessus-bin/nessus-bin-8.11.1.ebuild
28 rename to net-analyzer/nessus-bin/nessus-bin-8.11.1-r1.ebuild
29 index 444f5c56b2c..1e569f0e0f1 100644
30 --- a/net-analyzer/nessus-bin/nessus-bin-8.11.1.ebuild
31 +++ b/net-analyzer/nessus-bin/nessus-bin-8.11.1-r1.ebuild
32 @@ -50,15 +50,16 @@ src_install() {
33 }
34
35 pkg_postinst() {
36 + # Actually update Nessus core components. According to upstream packages,
37 + # harmless to invoke on fresh installations too - and it may make life easier
38 + # for people who had restored Nessus state from backups, had it lying around
39 + # from older installations and so on.
40 + "${EROOT}"/opt/nessus/sbin/nessuscli install "${EROOT}"/opt/nessus/var/nessus/plugins-core.tar.gz
41 +
42 if [[ -z "${REPLACING_VERSIONS}" ]]; then
43 elog "To get started launch the nessusd-bin service, then point your Web browser to"
44 elog " https://<yourhost>:8834/"
45 else
46 - elog "You may want to restart the nessusd-bin service to use"
47 - elog "the new version of Nessus."
48 - elog "You also need to update your plugins. When ready, it's done like this:"
49 - elog "/etc/init.d/nessusd-bin stop"
50 - elog "/opt/nessus/sbin/nessuscli update --all"
51 - elog "/etc/init.d/nessusd-bin start"
52 + elog "Please restart the nessusd-bin service to use the new version of Nessus"
53 fi
54 }