Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Aug 2017 22:36:55 +0000 (UTC)
From:      Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r447295 - in head/security: . openvas9-libraries openvas9-libraries/files
Message-ID:  <201708032236.v73MatlM075598@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: acm
Date: Thu Aug  3 22:36:54 2017
New Revision: 447295
URL: https://svnweb.freebsd.org/changeset/ports/447295

Log:
  - New port: security/openvas9-libraries
  
  The Open Vulnerability Assessment System (OpenVAS) is a framework of several
  services and tools offering a comprehensive and powerful vulnerability
  scanning and vulnerability management solution.
  
  This package contains core libraries.
  
  WWW: http://www.openvas.org/

Added:
  head/security/openvas9-libraries/
  head/security/openvas9-libraries/Makefile   (contents, props changed)
  head/security/openvas9-libraries/distinfo   (contents, props changed)
  head/security/openvas9-libraries/files/
  head/security/openvas9-libraries/files/patch-CMakeLists.txt   (contents, props changed)
  head/security/openvas9-libraries/files/patch-base-openvas_networking.c   (contents, props changed)
  head/security/openvas9-libraries/files/patch-base-openvas_networking.h   (contents, props changed)
  head/security/openvas9-libraries/files/patch-misc-openvas_proctitle.c   (contents, props changed)
  head/security/openvas9-libraries/files/patch-misc-openvas_server.h   (contents, props changed)
  head/security/openvas9-libraries/files/patch-misc-pcap.c   (contents, props changed)
  head/security/openvas9-libraries/files/patch-misc-pcap_openvas.h   (contents, props changed)
  head/security/openvas9-libraries/files/patch-nasl-capture_packet.c   (contents, props changed)
  head/security/openvas9-libraries/files/patch-nasl-nasl_builtin_openvas_tcp_scanner.c   (contents, props changed)
  head/security/openvas9-libraries/files/patch-nasl-nasl_builtin_synscan.c   (contents, props changed)
  head/security/openvas9-libraries/files/patch-nasl-nasl_packet_forgery.c   (contents, props changed)
  head/security/openvas9-libraries/files/patch-nasl-nasl_packet_forgery_v6.c   (contents, props changed)
  head/security/openvas9-libraries/files/patch-nasl-nasl_raw.h   (contents, props changed)
  head/security/openvas9-libraries/files/patch-nasl-nasl_socket.c   (contents, props changed)
  head/security/openvas9-libraries/pkg-descr   (contents, props changed)
  head/security/openvas9-libraries/pkg-plist   (contents, props changed)
Modified:
  head/security/Makefile

Modified: head/security/Makefile
==============================================================================
--- head/security/Makefile	Thu Aug  3 22:32:53 2017	(r447294)
+++ head/security/Makefile	Thu Aug  3 22:36:54 2017	(r447295)
@@ -438,6 +438,7 @@
     SUBDIR += openvas8-libraries
     SUBDIR += openvas8-manager
     SUBDIR += openvas8-scanner
+    SUBDIR += openvas9-libraries
     SUBDIR += openvpn
     SUBDIR += openvpn-admin
     SUBDIR += openvpn-auth-ldap

Added: head/security/openvas9-libraries/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/openvas9-libraries/Makefile	Thu Aug  3 22:36:54 2017	(r447295)
@@ -0,0 +1,19 @@
+# $FreeBSD$
+
+PORTNAME=	openvas9-libraries
+PORTVERSION=	9.0.1
+MASTER_SITES=	http://wald.intevation.org/frs/download.php/2420/
+
+COMMENT=	OpenVAS 9 libraries
+
+CONFLICTS=	${PORTNAME:S/${OPENVAS_VER}/8/}-*
+
+MASTERDIR=	${.CURDIR}/../../security/openvas8-libraries
+
+DISTINFO_FILE=	${.CURDIR}/distinfo
+PATCHDIR=	${.CURDIR}/files
+PLIST=		${.CURDIR}/pkg-plist
+
+OPENVAS_VER=    9
+
+.include "${MASTERDIR}/Makefile"

