From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7F846138359 for ; Fri, 28 Aug 2020 12:42:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B69A1E09D7; Fri, 28 Aug 2020 12:42:31 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9FE3AE09D7 for ; Fri, 28 Aug 2020 12:42:31 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5E3BB3408CF for ; Fri, 28 Aug 2020 12:42:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 137F732D for ; Fri, 28 Aug 2020 12:42:29 +0000 (UTC) From: "Marek Szuba" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marek Szuba" Message-ID: <1598618453.9132b305a6b5a5663378b361c696757bfb84d39a.marecki@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/nessus-agent-bin/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-analyzer/nessus-agent-bin/nessus-agent-bin-8.0.0-r1.ebuild net-analyzer/nessus-agent-bin/nessus-agent-bin-8.0.0.ebuild X-VCS-Directories: net-analyzer/nessus-agent-bin/ X-VCS-Committer: marecki X-VCS-Committer-Name: Marek Szuba X-VCS-Revision: 9132b305a6b5a5663378b361c696757bfb84d39a X-VCS-Branch: master Date: Fri, 28 Aug 2020 12:42:29 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c8401736-d1b4-4532-9c6b-e81369997cf7 X-Archives-Hash: d53021193684c9e96c83195e6479f9b7 commit: 9132b305a6b5a5663378b361c696757bfb84d39a Author: Marek Szuba gentoo org> AuthorDate: Fri Aug 28 12:40:53 2020 +0000 Commit: Marek Szuba gentoo org> CommitDate: Fri Aug 28 12:40:53 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9132b305 net-analyzer/nessus-agent-bin: handle version updates properly Nessus must be made aware of a new version of its core components having been installed. Do it the same way as upstream distro packages, i.e. use the undocumented nessuscli command 'install'. Signed-off-by: Marek Szuba gentoo.org> ...us-agent-bin-8.0.0.ebuild => nessus-agent-bin-8.0.0-r1.ebuild} | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/net-analyzer/nessus-agent-bin/nessus-agent-bin-8.0.0.ebuild b/net-analyzer/nessus-agent-bin/nessus-agent-bin-8.0.0-r1.ebuild similarity index 79% rename from net-analyzer/nessus-agent-bin/nessus-agent-bin-8.0.0.ebuild rename to net-analyzer/nessus-agent-bin/nessus-agent-bin-8.0.0-r1.ebuild index d53ad12d43a..bcc8308edd0 100644 --- a/net-analyzer/nessus-agent-bin/nessus-agent-bin-8.0.0.ebuild +++ b/net-analyzer/nessus-agent-bin/nessus-agent-bin-8.0.0-r1.ebuild @@ -50,6 +50,12 @@ src_install() { } pkg_postinst() { + # Actually update Nessus core components. According to upstream packages, + # harmless to invoke on fresh installations too - and it may make life easier + # for people who had restored Nessus state from backups, had it lying around + # from older installations and so on. + "${EROOT}"/opt/nessus_agent/sbin/nessuscli install "${EROOT}"/opt/nessus_agent/var/nessus/plugins-core.tar.gz + if [[ -z "${REPLACING_VERSIONS}" ]]; then elog "In order to link the agent to Tenable.io or an instance of Nessus Manager," elog "obtain an appropriate linking key and run" @@ -57,5 +63,7 @@ pkg_postinst() { elog " /opt/nessus_agent/sbin/nessuscli agent link --key= --host= --port= [optional parameters]" elog "" elog "This can be done before the agent is started." + else + elog "Please restart the nessusagent service to complete the update process" fi }