summaryrefslogtreecommitdiffstats
path: root/net-analyzer
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
commitca9627e70852f6b2e835660df870fe3ab405882d (patch)
tree0a008b1d5b16fa0679a195ed7b5662c7891f591c /net-analyzer
downloaddarklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.gz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.bz2
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.xz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.zip
Initial import
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/netams/Manifest9
-rw-r--r--net-analyzer/netams/files/netams-3.4.5-ds-compile.patch24
-rw-r--r--net-analyzer/netams/files/netams-ds-compile.patch24
-rw-r--r--net-analyzer/netams/files/netams-ds-portrange.patch96
-rw-r--r--net-analyzer/netams/files/netams.init32
-rw-r--r--net-analyzer/netams/files/netams33.init25
-rw-r--r--net-analyzer/netams/netams-3.3.5.ebuild38
-rw-r--r--net-analyzer/netams/netams-3.4.5.ebuild41
-rw-r--r--net-analyzer/openvas-client/Manifest2
-rw-r--r--net-analyzer/openvas-client/openvas-client-3.0.0.ebuild33
-rw-r--r--net-analyzer/openvas-libraries/Manifest3
-rw-r--r--net-analyzer/openvas-libraries/files/openvas-libraries-3.0.3-ds-gpgme.patch12
-rw-r--r--net-analyzer/openvas-libraries/openvas-libraries-3.0.3.ebuild28
-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
-rw-r--r--net-analyzer/openvas/Manifest1
-rw-r--r--net-analyzer/openvas/openvas-3.0.1.ebuild18
18 files changed, 462 insertions, 0 deletions
diff --git a/net-analyzer/netams/Manifest b/net-analyzer/netams/Manifest
new file mode 100644
index 0000000..14f06d1
--- /dev/null
+++ b/net-analyzer/netams/Manifest
@@ -0,0 +1,9 @@
+AUX netams-3.4.5-ds-compile.patch 951 SHA256 63af9b2264ef0ee8e23519ec13bd11bf98e07993275c733198bd55fd6eb7c4e2 SHA512 3418b6f333733a27a9507f9d6c3d6060d3054b90dd65dc5f93c0da37e528f88f3509aaf454c3530e6981c6bd0909b76439338353fc0c5c0e949c67f7f7333199 WHIRLPOOL ec75943c7d28ef39eb47ab27f456b93f537622828837176d5f13360369e6474e135e5eb44bd8da6d2b3f002c7c8dfcbc18fc4e06fe97235f79f7c37bb823d5d0
+AUX netams-ds-compile.patch 937 SHA256 516a8245f6c1e8371acae52a3dfcd5e6132d70547e5bc9423df367afe22a1903 SHA512 2b532d7be5eee4ea20e2aa70e7a24f8f20add3e7f62c94e0c413ecfcabc073d983928ac719a7bdcc7de3349618fb0ea4f53fd72b692ea400174063e3434e159f WHIRLPOOL 762b0b82d2c6331e8ca052eae09d80f0e36d40479cf89c73ca0a802856283194f17e705dede9250ee1b15db0c574ee03d2fb7acd40ffddcfb2663a4a2dc6cee9
+AUX netams-ds-portrange.patch 2940 SHA256 ac08e4722c5e910941692b0cacfbf5cdaf1dea818649eeeed0b4d4c63f88f016 SHA512 c4ec7d70e9baf0ec38c87384493367e95c82aa9059cfcffd403d4fd080b0ebbe850bfeec13e03e6d6633c85a2a5f9f86c9886c22316c02352b9faa93e76a9748 WHIRLPOOL a828bc0a4d1669dd4e33b800429d413670d26582ac718d0c61220c4f28b7a5abf50a0436b2b73f6f1c29a3327bf83f5853d7892101b5f3fac5604bc5d49009ed
+AUX netams.init 600 SHA256 50cc8a2d619d39a09b23d6ae271238a8a1d9dd6a9ab752bc9ac8938ede83d1a4 SHA512 81962717fdf97ef0a9b3cf75253ced71925571ba488895ff1e522e538620b1a72561e09347ffd98afb7ed3cbe387a007ba4044fb47a5b7db38e01839d5b09cce WHIRLPOOL 9fefe2ed704626ccbba80e0ec8ab88b06b1a6ce162961ebdee523f74447f36ee7378e0b1c7304025fa2a9d11f5c12d0e56d5f3d40ac43383a4d6a5e699a0e430
+AUX netams33.init 596 SHA256 a68ec05accc1ffce44272eac220f83e76cbefc4cbdaa78262484f8cf5567ddd7 SHA512 d138eef9fdcdcfc8e367bea8b111044a20e051e776f4c430b5af21be1a716a6a582ff7204e3372cef337d7915a5190e36361ed2f681fb28cf6368f425baf5e9e WHIRLPOOL 2b77bbcb17af3f0a24ee9e7a85b75b0f3cfc97d168aa40cae2c4ce3cff2150ede7fbc2863ea0874e807d29265892cea29007d15dd32082b9b6af94950c44ce4b
+DIST netams-3.3.5.tar.gz 338686 SHA256 fedb4fd3463a87c5a70e2126b9c7d3fc5fe02bccb16977b241f0a38c4055b702 SHA512 a8f47b8251f039312a295028bd7b0c4a0325a1a7a7c9112f8a41b1f848b96587eac617fe8dee78af6d58493f02a4a1f2456cd48463c2ef3672f803df1688d389 WHIRLPOOL 0d27e34138251f829ae9da092d82e8353cceeb6741faa5a83e5ddf8302dd6ceeecaf94a8d277fd5a8c4e250934b03830f8f40534bae64ceecab21bfdb09f84fe
+DIST netams-3.4.5.tar.gz 408868 SHA256 dc6522cc6cf14bfb29f38f09e5513bfe4dce275c0fce9f55ec8706cd300908b1 SHA512 e139f0bafd708c3cf150add6ea456d4a4a43af14eae3cfe3045c5c3dd7dbb5238b73399735f9c7c7f2726a7b7911696c860a0a8833e70868f3a0c685ee1be936 WHIRLPOOL 52e9a51a3f6a3773ae709853a2c92eae881b1ba045186e5cb9544ddcdc4878e56a9b2deb3a92d9ef6e897297eea898eda5d329253c5de348fa6c2f681eccf18d
+EBUILD netams-3.3.5.ebuild 1058 SHA256 b1379163bb8bf7f9af7039b627cf1754d56e8fa7fe51f3d0c5f89ba1b8b26c83 SHA512 9bbde7c190ffe327c8ba6714906b92ba2f627ba5a248a3a7b1484a5b1b4acb6a95856f71c5f9fb13ad85bb62f2add321572fce4e0cb024c9aabc10b7db37591f WHIRLPOOL 260c808f554c1dec21af9fe64d4563cf1e7644af74535d3b7f2090fbd331d8b9da5a32d277c1001d437f600e42cfc780a33b72617c1d0b2a40956a59d6ade2a4
+EBUILD netams-3.4.5.ebuild 1381 SHA256 d08a21ec741feaccf75707e4daa4254b027f7ed776f71c569e14a7720aff5f23 SHA512 d1c6fbd340d28311664938849009040d468d2d7d99d9c797d557fec43f158107bf830ad22dc612ef0d501f731bb032e2628d68be3f629a5bde635151ac7ab5ee WHIRLPOOL 565c586d805afacace1ce1efd50372a21f53c5f2d0d4ede416c978d8b63e2d52fce259b259f7ac95513a980bb29d6bb3c247d9773bd76ab86fd02809e169870d
diff --git a/net-analyzer/netams/files/netams-3.4.5-ds-compile.patch b/net-analyzer/netams/files/netams-3.4.5-ds-compile.patch
new file mode 100644
index 0000000..46c4de7
--- /dev/null
+++ b/net-analyzer/netams/files/netams-3.4.5-ds-compile.patch
@@ -0,0 +1,24 @@
+diff -dPNur netams-3.4.5-orig/configure.sh netams-3.4.5/configure.sh
+--- netams-3.4.5-orig/configure.sh 2009-09-06 16:44:54.000000000 +0000
++++ netams-3.4.5/configure.sh 2014-10-14 01:11:43.000000000 +0000
+@@ -259,7 +259,7 @@
+ echo "GLib 2.0 found disabling OpenSSL"
+ echo " [ $v1 $v2 $v3 ]"
+ echo "DEFINE += -DWIPE_OPENSSL -I$v2 -I$v3" >> $makefile
+- echo "LIB += -lglib-2.0 -L$v1" >> $makefile
++ echo "LIB += -lcrypt -lglib-2.0 -L$v1" >> $makefile
+ else
+ echo "LibC - enabling OpenSSL"
+ echo "LIB += -lcrypt" >> $makefile
+diff -dPNur netams-3.4.5-orig/src/config.h netams-3.4.5/src/config.h
+--- netams-3.4.5-orig/src/config.h 2009-08-01 09:23:55.000000000 +0000
++++ netams-3.4.5/src/config.h 2014-10-14 01:10:09.000000000 +0000
+@@ -49,7 +49,7 @@
+ #ifndef WIPE_OPENSSL
+ #include <openssl/lhash.h>
+ #else
+-#include <glib/ghash.h>
++#include <glib.h>
+ #endif
+
+ #define __FAVOR_BSD 1 //this is dirty hack -D_BSD_SOURCE should work but do not
diff --git a/net-analyzer/netams/files/netams-ds-compile.patch b/net-analyzer/netams/files/netams-ds-compile.patch
new file mode 100644
index 0000000..550bf81
--- /dev/null
+++ b/net-analyzer/netams/files/netams-ds-compile.patch
@@ -0,0 +1,24 @@
+diff -dPNur netams-3.3.3a/src/connections.c netams-3.3.3a-new/src/connections.c
+--- netams-3.3.3a/src/connections.c 2005-11-20 02:31:02.000000000 +0400
++++ netams-3.3.3a-new/src/connections.c 2006-04-10 03:37:34.000000000 +0500
+@@ -92,7 +92,7 @@
+ }
+
+ #ifdef LINUX
+-ssize_t conn_write(void *conn, const char *buf, unsigned i) {
++ssize_t conn_write(void *conn, const char *buf, size_t i) {
+ #else
+ int conn_write(void *conn, const char *buf, int i) {
+ #endif
+diff -dPNur netams-3.3.3a/src/connections.h netams-3.3.3a-new/src/connections.h
+--- netams-3.3.3a/src/connections.h 2005-03-02 14:39:30.000000000 +0400
++++ netams-3.3.3a-new/src/connections.h 2006-04-10 03:38:25.000000000 +0500
+@@ -13,7 +13,7 @@
+ #define CONN_FD_VIRT -1
+
+ #ifdef LINUX
+-ssize_t conn_write(void *conn, const char *buf, unsigned i);
++ssize_t conn_write(void *conn, const char *buf, size_t i);
+ #else
+ int conn_write(void *conn, const char *buf, int i);
+ #endif
diff --git a/net-analyzer/netams/files/netams-ds-portrange.patch b/net-analyzer/netams/files/netams-ds-portrange.patch
new file mode 100644
index 0000000..6154960
--- /dev/null
+++ b/net-analyzer/netams/files/netams-ds-portrange.patch
@@ -0,0 +1,96 @@
+diff -dPNur netams-3.2.3/src/policy.c netams-3.2.3-ranges/src/policy.c
+--- netams-3.2.3/src/policy.c 2005-02-24 11:58:13.000000000 +0100
++++ netams-3.2.3-ranges/src/policy.c 2005-07-25 23:52:32.000000000 +0200
+@@ -32,6 +32,8 @@
+ target.num_ports=0;
+ for (u_char i=0; i<PC_MAX_PORTS; i++)
+ target.src_ports[i]=target.dst_ports[i]=0;
++ for (u_char i=0; i<PC_MAX_PORTS; i++)
++ target.max_ports[i]=0;
+
+ target.num_addrs=0;
+ for (u_char i=0; i<PC_MAX_ADDRS; i++)
+@@ -171,6 +173,8 @@
+ target.check_type|=PC_IP_PORTS;
+ u_char j=0;
+ u_short ports;
++ u_short max_port;
++ char *maxptr;
+ char *ptr;
+
+ while (tgt[j+*i+1]!=empty && j<PC_MAX_PORTS) {
+@@ -179,9 +183,19 @@
+ else
+ ptr=tgt[j+*i+1];
+
++
++ maxptr = strchr(ptr,':');
++ if (!maxptr) maxptr = strchr(ptr,'-');
++
+ ports=strtol(ptr, NULL, 10);
+
+ if (!ports) break;
++
++ if (maxptr) {
++ max_port = strtol(maxptr+1, NULL, 10);
++ if (ports>max_port) max_port = 0;
++ } else max_port = 0;
++ target.max_ports[j] = htons(max_port);
+
+ switch (tgt[j+*i+1][0]) {
+ case 's':
+@@ -358,11 +372,26 @@
+ if(target.num_ports) sprintf(buf+strlen(buf), "ports ");
+ for (u_char i=0; i<target.num_ports; i++) {
+ if (target.src_ports[i]==target.dst_ports[i])
++ {
++ if (target.max_ports[i])
++ sprintf(buf+strlen(buf), "%u:%u ", ntohs(target.src_ports[i]), ntohs(target.max_ports[i]));
++ else
+ sprintf(buf+strlen(buf), "%u ", ntohs(target.src_ports[i]));
++ }
+ else if (target.src_ports[i])
++ {
++ if (target.max_ports[i])
++ sprintf(buf+strlen(buf), "s%u:%u ", ntohs(target.src_ports[i]), ntohs(target.max_ports[i]));
++ else
+ sprintf(buf+strlen(buf), "s%u ", ntohs(target.src_ports[i]));
++ }
+ else if (target.dst_ports[i])
++ {
++ if (target.max_ports[i])
++ sprintf(buf+strlen(buf), "d%u:%u ", ntohs(target.dst_ports[i]),ntohs(target.max_ports[i]));
++ else
+ sprintf(buf+strlen(buf), "d%u ", ntohs(target.dst_ports[i]));
++ }
+ }
+ }
+ if (target.check_type&PC_UNIT) {
+@@ -436,6 +465,15 @@
+ res=1;
+ break;
+ }
++
++ if (target.max_ports[i]) {
++ if (((target.src_ports[i])&&(ntohs(flow->srcport)>ntohs(target.src_ports[i]))&&(ntohs(flow->srcport)<=ntohs(target.max_ports[i])))||
++ ((target.dst_ports[i])&&(ntohs(flow->dstport)>ntohs(target.dst_ports[i]))&&(ntohs(flow->dstport)<=ntohs(target.max_ports[i])))) {
++ res=1;
++ break;
++ }
++ }
++
+ }
+ if(!res) return 0;
+ }
+diff -dPNur netams-3.2.3/src/policy.h netams-3.2.3-ranges/src/policy.h
+--- netams-3.2.3/src/policy.h 2005-01-17 15:13:21.000000000 +0100
++++ netams-3.2.3-ranges/src/policy.h 2005-07-25 23:30:40.000000000 +0200
+@@ -86,6 +86,8 @@
+ u_char num_ports;
+ u_short src_ports[PC_MAX_PORTS];
+ u_short dst_ports[PC_MAX_PORTS];
++
++ u_short max_ports[PC_MAX_PORTS];
+
+ //PC_IP_TOS
+ u_char ip_tos;
diff --git a/net-analyzer/netams/files/netams.init b/net-analyzer/netams/files/netams.init
new file mode 100644
index 0000000..c5aca06
--- /dev/null
+++ b/net-analyzer/netams/files/netams.init
@@ -0,0 +1,32 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header:
+
+depend() {
+ need net mysql
+}
+
+
+daemondir=/usr/local/sbin
+path_to_etc=/etc/
+
+
+start() {
+ ebegin "Starting netams"
+ /bin/mkdir -p /var/run/netams
+ if [ -x $daemondir/netams ]; then
+ if [ -f $path_to_etc/netams.cfg ]; then
+ $daemondir/netams -lf $path_to_etc/netams.cfg >/dev/null
+ eend $?
+ else
+ eend 1
+ fi
+ else
+ eend 1
+ fi
+}
+
+stop() {
+ killall ${KILL_OPTS} netams
+}
diff --git a/net-analyzer/netams/files/netams33.init b/net-analyzer/netams/files/netams33.init
new file mode 100644
index 0000000..a4b56ad
--- /dev/null
+++ b/net-analyzer/netams/files/netams33.init
@@ -0,0 +1,25 @@
+#!/sbin/runscript
+# $Id: netams-gentoo.sh,v 1.1 2005/06/07 20:20:37 anton Exp $
+# this is Linux Gentoo version
+
+start() {
+ ebegin "Starting NeTAMS"
+ if [ -f /etc/netams.cfg ]; then
+ start-stop-daemon --start --quiet --background \
+ --pid /var/run/netams.pid \
+ --exec /usr/sbin/netams -- -f /etc/netams.cfg -l
+ fi
+ eend $? "Failed to start NeTAMS"
+}
+
+stop() {
+ ebegin "Stopping netams"
+ start-stop-daemon --stop --quiet --pid /var/run/netams.pid --exec /usr/sbin/netams
+ eend $? "Failed to stop NeTAMS"
+}
+
+restart() {
+ svc_stop
+ sleep 3
+ svc_start
+}
diff --git a/net-analyzer/netams/netams-3.3.5.ebuild b/net-analyzer/netams/netams-3.3.5.ebuild
new file mode 100644
index 0000000..7460661
--- /dev/null
+++ b/net-analyzer/netams/netams-3.3.5.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header:
+
+inherit eutils
+
+DESCRIPTION="NetAMS Traffic Accounting"
+SRC_URI="http://www.netams.com/files/netams-${PV}.tar.gz"
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="x86 amd64"
+RDEPEND="dev-db/mysql net-libs/libpcap"
+
+src_unpack() {
+ unpack ${P}.tar.gz
+# epatch ${FILESDIR}/netams-ds-compile.patch || die
+}
+
+src_compile() {
+ ./configure.sh || die
+ FLAGS=-DHAVE_BW make || die
+}
+
+src_install() {
+ into /usr
+ mkdir -p ${D}/usr/sbin
+ mkdir -p ${D}/etc/init.d
+ mkdir -p ${D}/usr/share/man/man8/
+
+ install -m 0755 ${FILESDIR}/netams33.init ${D}/etc/init.d/netams
+# install -m 0755 addon/netams-gentoo.sh ${D}/etc/init.d/netams
+ install -m 0755 src/flowprobe ${D}/usr/sbin/
+ install -m 0755 src/ipfw2netflow ${D}/usr/sbin/
+ install -m 0755 src/ulog2netflow ${D}/usr/sbin/
+ install -m 0755 src/netams ${D}/usr/sbin/
+ install -m 0755 src/netamsctl ${D}/usr/sbin/
+ install -m 0644 doc/*.8 ${D}/usr/share/man/man8/
+}
diff --git a/net-analyzer/netams/netams-3.4.5.ebuild b/net-analyzer/netams/netams-3.4.5.ebuild
new file mode 100644
index 0000000..8a195c5
--- /dev/null
+++ b/net-analyzer/netams/netams-3.4.5.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header:
+
+inherit eutils
+
+DESCRIPTION="NetAMS Traffic Accounting"
+SRC_URI="http://www.netams.com/files/netams-${PV}.tar.gz"
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="x86 amd64"
+RDEPEND="dev-db/mysql net-libs/libpcap net-libs/libnetfilter_queue"
+
+src_unpack() {
+ unpack ${P}.tar.gz
+ epatch ${FILESDIR}/netams-3.4.5-ds-compile.patch || die
+}
+
+src_compile() {
+ ./configure.sh || die
+ FLAGS=-DHAVE_BW make || die
+}
+
+src_install() {
+ into /usr
+ mkdir -p ${D}/usr/sbin
+ mkdir -p ${D}/etc/init.d
+ mkdir -p ${D}/usr/share/man/man8/
+ mkdir -p ${D}/var/www/localhost/htdocs/netams/images
+
+ install -m 0755 ${FILESDIR}/netams33.init ${D}/etc/init.d/netams || die
+# install -m 0755 addon/netams-gentoo.sh ${D}/etc/init.d/netams || die
+ install -m 0755 src/flowprobe ${D}/usr/sbin/ || die
+# install -m 0755 src/ipfw2netflow ${D}/usr/sbin/ || die
+# install -m 0755 src/ulog2netflow ${D}/usr/sbin/ || die
+ install -m 0755 src/netams ${D}/usr/sbin/ || die
+ install -m 0755 src/netamsctl ${D}/usr/sbin/ || die
+ install -m 0644 doc/*.8 ${D}/usr/share/man/man8/ || die
+ install -m 0644 addon/netams.js ${D}/var/www/localhost/htdocs/netams/ || die
+ install -m 0644 cgi-bin/images/* ${D}/var/www/localhost/htdocs/netams/images/ || die
+}
diff --git a/net-analyzer/openvas-client/Manifest b/net-analyzer/openvas-client/Manifest
new file mode 100644
index 0000000..dda1584
--- /dev/null
+++ b/net-analyzer/openvas-client/Manifest
@@ -0,0 +1,2 @@
+DIST openvas-client-3.0.0.tar.gz 758925 RMD160 47853e832b07a568e53ef3e47f5ea35c8b67a56a SHA1 1890c9813e1219efe4e72a0697f4c0271bc2670c SHA256 8e4242d5736c83f6322efc700f70f1c312b6f41274a0d735de9f8034f7a5cb1b
+EBUILD openvas-client-3.0.0.ebuild 1007 RMD160 b94e6f30077c3d192956afc4135539e6e27d7dc6 SHA1 c649d436e5c24fa40a7497c4da87af162174455b SHA256 f14b925092c005bdb8f1b5482f19b218b8638db5ec14241cff90a3a70aea6b02
diff --git a/net-analyzer/openvas-client/openvas-client-3.0.0.ebuild b/net-analyzer/openvas-client/openvas-client-3.0.0.ebuild
new file mode 100644
index 0000000..ba1b55d
--- /dev/null
+++ b/net-analyzer/openvas-client/openvas-client-3.0.0.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/openvas-client/openvas-client-2.0.5.ebuild,v 1.2 2009/11/07 20:19:43 volkmar Exp $
+
+inherit eutils
+
+DESCRIPTION="A client for the openvas vulnerability scanner"
+HOMEPAGE="http://www.openvas.org/"
+SRC_URI="http://wald.intevation.org/frs/download.php/685/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE="gtk"
+
+DEPEND="net-libs/gnutls
+ gtk? ( >=x11-libs/gtk+-2.8.8 )"
+RDEPEND="${DEPEND}"
+
+# Upstream bug:
+# http://wald.intevation.org/tracker/index.php?func=detail&aid=941&group_id=29&atid=220
+MAKEOPTS="-j1"
+
+src_compile() {
+ econf $(use_enable gtk) || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "install failed"
+ dodoc AUTHORS CHANGES README TODO || die "dodoc failed"
+
+ make_desktop_entry OpenVAS-Client "OpenVAS Client" /usr/share/pixmaps/openvas-client.png "Network"
+}
diff --git a/net-analyzer/openvas-libraries/Manifest b/net-analyzer/openvas-libraries/Manifest
new file mode 100644
index 0000000..a809d00
--- /dev/null
+++ b/net-analyzer/openvas-libraries/Manifest
@@ -0,0 +1,3 @@
+AUX openvas-libraries-3.0.3-ds-gpgme.patch 471 RMD160 32f801cce910ba1a0237dec157dd4b21d81fe527 SHA1 f2afafc0908ae2a834a064f980f32feded36dfa4 SHA256 d50ed6e1720a123ae38262fa8af0271a6409affe517cddfc9898fb63d43e7bbe
+DIST openvas-libraries-3.0.3.tar.gz 764157 RMD160 3502eaefc3c32f52b593bce80d869b451ed08e67 SHA1 7f42f9d58ba2de8f987422a799df69dc969f90c2 SHA256 9caf40d73dadf157bd3adafa8fdf984f4554301237012d2d26fd366df62de943
+EBUILD openvas-libraries-3.0.3.ebuild 796 RMD160 9bb82d2176b56fa017ef92ab850a21d4b8acd812 SHA1 06dcfdc181b678cb8b6f76705fa97d0973494cc4 SHA256 6b9b62ce14b52838ea2b1a9f879a934847be521dbc5bfc9b2463ec57ac65893c
diff --git a/net-analyzer/openvas-libraries/files/openvas-libraries-3.0.3-ds-gpgme.patch b/net-analyzer/openvas-libraries/files/openvas-libraries-3.0.3-ds-gpgme.patch
new file mode 100644
index 0000000..f3a9331
--- /dev/null
+++ b/net-analyzer/openvas-libraries/files/openvas-libraries-3.0.3-ds-gpgme.patch
@@ -0,0 +1,12 @@
+diff -dPNur openvas-libraries-3.0.3/nasl/nasl_signature.h openvas-libraries-3.0.3-ds/nasl/nasl_signature.h
+--- openvas-libraries-3.0.3/nasl/nasl_signature.h 2009-09-25 09:20:53.000000000 +0200
++++ openvas-libraries-3.0.3-ds/nasl/nasl_signature.h 2010-02-12 01:25:37.000000000 +0100
+@@ -24,7 +24,7 @@
+ #ifndef NASL_SIGNATURE_H
+ #define NASL_SIGNATURE_H
+
+-#include <gpgme.h>
++#include <gpgme/gpgme.h>
+ #include <glib.h>
+
+ int nasl_verify_signature(const char* filename);
diff --git a/net-analyzer/openvas-libraries/openvas-libraries-3.0.3.ebuild b/net-analyzer/openvas-libraries/openvas-libraries-3.0.3.ebuild
new file mode 100644
index 0000000..723d795
--- /dev/null
+++ b/net-analyzer/openvas-libraries/openvas-libraries-3.0.3.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/openvas-libraries/openvas-libraries-2.0.4.ebuild,v 1.1 2009/09/07 16:19:57 hanno Exp $
+
+inherit eutils
+
+DESCRIPTION="A remote security scanner for Linux (openvas-libraries)"
+HOMEPAGE="http://www.openvas.org/"
+SRC_URI="http://wald.intevation.org/frs/download.php/706/${P}.tar.gz"
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="amd64 ~ppc x86"
+IUSE=""
+
+DEPEND="net-libs/gnutls
+ net-libs/libpcap"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ unpack ${P}.tar.gz
+ epatch "${FILESDIR}"/openvas-libraries-3.0.3-ds-gpgme.patch || die
+}
+
+src_install() {
+ einstall || die "failed to install"
+ find "${D}" -name '*.la' -delete
+ dodoc ChangeLog CHANGES TODO || die
+}
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"
+}
diff --git a/net-analyzer/openvas/Manifest b/net-analyzer/openvas/Manifest
new file mode 100644
index 0000000..98aaf66
--- /dev/null
+++ b/net-analyzer/openvas/Manifest
@@ -0,0 +1 @@
+EBUILD openvas-3.0.1.ebuild 566 RMD160 2234935070b0baa046efe7785ad97d3095a2977e SHA1 3dfdff3297954ed38e35d351b55a291242f65819 SHA256 bd6639f0b7d0933ab05330b15546cbdfb12ff947804cea9eb8359fbfec4da77c
diff --git a/net-analyzer/openvas/openvas-3.0.1.ebuild b/net-analyzer/openvas/openvas-3.0.1.ebuild
new file mode 100644
index 0000000..cb2da9f
--- /dev/null
+++ b/net-analyzer/openvas/openvas-3.0.1.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/openvas/openvas-2.0.2.ebuild,v 1.2 2009/11/07 20:24:03 volkmar Exp $
+
+DESCRIPTION="A remote security scanner"
+HOMEPAGE="http://www.openvas.org/"
+DEPEND=">=net-analyzer/openvas-libraries-3.0.3
+ >=net-analyzer/openvas-scanner-3.0.1
+ >=net-analyzer/openvas-client-3.0.0
+ !net-analyzer/openvas-libnasl
+ !net-analyzer/openvas-plugins
+"
+
+RDEPEND="${DEPEND}"
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="amd64 ~ppc x86"
+IUSE=""