Added: head/security/openvas9-libraries/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/openvas9-libraries/distinfo	Thu Aug  3 22:36:54 2017	(r447295)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1501786305
+SHA256 (openvas9/openvas-libraries-9.0.1.tar.gz) = 4ee3f8f8b082238ac3bc67437aab2069417c0c60342530acbec572e0708e5aeb
+SIZE (openvas9/openvas-libraries-9.0.1.tar.gz) = 649251

Added: head/security/openvas9-libraries/files/patch-CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/openvas9-libraries/files/patch-CMakeLists.txt	Thu Aug  3 22:36:54 2017	(r447295)
@@ -0,0 +1,57 @@
+--- CMakeLists.txt.orig	2017-03-14 10:42:29.104715000 -0500
++++ CMakeLists.txt	2017-03-14 10:46:19.999930000 -0500
+@@ -151,7 +151,7 @@
+ endif (NOT LIBDIR)
+ 
+ if (NOT LOCALSTATEDIR)
+-  set (LOCALSTATEDIR "${CMAKE_INSTALL_PREFIX}/var")
++  set (LOCALSTATEDIR "/var")
+ endif (NOT LOCALSTATEDIR)
+ 
+ if (NOT INCLUDEDIR)
+@@ -238,7 +238,7 @@
+     OUTPUT_STRIP_TRAILING_WHITESPACE)
+ 
+   message (STATUS "Looking for netsnmp...")
+-  find_library (SNMP snmp)
++  find_library (SNMP netsnmp)
+   message (STATUS "Looking for netsnmp... ${SNMP}")
+   if (SNMP)
+     execute_process (COMMAND net-snmp-config --libs
+@@ -262,7 +262,7 @@
+ 
+ endif (NOT MINGW)
+ 
+-set (HARDENING_FLAGS "-Wformat -Wformat-security -O2 -D_FORTIFY_SOURCE=2 -fstack-protector")
++set (HARDENING_FLAGS "-Wformat -Wformat-security -Wl,-z,relro -Wl,-z,now")
+ set (LINKER_HARDENING_FLAGS "-Wl,-z,relro -Wl,-z,now")
+ set (CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Werror")
+ 
+@@ -306,20 +306,20 @@
+ ## Install
+ 
+ install (FILES doc/openvas-nasl.1
+-         DESTINATION ${DATADIR}/man/man1 )
++         DESTINATION man/man1 )
+ install (FILES doc/openvas-nasl-lint.1
+-         DESTINATION ${DATADIR}/man/man1 )
++         DESTINATION man/man1 )
+ 
+ install (FILES ${CMAKE_BINARY_DIR}/libopenvas_base.pc
+-         DESTINATION ${LIBDIR}/pkgconfig)
++         DESTINATION libdata/pkgconfig)
+ install (FILES ${CMAKE_BINARY_DIR}/libopenvas_omp.pc
+-         DESTINATION ${LIBDIR}/pkgconfig)
++         DESTINATION libdata/pkgconfig)
+ install (FILES ${CMAKE_BINARY_DIR}/libopenvas_misc.pc
+-         DESTINATION ${LIBDIR}/pkgconfig)
++         DESTINATION libdata/pkgconfig)
+ install (FILES ${CMAKE_BINARY_DIR}/libopenvas_nasl.pc
+-         DESTINATION ${LIBDIR}/pkgconfig)
++         DESTINATION libdata/pkgconfig)
+ install (FILES ${CMAKE_BINARY_DIR}/libopenvas_osp.pc
+-         DESTINATION ${LIBDIR}/pkgconfig)
++         DESTINATION libdata/pkgconfig)
+ 
+ install (DIRECTORY DESTINATION ${OPENVAS_LOG_DIR})
+ install (DIRECTORY DESTINATION ${OPENVAS_DATA_DIR})

