From fd1445fb0af4d0afa49d5fa9b24499f9f89772e0 Mon Sep 17 00:00:00 2001 From: Marek Szuba Date: Tue, 21 Nov 2023 09:26:37 +0000 Subject: net-analyzer/nessus-agent-bin: add 10.4.4, drop 10.4.2 Signed-off-by: Marek Szuba --- net-analyzer/nessus-agent-bin/Manifest | 4 +- .../nessus-agent-bin-10.4.2.ebuild | 64 ---------------------- .../nessus-agent-bin-10.4.4.ebuild | 64 ++++++++++++++++++++++ 3 files changed, 66 insertions(+), 66 deletions(-) delete mode 100644 net-analyzer/nessus-agent-bin/nessus-agent-bin-10.4.2.ebuild create mode 100644 net-analyzer/nessus-agent-bin/nessus-agent-bin-10.4.4.ebuild (limited to 'net-analyzer') diff --git a/net-analyzer/nessus-agent-bin/Manifest b/net-analyzer/nessus-agent-bin/Manifest index a3838c0fa58d..bd8aad195666 100644 --- a/net-analyzer/nessus-agent-bin/Manifest +++ b/net-analyzer/nessus-agent-bin/Manifest @@ -1,2 +1,2 @@ -DIST NessusAgent-10.4.2-es8.aarch64.rpm 18302916 BLAKE2B fd2090fc5a01d439c84269f0ad38a2bf0677bf33c055a08c8132af1226ec8b8a59b7f89c795336b6a8de2f1fe90a587159879a8e76fc0c915448e6b086e12818 SHA512 c330ae33f15255102df55ae86c968105f2977babfe72b13729efc26ffa32d0d18f6f909776af403b7ea12b34c9e9ca3fbe73e086336d92a62362f265d5cc0aaa -DIST NessusAgent-10.4.2-es8.x86_64.rpm 19701516 BLAKE2B f7901ab0dd9a257746e2ced4b1db2dc0cb4ad9321bcd2b3cad367db53e4a31303b10f66bdf7552c72d59fd6d955670a4cf267a4e9fb9ed33783a25b75dae1220 SHA512 12d9d7e01cea688eb5d44c8f32881421104b262cf942a6bb420e35a5550468aab60327128218e71007dbdb1668c715a62e459c5e75d6b939c57cfc05a58ff3bc +DIST NessusAgent-10.4.4-es8.aarch64.rpm 18308232 BLAKE2B 872d29cd5de479e0ad2d20da7cb0fb8400937b61e23cda9a0aecd0382a06b0e9a1810dc1742d90b5d0ec1767b29fcb93479007492c6475670d7397127fe6e573 SHA512 6b58231473745b081e0368a46406992edf57c355b9849b9b1513308dbc1cca1272ec1a49a23a74f2a3415351ebf9ebec2eab8fd02a564b1a073645dac7f846c6 +DIST NessusAgent-10.4.4-es8.x86_64.rpm 19706276 BLAKE2B 1cd2b6409373dbc0d844beb3068143f7a25a6125340a973ceb76c4caae91864537492063874c7dc3a73f8a2a8b70d6b661513eff92f8c710a7bfacd2f6091b19 SHA512 b4d6bf0eaa95b38158b120f1d3281ce3dc335c9b21bfa932ba5c3febebb925826c5c8a7cc587e47a7ce16d56a5f1c66a6c9b702adf4b8db3ce31992e259dcef2 diff --git a/net-analyzer/nessus-agent-bin/nessus-agent-bin-10.4.2.ebuild b/net-analyzer/nessus-agent-bin/nessus-agent-bin-10.4.2.ebuild deleted file mode 100644 index 0ed091eca8d1..000000000000 --- a/net-analyzer/nessus-agent-bin/nessus-agent-bin-10.4.2.ebuild +++ /dev/null @@ -1,64 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit rpm systemd - -MY_P="NessusAgent-${PV}-es8" - -DESCRIPTION="A remote security scanner for Linux - agent component" -HOMEPAGE="https://www.tenable.com/" -SRC_URI=" - amd64? ( https://www.tenable.com/downloads/api/v2/pages/${PN/-bin/s}/files/${MY_P}.x86_64.rpm ) - arm64? ( https://www.tenable.com/downloads/api/v2/pages/${PN/-bin/s}/files/${MY_P}.aarch64.rpm ) -" - -LICENSE="GPL-2 Tenable-Master-Agreement" -SLOT="0" -KEYWORDS="-* ~amd64 ~arm64" - -RESTRICT="mirror strip" - -QA_PREBUILT="opt/nessus_agent/bin/* - opt/nessus_agent/lib/nessus/*.so - opt/nessus_agent/lib/nessus/iconv/*.so - opt/nessus_agent/lib/nessus/libjemalloc.so.* - opt/nessus_agent/sbin/*" - -S="${WORKDIR}" - -src_install() { - # Using doins -r would strip executable bits from all binaries - cp -pPR "${S}"/opt "${D}"/ || die "Failed to copy files" - - # Make sure these originally empty directories do not vanish, - # Nessus will not run properly without them - keepdir /opt/nessus_agent/com/nessus/CA - keepdir /opt/nessus_agent/etc/nessus - keepdir /opt/nessus_agent/var/nessus/logs - keepdir /opt/nessus_agent/var/nessus/tmp - keepdir /opt/nessus_agent/var/nessus/users - - newinitd "${FILESDIR}"/nessusagent.initd nessusagent - systemd_dounit usr/lib/systemd/system/nessusagent.service -} - -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" - elog "" - 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 -} diff --git a/net-analyzer/nessus-agent-bin/nessus-agent-bin-10.4.4.ebuild b/net-analyzer/nessus-agent-bin/nessus-agent-bin-10.4.4.ebuild new file mode 100644 index 000000000000..0ed091eca8d1 --- /dev/null +++ b/net-analyzer/nessus-agent-bin/nessus-agent-bin-10.4.4.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit rpm systemd + +MY_P="NessusAgent-${PV}-es8" + +DESCRIPTION="A remote security scanner for Linux - agent component" +HOMEPAGE="https://www.tenable.com/" +SRC_URI=" + amd64? ( https://www.tenable.com/downloads/api/v2/pages/${PN/-bin/s}/files/${MY_P}.x86_64.rpm ) + arm64? ( https://www.tenable.com/downloads/api/v2/pages/${PN/-bin/s}/files/${MY_P}.aarch64.rpm ) +" + +LICENSE="GPL-2 Tenable-Master-Agreement" +SLOT="0" +KEYWORDS="-* ~amd64 ~arm64" + +RESTRICT="mirror strip" + +QA_PREBUILT="opt/nessus_agent/bin/* + opt/nessus_agent/lib/nessus/*.so + opt/nessus_agent/lib/nessus/iconv/*.so + opt/nessus_agent/lib/nessus/libjemalloc.so.* + opt/nessus_agent/sbin/*" + +S="${WORKDIR}" + +src_install() { + # Using doins -r would strip executable bits from all binaries + cp -pPR "${S}"/opt "${D}"/ || die "Failed to copy files" + + # Make sure these originally empty directories do not vanish, + # Nessus will not run properly without them + keepdir /opt/nessus_agent/com/nessus/CA + keepdir /opt/nessus_agent/etc/nessus + keepdir /opt/nessus_agent/var/nessus/logs + keepdir /opt/nessus_agent/var/nessus/tmp + keepdir /opt/nessus_agent/var/nessus/users + + newinitd "${FILESDIR}"/nessusagent.initd nessusagent + systemd_dounit usr/lib/systemd/system/nessusagent.service +} + +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" + elog "" + 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 +} -- cgit v1.2.3-65-gdbad