mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-09 04:51:27 +02:00
nessus-bin: 8.8.0 bump
This commit is contained in:
parent
d233fe5a04
commit
4242854966
3 changed files with 89 additions and 0 deletions
3
net-analyzer/nessus-bin/Manifest
Normal file
3
net-analyzer/nessus-bin/Manifest
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
AUX nessusd-initd 582 BLAKE2B 67c5e73262512c590b5b4fc0668297a504677aa3d771fdeee2809c921d988faef19cbf10a7fb26d52114e1a67d33ef197e32c561cd5b2003c8abbde2dfe5cb4f SHA512 f825fad89564303aeff423f3c32a1544ee4b063ef57702cd54220aebed8e01e7b178ff5bd10b48b654ebdee78657a9bc41caf779a23968d008916fd51e88b2f4
|
||||
DIST Nessus-8.8.0-es7.x86_64.rpm 77275432 BLAKE2B 437d4f958d0f45924cb0c994710d908b6a0a48bbee9ffa184391e7a31484d9c933a210c7d4c6d68fa918a873e09874a58ed40ca81203aaef5c44541037777dbd SHA512 d779703db9c114a51e282dde35257121278fa4ec6035c0c861ebc9f04e967aa2a0cde1efdd4f08c2652ecfab3978a8853970081759e9dee492a3ebe8c4fc502b
|
||||
EBUILD nessus-bin-8.8.0.ebuild 1654 BLAKE2B 0d59c80388e1119268776c8c98c6996d1c702d6362e2d4d1f3f69c950352aa420c9484c48d636904e8842e38478d3af86c4a458b9833d24f4a7923a9e8d7e70c SHA512 97b5baa4b22213b5211acccfb63292f210170c4ee6156f1035e077b0a914c6f4aea263f10a76f8530cfecca50bd0bfd1b82b7261c5b001f51dbce7b0a37252df
|
||||
25
net-analyzer/nessus-bin/files/nessusd-initd
Normal file
25
net-analyzer/nessus-bin/files/nessusd-initd
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
depend() {
|
||||
need net
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting nessus-service"
|
||||
start-stop-daemon --start --quiet --exec /opt/nessus/sbin/nessus-service -- -D --quiet
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping nessus-service"
|
||||
start-stop-daemon --stop --quiet --exec /opt/nessus/sbin/nessus-service
|
||||
einfo "Waiting for the environment to be sane"
|
||||
while [ -n "$RUNNING" ] ; do
|
||||
sleep 1
|
||||
RUNNING=$(ps aux | grep -m 1 nessusd: | grep -v grep)
|
||||
done
|
||||
sleep 3
|
||||
eend $?
|
||||
}
|
||||
61
net-analyzer/nessus-bin/nessus-bin-8.8.0.ebuild
Normal file
61
net-analyzer/nessus-bin/nessus-bin-8.8.0.ebuild
Normal file
|
|
@ -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
|
||||
}
|
||||
Loading…
Reference in a new issue