Added: head/security/openvas9-libraries/files/patch-base-openvas_networking.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/openvas9-libraries/files/patch-base-openvas_networking.c	Thu Aug  3 22:36:54 2017	(r447295)
@@ -0,0 +1,52 @@
+--- base/openvas_networking.c.orig	2015-12-08 07:07:23 UTC
++++ base/openvas_networking.c
+@@ -38,13 +38,13 @@
+  /* Global variables */
+ 
+ /* Source interface name eg. eth1. */
+-char global_source_iface[IFNAMSIZ] = { '\0' };
++char global_source_iface[IFNAMSIZ];
+ 
+ /* Source IPv4 address. */
+-struct in_addr global_source_addr = { .s_addr = 0 };
++struct in_addr global_source_addr;
+ 
+ /* Source IPv6 address. */
+-struct in6_addr global_source_addr6 = { .s6_addr32 = { 0, 0, 0, 0 } };
++struct in6_addr global_source_addr6;
+ 
+  /* Source Interface/Address related functions. */
+ 
+@@ -230,10 +230,19 @@ ipv4_as_ipv6 (const struct in_addr *ip4,
+   if (ip4 == NULL || ip6 == NULL)
+     return;
+ 
+-  ip6->s6_addr32[0] = 0;
+-  ip6->s6_addr32[1] = 0;
+-  ip6->s6_addr32[2] = htonl (0xffff);
+-  memcpy (&ip6->s6_addr32[3], ip4, sizeof (struct in_addr));
++  ip6->s6_addr[0] = 0;
++  ip6->s6_addr[1] = 0;
++  ip6->s6_addr[2] = 0;
++  ip6->s6_addr[3] = 0;
++  ip6->s6_addr[4] = 0;
++  ip6->s6_addr[5] = 0;
++  ip6->s6_addr[6] = 0;
++  ip6->s6_addr[7] = 0;
++  ip6->s6_addr[8] = 0;
++  ip6->s6_addr[9] = 0;
++  ip6->s6_addr[10] = 0xff;
++  ip6->s6_addr[11] = 0xff;
++  memcpy (&ip6->s6_addr[12], ip4, sizeof (struct in_addr));
+ }
+ 
+ char *
+@@ -246,7 +255,7 @@ addr6_as_str (const struct in6_addr *add
+ 
+   str = g_malloc0 (INET6_ADDRSTRLEN);
+   if (IN6_IS_ADDR_V4MAPPED (addr6))
+-    inet_ntop (AF_INET, &addr6->s6_addr32[3], str, INET6_ADDRSTRLEN);
++    inet_ntop (AF_INET, &addr6->s6_addr[12], str, INET6_ADDRSTRLEN);
+   else
+     inet_ntop (AF_INET6, addr6, str, INET6_ADDRSTRLEN);
+   return str;

Added: head/security/openvas9-libraries/files/patch-base-openvas_networking.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/openvas9-libraries/files/patch-base-openvas_networking.h	Thu Aug  3 22:36:54 2017	(r447295)
@@ -0,0 +1,10 @@
+--- base/openvas_networking.h.orig	2015-12-08 07:07:23 UTC
++++ base/openvas_networking.h
+@@ -28,6 +28,7 @@
+ #include <string.h>
+ #include <arpa/inet.h>
+ #include <net/if.h>
++#include <netinet/in.h>
+ #include <sys/types.h>
+ #include <ifaddrs.h>
+ #include <netdb.h>

Added: head/security/openvas9-libraries/files/patch-misc-openvas_proctitle.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/openvas9-libraries/files/patch-misc-openvas_proctitle.c	Thu Aug  3 22:36:54 2017	(r447295)
@@ -0,0 +1,38 @@
+--- misc/openvas_proctitle.c	2017-08-03 14:59:39.601267000 -0500
++++ misc/openvas_proctitle.c	2017-08-03 15:39:18.158798000 -0500
+@@ -29,8 +29,6 @@
+ 
+ #include "openvas_proctitle.h"
+ 
+-extern const char *__progname;
+-extern const char *__progname_full;
+ static int argv_len;
+ static char **old_argv;
+ extern char **environ;
+@@ -47,14 +45,10 @@
+ {
+   int i = 0;
+   char **envp = environ;
+-  char *new_progname, *new_progname_full;
+ 
+   if (argv == NULL)
+     return;
+ 
+-  new_progname = strdup (__progname);
+-  new_progname_full = strdup (__progname_full);
+-
+   /* Move environ to new memory, to be able to reuse older one. */
+   while (envp[i]) i++;
+   environ = g_malloc0 (sizeof (char *) * (i + 1));
+@@ -70,11 +64,6 @@
+     argv_len = envp[i-1] + strlen (envp[i-1]) - old_argv[0];
+   else
+     argv_len = old_argv[argc-1] + strlen (old_argv[argc-1]) - old_argv[0];
+-
+-  /* Seems like these are in the moved environment, so reset them.  Idea from
+-   * proctitle.cpp in KDE libs.  */
+-  __progname = new_progname;
+-  __progname_full = new_progname_full;
+ }
+ 
+ /**

Added: head/security/openvas9-libraries/files/patch-misc-openvas_server.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/openvas9-libraries/files/patch-misc-openvas_server.h	Thu Aug  3 22:36:54 2017	(r447295)
@@ -0,0 +1,10 @@
+--- misc/openvas_server.h.orig	2015-08-03 10:14:29 UTC
++++ misc/openvas_server.h
+@@ -48,6 +48,7 @@ extern "C"
+ #ifdef _WIN32
+ #include <winsock2.h>
+ #else
++#include <netinet/in.h>
+ #include <netinet/ip.h>
+ #endif
+ 

Added: head/security/openvas9-libraries/files/patch-misc-pcap.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/openvas9-libraries/files/patch-misc-pcap.c	Thu Aug  3 22:36:54 2017	(r447295)
@@ -0,0 +1,52 @@
+--- misc/pcap.c.orig	2015-08-03 10:14:29 UTC
++++ misc/pcap.c
+@@ -631,13 +631,12 @@ getinterfaces (int *howmany)
+   static struct interface_info mydevs[1024];
+   int numinterfaces = 0;
+   int sd;
+-  int len;
++  size_t n;
+   char *p;
+   char buf[10240];
+   struct ifconf ifc;
+   struct ifreq *ifr;
+   struct sockaddr_in *sin;
+-  char *bufp;
+ 
+   /* Dummy socket for ioctl. */
+   sd = socket (AF_INET, SOCK_DGRAM, 0);
+@@ -655,12 +654,8 @@ getinterfaces (int *howmany)
+     log_legacy_write
+      ("getinterfaces: SIOCGIFCONF claims you have no network interfaces!");
+ 
+-  len = sizeof (struct ifmap);
+-
+-  for (bufp = buf; bufp && *bufp && (bufp < (buf + ifc.ifc_len));
+-       bufp += sizeof (ifr->ifr_name) + len)
++  for (ifr = (struct ifreq *) buf; (char *) ifr < buf + ifc.ifc_len; )
+     {
+-      ifr = (struct ifreq *) bufp;
+       sin = (struct sockaddr_in *) &ifr->ifr_addr;
+       memcpy (&(mydevs[numinterfaces].addr), (char *) &(sin->sin_addr),
+               sizeof (struct in_addr));
+@@ -670,6 +665,7 @@ getinterfaces (int *howmany)
+       strncpy (mydevs[numinterfaces].name, ifr->ifr_name, 63);
+       mydevs[numinterfaces].name[63] = '\0';
+       numinterfaces++;
++      mydevs[numinterfaces].name[0] = '\0';
+       if (numinterfaces == 1023)
+         {
+           log_legacy_write
+@@ -677,7 +673,11 @@ getinterfaces (int *howmany)
+             " Things may not work right.");
+           break;
+         }
+-      mydevs[numinterfaces].name[0] = '\0';
++      n = offsetof(struct ifreq, ifr_addr) + ifr->ifr_addr.sa_len;
++      if (n < sizeof(*ifr))
++          ifr++;
++      else
++          ifr = (struct ifreq *)((char *)ifr + n);
+     }
+ 
+   // If output parameter given, set value

