From 481b0211241c634210cd864ae56f8ccab21cca2c Mon Sep 17 00:00:00 2001 From: Marek Szuba Date: Tue, 21 Jul 2020 21:07:00 +0200 Subject: net-analyzer/nessus-agent-bin: switch to ES8 binaries For consistency with net-analyzer/nessus-bin. Signed-off-by: Marek Szuba --- net-analyzer/nessus-agent-bin/Manifest | 2 +- .../nessus-agent-bin-7.7.0-r1.ebuild | 61 +++++++++++++++++++++ .../nessus-agent-bin/nessus-agent-bin-7.7.0.ebuild | 64 ---------------------- 3 files changed, 62 insertions(+), 65 deletions(-) create mode 100644 net-analyzer/nessus-agent-bin/nessus-agent-bin-7.7.0-r1.ebuild delete mode 100644 net-analyzer/nessus-agent-bin/nessus-agent-bin-7.7.0.ebuild (limited to 'net-analyzer') diff --git a/net-analyzer/nessus-agent-bin/Manifest b/net-analyzer/nessus-agent-bin/Manifest index 984f2c480411..bb0e6ae61e54 100644 --- a/net-analyzer/nessus-agent-bin/Manifest +++ b/net-analyzer/nessus-agent-bin/Manifest @@ -1 +1 @@ -DIST NessusAgent-7.7.0-es7.x86_64.rpm 17139840 BLAKE2B 7bd7baddbbb7c3b25b631e0de84fa89a514b373fd5242d3806d9bca3420d071dab5bc82446c0aafd36c18fb665d5acb480409c061663d764754dfc32d9c4cc82 SHA512 66a0ae15d4c96a600713b871a808aae365ebd698c1b1b275a3ed5ad0744c45da94335068f0964e549b374ddc4f4545bf25b51dcdf665a3c37397740a948fc588 +DIST NessusAgent-7.7.0-es8.x86_64.rpm 15390988 BLAKE2B 4e3477ed881098103d7bb98b61f6c0c54e612e1aa3339ceb4d8cc183859ecf33cb0bc7481a13756d68e5439da250844251f2afae03cd7d25ecc0a86f211214b3 SHA512 3ea4f963944799394be2c714c6849812a758a28eb0dcb537223e18ee1fd1ccff8158839ba2e0bfb338d6ea6fe94c51b6bd433318f9c5c11ea04091c0b244e3e8 diff --git a/net-analyzer/nessus-agent-bin/nessus-agent-bin-7.7.0-r1.ebuild b/net-analyzer/nessus-agent-bin/nessus-agent-bin-7.7.0-r1.ebuild new file mode 100644 index 000000000000..d53ad12d43a1 --- /dev/null +++ b/net-analyzer/nessus-agent-bin/nessus-agent-bin-7.7.0-r1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit rpm systemd + +MY_P="NessusAgent-${PV}-es8" + +DESCRIPTION="A remote security scanner for Linux - agent component" +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_agent/bin/nasl + opt/nessus_agent/bin/nessus-mkrand + opt/nessus_agent/lib/nessus/libjemalloc.so.${PV} + opt/nessus_agent/lib/nessus/libnessus-glibc-fix.so + opt/nessus_agent/sbin/nessus-check-signature + opt/nessus_agent/sbin/nessus-service + opt/nessus_agent/sbin/nessuscli + opt/nessus_agent/sbin/nessusd" + +S="${WORKDIR}" + +pkg_nofetch() { + einfo "Please download ${A} from ${HOMEPAGE}downloads/nessus-agents" + 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_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() { + 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." + fi +} diff --git a/net-analyzer/nessus-agent-bin/nessus-agent-bin-7.7.0.ebuild b/net-analyzer/nessus-agent-bin/nessus-agent-bin-7.7.0.ebuild deleted file mode 100644 index 893d4776496a..000000000000 --- a/net-analyzer/nessus-agent-bin/nessus-agent-bin-7.7.0.ebuild +++ /dev/null @@ -1,64 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit rpm pax-utils systemd - -MY_P="NessusAgent-${PV}-es7" - -DESCRIPTION="A remote security scanner for Linux - agent component" -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_agent/bin/nasl - opt/nessus_agent/bin/nessus-mkrand - opt/nessus_agent/lib/nessus/libjemalloc.so.${PV} - opt/nessus_agent/lib/nessus/libnessus-glibc-fix.so - opt/nessus_agent/lib/nessus/plugins/ovaldi64-rhel7.inc - opt/nessus_agent/sbin/nessus-check-signature - opt/nessus_agent/sbin/nessus-service - opt/nessus_agent/sbin/nessuscli - opt/nessus_agent/sbin/nessusd" - -S="${WORKDIR}" - -pkg_nofetch() { - einfo "Please download ${A} from ${HOMEPAGE}downloads/nessus-agents" - 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" - - pax-mark m "${D}"/opt/nessus_agent/sbin/nessusd - - # 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() { - 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." - fi -} -- cgit v1.2.3-65-gdbad