1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit rpm pax-utils systemd
8 MY_P="Nessus-${PV}-es7"
10 DESCRIPTION="A remote security scanner for Linux"
11 HOMEPAGE="https://www.tenable.com/"
12 SRC_URI="${MY_P}.x86_64.rpm"
14 LICENSE="GPL-2 Nessus-EULA"
18 RESTRICT="mirror fetch strip"
20 QA_PREBUILT="opt/nessus/bin/nasl
22 opt/nessus/bin/nessus-mkrand
23 opt/nessus/lib/nessus/libjemalloc.so.${PV}
24 opt/nessus/lib/nessus/libnessus-glibc-fix.so
25 opt/nessus/sbin/nessus-check-signature
26 opt/nessus/sbin/nessus-service
27 opt/nessus/sbin/nessuscli
28 opt/nessus/sbin/nessusd"
33 einfo "Please download ${A} from ${HOMEPAGE}/download"
34 einfo "The archive should then be placed into ${DISTDIR}."
38 # Using doins -r would strip executable bits from all binaries
39 cp -pPR "${S}"/opt "${D}"/ || die "Failed to copy files"
41 pax-mark m "${D}"/opt/nessus/sbin/nessusd
43 # Make sure these originally empty directories do not vanish,
44 # Nessus will not run properly without them
45 keepdir /opt/nessus/com/nessus/CA
46 keepdir /opt/nessus/etc/nessus
47 keepdir /opt/nessus/lib/nessus/plugins
48 keepdir /opt/nessus/var/nessus/logs
49 keepdir /opt/nessus/var/nessus/tmp
50 keepdir /opt/nessus/var/nessus/users
52 newinitd "${FILESDIR}"/nessusd-initd nessusd-bin
53 systemd_newunit usr/lib/systemd/system/nessusd.service nessusd-bin.service
57 if [[ -z "${REPLACING_VERSIONS}" ]]; then
58 elog "To get started launch the nessusd-bin service, then point your Web browser to"
59 elog " https://<yourhost>:8834/"
61 elog "You may want to restart the nessusd-bin service to use"
62 elog "the new version of Nessus."