From 9b74f050d7c210cfdce697972d77f1c9ed468359 Mon Sep 17 00:00:00 2001 From: Marek Szuba Date: Tue, 1 Nov 2022 13:22:41 +0000 Subject: net-analyzer/nessus-bin: add 10.4.0, drop 10.3.0 Signed-off-by: Marek Szuba --- net-analyzer/nessus-bin/Manifest | 2 +- net-analyzer/nessus-bin/nessus-bin-10.3.0.ebuild | 65 ---------------------- net-analyzer/nessus-bin/nessus-bin-10.4.0.ebuild | 68 ++++++++++++++++++++++++ 3 files changed, 69 insertions(+), 66 deletions(-) delete mode 100644 net-analyzer/nessus-bin/nessus-bin-10.3.0.ebuild create mode 100644 net-analyzer/nessus-bin/nessus-bin-10.4.0.ebuild diff --git a/net-analyzer/nessus-bin/Manifest b/net-analyzer/nessus-bin/Manifest index 034d886e3e03..9b1ffb085b11 100644 --- a/net-analyzer/nessus-bin/Manifest +++ b/net-analyzer/nessus-bin/Manifest @@ -1 +1 @@ -DIST Nessus-10.3.0-es8.x86_64.rpm 50755492 BLAKE2B 6b73d9a5f9d1d2c783960162df01eb82925fafad4c1e2154136f46a6acac2422fa71ae909dceee6cff5b397263d2633fac8747475031f293a88b519fa966f032 SHA512 1447736dcc68b232dbcb91eeaf23dc7efbb344ae54e56e66733238d64f7bd2b0c60520fee7ddef4f3868ed11e843432153602c03d57e3b27a2fd94062ebd8cdf +DIST Nessus-10.4.0-es8.x86_64.rpm 52986576 BLAKE2B ab722a4747b8e228511e5c12025a3e719b2b78236d42847a2558849c34c1c924e97bc4db2f5febe56f1b2df0617471b673679bd43a80c83b650958faf2663acd SHA512 74737a73d21ab274a08a24d0db589215663f08662376b7a4be09ba2bb2de2ccbf6c2110c72b97e29318153f1f5a63c2613aa25c9d0066902a5425562f0039d6c diff --git a/net-analyzer/nessus-bin/nessus-bin-10.3.0.ebuild b/net-analyzer/nessus-bin/nessus-bin-10.3.0.ebuild deleted file mode 100644 index 0692bd7052be..000000000000 --- a/net-analyzer/nessus-bin/nessus-bin-10.3.0.ebuild +++ /dev/null @@ -1,65 +0,0 @@ -# Copyright 1999-2022 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="${MY_P}.x86_64.rpm" - -LICENSE="GPL-2 Nessus-EULA" -SLOT="0" -KEYWORDS="-* ~amd64" - -RESTRICT="mirror fetch strip" - -QA_PREBUILT="opt/nessus/bin/nasl - opt/nessus/bin/ndbg - opt/nessus/bin/nessus-mkrand - opt/nessus/lib/nessus/libjemalloc.so.2 - opt/nessus/lib/nessus/libnessus-glibc-fix.so - opt/nessus/lib/nessus/iconv/*.so - opt/nessus/sbin/nessus-service - opt/nessus/sbin/nessuscli - opt/nessus/sbin/nessusd" - -S="${WORKDIR}" - -pkg_nofetch() { - einfo "Please download ${A} from ${HOMEPAGE}downloads/nessus" - einfo "The archive should then be placed into your DISTDIR directory." -} - -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.4.0.ebuild b/net-analyzer/nessus-bin/nessus-bin-10.4.0.ebuild new file mode 100644 index 000000000000..185df57e95c4 --- /dev/null +++ b/net-analyzer/nessus-bin/nessus-bin-10.4.0.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2022 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="${MY_P}.x86_64.rpm" + +LICENSE="GPL-2 Nessus-EULA" +SLOT="0" +KEYWORDS="-* ~amd64" + +RESTRICT="mirror fetch strip" + +QA_PREBUILT="opt/nessus/bin/nasl + opt/nessus/bin/ndbg + opt/nessus/bin/nessus-mkrand + opt/nessus/bin/openssl + opt/nessus/lib/nessus/fips.so + opt/nessus/lib/nessus/legacy.so + opt/nessus/lib/nessus/libjemalloc.so.2 + opt/nessus/lib/nessus/libnessus-glibc-fix.so + opt/nessus/lib/nessus/iconv/*.so + opt/nessus/sbin/nessus-service + opt/nessus/sbin/nessuscli + opt/nessus/sbin/nessusd" + +S="${WORKDIR}" + +pkg_nofetch() { + einfo "Please download ${A} from ${HOMEPAGE}downloads/nessus" + einfo "The archive should then be placed into your DISTDIR directory." +} + +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