From 07fc8897e427906e69f39d010dfe21cd8db72f0f Mon Sep 17 00:00:00 2001 From: Marek Szuba Date: Sun, 2 Apr 2023 23:15:17 +0100 Subject: net-analyzer/nessus-bin: add 10.5.1, drop 10.5.0 Signed-off-by: Marek Szuba --- net-analyzer/nessus-bin/Manifest | 4 +- net-analyzer/nessus-bin/nessus-bin-10.5.0.ebuild | 59 ------------------------ net-analyzer/nessus-bin/nessus-bin-10.5.1.ebuild | 59 ++++++++++++++++++++++++ 3 files changed, 61 insertions(+), 61 deletions(-) delete mode 100644 net-analyzer/nessus-bin/nessus-bin-10.5.0.ebuild create mode 100644 net-analyzer/nessus-bin/nessus-bin-10.5.1.ebuild (limited to 'net-analyzer/nessus-bin') diff --git a/net-analyzer/nessus-bin/Manifest b/net-analyzer/nessus-bin/Manifest index 8ec329cf35bf..0d6534a1f21c 100644 --- a/net-analyzer/nessus-bin/Manifest +++ b/net-analyzer/nessus-bin/Manifest @@ -1,2 +1,2 @@ -DIST Nessus-10.5.0-es8.aarch64.rpm 55558460 BLAKE2B 3840a23c109b8edfaf12ac18b1d0eec889d41fb03acd46a7bb801923c85699a4d0b050727a5665cd70357cbb439e610f0243e00e8b8fffc04318b761f1aa58ca SHA512 399e15e1cae61292350ae6aa9e79bbcb806cf39b432da651ee16c00bbc164b87e4ac1156cfa42889819dbeaa0bd2d2227aba3b885e4c32f04b69331c89c330e5 -DIST Nessus-10.5.0-es8.x86_64.rpm 56926472 BLAKE2B 5434a89ca806749aebd535b905f473dd43a7a892a5da81ccec69f6f362cbab6115c5a8001bdfdba050dff3a1b60b5e131f6aa6ff04080226565d92131977c952 SHA512 329675aa7cb727a8b7e281067489c343c22beea5ebde619208533df89dd89caaf721047fcddf2f193ce18c2748ec9cd4199e44196712427f805ba95728ee92ac +DIST Nessus-10.5.1-es8.aarch64.rpm 58158604 BLAKE2B 955c11338b038d5698be40de099d1c14ff39941f64058717ab1903a40b7b641cc769536d7897dc4cc17a471f495ef1a2ee0113ab06184500b7902c92efe8e81d SHA512 bbb01f93aa0656c143fa67175cea7b76af79cb27e204806ddf69f614e49a79d8ab455f29a228f47b8370b12effb5d2f2d258e3ee961c7072bc9aa2b8aa0fc216 +DIST Nessus-10.5.1-es8.x86_64.rpm 59526592 BLAKE2B 22d6ac787a9666de75236b8c9454a2e56aa4e589750414387248ab9c13b79cd8b3efc0dd8fd9b89b9ba542e4f05b3c763d235e3303301480726788c711e933a3 SHA512 9106161bc4f1cdf493d35e936f7f01d80be6776231646dec3803fee8ea5b5431e64dc0cba1c5d1439a37a95be6863748cb5901d01cb3553ababecb28bb1073d4 diff --git a/net-analyzer/nessus-bin/nessus-bin-10.5.0.ebuild b/net-analyzer/nessus-bin/nessus-bin-10.5.0.ebuild deleted file mode 100644 index c9c3613d91d4..000000000000 --- a/net-analyzer/nessus-bin/nessus-bin-10.5.0.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" - -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.5.1.ebuild b/net-analyzer/nessus-bin/nessus-bin-10.5.1.ebuild new file mode 100644 index 000000000000..c9c3613d91d4 --- /dev/null +++ b/net-analyzer/nessus-bin/nessus-bin-10.5.1.ebuild @@ -0,0 +1,59 @@ +# 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" + +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