From 14f465acd19bfa03cfb59ffc22704d5d5981310a Mon Sep 17 00:00:00 2001 From: edwin Date: Wed, 4 Jun 2008 13:15:44 +0000 Subject: [NEW PORT] security/openvas-libraries: Libraries for OpenVAS 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/ PR: ports/123127 Submitted by: Tomoyuki Sakurai --- security/Makefile | 1 + security/openvas-libraries/Makefile | 27 +++++++++++++ security/openvas-libraries/distinfo | 3 ++ security/openvas-libraries/files/patch-configure | 43 +++++++++++++++++++++ .../files/patch-libopenvas-ftp_funcs.c | 10 +++++ .../files/patch-libopenvas-ids_send.c | 10 +++++ .../files/patch-libopenvas-network.h | 10 +++++ .../files/patch-libopenvas-pcap.c | 23 +++++++++++ .../files/patch-libopenvas-plugutils.c | 11 ++++++ .../files/patch-libopenvas-popen.c | 10 +++++ .../files/patch-openvas-libraries.tmpl.in | 11 ++++++ .../openvas-libraries/openvas-libraries-1.0.1.tbz | Bin 0 -> 212061 bytes security/openvas-libraries/pkg-descr | 6 +++ security/openvas-libraries/pkg-plist | 36 +++++++++++++++++ 14 files changed, 201 insertions(+) create mode 100644 security/openvas-libraries/Makefile create mode 100644 security/openvas-libraries/distinfo create mode 100644 security/openvas-libraries/files/patch-configure create mode 100644 security/openvas-libraries/files/patch-libopenvas-ftp_funcs.c create mode 100644 security/openvas-libraries/files/patch-libopenvas-ids_send.c create mode 100644 security/openvas-libraries/files/patch-libopenvas-network.h create mode 100644 security/openvas-libraries/files/patch-libopenvas-pcap.c create mode 100644 security/openvas-libraries/files/patch-libopenvas-plugutils.c create mode 100644 security/openvas-libraries/files/patch-libopenvas-popen.c create mode 100644 security/openvas-libraries/files/patch-openvas-libraries.tmpl.in create mode 100644 security/openvas-libraries/openvas-libraries-1.0.1.tbz create mode 100644 security/openvas-libraries/pkg-descr create mode 100644 security/openvas-libraries/pkg-plist (limited to 'security') diff --git a/security/Makefile b/security/Makefile index e2f44afd6942..1c1b1710e521 100644 --- a/security/Makefile +++ b/security/Makefile @@ -315,6 +315,7 @@ SUBDIR += openssl-stable SUBDIR += openvas-client SUBDIR += openvas-libnasl + SUBDIR += openvas-libraries SUBDIR += openvpn SUBDIR += openvpn-admin SUBDIR += openvpn-auth-ldap diff --git a/security/openvas-libraries/Makefile b/security/openvas-libraries/Makefile new file mode 100644 index 000000000000..a143340cd2fd --- /dev/null +++ b/security/openvas-libraries/Makefile @@ -0,0 +1,27 @@ +# New ports collection makefile for: openvas-libraries +# Date created: 2008-04-26 +# Whom: Tomoyuki Sakurai +# +# $FreeBSD$ +# + +PORTNAME= openvas-libraries +PORTVERSION= 1.0.1 +CATEGORIES= security +MASTER_SITES= http://wald.intevation.org/frs/download.php/419/ + +MAINTAINER= cherry@trombik.org +COMMENT= Libraries for OpenVAS + +LIB_DEPENDS= gnutls.26:${PORTSDIR}/security/gnutls + +LDFLAGS+= -L${LOCALBASE}/lib +CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" +GNU_CONFIGURE= yes +USE_LDCONFIG= yes + +MAN1= libopenvas-config.1 + +.include "${.CURDIR}/../../security/openvas-server/Makefile.common" + +.include diff --git a/security/openvas-libraries/distinfo b/security/openvas-libraries/distinfo new file mode 100644 index 000000000000..28b3c7abb215 --- /dev/null +++ b/security/openvas-libraries/distinfo @@ -0,0 +1,3 @@ +MD5 (openvas-libraries-1.0.1.tar.gz) = 59eff43239e05bed77f2b3e789e0110b +SHA256 (openvas-libraries-1.0.1.tar.gz) = 6d423d82d6e71e519df79596d30fad6ffefd480ed8a0dd7282fb5b749cee72e3 +SIZE (openvas-libraries-1.0.1.tar.gz) = 312409 diff --git a/security/openvas-libraries/files/patch-configure b/security/openvas-libraries/files/patch-configure new file mode 100644 index 000000000000..48f5768c9321 --- /dev/null +++ b/security/openvas-libraries/files/patch-configure @@ -0,0 +1,43 @@ +--- configure.orig 2008-03-27 03:57:28.000000000 +0900 ++++ configure 2008-04-26 22:00:22.000000000 +0900 +@@ -8136,7 +8136,7 @@ + echo $ECHO_N "(cached) $ECHO_C" >&6 + else + ac_check_lib_save_LIBS=$LIBS +-LIBS="-lresolv $LIBS" ++LIBS="$LIBS" + cat >conftest.$ac_ext <<_ACEOF + /* confdefs.h. */ + _ACEOF +@@ -8192,7 +8192,7 @@ + { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___dn_expand" >&5 + echo "${ECHO_T}$ac_cv_lib_resolv___dn_expand" >&6; } + if test $ac_cv_lib_resolv___dn_expand = yes; then +- LIBS="-lresolv $LIBS" ++ LIBS="$LIBS" + else + { { echo "$as_me:$LINENO: error: you need to install resolve library with development files" >&5 + echo "$as_me: error: you need to install resolve library with development files" >&2;} +@@ -8290,11 +8290,11 @@ + #ifdef __cplusplus + extern "C" + #endif +-char pcap_restart (); ++/* char pcap_restart (); */ + int + main () + { +-return pcap_restart (); ++return 0 /* pcap_restart (); */ + ; + return 0; + } +@@ -12909,7 +12909,7 @@ + echo $ECHO_N "(cached) $ECHO_C" >&6 + else + ac_check_lib_save_LIBS=$LIBS +-LIBS="-lresolv $LIBS" ++LIBS="$LIBS" + cat >conftest.$ac_ext <<_ACEOF + /* confdefs.h. */ + _ACEOF diff --git a/security/openvas-libraries/files/patch-libopenvas-ftp_funcs.c b/security/openvas-libraries/files/patch-libopenvas-ftp_funcs.c new file mode 100644 index 000000000000..0e8fb55bf0d7 --- /dev/null +++ b/security/openvas-libraries/files/patch-libopenvas-ftp_funcs.c @@ -0,0 +1,10 @@ +--- libopenvas/ftp_funcs.c.orig 2008-04-26 23:23:23.000000000 +0900 ++++ libopenvas/ftp_funcs.c 2008-04-26 23:24:01.000000000 +0900 +@@ -32,6 +32,7 @@ + #include + + #include "network.h" ++#include + + int ftp_log_in(int soc, char * username, char * passwd) + { diff --git a/security/openvas-libraries/files/patch-libopenvas-ids_send.c b/security/openvas-libraries/files/patch-libopenvas-ids_send.c new file mode 100644 index 000000000000..e8d15af4e8cc --- /dev/null +++ b/security/openvas-libraries/files/patch-libopenvas-ids_send.c @@ -0,0 +1,10 @@ +--- libopenvas/ids_send.c.orig 2008-04-26 23:55:47.000000000 +0900 ++++ libopenvas/ids_send.c 2008-04-26 23:56:02.000000000 +0900 +@@ -36,6 +36,7 @@ + #include + #include + #include ++#include + + #include "arglists.h" + #include "bpf_share.h" diff --git a/security/openvas-libraries/files/patch-libopenvas-network.h b/security/openvas-libraries/files/patch-libopenvas-network.h new file mode 100644 index 000000000000..202f34b5adae --- /dev/null +++ b/security/openvas-libraries/files/patch-libopenvas-network.h @@ -0,0 +1,10 @@ +--- libopenvas/network.h.orig 2008-04-26 23:22:23.000000000 +0900 ++++ libopenvas/network.h 2008-04-26 23:21:49.000000000 +0900 +@@ -27,6 +27,7 @@ + #define OPENVAS_NETWORK_H + + #include "arglists.h" ++#include + + /* Plugin specific network functions */ + int open_sock_tcp(struct arglist * , unsigned int, int ); diff --git a/security/openvas-libraries/files/patch-libopenvas-pcap.c b/security/openvas-libraries/files/patch-libopenvas-pcap.c new file mode 100644 index 000000000000..8bad6e2015ce --- /dev/null +++ b/security/openvas-libraries/files/patch-libopenvas-pcap.c @@ -0,0 +1,23 @@ +--- libopenvas/pcap.c.orig 2008-03-21 06:25:01.000000000 +0900 ++++ libopenvas/pcap.c 2008-04-26 23:47:15.000000000 +0900 +@@ -16,9 +16,7 @@ + * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +-#include + #include +-#include + #include + #include + #include +@@ -28,6 +26,10 @@ + #include + #include + #include ++#include ++#include ++#include ++#include + + #include "bpf_share.h" + #include "pcap_openvas.h" diff --git a/security/openvas-libraries/files/patch-libopenvas-plugutils.c b/security/openvas-libraries/files/patch-libopenvas-plugutils.c new file mode 100644 index 000000000000..e34a78ba10e5 --- /dev/null +++ b/security/openvas-libraries/files/patch-libopenvas-plugutils.c @@ -0,0 +1,11 @@ +--- libopenvas/plugutils.c.orig 2008-04-26 22:03:11.000000000 +0900 ++++ libopenvas/plugutils.c 2008-04-26 22:03:21.000000000 +0900 +@@ -35,7 +35,7 @@ + #include + #include + #include +-#include ++#include + #include + + #include "arglists.h" diff --git a/security/openvas-libraries/files/patch-libopenvas-popen.c b/security/openvas-libraries/files/patch-libopenvas-popen.c new file mode 100644 index 000000000000..4f361cff18cd --- /dev/null +++ b/security/openvas-libraries/files/patch-libopenvas-popen.c @@ -0,0 +1,10 @@ +--- libopenvas/popen.c.orig 2008-04-26 23:50:53.000000000 +0900 ++++ libopenvas/popen.c 2008-04-26 23:51:11.000000000 +0900 +@@ -26,6 +26,7 @@ + #include + #include + #include ++#include + + #include "system.h" + diff --git a/security/openvas-libraries/files/patch-openvas-libraries.tmpl.in b/security/openvas-libraries/files/patch-openvas-libraries.tmpl.in new file mode 100644 index 000000000000..232183bd4c46 --- /dev/null +++ b/security/openvas-libraries/files/patch-openvas-libraries.tmpl.in @@ -0,0 +1,11 @@ +--- openvas-libraries.tmpl.in.orig 2008-04-26 22:46:43.000000000 +0900 ++++ openvas-libraries.tmpl.in 2008-04-26 22:47:03.000000000 +0900 +@@ -45,7 +45,7 @@ + + libsdir=${rootdir}/libs + top_builddir = @PWDD@ +-include= -I. -I$(rootdir)/include ++include= -I. -I$(rootdir)/include -I$(includedir) + lib_dir=@libdir@ + USE_CIPHER=@cipher_cflags@ + INSTALL=@INSTALL@ diff --git a/security/openvas-libraries/openvas-libraries-1.0.1.tbz b/security/openvas-libraries/openvas-libraries-1.0.1.tbz new file mode 100644 index 000000000000..988cbbda0491 Binary files /dev/null and b/security/openvas-libraries/openvas-libraries-1.0.1.tbz differ diff --git a/security/openvas-libraries/pkg-descr b/security/openvas-libraries/pkg-descr new file mode 100644 index 000000000000..250f4bad0e3d --- /dev/null +++ b/security/openvas-libraries/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-libraries/pkg-plist b/security/openvas-libraries/pkg-plist new file mode 100644 index 000000000000..2823a913e5dc --- /dev/null +++ b/security/openvas-libraries/pkg-plist @@ -0,0 +1,36 @@ +@comment $FreeBSD$ +bin/libopenvas-config +lib/libopenvas.so.1 +lib/libopenvas.so +lib/libopenvas.la +lib/libopenvas.a +lib/libopenvas_hg.so.1 +lib/libopenvas_hg.so +lib/libopenvas_hg.la +lib/libopenvas_hg.a + +include/openvas/hosts_gatherer.h +include/openvas/hg_utils.h +include/openvas/libopenvas.h +include/openvas/libvers.h +include/openvas/getopt.h +include/openvas/arglists.h +include/openvas/bpf_share.h +include/openvas/ftp_funcs.h +include/openvas/harglists.h +include/openvas/kb.h +include/openvas/network.h +include/openvas/pcap_openvas.h +include/openvas/plugutils.h +include/openvas/popen.h +include/openvas/proctitle.h +include/openvas/rand.h +include/openvas/resolve.h +include/openvas/scanners_utils.h +include/openvas/services1.h +include/openvas/share_fd.h +include/openvas/store.h +include/openvas/system.h +include/openvas/www_funcs.h + +@dirrm include/openvas -- cgit