nessus-bin: added nessus 4.2.2, thx to d1g1t4l!

This commit is contained in:
grimmlin 2010-10-07 11:44:40 +00:00
parent f4a479f168
commit 7aea819253
4 changed files with 119 additions and 0 deletions

View file

@ -0,0 +1,5 @@
AUX 90nessus-bin 25 RMD160 f1cc25bf803550981521bf78a0a01fe3d442ddf6 SHA1 94fc6e4f765a14c18cdbe50635673cbde79f5898 SHA256 2343d5e672abb085400173f26df960d6f2b98ffa7b5b7b431675dd5b98d164cb
AUX nessusd-initd-new 673 RMD160 f3c4e8b2b7ae53b5056899218d2615005d75f118 SHA1 17bfc5bd59dc31c080bc684e76737ec461f97a0f SHA256 563ff1a3c7dbcb2a6aa2062f994840ddd33776ef2e8cd3c207c303c46be1fa20
DIST Nessus-4.2.2-es5.i386.rpm 5655925 RMD160 6f0a3f73f232679d3f1b45c251008f0f63fd5415 SHA1 9c7e1eebfdc2465bb18e65f8a39723ce95abe887 SHA256 8adc1589fcf3bd0d710c91f2161b2658ed2a7dbde8244860e9ff93caa94dbe1f
DIST Nessus-4.2.2-es5.x86_64.rpm 6192064 RMD160 bc30273dd11bdbc4eb38222610c31cb6f4890eb3 SHA1 41f6aa0088690504963a3edb25a769731c9631c3 SHA256 8f696ce9e4de69edde86fd49ce371ca56e183d0eaa161a60b6223933e1a61b3d
EBUILD nessus-bin-4.2.2.ebuild 2499 RMD160 e2aaa3a3d3ebec54b70ffe80eaba72b956457c78 SHA1 3be4a9c1c0bd20384a1b2868c36cfbff6060d56e SHA256 21f2c7c6ed9aa25819869fd8ab46a7d179d4d571655a7ec6f5c1acc8a7900334

View file

@ -0,0 +1 @@
LDPATH="/opt/nessus/lib"

View file

@ -0,0 +1,26 @@
#!/sbin/runscript
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nessus-bin/files/nessusd-initd,v 1.1 2006/11/29 16:53:30 jokey Exp $
depend() {
need net
}
start() {
ebegin "Starting nessusd"
start-stop-daemon --start --quiet --exec /opt/nessus/sbin/nessus-service -- -D --quiet
eend $?
}
stop() {
ebegin "Stop nessusd"
start-stop-daemon --stop --quiet --exec /opt/nessus/sbin/nessusd
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

@ -0,0 +1,87 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nessus-bin/nessus-bin-3.2.0.ebuild,v 1.3 2009/07/07 23:03:49 flameeyes Exp $
inherit rpm
MY_P="Nessus-${PV}-es5"
# We are using the Red Hat/CentOS binary
DESCRIPTION="A remote security scanner for Linux"
HOMEPAGE="http://www.nessus.org"
SRC_URI="x86? ( ${MY_P}.i386.rpm )
amd64? ( ${MY_P}.x86_64.rpm )"
RESTRICT="mirror fetch strip"
LICENSE="Nessus-EULA"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="X"
DEPEND="=sys-libs/db-4.3*
>=dev-libs/openssl-0.9.8
>=app-arch/rpm2targz-9.0-r7"
PDEPEND="X? ( net-analyzer/nessus-client )"
pkg_nofetch() {
if use x86; then
elog "Please download ${MY_P}.i386.rpm from ${HOMEPAGE}/download"
elog "The archive should then be placed into ${DISTDIR}."
fi
if use amd64; then
elog "Please download ${MY_P}.x86_64.rpm from ${HOMEPAGE}/download"
elog "The archive should then be placed into ${DISTDIR}."
fi
}
pkg_setup() {
case ${CHOST} in
i586-pc-linux-gnu*) einfo "Found compatible architecture." ;;
i686-pc-linux-gnu*) einfo "Found compatible architecture." ;;
x86_64-pc-linux-gnu*) einfo "Found compatible architecture." ;;
*) die "No compatible architecture found." ;;
esac
}
src_install() {
# copy files
cp -pPR "${WORKDIR}"/opt "${D}"
# make sure these directories do not vanish
# nessus will not run properly without them
keepdir /opt/nessus/etc/nessus
keepdir /opt/nessus/var/nessus/jobs
keepdir /opt/nessus/var/nessus/logs
keepdir /opt/nessus/var/nessus/tmp
keepdir /opt/nessus/var/nessus/users
# add /opt/nessus/lib to LD_PATH
# nessus will not run properly without it
doenvd "${FILESDIR}"/90nessus-bin
# we have /bin/gzip, not /usr/bin/gzip
sed -i -e "s:/usr/bin/gzip:/bin/gzip:g" \
"${D}"/opt/nessus/sbin/nessus-update-plugins
# init script
newinitd "${FILESDIR}"/nessusd-initd-new nessusd-bin
dosym libssl.so.0.9.8 /usr/lib/libssl.so.6
dosym libcrypto.so.0.9.8 /usr/lib/libcrypto.so.6
}
pkg_postinst() {
elog "You can get started running the following commands:"
elog "/opt/nessus/sbin/nessus-adduser"
elog "/opt/nessus/sbin/nessus-mkcert"
elog "/etc/init.d/nessusd-bin start"
elog
elog "If you had a previous version of Nessus installed, use"
elog "the following command to update the plugin database:"
elog "/opt/nessus/sbin/nessusd -R"
elog
elog "For more information about nessus, please visit"
elog "${HOMEPAGE}/documentation/"
}