nessus-bin: delete in Gentoo's favour

This commit is contained in:
blshkv 2020-08-28 17:34:59 +08:00
parent 08da506d4c
commit bdecc15292
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
4 changed files with 0 additions and 100 deletions

View file

@ -1 +0,0 @@
DIST Nessus-8.11.0-es8.x86_64.rpm 38541604 BLAKE2B 77de05999a2eaa8ff5eecd3b64213ecaab28f71de679242c6b42274ca083bb9eae28316721893906975e4c8f9130bc66fb9cd14dc9c4aa69af73bc9555bbe58d SHA512 4fa487cca13237483e527d3bc3df94671579974548632100b10fba787f217e564836e25b7bd79b0c0f7ed624ca583fe43b7e82703605e3b1a086e88d39456ba9

View file

@ -1,25 +0,0 @@
#!/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 $?
}

View file

@ -1,12 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>marecki@gentoo.org</email>
<name>Marek Szuba</name>
</maintainer>
<maintainer type="person">
<email>zerochaos@gentoo.org</email>
<name>Rick Farina</name>
</maintainer>
</pkgmetadata>

View file

@ -1,62 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit rpm pax-utils systemd
MY_P="Nessus-${PV}-es8"
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/*.so*
opt/nessus/lib/nessus/*/*.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 "In order to complete the upgrade, run the following commands:"
elog "/etc/init.d/nessusd-bin stop"
elog "/opt/nessus/sbin/nessuscli update --all"
elog "/etc/init.d/nessusd-bin start"
fi
}