Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/nessus-bin/
Date: Thu, 22 Nov 2018 10:25:32
Message-Id: 1542882184.740faf22dd238fa89bcdfbb8978a12bd9f25b859.marecki@gentoo
1 commit: 740faf22dd238fa89bcdfbb8978a12bd9f25b859
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 22 10:13:28 2018 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 22 10:23:04 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=740faf22
7
8 net-analyzer/nessus-bin: bump to 8.0.1 and EAPI 7
9
10 Also, confirmed this version automatically creates the directory for its
11 user data so it is possible to trivially avoid Bug #645740.
12
13 Closes: https://bugs.gentoo.org/635476
14 Closes: https://bugs.gentoo.org/645740
15
16 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
17 Package-Manager: Portage-2.3.51, Repoman-2.3.11
18
19 net-analyzer/nessus-bin/Manifest | 1 +
20 net-analyzer/nessus-bin/nessus-bin-8.0.1.ebuild | 61 +++++++++++++++++++++++++
21 2 files changed, 62 insertions(+)
22
23 diff --git a/net-analyzer/nessus-bin/Manifest b/net-analyzer/nessus-bin/Manifest
24 index 3bc6b2214d1..011ab7c4dac 100644
25 --- a/net-analyzer/nessus-bin/Manifest
26 +++ b/net-analyzer/nessus-bin/Manifest
27 @@ -1 +1,2 @@
28 DIST Nessus-6.10.5-es7.x86_64.rpm 41596796 BLAKE2B 2d9078eb3a53bc9fe63a649f6829ac757424bdecd007bdcaefcda661951a18918ce4f2823fe3ae88ded68453e82a06ccd2d225db26713c5b72bdd09f9e665b1d SHA512 a407aa010d3d59d5c4d717159851a6b81ef9e1f1b4327c8382abe1b866c4969cf6e32251077270eae719b66af9ce29641c40ca6093df30f88ce9be81ba168f75
29 +DIST Nessus-8.0.1-es7.x86_64.rpm 62028348 BLAKE2B 07e174d8d3c68773e55cacf57ca836163288db0c4458a8e987279ef9099a82c662aaf00699e5938afe51d549a1114144a0fef246151d4b2c088367bc900236aa SHA512 4351c40e0133f1ca56d0366814b9daba1ee4e12aa496fcc23971f26e9313fdab9c195b43c0848488acdea178a95d383bdf46ecf0355a2214713ce23458156ab9
30
31 diff --git a/net-analyzer/nessus-bin/nessus-bin-8.0.1.ebuild b/net-analyzer/nessus-bin/nessus-bin-8.0.1.ebuild
32 new file mode 100644
33 index 00000000000..ed738ccba2e
34 --- /dev/null
35 +++ b/net-analyzer/nessus-bin/nessus-bin-8.0.1.ebuild
36 @@ -0,0 +1,61 @@
37 +# Copyright 1999-2018 Gentoo Authors
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI=7
41 +
42 +inherit rpm pax-utils systemd
43 +
44 +MY_P="Nessus-${PV}-es7"
45 +
46 +DESCRIPTION="A remote security scanner for Linux"
47 +HOMEPAGE="https://www.tenable.com/"
48 +SRC_URI="${MY_P}.x86_64.rpm"
49 +
50 +LICENSE="GPL-2 Nessus-EULA"
51 +SLOT="0"
52 +KEYWORDS="~amd64"
53 +
54 +RESTRICT="mirror fetch strip"
55 +
56 +QA_PREBUILT="opt/nessus/bin/nasl
57 + opt/nessus/bin/ndbg
58 + opt/nessus/bin/nessus-mkrand
59 + opt/nessus/lib/nessus/libjemalloc.so.${PV}
60 + opt/nessus/lib/nessus/libnessus-glibc-fix.so
61 + opt/nessus/sbin/nessus-service
62 + opt/nessus/sbin/nessuscli
63 + opt/nessus/sbin/nessusd"
64 +
65 +S="${WORKDIR}"
66 +
67 +pkg_nofetch() {
68 + einfo "Please download ${A} from ${HOMEPAGE}/downloads/nessus"
69 + einfo "The archive should then be placed into ${DISTDIR}."
70 +}
71 +
72 +src_install() {
73 + # Using doins -r would strip executable bits from all binaries
74 + cp -pPR "${S}"/opt "${D}"/ || die "Failed to copy files"
75 +
76 + pax-mark m "${D}"/opt/nessus/sbin/nessusd
77 +
78 + # Make sure these originally empty directories do not vanish,
79 + # Nessus will not run properly without them
80 + keepdir /opt/nessus/com/nessus/CA
81 + keepdir /opt/nessus/etc/nessus
82 + keepdir /opt/nessus/var/nessus/logs
83 + keepdir /opt/nessus/var/nessus/tmp
84 +
85 + newinitd "${FILESDIR}"/nessusd-initd nessusd-bin
86 + systemd_newunit usr/lib/systemd/system/nessusd.service nessusd-bin.service
87 +}
88 +
89 +pkg_postinst() {
90 + if [[ -z "${REPLACING_VERSIONS}" ]]; then
91 + elog "To get started launch the nessusd-bin service, then point your Web browser to"
92 + elog " https://<yourhost>:8834/"
93 + else
94 + elog "You may want to restart the nessusd-bin service to use"
95 + elog "the new version of Nessus."
96 + fi
97 +}