From 002272258878cc3f29c486b89c580425088a2df4 Mon Sep 17 00:00:00 2001 From: Marek Szuba Date: Mon, 6 Mar 2017 10:42:37 +0100 Subject: [PATCH] net-analyzer/nessus-bin: version bump to 6.10.5 Gentoo-Bug: 488948 Package-Manager: Portage-2.3.3, Repoman-2.3.1 --- net-analyzer/nessus-bin/Manifest | 1 + .../nessus-bin/nessus-bin-6.10.5.ebuild | 64 +++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 net-analyzer/nessus-bin/nessus-bin-6.10.5.ebuild diff --git a/net-analyzer/nessus-bin/Manifest b/net-analyzer/nessus-bin/Manifest index 72812ec3a038f..f3c145cf0626a 100644 --- a/net-analyzer/nessus-bin/Manifest +++ b/net-analyzer/nessus-bin/Manifest @@ -2,3 +2,4 @@ DIST Nessus-4.4.1-es6.i686.rpm 11222888 SHA256 91420688688da3347c0f2ad2be38b4495 DIST Nessus-4.4.1-es6.x86_64.rpm 12516672 SHA256 b06585509ac4bcda874a333a22eaffef78aa9642c79350ef9b5a5a8c169be58a SHA512 5c788663bfb72978976dcbeb7cf586b74a1ebcb4cb856e595954343647e2ad5309c81661c47ebc6e7b31f993957bd26e73c2db69328735a90a87ff8799422e40 WHIRLPOOL d5d74bffadec10fd4c31d403bf4a24338d5cf517a455cce4dd478c92a1cd9d3f188f85a50b24816490e57f4e0df5342b52b289af4b4b1bdc0aef6462d25a7a96 DIST Nessus-5.0.1-es6.i686.rpm 20401680 SHA256 540ca445d5eb886335f38b5e7b69f2c1c512eda9f633199cf31e29abc519432e SHA512 5d86549903ee71250a120d5c413e502041f3d36ff4712ff1e567c77750b723ab36b1da55b5035ce3b5e74adc2fb30f42153c2d0bd7bf1ff410daf2ab64a86eab WHIRLPOOL f2f5ec35b7d84ee61ed9a65f97bf7ffcd51e87a8b565fbc4d6836288f0ceb3093a007a9f8d6217f3931c6d21e7a2dd950aa3cd2e5bf43d3591437a4e917e5066 DIST Nessus-5.0.1-es6.x86_64.rpm 22784992 SHA256 dc5c1af6dfc80b20e6019c86ee5b21178347817b50edd2f8c287f03cec8a1837 SHA512 180066cefabf56f1be416ff97e50171d9c75d19d03980e84696a8c34aba7628bdf12c0189e1c589eb1bba32ca38602023563f6d9e5c30cc3ec3a875fa08cc3a1 WHIRLPOOL 1f574f7984710ed594a67f5050a9672a0a87b34319a5f1c478d9bdd308b6503dd92ac2d4031ee468e62c8eb937ae0f2268ffe78e4c380090cdd44f22f9faa473 +DIST Nessus-6.10.5-es7.x86_64.rpm 41596796 SHA256 b658a80098177bb5dfc01774df755707fa1ce322c2f1a974f3e1d3acd52c04d1 SHA512 a407aa010d3d59d5c4d717159851a6b81ef9e1f1b4327c8382abe1b866c4969cf6e32251077270eae719b66af9ce29641c40ca6093df30f88ce9be81ba168f75 WHIRLPOOL 9ee3abf7bee6214ce0d8de2c3c519f768a5390634e6cf80eeeec8e4f1b6a6b26dc83e1614bf6ead0006c0094d9cda038f86cb37ba69f1c935d622c1dabbfa129 diff --git a/net-analyzer/nessus-bin/nessus-bin-6.10.5.ebuild b/net-analyzer/nessus-bin/nessus-bin-6.10.5.ebuild new file mode 100644 index 0000000000000..bcc0cf88ff1a8 --- /dev/null +++ b/net-analyzer/nessus-bin/nessus-bin-6.10.5.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit rpm pax-utils systemd + +MY_P="Nessus-${PV}-es7" + +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.${PV} + opt/nessus/lib/nessus/libnessus-glibc-fix.so + opt/nessus/sbin/nessus-check-signature + opt/nessus/sbin/nessus-service + opt/nessus/sbin/nessuscli + opt/nessus/sbin/nessusd" + +S="${WORKDIR}" + +pkg_nofetch() { + einfo "Please download ${A} from ${HOMEPAGE}/download" + einfo "The archive should then be placed into ${DISTDIR}." +} + +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/sbin/nessusd + + # 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/lib/nessus/plugins + keepdir /opt/nessus/var/nessus/logs + keepdir /opt/nessus/var/nessus/tmp + keepdir /opt/nessus/var/nessus/users + + newinitd "${FILESDIR}"/nessusd-initd nessusd-bin + systemd_newunit usr/lib/systemd/system/nessusd.service nessusd-bin.service +} + +pkg_postinst() { + 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 "You may want to restart the nessusd-bin service to use" + elog "the new version of Nessus." + fi +}