Added: head/security/openvas9-libraries/files/patch-misc-pcap_openvas.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/openvas9-libraries/files/patch-misc-pcap_openvas.h	Thu Aug  3 22:36:54 2017	(r447295)
@@ -0,0 +1,10 @@
+--- misc/pcap_openvas.h.orig	2015-08-03 10:14:29 UTC
++++ misc/pcap_openvas.h
+@@ -26,6 +26,7 @@
+ #ifndef OPENVAS_PCAP_H
+ #define OPENVAS_PCAP_H
+ 
++#include <netinet/in.h>
+ #include <pcap.h>
+ 
+ int v6_is_local_ip (struct in6_addr *);

Added: head/security/openvas9-libraries/files/patch-nasl-capture_packet.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/openvas9-libraries/files/patch-nasl-capture_packet.c	Thu Aug  3 22:36:54 2017	(r447295)
@@ -0,0 +1,10 @@
+--- nasl/capture_packet.c.orig	2015-08-03 10:14:31 UTC
++++ nasl/capture_packet.c
+@@ -17,6 +17,7 @@
+  *
+  */
+ 
++#include <sys/socket.h>         /* for AF_INET6 */
+ #include <arpa/inet.h>          /* for inet_ntoa */
+ #include <string.h>             /* for bcopy */
+ #include <glib.h>               /* for gfree */

