summaryrefslogtreecommitdiffstats
path: root/net-analyzer/openvas-scanner
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/openvas-scanner')
-rw-r--r--net-analyzer/openvas-scanner/Manifest3
-rw-r--r--net-analyzer/openvas-scanner/files/openvasd27
-rw-r--r--net-analyzer/openvas-scanner/openvas-scanner-3.0.1.ebuild46
3 files changed, 76 insertions, 0 deletions
diff --git a/net-analyzer/openvas-scanner/Manifest b/net-analyzer/openvas-scanner/Manifest
new file mode 100644
index 0000000..9e0ba4a
--- /dev/null
+++ b/net-analyzer/openvas-scanner/Manifest
@@ -0,0 +1,3 @@
+AUX openvasd 602 RMD160 aa1bf12f2543128298405f4f076b9bf5c19c0ec9 SHA1 45df319e7c4753ec60dd4ddf11e81393cc3f37e1 SHA256 37d5c6cc7daca833c2520f840524f15f7f13f67838c552943455ded3902ab802
+DIST openvas-scanner-3.0.1.tar.gz 551036 RMD160 8b3007d94c0f6953156ac7c547b3a3db08684fa8 SHA1 a744da841c9c52f5bc74f51287602f958e4c7e01 SHA256 965bdb37d8925e56e779c1299f08c63436675f2e7b3715860433c37684d10df0
+EBUILD openvas-scanner-3.0.1.ebuild 1309 RMD160 8313ac4b4e46ec056acb8ca68accf1cc8630b85b SHA1 7ef8e3606dbb5c96d5cc2ff1b9a2cb3a28fd95a4 SHA256 9cedbce645c8acb2204056d387709185f273d9fdaf6d6a146ff06d78d971cee6
diff --git a/net-analyzer/openvas-scanner/files/openvasd b/net-analyzer/openvas-scanner/files/openvasd
new file mode 100644
index 0000000..0883487
--- /dev/null
+++ b/net-analyzer/openvas-scanner/files/openvasd
@@ -0,0 +1,27 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header:
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting openvassd"
+ start-stop-daemon --start --quiet -n openvassd --exec /usr/sbin/openvassd -- --quiet
+ eend $?
+}
+
+stop() {
+ ebegin "Stop openvassd"
+ start-stop-daemon --stop --quiet -n openvassd
+
+ einfo "Waiting for the environment to be sane"
+ RUNNING=$(ps aux | grep -m 1 openvassd: | grep -v grep)
+ while [ -n "$RUNNING" ] ; do
+ sleep 1
+ RUNNING=$(ps aux | grep -m 1 openvassd: | grep -v grep)
+ done
+ eend $?
+}
diff --git a/net-analyzer/openvas-scanner/openvas-scanner-3.0.1.ebuild b/net-analyzer/openvas-scanner/openvas-scanner-3.0.1.ebuild
new file mode 100644
index 0000000..1f328f9
--- /dev/null
+++ b/net-analyzer/openvas-scanner/openvas-scanner-3.0.1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/openvas-server/openvas-server-2.0.3.ebuild,v 1.2 2009/11/07 20:18:04 volkmar Exp $
+
+DESCRIPTION="A remote security scanner for Linux (openvas-scanner)"
+HOMEPAGE="http://www.openvas.org/"
+SRC_URI="http://wald.intevation.org/frs/download.php/696/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE="tcpd gtk debug prelude"
+
+DEPEND=">=net-analyzer/openvas-libraries-3.0.3
+ tcpd? ( sys-apps/tcp-wrappers )
+ gtk? ( =x11-libs/gtk+-2* )
+ prelude? ( dev-libs/libprelude )
+ !net-analyzer/openvas-libnasl
+ !net-analyzer/openvas-plugins
+ !net-analyzer/openvas-server
+ "
+RDEPEND="${DEPEND}"
+
+src_compile() {
+ econf \
+ $(use_enable tcpd tcpwrappers) \
+ $(use_enable debug) \
+ $(use_enable gtk) \
+ || die "configure failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ einstall || die "einstall failed"
+
+ dodoc doc/*.txt || die
+
+ doinitd "${FILESDIR}"/openvasd || die "doinitd failed"
+ keepdir /var/lib/openvas/logs
+ keepdir /var/lib/openvas/users
+}
+
+pkg_postinst() {
+ ewarn "1. Call 'openvas-nvt-sync' to download plugins"
+ ewarn "2. Call 'openvas-mkcert' to generate server certificate"
+ ewarn "3. Call 'openvas-adduser' to create a user"
+}