From a7e98e55a1a72f8fa9f9cb944918572cb74552d9 Mon Sep 17 00:00:00 2001 From: Marek Szuba Date: Sun, 18 Feb 2024 10:45:38 +0000 Subject: net-analyzer/nessus-bin: add 10.7.0, drop 10.6.4 Signed-off-by: Marek Szuba --- net-analyzer/nessus-bin/Manifest | 4 +- net-analyzer/nessus-bin/nessus-bin-10.6.4.ebuild | 59 ------------------------ net-analyzer/nessus-bin/nessus-bin-10.7.0.ebuild | 59 ++++++++++++++++++++++++ 3 files changed, 61 insertions(+), 61 deletions(-) delete mode 100644 net-analyzer/nessus-bin/nessus-bin-10.6.4.ebuild create mode 100644 net-analyzer/nessus-bin/nessus-bin-10.7.0.ebuild (limited to 'net-analyzer/nessus-bin') diff --git a/net-analyzer/nessus-bin/Manifest b/net-analyzer/nessus-bin/Manifest index df90aed0c2b9..6c22c2ec54ae 100644 --- a/net-analyzer/nessus-bin/Manifest +++ b/net-analyzer/nessus-bin/Manifest @@ -1,2 +1,2 @@ -DIST Nessus-10.6.4-es8.aarch64.rpm 61929456 BLAKE2B 75d80c5391e601eea494fb18fcc14496ae13aab53301176c634f0ce34c4a6187576062d8ffe410474fefcc33551d9dcd40a90295be32f019263acb24da85fab9 SHA512 a03f2fae87ead08722e3586a79e4d825eed200f7a42a4f85fdd9c266ecf7bfd7b9df1f25fb03c81573f7eb56cbc3dfa198ddf48f284eb68a5574c6f9e6b20444 -DIST Nessus-10.6.4-es8.x86_64.rpm 63316916 BLAKE2B 8a03083620f7dce8f7441b643afbc050ea544a00116f042bc343d6d72665f43808e0106ca5f8ca7663e1fd3eaf3eaaa6febf9bcad1ef9cfa0aa15fb426910e6a SHA512 200f5f0e67aba5a337b1ff12a3c8f6d76e81e677e683963aa26be0869e188bc2d61c8ccc3afff08a83529118f558b8c659357695e4406b77d3fb1af05d94b2a7 +DIST Nessus-10.7.0-el8.aarch64.rpm 61681144 BLAKE2B 90c4961640f61abc7e185be6cca62f22f1a207005e32eff0300b79556c30b274a59cf80a6515f4d9386851f9fbfd193b2f8150121fd7e1b17f23f9cef5f9f43a SHA512 b44e0fbfc69b9e883ce245a411822701ecab8077d694522583d8927879afc45101d4958bd68795163b64c356b6cad46a96b1bb6897c806148c8a8f5d6aed46bf +DIST Nessus-10.7.0-el8.x86_64.rpm 63122308 BLAKE2B 1555853b241b5a4bd5d8d4ab17b230087a9d3e92715373d9d5e11055800c00841e400650b40b477bfb185c4371bb2e541690d7a298440f34f464bec111f6e5d7 SHA512 81e11c3989e231256400eb21b3a36c6c36f13af199fb87f614df92da7eb156668d6d3942e30f9e6658672184605170855bc2aadcb96056f9104f106f49b436ac diff --git a/net-analyzer/nessus-bin/nessus-bin-10.6.4.ebuild b/net-analyzer/nessus-bin/nessus-bin-10.6.4.ebuild deleted file mode 100644 index a977f8ba6efb..000000000000 --- a/net-analyzer/nessus-bin/nessus-bin-10.6.4.ebuild +++ /dev/null @@ -1,59 +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="Nessus-${PV}-es8" - -DESCRIPTION="A remote security scanner for Linux" -HOMEPAGE="https://www.tenable.com/" -SRC_URI=" - amd64? ( https://www.tenable.com/downloads/api/v2/pages/${PN%-bin}/files/${MY_P}.x86_64.rpm ) - arm64? ( https://www.tenable.com/downloads/api/v2/pages/${PN%-bin}/files/${MY_P}.aarch64.rpm ) -" - -LICENSE="GPL-2 Tenable-Master-Agreement" -SLOT="0" -KEYWORDS="-* ~amd64 ~arm64" - -RESTRICT="mirror strip" - -QA_PREBUILT="opt/nessus/bin/* - opt/nessus/lib/nessus/*.so - opt/nessus/lib/nessus/iconv/*.so - opt/nessus/lib/nessus/libjemalloc.so.* - opt/nessus/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/com/nessus/CA - keepdir /opt/nessus/etc/nessus - keepdir /opt/nessus/var/nessus/logs - keepdir /opt/nessus/var/nessus/tmp - - newinitd "${FILESDIR}"/nessusd-initd nessusd-bin - systemd_newunit usr/lib/systemd/system/nessusd.service nessusd-bin.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/sbin/nessuscli install "${EROOT}"/opt/nessus/var/nessus/plugins-core.tar.gz - - if [[ -z "${REPLACING_VERSIONS}" ]]; then - elog "To get started launch the nessusd-bin service, then point your Web browser to" - elog " https://:8834/" - else - elog "Please restart the nessusd-bin service to use the new version of Nessus" - fi -} diff --git a/net-analyzer/nessus-bin/nessus-bin-10.7.0.ebuild b/net-analyzer/nessus-bin/nessus-bin-10.7.0.ebuild new file mode 100644 index 000000000000..3fe24e9b4ae0 --- /dev/null +++ b/net-analyzer/nessus-bin/nessus-bin-10.7.0.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit rpm systemd + +MY_P="Nessus-${PV}-el8" + +DESCRIPTION="A remote security scanner for Linux" +HOMEPAGE="https://www.tenable.com/" +SRC_URI=" + amd64? ( https://www.tenable.com/downloads/api/v2/pages/${PN%-bin}/files/${MY_P}.x86_64.rpm ) + arm64? ( https://www.tenable.com/downloads/api/v2/pages/${PN%-bin}/files/${MY_P}.aarch64.rpm ) +" + +LICENSE="GPL-2 Tenable-Master-Agreement" +SLOT="0" +KEYWORDS="-* ~amd64 ~arm64" + +RESTRICT="mirror strip" + +QA_PREBUILT="opt/nessus/bin/* + opt/nessus/lib/nessus/*.so + opt/nessus/lib/nessus/iconv/*.so + opt/nessus/lib/nessus/libjemalloc.so.* + opt/nessus/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/com/nessus/CA + keepdir /opt/nessus/etc/nessus + keepdir /opt/nessus/var/nessus/logs + keepdir /opt/nessus/var/nessus/tmp + + newinitd "${FILESDIR}"/nessusd-initd nessusd-bin + systemd_newunit usr/lib/systemd/system/nessusd.service nessusd-bin.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/sbin/nessuscli install "${EROOT}"/opt/nessus/var/nessus/plugins-core.tar.gz + + if [[ -z "${REPLACING_VERSIONS}" ]]; then + elog "To get started launch the nessusd-bin service, then point your Web browser to" + elog " https://:8834/" + else + elog "Please restart the nessusd-bin service to use the new version of Nessus" + fi +} -- cgit v1.2.3-65-gdbad