net-analyzer/nessus-bin: bump to 8.4.0
authorMarek Szuba <marecki@gentoo.org>
Tue, 11 Jun 2019 14:52:39 +0000 (15:52 +0100)
committerMarek Szuba <marecki@gentoo.org>
Tue, 11 Jun 2019 14:57:46 +0000 (15:57 +0100)
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Package-Manager: Portage-2.3.66, Repoman-2.3.11

net-analyzer/nessus-bin/Manifest
net-analyzer/nessus-bin/nessus-bin-8.4.0.ebuild [new file with mode: 0644]

index 103f4a21c10c072a975b1d1535e4c56b2fa1b452..30bb7d310c33af04d035d529e9f1de2db5c581e9 100644 (file)
@@ -1,2 +1,3 @@
 DIST Nessus-6.10.5-es7.x86_64.rpm 41596796 BLAKE2B 2d9078eb3a53bc9fe63a649f6829ac757424bdecd007bdcaefcda661951a18918ce4f2823fe3ae88ded68453e82a06ccd2d225db26713c5b72bdd09f9e665b1d SHA512 a407aa010d3d59d5c4d717159851a6b81ef9e1f1b4327c8382abe1b866c4969cf6e32251077270eae719b66af9ce29641c40ca6093df30f88ce9be81ba168f75
 DIST Nessus-8.3.2-es7.x86_64.rpm 68708928 BLAKE2B 7a5bea2de3ca5ad9f18ffa61857e611e137c4f78decb7b4c855e6e55d01c11e2b5d26960070d2d06a383018692ff6b7844c7872903e505422f73b3d5001d95b9 SHA512 6e84a1f85ae98bd352d0ed77dfc3bbb7117e6cdf64b8fc0718f9f2200a95c53828e7e5ecce586d1b9abe55b3318c63ef03f28ada7365c7a9f0046e65fb59e615
+DIST Nessus-8.4.0-es7.x86_64.rpm 69321556 BLAKE2B 678a93b51a57688c45512e91f940fa372070484b67b5d716faada48b1d6a1d95126dc1a482c6e43b8ff37b9c1e99fa538c0cf01dfca05e22edb83d1156c4fd4d SHA512 cdbd1e94c283104c47ea29950339962b4aa541c783f849cd92b6ce83f04632d9ed7eb88a3791d1054a98b256ef787d84c70bb3b56af3fb1801e16d8412d4b763
diff --git a/net-analyzer/nessus-bin/nessus-bin-8.4.0.ebuild b/net-analyzer/nessus-bin/nessus-bin-8.4.0.ebuild
new file mode 100644 (file)
index 0000000..45aa75d
--- /dev/null
@@ -0,0 +1,61 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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.2
+       opt/nessus/lib/nessus/libnessus-glibc-fix.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"
+
+       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/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() {
+       if [[ -z "${REPLACING_VERSIONS}" ]]; then
+               elog "To get started launch the nessusd-bin service, then point your Web browser to"
+               elog "  https://<yourhost>:8834/"
+       else
+               elog "You may want to restart the nessusd-bin service to use"
+               elog "the new version of Nessus."
+       fi
+}