From d2eb4ab229a02f95cbadf6c7d9ed3d8b00f6eeac Mon Sep 17 00:00:00 2001 From: Marek Szuba Date: Wed, 23 Mar 2022 22:58:22 +0000 Subject: net-analyzer/nessus-bin: add 10.1.1, drop 10.1.0 Signed-off-by: Marek Szuba --- net-analyzer/nessus-bin/Manifest | 2 +- net-analyzer/nessus-bin/nessus-bin-10.1.0.ebuild | 65 ------------------------ net-analyzer/nessus-bin/nessus-bin-10.1.1.ebuild | 65 ++++++++++++++++++++++++ 3 files changed, 66 insertions(+), 66 deletions(-) delete mode 100644 net-analyzer/nessus-bin/nessus-bin-10.1.0.ebuild create mode 100644 net-analyzer/nessus-bin/nessus-bin-10.1.1.ebuild (limited to 'net-analyzer') diff --git a/net-analyzer/nessus-bin/Manifest b/net-analyzer/nessus-bin/Manifest index b60733c4226f..db2342514807 100644 --- a/net-analyzer/nessus-bin/Manifest +++ b/net-analyzer/nessus-bin/Manifest @@ -1 +1 @@ -DIST Nessus-10.1.0-es8.x86_64.rpm 47963604 BLAKE2B 880385787297f0d7ec5a9ba72bcdf62d8f4a9668d8c091973e41a95933d16d18a68a222d1a8f142addd2ecdd47f4dca0a2be34dec4a87a38af73580ce04fa8dd SHA512 4298ec394a59c048ee0f79566be885d39ed6ad8fc4494ae4c54ecfec71dd2eae19ff20785d06f87392b563290bff595ee835f056e984b1de9963a711b524dd4c +DIST Nessus-10.1.1-es8.x86_64.rpm 48117260 BLAKE2B 3d170a8c2ba15389590d1e9d5b7d02469fd09683643e7078d7923ff3ec7aabe91a9cda1303c4a5586bbb5412f49175e221f2c9224c25c52dc3e6556b35c57e75 SHA512 930ffbddd8db212cd8d900ecfe2533175569ed077dd0731437a077df36454b632e8d8d63422c217bcac713eb7f07a35a5de685d99137e031b93e5a584f1e2552 diff --git a/net-analyzer/nessus-bin/nessus-bin-10.1.0.ebuild b/net-analyzer/nessus-bin/nessus-bin-10.1.0.ebuild deleted file mode 100644 index 0692bd7052be..000000000000 --- a/net-analyzer/nessus-bin/nessus-bin-10.1.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.1.1.ebuild b/net-analyzer/nessus-bin/nessus-bin-10.1.1.ebuild new file mode 100644 index 000000000000..0692bd7052be --- /dev/null +++ b/net-analyzer/nessus-bin/nessus-bin-10.1.1.ebuild @@ -0,0 +1,65 @@ +# 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 +} -- cgit v1.2.3-65-gdbad