diff options
Diffstat (limited to 'security')
-rw-r--r-- | security/Makefile | 1 | ||||
-rw-r--r-- | security/openvas-server/Makefile | 29 | ||||
-rw-r--r-- | security/openvas-server/Makefile.common | 4 | ||||
-rw-r--r-- | security/openvas-server/distinfo | 3 | ||||
-rw-r--r-- | security/openvas-server/files/openvasd.in | 34 | ||||
-rw-r--r-- | security/openvas-server/files/patch-configure | 11 | ||||
-rw-r--r-- | security/openvas-server/files/patch-openvas.tmpl.in | 11 | ||||
-rw-r--r-- | security/openvas-server/files/patch-openvasd-openvas-check-signature.c | 11 | ||||
-rw-r--r-- | security/openvas-server/pkg-descr | 6 | ||||
-rw-r--r-- | security/openvas-server/pkg-plist | 35 |
10 files changed, 145 insertions, 0 deletions
diff --git a/security/Makefile b/security/Makefile index 8f6c79ce5cf5..8f94e5a061fd 100644 --- a/security/Makefile +++ b/security/Makefile @@ -317,6 +317,7 @@ SUBDIR += openvas-libnasl SUBDIR += openvas-libraries SUBDIR += openvas-plugins + SUBDIR += openvas-server SUBDIR += openvpn SUBDIR += openvpn-admin SUBDIR += openvpn-auth-ldap diff --git a/security/openvas-server/Makefile b/security/openvas-server/Makefile new file mode 100644 index 000000000000..c0900a1628d0 --- /dev/null +++ b/security/openvas-server/Makefile @@ -0,0 +1,29 @@ +# New ports collection makefile for: openvas-server +# Date created: 2008-04-26 +# Whom: Tomoyuki Sakurai <cherry@trombik.org> +# +# $FreeBSD$ +# + +PORTNAME= openvas-server +PORTVERSION= 1.0.0 +CATEGORIES= security +MASTER_SITES= http://wald.intevation.org/frs/download.php/407/ + +MAINTAINER= cherry@trombik.org +COMMENT= A security scanner: a fork of Nessus + +LIB_DEPENDS= openvas.1:${PORTSDIR}/security/openvas-libraries \ + openvasnasl.1:${PORTSDIR}/security/openvas-libnasl + +GNU_CONFIGURE= yes +# XXX openvas-mkcert uses gettext +USE_GETTEXT= yes +USE_RC_SUBR= openvasd + +MAN1= openvas-check-signature.1 openvas-mkrand.1 +MAN8= openvasd.8 openvas-adduser.8 openvas-rmuser.8 openvas-mkcert.8 + +.include "${.CURDIR}/../../security/openvas-server/Makefile.common" + +.include <bsd.port.mk> diff --git a/security/openvas-server/Makefile.common b/security/openvas-server/Makefile.common new file mode 100644 index 000000000000..f3e23716c281 --- /dev/null +++ b/security/openvas-server/Makefile.common @@ -0,0 +1,4 @@ +CONFIGURE_ARGS+= --includedir=${LOCALBASE}/include \ + --localstatedir=${PREFIX}/openvas \ + --sharedstatedir=${PREFIX}/openvas/com \ + --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} diff --git a/security/openvas-server/distinfo b/security/openvas-server/distinfo new file mode 100644 index 000000000000..fb669a79989b --- /dev/null +++ b/security/openvas-server/distinfo @@ -0,0 +1,3 @@ +MD5 (openvas-server-1.0.0.tar.gz) = fbea2077375a4dfc8e97cbdeec1cc0da +SHA256 (openvas-server-1.0.0.tar.gz) = 72ee788c0e79934d3a8220a2acff80851324227093f91fc37564097a2e44b68b +SIZE (openvas-server-1.0.0.tar.gz) = 289660 diff --git a/security/openvas-server/files/openvasd.in b/security/openvas-server/files/openvasd.in new file mode 100644 index 000000000000..ab5db47cf775 --- /dev/null +++ b/security/openvas-server/files/openvasd.in @@ -0,0 +1,34 @@ +#!/bin/sh + +# Start or stop openvasd +# $FreeBSD$ + +# PROVIDE: openvasd +# REQUIRE: DAEMON +# BEFORE: LOGIN +# KEYWORD: shutdown +# + +prefix=%%PREFIX%% + +# Define these openvasd_* variables in one of these files: +# /etc/rc.conf +# /etc/rc.conf.local +# /etc/rc.conf.d/openvasd +# +# DO NOT CHANGE THESE DEFAULT VALUES HERE +# +[ -z "$openvasd_enable" ] && openvasd_enable="NO" # Disable openvasd +#openvasd_program="${prefix}/sbin/openvasd" # Location of openvasd +openvasd_flags="-D -q" # Flags to openvasd program + +. %%RC_SUBR%% + +name="openvasd" +rcvar=`set_rcvar` +command="${prefix}/sbin/openvasd" +pidfile="/var/run/openvasd.pid" +required_files="${prefix}/etc/openvas/openvasd.conf" + +load_rc_config $name +run_rc_command "$1" diff --git a/security/openvas-server/files/patch-configure b/security/openvas-server/files/patch-configure new file mode 100644 index 000000000000..ab481ef258e6 --- /dev/null +++ b/security/openvas-server/files/patch-configure @@ -0,0 +1,11 @@ +--- configure.orig 2008-04-27 14:15:10.000000000 +0900 ++++ configure 2008-04-27 14:15:27.000000000 +0900 +@@ -12073,7 +12073,7 @@ + + OPENVASD_CONFDIR='${sysconfdir}' + OPENVASD_STATEDIR='${localstatedir}/lib/openvas' +-OPENVASD_PIDDIR='${localstatedir}/run' ++OPENVASD_PIDDIR='/var/run' + OPENVASD_SHAREDSTATEDIR='${sharedstatedir}/lib/openvas' + OPENVASD_DATADIR='${sysconfdir}/openvas' + OPENVASD_LIBDIR='${libdir}/openvas' diff --git a/security/openvas-server/files/patch-openvas.tmpl.in b/security/openvas-server/files/patch-openvas.tmpl.in new file mode 100644 index 000000000000..6836a333dd90 --- /dev/null +++ b/security/openvas-server/files/patch-openvas.tmpl.in @@ -0,0 +1,11 @@ +--- openvas.tmpl.in.orig 2008-04-27 00:54:18.000000000 +0900 ++++ openvas.tmpl.in 2008-04-27 00:54:45.000000000 +0900 +@@ -36,7 +36,7 @@ + srcdir=${rootdir}/src + libsdir=${rootdir}/libs + top_builddir = @PWDD@ +-include= -I. -I$(rootdir)/include ++include= -I. -I$(rootdir)/include -I$(includedir) + INSTALL=@INSTALL@ + INSTALL_DIR=@INSTALL_DIR@ + installuser=@installuser@ diff --git a/security/openvas-server/files/patch-openvasd-openvas-check-signature.c b/security/openvas-server/files/patch-openvasd-openvas-check-signature.c new file mode 100644 index 000000000000..e9697938d210 --- /dev/null +++ b/security/openvas-server/files/patch-openvasd-openvas-check-signature.c @@ -0,0 +1,11 @@ +--- openvasd/openvas-check-signature.c.orig 2008-04-27 00:56:59.000000000 +0900 ++++ openvasd/openvas-check-signature.c 2008-04-27 00:57:55.000000000 +0900 +@@ -43,7 +43,7 @@ + #include <includes.h> + #include <gnutls/gnutls.h> + #include <gnutls/x509.h> +- ++#include <getopt.h> + + void + print_tls_error(char *txt, int err) diff --git a/security/openvas-server/pkg-descr b/security/openvas-server/pkg-descr new file mode 100644 index 000000000000..250f4bad0e3d --- /dev/null +++ b/security/openvas-server/pkg-descr @@ -0,0 +1,6 @@ +OpenVAS stands for Open Vulnerability Assessment System and is a network +security scanner with associated tools like a graphical user fontend. The core +is a server component with a set of network vulnerability tests (NVTs) to +detect security problems in remote systems and applications. + +WWW: http://www.openvas.org/ diff --git a/security/openvas-server/pkg-plist b/security/openvas-server/pkg-plist new file mode 100644 index 000000000000..94be9bfef119 --- /dev/null +++ b/security/openvas-server/pkg-plist @@ -0,0 +1,35 @@ +@comment $FreeBSD$ +bin/openvas-mkcert-client +bin/openvasd-config +bin/openvas-mkrand +sbin/openvasd +sbin/openvas-check-signature +sbin/openvas-adduser +sbin/openvas-rmuser +sbin/openvas-mkcert +openvas/lib/openvas/openvas-services +include/openvas/config.h +include/openvas/includes.h +include/openvas/nessusicmp.h +include/openvas/nessusip.h +include/openvas/nessusraw.h +include/openvas/nessustcp.h +include/openvas/nessusudp.h +include/openvas/openvas-devel.h +include/openvas/threadcompat.h +@dirrmtry openvas/run +@dirrmtry openvas/log/openvas +@dirrmtry openvas/log +@dirrmtry openvas/lib/openvas/users +@dirrmtry openvas/lib/openvas/tmp +@dirrmtry openvas/lib/openvas/logs +@dirrmtry openvas/lib/openvas/jobs +@dirrmtry openvas/lib/openvas/CA +@dirrmtry openvas/lib/openvas +@dirrmtry openvas/lib +@dirrmtry openvas/com/openvas/CA +@dirrmtry openvas/com/openvas +@dirrmtry openvas/com +@dirrmtry openvas +@dirrmtry etc/openvas/gnupg +@dirrmtry etc/openvas |