pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Import openvas-scanner-5.0.7 as wip/openvas-manager.



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Tue Oct 11 23:05:11 2016 +0200
Changeset:	cdefccbb6b8c02b616775a2066c03fb598510f08

Added Files:
	openvas-manager/DESCR
	openvas-manager/Makefile
	openvas-manager/PLIST
	openvas-manager/distinfo
	openvas-manager/patches/patch-CMakeLists.txt
	openvas-manager/patches/patch-src_CMakeLists.txt
	openvas-manager/patches/patch-src_attack.c

Log Message:
Import openvas-scanner-5.0.7 as wip/openvas-manager.

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.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=cdefccbb6b8c02b616775a2066c03fb598510f08

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 openvas-manager/DESCR                            |  5 ++++
 openvas-manager/Makefile                         | 20 +++++++++++++
 openvas-manager/PLIST                            | 13 ++++++++
 openvas-manager/distinfo                         |  9 ++++++
 openvas-manager/patches/patch-CMakeLists.txt     | 38 ++++++++++++++++++++++++
 openvas-manager/patches/patch-src_CMakeLists.txt | 20 +++++++++++++
 openvas-manager/patches/patch-src_attack.c       | 18 +++++++++++
 7 files changed, 123 insertions(+)

diffs:
diff --git a/openvas-manager/DESCR b/openvas-manager/DESCR
new file mode 100644
index 0000000..c6339b9
--- /dev/null
+++ b/openvas-manager/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/openvas-manager/Makefile b/openvas-manager/Makefile
new file mode 100644
index 0000000..6493446
--- /dev/null
+++ b/openvas-manager/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.17 2016/09/19 13:04:27 wiz Exp $
+
+DISTNAME=	openvas-scanner-5.0.7
+CATEGORIES=	security
+MASTER_SITES=	http://wald.intevation.org/frs/download.php/2367/
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	http://www.openvas.org/
+COMMENT=	Open Vulnerability Assessment System Scanner
+LICENSE=	gnu-gpl-v2
+
+USE_CMAKE=	YES
+BUILD_DEFS+=	VARBASE
+USE_LANGUAGES=	c++ c
+USE_TOOLS+=	pkg-config
+
+CMAKE_ARGS+=	-DLOCALSTATEDIR:PATH=${VARBASE}
+
+.include "../../wip/openvas-libraries/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/openvas-manager/PLIST b/openvas-manager/PLIST
new file mode 100644
index 0000000..64ee2ad
--- /dev/null
+++ b/openvas-manager/PLIST
@@ -0,0 +1,13 @@
+@comment $NetBSD$
+bin/openvas-mkcert-client
+man/man1/openvas-mkcert-client.1
+man/man8/greenbone-nvt-sync.8
+man/man8/openvas-mkcert.8
+man/man8/openvas-nvt-sync.8
+man/man8/openvassd.8
+sbin/greenbone-nvt-sync
+sbin/openvas-mkcert
+sbin/openvas-nvt-sync
+sbin/openvassd
+share/doc/openvas-scanner/example_redis_2_4.conf
+share/doc/openvas-scanner/example_redis_2_6.conf
diff --git a/openvas-manager/distinfo b/openvas-manager/distinfo
new file mode 100644
index 0000000..772dca7
--- /dev/null
+++ b/openvas-manager/distinfo
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.6 2015/11/04 01:17:52 agc Exp $
+
+SHA1 (openvas-scanner-5.0.7.tar.gz) = ca5ba1a65ff34a8cb8c014cb09129434e319d689
+RMD160 (openvas-scanner-5.0.7.tar.gz) = 985332a803577eb9a1a7f964f776a5f672d802d3
+SHA512 (openvas-scanner-5.0.7.tar.gz) = 302adb2933dc7467dd189da632631f67c763e0b163b10502807922a6734fa693c8bf3f591d0ddba67cd335c57e60148c308c01cec64cac28cb9dca0345ffbb33
+Size (openvas-scanner-5.0.7.tar.gz) = 238419 bytes
+SHA1 (patch-CMakeLists.txt) = 14ba35b3d347ee17954a40d1a5828e8cadc4411f
+SHA1 (patch-src_CMakeLists.txt) = 054e43b35ed3a933ea421f27260e28409fc66333
+SHA1 (patch-src_attack.c) = 841ced33c0cdc34ff3662b719e81810f8c3f6419
diff --git a/openvas-manager/patches/patch-CMakeLists.txt b/openvas-manager/patches/patch-CMakeLists.txt
new file mode 100644
index 0000000..4e12702
--- /dev/null
+++ b/openvas-manager/patches/patch-CMakeLists.txt
@@ -0,0 +1,38 @@
+$NetBSD$
+
+Bump minimum CMake version to 3.0 to get libbacktrace detection.
+Fix path for installing man-pages.
+
+--- CMakeLists.txt.orig	2016-08-30 12:27:33.000000000 +0000
++++ CMakeLists.txt
+@@ -27,7 +27,7 @@ message ("-- Configuring the Scanner..."
+ 
+ project (openvas-scanner C)
+ 
+-cmake_minimum_required (VERSION 2.6)
++cmake_minimum_required (VERSION 3.0)
+ 
+ if (POLICY CMP0005)
+   cmake_policy (SET CMP0005 OLD)
+@@ -263,16 +263,18 @@ install (FILES ${CMAKE_BINARY_DIR}/tools
+          PERMISSIONS OWNER_EXECUTE OWNER_READ OWNER_WRITE
+                      GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
+ 
++include(GNUInstallDirs)
++
+ install (FILES ${CMAKE_SOURCE_DIR}/doc/openvas-mkcert-client.1
+-          DESTINATION ${DATADIR}/man/man1 )
++          DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 )
+ 
+ install (FILES ${CMAKE_BINARY_DIR}/doc/openvassd.8
+-         DESTINATION ${DATADIR}/man/man8 )
++         DESTINATION ${CMAKE_INSTALL_MANDIR}/man8 )
+ 
+ install (FILES ${CMAKE_SOURCE_DIR}/doc/openvas-mkcert.8
+                ${CMAKE_SOURCE_DIR}/doc/openvas-nvt-sync.8
+                ${CMAKE_SOURCE_DIR}/doc/greenbone-nvt-sync.8
+-         DESTINATION ${DATADIR}/man/man8 )
++         DESTINATION ${CMAKE_INSTALL_MANDIR}/man8 )
+ 
+ install (FILES ${CMAKE_BINARY_DIR}/doc/example_redis_2_4.conf
+                ${CMAKE_BINARY_DIR}/doc/example_redis_2_6.conf
diff --git a/openvas-manager/patches/patch-src_CMakeLists.txt b/openvas-manager/patches/patch-src_CMakeLists.txt
new file mode 100644
index 0000000..acd05f0
--- /dev/null
+++ b/openvas-manager/patches/patch-src_CMakeLists.txt
@@ -0,0 +1,20 @@
+$NetBSD$
+
+Detect and link with libbacktrace (if linking is needed).
+
+--- src/CMakeLists.txt.orig	2015-08-03 10:14:45.000000000 +0000
++++ src/CMakeLists.txt
+@@ -112,10 +112,12 @@ if (NVT_TIMEOUT)
+   add_definitions (-DNVT_TIMEOUT=${NVT_TIMEOUT})
+ endif (NVT_TIMEOUT)
+ 
++find_package(Backtrace)
++
+ target_link_libraries (openvassd ${LIBOPENVAS_NASL_LDFLAGS}
+                        ${LIBOPENVAS_BASE_LDFLAGS} ${LIBOPENVAS_MISC_LDFLAGS}
+                        ${LIBOPENVAS_OMP_LDFLAGS} ${GLIB_LDFLAGS}
+-                       ${GCRYPT_LDFLAGS})
++                       ${GCRYPT_LDFLAGS} ${Backtrace_LIBRARY})
+ 
+ ## Tests
+ 
diff --git a/openvas-manager/patches/patch-src_attack.c b/openvas-manager/patches/patch-src_attack.c
new file mode 100644
index 0000000..11c64e5
--- /dev/null
+++ b/openvas-manager/patches/patch-src_attack.c
@@ -0,0 +1,18 @@
+$NetBSD$
+
+Add NetBSD support.
+
+--- src/attack.c.orig	2016-08-25 12:07:28.000000000 +0000
++++ src/attack.c
+@@ -647,7 +647,11 @@ attack_start (struct attack_start_args *
+     {
+       char *txt_ip;
+       struct in_addr inaddr;
++#if defined(__NetBSD__)
++      memcpy(&inaddr.s_addr, &hostip->s6_addr[12], 4);
++#else
+       inaddr.s_addr = hostip->s6_addr32[3];
++#endif
+ 
+       if (IN6_IS_ADDR_V4MAPPED (hostip))
+         txt_ip = g_strdup (inet_ntoa (inaddr));


Home | Main Index | Thread Index | Old Index