diff options
author | adrianp <adrianp@pkgsrc.org> | 2009-01-04 01:08:52 +0000 |
---|---|---|
committer | adrianp <adrianp@pkgsrc.org> | 2009-01-04 01:08:52 +0000 |
commit | be52ce76659b4ae329cca78e133a53370f7cb835 (patch) | |
tree | 7d42cae0f578eab752bf6c050ad442a5f35cd64e /security/openvas-server | |
parent | e90c51714b8d2d7c6a813f34bdba2d72d1420cff (diff) | |
download | pkgsrc-be52ce76659b4ae329cca78e133a53370f7cb835.tar.gz |
OpenVAS stands for Open Vulnerability Assessment System and is a
network security scanner with associated tools like a graphical
user front-end. The core component is a server with a set of network
vulnerability tests (NVTs) to detect security problems in remote
systems and applications.
Diffstat (limited to 'security/openvas-server')
-rw-r--r-- | security/openvas-server/DESCR | 5 | ||||
-rw-r--r-- | security/openvas-server/Makefile | 35 | ||||
-rw-r--r-- | security/openvas-server/PLIST | 25 | ||||
-rw-r--r-- | security/openvas-server/buildlink3.mk | 19 | ||||
-rw-r--r-- | security/openvas-server/distinfo | 6 | ||||
-rw-r--r-- | security/openvas-server/files/openvasd.sh | 27 | ||||
-rw-r--r-- | security/openvas-server/options.mk | 17 | ||||
-rw-r--r-- | security/openvas-server/patches/patch-aa | 13 |
8 files changed, 147 insertions, 0 deletions
diff --git a/security/openvas-server/DESCR b/security/openvas-server/DESCR new file mode 100644 index 00000000000..c6339b9eb98 --- /dev/null +++ b/security/openvas-server/DESCR @@ -0,0 +1,5 @@ +OpenVAS stands for Open Vulnerability Assessment System and is a +network security scanner with associated tools like a graphical +user front-end. The core component is a server with a set of network +vulnerability tests (NVTs) to detect security problems in remote +systems and applications. diff --git a/security/openvas-server/Makefile b/security/openvas-server/Makefile new file mode 100644 index 00000000000..5ae08daa697 --- /dev/null +++ b/security/openvas-server/Makefile @@ -0,0 +1,35 @@ +# $NetBSD: Makefile,v 1.1.1.1 2009/01/04 01:11:55 adrianp Exp $ +# + +DISTNAME= openvas-server-2.0.0 +CATEGORIES= security +MASTER_SITES= http://wald.intevation.org/frs/download.php/550/ + +MAINTAINER= adrianp@NetBSD.org +HOMEPAGE= http://www.openvas.org/ +COMMENT= Server for the Open Vulnerability Assessment System + +.include "options.mk" + +GNU_CONFIGURE= YES +BUILD_DEFS+= VARBASE +USE_TOOLS+= pkg-config gettext +RCD_SCRIPTS= openvasd + +SUBST_CLASSES= user +SUBST_STAGE.user= post-patch +SUBST_FILES.user= openvas-adduser.in openvas-mkcert-client.in +SUBST_FILES.user+= openvas-mkcert.in openvas-rmuser.in +SUBST_SED.user= -e "s|/usr/bin/gettext|${BUILDLINK_PREFIX.gettext}/bin/gettext|g" +SUBST_MESSAGE.user= Fixing administrative scripts. + +CONFIGURE_ARGS+= --localstatedir=${VARBASE} + +.include "../../security/openvas-libraries/buildlink3.mk" +.include "../../security/openvas-libnasl/buildlink3.mk" +.include "../../security/libgcrypt/buildlink3.mk" +.include "../../security/gnutls/buildlink3.mk" +.include "../../security/gpgme/buildlink3.mk" +.include "../../net/libpcap/buildlink3.mk" +.include "../../devel/glib2/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/security/openvas-server/PLIST b/security/openvas-server/PLIST new file mode 100644 index 00000000000..fc4c96a84e4 --- /dev/null +++ b/security/openvas-server/PLIST @@ -0,0 +1,25 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2009/01/04 01:11:55 adrianp Exp $ +bin/openvas-mkcert-client +bin/openvas-mkrand +bin/openvasd-config +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/threadcompat.h +man/man1/openvas-mkcert-client.1 +man/man1/openvas-mkrand.1 +man/man1/openvasd-config.1 +man/man8/openvas-adduser.8 +man/man8/openvas-mkcert.8 +man/man8/openvas-rmuser.8 +man/man8/openvasd.8 +sbin/openvas-adduser +sbin/openvas-mkcert +sbin/openvas-rmuser +sbin/openvasd +share/examples/rc.d/openvasd +@unexec ${RMDIR} %D/include/openvas 2>/dev/null || ${TRUE} diff --git a/security/openvas-server/buildlink3.mk b/security/openvas-server/buildlink3.mk new file mode 100644 index 00000000000..cc0ad5d109f --- /dev/null +++ b/security/openvas-server/buildlink3.mk @@ -0,0 +1,19 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2009/01/04 01:11:55 adrianp Exp $ + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +OPENVAS_SERVER_BUILDLINK3_MK:= ${OPENVAS_SERVER_BUILDLINK3_MK}+ + +.if ${BUILDLINK_DEPTH} == "+" +BUILDLINK_DEPENDS+= openvas-server +.endif + +BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nopenvas-server} +BUILDLINK_PACKAGES+= openvas-server +BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}openvas-server + +.if ${OPENVAS_SERVER_BUILDLINK3_MK} == "+" +BUILDLINK_API_DEPENDS.openvas-server+= openvas-server>=2.0.0 +BUILDLINK_PKGSRCDIR.openvas-server?= ../../security/openvas-server +.endif # OPENVAS_SERVER_BUILDLINK3_MK + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} diff --git a/security/openvas-server/distinfo b/security/openvas-server/distinfo new file mode 100644 index 00000000000..26d57e97ba9 --- /dev/null +++ b/security/openvas-server/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2009/01/04 01:11:55 adrianp Exp $ + +SHA1 (openvas-server-2.0.0.tar.gz) = 843053ee5a335b26fade26ab07155db8d5786dfa +RMD160 (openvas-server-2.0.0.tar.gz) = 6df43c13df73064b44dbadd225ee6f02dbf5f5c0 +Size (openvas-server-2.0.0.tar.gz) = 328350 bytes +SHA1 (patch-aa) = 2434480de3558cff73a4a47093abccb3853e9aaf diff --git a/security/openvas-server/files/openvasd.sh b/security/openvas-server/files/openvasd.sh new file mode 100644 index 00000000000..018ca92a619 --- /dev/null +++ b/security/openvas-server/files/openvasd.sh @@ -0,0 +1,27 @@ +#!@RCD_SCRIPTS_SHELL@ +# +# $NetBSD: openvasd.sh,v 1.1.1.1 2009/01/04 01:11:55 adrianp Exp $ +# +# PROVIDE: openvasd +# REQUIRE: network +# + +if [ -f /etc/rc.subr ] +then + . /etc/rc.subr +fi + +name="openvasd" +rcvar=${name} +command="@PREFIX@/sbin/${name}" +command_args="-D -q" +pidfile="@VARBASE@/run/${name}.pid" + +if [ -f /etc/rc.subr ] +then + load_rc_config $name + run_rc_command "$1" +else + echo -n ' ${name}' + exec ${command} ${openvasd_flags} ${command_args} +fi diff --git a/security/openvas-server/options.mk b/security/openvas-server/options.mk new file mode 100644 index 00000000000..bde6e827735 --- /dev/null +++ b/security/openvas-server/options.mk @@ -0,0 +1,17 @@ +# $NetBSD: options.mk,v 1.1.1.1 2009/01/04 01:11:55 adrianp Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.openvas-server + +PKG_SUPPORTED_OPTIONS= x11 + +.include "../../mk/bsd.options.mk" + +### +### X11 support +### +.if !empty(PKG_OPTIONS:Mx11) +USE_X11=YES +CONFIGURE_ARGS+= --with-x +.else +CONFIGURE_ARGS+= --without-x +.endif diff --git a/security/openvas-server/patches/patch-aa b/security/openvas-server/patches/patch-aa new file mode 100644 index 00000000000..db034bb8399 --- /dev/null +++ b/security/openvas-server/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1.1.1 2009/01/04 01:11:55 adrianp Exp $ + +--- openvas.tmpl.in.orig 2008-12-16 13:03:12.000000000 +0000 ++++ openvas.tmpl.in +@@ -111,7 +111,7 @@ LIBOPENVASCONFIG=@LIBOPENVASCONFIG@ + OPENVASLIBNASLCONFIG=@OPENVASLIBNASLCONFIG@ + # libraries + GLIB_CFLAGS=@GLIB_CFLAGS@ +-GLIB_LIBS=@GLIB_LIBS@ ++GLIB_LIBS=@GLIB_LIBS@ -lgcrypt + DL_LIB=@dl_lib@ + RESOLV_LIB=@resolv_lib@ + SOCKET_LIB=@socket_lib@ |