Added: head/security/openvas9-libraries/files/patch-nasl-nasl_builtin_openvas_tcp_scanner.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/openvas9-libraries/files/patch-nasl-nasl_builtin_openvas_tcp_scanner.c	Thu Aug  3 22:36:54 2017	(r447295)
@@ -0,0 +1,11 @@
+--- nasl/nasl_builtin_openvas_tcp_scanner.c.orig	2015-08-03 10:14:31 UTC
++++ nasl/nasl_builtin_openvas_tcp_scanner.c
+@@ -473,7 +473,7 @@ banner_grab(const struct in6_addr *pia, 
+ #endif
+         if(IN6_IS_ADDR_V4MAPPED(pia))
+         {
+-          sa.sin_addr.s_addr = pia->s6_addr32[3];
++          memcpy(&sa.sin_addr.s_addr, &pia->s6_addr[12], 4);
+           sa.sin_family = AF_INET;
+           sa.sin_port = htons(port);
+           len = sizeof(struct sockaddr_in);

Added: head/security/openvas9-libraries/files/patch-nasl-nasl_builtin_synscan.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/openvas9-libraries/files/patch-nasl-nasl_builtin_synscan.c	Thu Aug  3 22:36:54 2017	(r447295)
@@ -0,0 +1,20 @@
+--- nasl/nasl_builtin_synscan.c.orig	2015-08-03 10:14:31 UTC
++++ nasl/nasl_builtin_synscan.c
+@@ -692,7 +692,7 @@ scan (struct arglist * env, char* hostna
+   if (IN6_IS_ADDR_V4MAPPED (dst6))
+     {
+       family = AF_INET;
+-      dst.s_addr = dst6->s6_addr32[3];
++      memcpy(&dst.s_addr, &dst6->s6_addr[12], 4);
+       soc = rawsocket (AF_INET);
+     }
+   else
+@@ -797,7 +797,7 @@ plugin_run_synscan (lex_ctxt * lexic)
+   struct timeval  tv;
+ #endif
+ 
+-  inaddr.s_addr = dst6->s6_addr32[3];
++  memcpy(&inaddr.s_addr, &dst6->s6_addr[12], 4);
+   dst = &inaddr;
+ 
+   if (islocalhost (dst))

Added: head/security/openvas9-libraries/files/patch-nasl-nasl_packet_forgery.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/openvas9-libraries/files/patch-nasl-nasl_packet_forgery.c	Thu Aug  3 22:36:54 2017	(r447295)
@@ -0,0 +1,56 @@
+--- nasl/nasl_packet_forgery.c.orig	2015-08-03 10:14:31 UTC
++++ nasl/nasl_packet_forgery.c
+@@ -146,7 +146,7 @@ forge_ip_packet (lex_ctxt * lexic)
+   if (s != NULL)
+     inet_aton (s, &pkt->ip_dst);
+   else
+-    pkt->ip_dst.s_addr = dst_addr->s6_addr32[3];
++    memcpy(&pkt->ip_dst.s_addr, &dst_addr->s6_addr[12], 4);
+ 
+   if (data != NULL)
+     {
+@@ -1400,7 +1400,7 @@ nasl_tcp_ping (lex_ctxt * lexic)
+ 
+   if (dst == NULL || (IN6_IS_ADDR_V4MAPPED (dst) != 1))
+     return NULL;
+-  inaddr.s_addr = dst->s6_addr32[3];
++  memcpy(&inaddr.s_addr, &dst->s6_addr[12], 4);
+   for (i = 0; i < sizeof (sports) / sizeof (int); i++)
+     {
+       if (sports[i] == 0)
+@@ -1422,7 +1422,7 @@ nasl_tcp_ping (lex_ctxt * lexic)
+     port = plug_get_host_open_port (script_infos);
+ 
+   if (islocalhost (&inaddr) > 0)
+-    src.s_addr = dst->s6_addr32[3];
++    memcpy(&src.s_addr, &dst->s6_addr[12], 4);
+   else
+     {
+       bzero (&src, sizeof (src));
+@@ -1536,7 +1536,7 @@ nasl_send_packet (lex_ctxt * lexic)
+ 
+   if (dstip == NULL || (IN6_IS_ADDR_V4MAPPED (dstip) != 1))
+     return NULL;
+-  inaddr.s_addr = dstip->s6_addr32[3];
++  memcpy(&inaddr.s_addr, &dstip->s6_addr[12], 4);
+   soc = socket (AF_INET, SOCK_RAW, IPPROTO_RAW);
+   if (soc < 0)
+     return NULL;
+@@ -1656,7 +1656,7 @@ nasl_pcap_next (lex_ctxt * lexic)
+         {
+           struct in_addr src;
+           bzero (&src, sizeof (src));
+-          inaddr.s_addr = dst->s6_addr32[3];
++          memcpy(&inaddr.s_addr, &dst->s6_addr[12], 4);
+           interface = routethrough (&inaddr, &src);
+         }
+       else
+@@ -1791,7 +1791,7 @@ nasl_send_capture (lex_ctxt * lexic)
+         {
+           struct in_addr src;
+           bzero (&src, sizeof (src));
+-          inaddr.s_addr = dst->s6_addr32[3];
++          memcpy(&inaddr.s_addr, &dst->s6_addr[12], 4);
+           interface = routethrough (&inaddr, &src);
+         }
+       else

Added: head/security/openvas9-libraries/files/patch-nasl-nasl_packet_forgery_v6.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/openvas9-libraries/files/patch-nasl-nasl_packet_forgery_v6.c	Thu Aug  3 22:36:54 2017	(r447295)
@@ -0,0 +1,10 @@
+--- nasl/nasl_packet_forgery_v6.c.orig	2015-08-03 10:14:31 UTC
++++ nasl/nasl_packet_forgery_v6.c
+@@ -43,6 +43,7 @@
+ #include <string.h>             /* for bcopy */
+ #include <sys/time.h>           /* for gettimeofday */
+ #include <unistd.h>             /* for close */
++#include <netinet/in.h>
+ #include <netinet/icmp6.h>      /* ICMPv6 */
+ 
+ #include "bpf_share.h"          /* for bpf_open_live */

Added: head/security/openvas9-libraries/files/patch-nasl-nasl_raw.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/openvas9-libraries/files/patch-nasl-nasl_raw.h	Thu Aug  3 22:36:54 2017	(r447295)
@@ -0,0 +1,11 @@
+--- nasl/nasl_raw.h.orig	2015-08-03 10:14:31 UTC
++++ nasl/nasl_raw.h
+@@ -43,6 +43,8 @@
+ 
+ #include <netinet/tcp.h>
+ #include <netinet/udp.h>
++#include <netinet/in.h>
++#include <netinet/ip.h>
+ #include <netinet/ip_icmp.h>
+ 
+ #endif

Added: head/security/openvas9-libraries/files/patch-nasl-nasl_socket.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/openvas9-libraries/files/patch-nasl-nasl_socket.c	Thu Aug  3 22:36:54 2017	(r447295)
@@ -0,0 +1,20 @@
+--- nasl/nasl_socket.c.orig	2015-12-08 07:07:22 UTC
++++ nasl/nasl_socket.c
+@@ -266,7 +266,7 @@ tryagain:
+   if (IN6_IS_ADDR_V4MAPPED (p))
+     {
+       bzero (&daddr, sizeof (daddr));
+-      daddr.sin_addr.s_addr = p->s6_addr32[3];
++      memcpy(&daddr.sin_addr.s_addr, &p->s6_addr[12], 4);
+       daddr.sin_family = AF_INET;
+       daddr.sin_port = htons (dport);
+       unblock_socket (sock);
+@@ -504,7 +504,7 @@ nasl_open_sock_udp (lex_ctxt * lexic)
+   if (IN6_IS_ADDR_V4MAPPED (ia))
+     {
+       bzero (&soca, sizeof (soca));
+-      soca.sin_addr.s_addr = ia->s6_addr32[3];
++      memcpy(&soca.sin_addr.s_addr, &ia->s6_addr[12], 4);
+       soca.sin_port = htons (port);
+       soca.sin_family = AF_INET;
+ 

Added: head/security/openvas9-libraries/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/openvas9-libraries/pkg-descr	Thu Aug  3 22:36:54 2017	(r447295)
@@ -0,0 +1,7 @@
+The Open Vulnerability Assessment System (OpenVAS) is a framework of several
+services and tools offering a comprehensive and powerful vulnerability
+scanning and vulnerability management solution.
+
+This package contains core libraries.
+
+WWW: http://www.openvas.org/

Added: head/security/openvas9-libraries/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/openvas9-libraries/pkg-plist	Thu Aug  3 22:36:54 2017	(r447295)
@@ -0,0 +1,70 @@
+bin/openvas-nasl
+bin/openvas-nasl-lint
+include/openvas/base/array.h
+include/openvas/base/credentials.h
+include/openvas/base/cvss.h
+include/openvas/base/drop_privileges.h
+include/openvas/base/gpgme_util.h
+include/openvas/base/kb.h
+include/openvas/base/nvti.h
+include/openvas/base/nvticache.h
+include/openvas/base/openvas_compress.h
+include/openvas/base/openvas_file.h
+include/openvas/base/openvas_hosts.h
+include/openvas/base/openvas_networking.h
+include/openvas/base/openvas_string.h
+include/openvas/base/pidfile.h
+include/openvas/base/pwpolicy.h
+include/openvas/base/settings.h
+include/openvas/misc/arglists.h
+include/openvas/misc/bpf_share.h
+include/openvas/misc/ftp_funcs.h
+include/openvas/misc/internal_com.h
+include/openvas/misc/ldap_connect_auth.h
+include/openvas/misc/network.h
+include/openvas/misc/nvt_categories.h
+include/openvas/misc/openvas_auth.h
+include/openvas/misc/openvas_logging.h
+include/openvas/misc/openvas_proctitle.h
+include/openvas/misc/openvas_server.h
+include/openvas/misc/openvas_ssh.h
+include/openvas/misc/openvas_uuid.h
+include/openvas/misc/pcap_openvas.h
+include/openvas/misc/plugutils.h
+include/openvas/misc/popen.h
+include/openvas/misc/prefs.h
+include/openvas/misc/radius.h
+include/openvas/misc/www_funcs.h
+include/openvas/nasl/nasl.h
+include/openvas/omp/omp.h
+include/openvas/omp/xml.h
+include/openvas/osp/osp.h
+lib/libopenvas_base.so
+lib/libopenvas_base.so.9
+lib/libopenvas_base.so.9.0.1
+lib/libopenvas_misc.so
+lib/libopenvas_misc.so.9
+lib/libopenvas_misc.so.9.0.1
+lib/libopenvas_nasl.so
+lib/libopenvas_nasl.so.9
+lib/libopenvas_nasl.so.9.0.1
+lib/libopenvas_omp.so
+lib/libopenvas_omp.so.9
+lib/libopenvas_omp.so.9.0.1
+lib/libopenvas_osp.so
+lib/libopenvas_osp.so.9
+lib/libopenvas_osp.so.9.0.1
+libdata/pkgconfig/libopenvas_base.pc
+libdata/pkgconfig/libopenvas_misc.pc
+libdata/pkgconfig/libopenvas_nasl.pc
+libdata/pkgconfig/libopenvas_omp.pc
+libdata/pkgconfig/libopenvas_osp.pc
+man/man1/openvas-nasl-lint.1.gz
+man/man1/openvas-nasl.1.gz
+@dir(,,700) etc/openvas/gnupg
+@dir share/openvas
+@dir /var/cache/openvas
+@dir(,,700) /var/lib/openvas/gnupg
+@dir /var/lib/openvas
+@dir /var/lib
+@dir /var/log/openvas



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708032236.v73MatlM075598>