pkgsrc-WIP-changes archive

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

Import openvas-manager-6.0.9 as wip/greenbone-security-assistant.



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Wed Oct 12 03:54:07 2016 +0200
Changeset:	e8b5c594fec8050298dcf6ab1ec8c8146f558d29

Added Files:
	greenbone-security-assistant/DESCR
	greenbone-security-assistant/Makefile
	greenbone-security-assistant/PLIST
	greenbone-security-assistant/distinfo
	greenbone-security-assistant/patches/patch-CMakeLists.txt
	greenbone-security-assistant/patches/patch-doc_CMakeLists.txt
	greenbone-security-assistant/patches/patch-src_CMakeLists.txt
	greenbone-security-assistant/patches/patch-src_manage.c
	greenbone-security-assistant/patches/patch-src_manage__migrators.c
	greenbone-security-assistant/patches/patch-src_manage__sql.c
	greenbone-security-assistant/patches/patch-src_manage__sqlite3.c

Log Message:
Import openvas-manager-6.0.9 as wip/greenbone-security-assistant.

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.

The OpenVAS Manager is a layer between the OpenVAS Scanner and various client
applications such as the web client GSA (Greenbone Security Assistant), the
command line client omp (of openvas-cli) and the classic application GSD
(Greenbone Security Desktop).  Among other features, it adds server-side
storage of scan results and it removes the need for a scan client to keep the
connection open until the scan finishes. All communication between OpenVAS
Manager and its clients is done via the XML-based OpenVAS Management Protocol
(OMP).

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

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

diffstat:
 greenbone-security-assistant/DESCR                 | 12 +++
 greenbone-security-assistant/Makefile              | 42 +++++++++++
 greenbone-security-assistant/PLIST                 | 87 ++++++++++++++++++++++
 greenbone-security-assistant/distinfo              | 13 ++++
 .../patches/patch-CMakeLists.txt                   | 15 ++++
 .../patches/patch-doc_CMakeLists.txt               | 16 ++++
 .../patches/patch-src_CMakeLists.txt               | 18 +++++
 .../patches/patch-src_manage.c                     | 19 +++++
 .../patches/patch-src_manage__migrators.c          | 28 +++++++
 .../patches/patch-src_manage__sql.c                | 16 ++++
 .../patches/patch-src_manage__sqlite3.c            | 16 ++++
 11 files changed, 282 insertions(+)

diffs:
diff --git a/greenbone-security-assistant/DESCR b/greenbone-security-assistant/DESCR
new file mode 100644
index 0000000..c833dc8
--- /dev/null
+++ b/greenbone-security-assistant/DESCR
@@ -0,0 +1,12 @@
+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.
+
+The OpenVAS Manager is a layer between the OpenVAS Scanner and various client
+applications such as the web client GSA (Greenbone Security Assistant), the
+command line client omp (of openvas-cli) and the classic application GSD
+(Greenbone Security Desktop).  Among other features, it adds server-side
+storage of scan results and it removes the need for a scan client to keep the
+connection open until the scan finishes. All communication between OpenVAS
+Manager and its clients is done via the XML-based OpenVAS Management Protocol
+(OMP).
diff --git a/greenbone-security-assistant/Makefile b/greenbone-security-assistant/Makefile
new file mode 100644
index 0000000..c91e6a3
--- /dev/null
+++ b/greenbone-security-assistant/Makefile
@@ -0,0 +1,42 @@
+# $NetBSD: Makefile,v 1.17 2016/09/19 13:04:27 wiz Exp $
+
+DISTNAME=	openvas-manager-6.0.9
+CATEGORIES=	security
+MASTER_SITES=	http://wald.intevation.org/frs/download.php/2359/
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	http://www.openvas.org/
+COMMENT=	Manager for OpenVAS
+LICENSE=	gnu-gpl-v2
+
+USE_CMAKE=	YES
+BUILD_DEFS+=	VARBASE
+USE_LANGUAGES=	c++ c
+USE_TOOLS+=	pkg-config gsed:run
+
+CMAKE_ARGS+=	-DLOCALSTATEDIR:PATH=${VARBASE}
+
+REPLACE_PYTHON+=	tools/extra/xml_split
+
+EGDIR=		${PREFIX}/share/examples/openvas-manager
+
+OWN_DIRS=	${PKG_SYSCONFDIR}/openvas
+
+CONF_FILES+=	${EGDIR}/openvasmd_log.conf ${PKG_SYSCONFDIR}/openvas/openvasmd_log.conf
+CONF_FILES+=	${EGDIR}/pwpolicy.conf ${PKG_SYSCONFDIR}/openvas/pwpolicy.conf
+
+SUBST_CLASSES+=		confdir
+SUBST_FILES.confdir=	CMakeLists.txt
+SUBST_SED.confdir=	-e 's,DESTINATION $${OPENVAS_SYSCONF_DIR},DESTINATION ${EGDIR}/,'
+SUBST_STAGE.confdir=	post-patch
+
+SUBST_CLASSES+=		gnused
+SUBST_FILES.gnused=	tools/openvas-portnames-update.in
+SUBST_SED.gnused=	-e 's,sed -s,${TOOLS_PATH.gsed} -s,' # parameter "-s" is a gnu extension
+SUBST_STAGE.gnused=	post-patch
+
+.include "../../textproc/libxslt/buildlink3.mk" # tool xsltproc used
+.include "../../lang/python/application.mk"
+.include "../../databases/sqlite3/buildlink3.mk"
+.include "../../wip/openvas-libraries/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/greenbone-security-assistant/PLIST b/greenbone-security-assistant/PLIST
new file mode 100644
index 0000000..292c795
--- /dev/null
+++ b/greenbone-security-assistant/PLIST
@@ -0,0 +1,87 @@
+@comment $NetBSD$
+man/man8/openvasmd.8
+sbin/greenbone-certdata-sync
+sbin/greenbone-scapdata-sync
+sbin/openvas-certdata-sync
+sbin/openvas-migrate-to-postgres
+sbin/openvas-portnames-update
+sbin/openvas-scapdata-sync
+sbin/openvasmd
+share/doc/openvas-manager/html/omp.html
+share/examples/openvas-manager/openvasmd_log.conf
+share/examples/openvas-manager/pwpolicy.conf
+share/openvas/cert/cert_bund_getbyname.xsl
+share/openvas/cert/cert_bund_update.xsl
+share/openvas/cert/cert_db_init.sql
+share/openvas/cert/dfn_cert_getbyname.xsl
+share/openvas/cert/dfn_cert_update.xsl
+share/openvas/openvas-lsc-rpm-creator.sh
+share/openvas/openvasmd/global_alert_methods/2db07698-ec49-11e5-bcff-28d24461215b/alert
+share/openvas/openvasmd/global_alert_methods/4a398d42-87c0-11e5-a1c0-28d24461215b/alert
+share/openvas/openvasmd/global_alert_methods/9d435134-15d3-11e6-bf5c-28d24461215b/alert
+share/openvas/openvasmd/global_alert_methods/cd1f5a34-6bdc-11e0-9827-002264764cea/alert
+share/openvas/openvasmd/global_alert_methods/f9d97653-f89b-41af-9ba1-0f6ee00e9c1a/alert
+share/openvas/openvasmd/global_report_formats/5057e5cc-b825-11e4-9d0e-28d24461215b/Anonymous_XML.xsl
+share/openvas/openvasmd/global_report_formats/5057e5cc-b825-11e4-9d0e-28d24461215b/generate
+share/openvas/openvasmd/global_report_formats/50c9950a-f326-11e4-800c-28d24461215b/Verinice_ITG.xsl
+share/openvas/openvasmd/global_report_formats/50c9950a-f326-11e4-800c-28d24461215b/classification-helpers.xsl
+share/openvas/openvasmd/global_report_formats/50c9950a-f326-11e4-800c-28d24461215b/generate
+share/openvas/openvasmd/global_report_formats/5ceff8ba-1f62-11e1-ab9f-406186ea4fc5/CPE.xsl
+share/openvas/openvasmd/global_report_formats/5ceff8ba-1f62-11e1-ab9f-406186ea4fc5/generate
+share/openvas/openvasmd/global_report_formats/6c248850-1f62-11e1-b082-406186ea4fc5/HTML.xsl
+share/openvas/openvasmd/global_report_formats/6c248850-1f62-11e1-b082-406186ea4fc5/generate
+share/openvas/openvasmd/global_report_formats/77bd6c4a-1f62-11e1-abf0-406186ea4fc5/ITG.xsl
+share/openvas/openvasmd/global_report_formats/77bd6c4a-1f62-11e1-abf0-406186ea4fc5/generate
+share/openvas/openvasmd/global_report_formats/9087b18c-626c-11e3-8892-406186ea4fc5/CSV_Hosts.xsl
+share/openvas/openvasmd/global_report_formats/9087b18c-626c-11e3-8892-406186ea4fc5/generate
+share/openvas/openvasmd/global_report_formats/910200ca-dc05-11e1-954f-406186ea4fc5/ARF.xsl
+share/openvas/openvasmd/global_report_formats/910200ca-dc05-11e1-954f-406186ea4fc5/generate
+share/openvas/openvasmd/global_report_formats/9ca6fe72-1f62-11e1-9e7c-406186ea4fc5/NBE.xsl
+share/openvas/openvasmd/global_report_formats/9ca6fe72-1f62-11e1-9e7c-406186ea4fc5/generate
+share/openvas/openvasmd/global_report_formats/9e5e5deb-879e-4ecc-8be6-a71cd0875cdd/generate
+share/openvas/openvasmd/global_report_formats/9e5e5deb-879e-4ecc-8be6-a71cd0875cdd/hostvisdot-summary.xsl
+share/openvas/openvasmd/global_report_formats/a3810a62-1f62-11e1-9219-406186ea4fc5/TXT.xsl
+share/openvas/openvasmd/global_report_formats/a3810a62-1f62-11e1-9219-406186ea4fc5/generate
+share/openvas/openvasmd/global_report_formats/a684c02c-b531-11e1-bdc2-406186ea4fc5/generate
+share/openvas/openvasmd/global_report_formats/a684c02c-b531-11e1-bdc2-406186ea4fc5/latex.xsl
+share/openvas/openvasmd/global_report_formats/a994b278-1f62-11e1-96ac-406186ea4fc5/generate
+share/openvas/openvasmd/global_report_formats/c15ad349-bd8d-457a-880a-c7056532ee15/Verinice_ISM.xsl
+share/openvas/openvasmd/global_report_formats/c15ad349-bd8d-457a-880a-c7056532ee15/classification.csv
+share/openvas/openvasmd/global_report_formats/c15ad349-bd8d-457a-880a-c7056532ee15/classification.xsl
+share/openvas/openvasmd/global_report_formats/c15ad349-bd8d-457a-880a-c7056532ee15/classification_generator.sh
+share/openvas/openvasmd/global_report_formats/c15ad349-bd8d-457a-880a-c7056532ee15/generate
+share/openvas/openvasmd/global_report_formats/c1645568-627a-11e3-a660-406186ea4fc5/CSV_Results.xsl
+share/openvas/openvasmd/global_report_formats/c1645568-627a-11e3-a660-406186ea4fc5/generate
+share/openvas/openvasmd/global_report_formats/c402cc3e-b531-11e1-9163-406186ea4fc5/generate
+share/openvas/openvasmd/global_report_formats/c402cc3e-b531-11e1-9163-406186ea4fc5/latex.xsl
+share/openvas/openvasmd/global_schema_formats/02052818-dab6-11df-9be4-002264764cea/HTML.xsl
+share/openvas/openvasmd/global_schema_formats/02052818-dab6-11df-9be4-002264764cea/generate
+share/openvas/openvasmd/global_schema_formats/02052818-dab6-11df-9be4-002264764cea/rnc.xsl
+share/openvas/openvasmd/global_schema_formats/18e826fc-dab6-11df-b913-002264764cea/OMP.xml
+share/openvas/openvasmd/global_schema_formats/18e826fc-dab6-11df-b913-002264764cea/generate
+share/openvas/openvasmd/global_schema_formats/787a4a18-dabc-11df-9486-002264764cea/RNC.xsl
+share/openvas/openvasmd/global_schema_formats/787a4a18-dabc-11df-9486-002264764cea/generate
+share/openvas/openvasmd/global_schema_formats/787a4a18-dabc-11df-9486-002264764cea/rnc.xsl
+share/openvas/openvasmd/global_schema_formats/d6cf255e-947c-11e1-829a-406186ea4fc5/OMP.xsl
+share/openvas/openvasmd/global_schema_formats/d6cf255e-947c-11e1-829a-406186ea4fc5/generate
+share/openvas/openvasmd/portnames_update.xsl
+share/openvas/openvasmd/wizards/delete_task_deep.xml
+share/openvas/openvasmd/wizards/get_tasks_deep.xml
+share/openvas/openvasmd/wizards/modify_task.xml
+share/openvas/openvasmd/wizards/quick_auth_scan.xml
+share/openvas/openvasmd/wizards/quick_first_scan.xml
+share/openvas/openvasmd/wizards/quick_task.xml
+share/openvas/openvasmd/wizards/reset_task.xml
+share/openvas/scap/cpe_getbyname.xsl
+share/openvas/scap/cpe_update.xsl
+share/openvas/scap/cpe_youngerthan.xsl
+share/openvas/scap/cve_getbyname.xsl
+share/openvas/scap/cve_update.xsl
+share/openvas/scap/cve_youngerthan.xsl
+share/openvas/scap/oval_timestamp.xsl
+share/openvas/scap/oval_update.xsl
+share/openvas/scap/oval_verify.xsl
+share/openvas/scap/ovaldef_getbyname.xsl
+share/openvas/scap/ovaldef_list_ids.xsl
+share/openvas/scap/scap_db_init.sql
+share/openvas/scap/xml_split
diff --git a/greenbone-security-assistant/distinfo b/greenbone-security-assistant/distinfo
new file mode 100644
index 0000000..a6e193f
--- /dev/null
+++ b/greenbone-security-assistant/distinfo
@@ -0,0 +1,13 @@
+$NetBSD: distinfo,v 1.6 2015/11/04 01:17:52 agc Exp $
+
+SHA1 (openvas-manager-6.0.9.tar.gz) = bb8b1652e2c6539a80fe861584a844f1ae38c4ff
+RMD160 (openvas-manager-6.0.9.tar.gz) = c9c230ecf4ddce8c2ce1b3ae6cadd55d142e8081
+SHA512 (openvas-manager-6.0.9.tar.gz) = 1111ad3ef4e1286cc71129ecd552bac00386347c30b6e8b706a8fa989d58fff19fff2e1c5cbdfde921d83c5812358cb089e5bc45ae56bb5b87b3bfe5fab1ece8
+Size (openvas-manager-6.0.9.tar.gz) = 1954878 bytes
+SHA1 (patch-CMakeLists.txt) = 97d41cd6ca02c8ee85c04ba0b1c2a90ce927a7bd
+SHA1 (patch-doc_CMakeLists.txt) = c1e2af99b86f3c0fcd60d80621fbc70e2f202b19
+SHA1 (patch-src_CMakeLists.txt) = a76c0b0fa6eda9736c6c9bdd9cea1d396e701dd9
+SHA1 (patch-src_manage.c) = 7b2a9f7abc6e25cc1217ddde89299f7772260f9a
+SHA1 (patch-src_manage__migrators.c) = ca42e85b32d6750aad7a8f338084e380110dda13
+SHA1 (patch-src_manage__sql.c) = 868b20a4a0583664fe7c7151f855927716e46cc2
+SHA1 (patch-src_manage__sqlite3.c) = 5ca8910449c2034ece9e8a56b9aab0017afa960e
diff --git a/greenbone-security-assistant/patches/patch-CMakeLists.txt b/greenbone-security-assistant/patches/patch-CMakeLists.txt
new file mode 100644
index 0000000..f442bef
--- /dev/null
+++ b/greenbone-security-assistant/patches/patch-CMakeLists.txt
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Require CMake 3.0 for detecting libbacktrace support.
+
+--- CMakeLists.txt.orig	2016-08-25 12:15:46.000000000 +0000
++++ CMakeLists.txt
+@@ -27,7 +27,7 @@ message ("-- Configuring the Manager..."
+ 
+ project (openvas-manager C)
+ 
+-cmake_minimum_required (VERSION 2.6)
++cmake_minimum_required (VERSION 3.0)
+ 
+ if (POLICY CMP0005)
+   cmake_policy (SET CMP0005 OLD)
diff --git a/greenbone-security-assistant/patches/patch-doc_CMakeLists.txt b/greenbone-security-assistant/patches/patch-doc_CMakeLists.txt
new file mode 100644
index 0000000..0bb5f78
--- /dev/null
+++ b/greenbone-security-assistant/patches/patch-doc_CMakeLists.txt
@@ -0,0 +1,16 @@
+$NetBSD$
+
+Fix path to install man-pages.
+
+--- doc/CMakeLists.txt.orig	2015-08-03 05:52:11.000000000 +0000
++++ doc/CMakeLists.txt
+@@ -163,6 +163,8 @@ install (FILES omp.html
+          DESTINATION share/doc/openvas-manager/html/
+          COMPONENT doc)
+ 
++include(GNUInstallDirs)
++
+ install (FILES openvasmd.8
+-  DESTINATION share/man/man8/
++  DESTINATION ${CMAKE_INSTALL_MANDIR}/man8/
+   COMPONENT doc)
diff --git a/greenbone-security-assistant/patches/patch-src_CMakeLists.txt b/greenbone-security-assistant/patches/patch-src_CMakeLists.txt
new file mode 100644
index 0000000..cda766e
--- /dev/null
+++ b/greenbone-security-assistant/patches/patch-src_CMakeLists.txt
@@ -0,0 +1,18 @@
+$NetBSD$
+
+Link with libbacktrace (if needed).
+
+--- src/CMakeLists.txt.orig	2015-12-08 07:09:32.000000000 +0000
++++ src/CMakeLists.txt
+@@ -65,8 +65,10 @@ add_library (otp STATIC otp.c)
+ 
+ ## Program
+ 
++find_package(Backtrace)
++
+ add_executable (openvasmd openvasmd.c ompd.c)
+-target_link_libraries (openvasmd ovas-mngr-comm omp otp manage ${GNUTLS_LDFLAGS} ${GPGME_LDFLAGS} ${GCRYPT_LDFLAGS} ${CMAKE_THREAD_LIBS_INIT})
++target_link_libraries (openvasmd ovas-mngr-comm omp otp manage ${GNUTLS_LDFLAGS} ${GPGME_LDFLAGS} ${GCRYPT_LDFLAGS} ${CMAKE_THREAD_LIBS_INIT} ${Backtrace_LIBRARY})
+ 
+ set_target_properties (openvasmd PROPERTIES LINKER_LANGUAGE C)
+ 
diff --git a/greenbone-security-assistant/patches/patch-src_manage.c b/greenbone-security-assistant/patches/patch-src_manage.c
new file mode 100644
index 0000000..de1606c
--- /dev/null
+++ b/greenbone-security-assistant/patches/patch-src_manage.c
@@ -0,0 +1,19 @@
+$NetBSD$
+
+Don't overwrite _*_SOURCE, it breaks build on NetBSD.
+
+--- src/manage.c.orig	2016-08-25 12:15:47.000000000 +0000
++++ src/manage.c
+@@ -37,10 +37,12 @@
+  * running the tasks.
+  */
+ 
++#if !defined(__NetBSD__)
+ /* time.h in glibc2 needs this for strptime. */
+ #define _XOPEN_SOURCE
+ /* pthread_sigmask () needs this with glibc < 2.19 */
+ #define _GNU_SOURCE
++#endif
+ 
+ #include "manage.h"
+ #include "scanner.h"
diff --git a/greenbone-security-assistant/patches/patch-src_manage__migrators.c b/greenbone-security-assistant/patches/patch-src_manage__migrators.c
new file mode 100644
index 0000000..79b7448
--- /dev/null
+++ b/greenbone-security-assistant/patches/patch-src_manage__migrators.c
@@ -0,0 +1,28 @@
+$NetBSD$
+
+Don't overwrite _*_SOURCE, it breaks build on NetBSD.
+
+--- src/manage_migrators.c.orig	2015-08-03 05:52:13.000000000 +0000
++++ src/manage_migrators.c
+@@ -119,8 +119,10 @@
+  *       (name UNIQUE, password);
+  */
+ 
++#if !defined(__NetBSD__)
+ /* time.h in glibc2 needs this for strptime. */
+ #define _XOPEN_SOURCE
++#endif
+ 
+ #include <time.h>
+ #include <stdlib.h>
+@@ -132,6 +134,10 @@
+ #include <ctype.h>
+ #include <dirent.h>
+ 
++#if defined(__NetBSD__)
++#include <sys/wait.h>
++#endif
++
+ #include "manage_sql.h"
+ #include "sql.h"
+ #include "tracef.h"
diff --git a/greenbone-security-assistant/patches/patch-src_manage__sql.c b/greenbone-security-assistant/patches/patch-src_manage__sql.c
new file mode 100644
index 0000000..a092944
--- /dev/null
+++ b/greenbone-security-assistant/patches/patch-src_manage__sql.c
@@ -0,0 +1,16 @@
+$NetBSD$
+
+Require <libgen.h> for basename(3) on NetBSD.
+
+--- src/manage_sql.c.orig	2016-08-25 12:15:46.000000000 +0000
++++ src/manage_sql.c
+@@ -58,6 +58,9 @@
+ #include <unistd.h>
+ #include <sys/time.h>
+ #include <grp.h>
++#if defined(__NetBSD__)
++#include <libgen.h>
++#endif
+ 
+ #include <openvas/base/openvas_string.h>
+ #include <openvas/base/openvas_file.h>
diff --git a/greenbone-security-assistant/patches/patch-src_manage__sqlite3.c b/greenbone-security-assistant/patches/patch-src_manage__sqlite3.c
new file mode 100644
index 0000000..7002c2b
--- /dev/null
+++ b/greenbone-security-assistant/patches/patch-src_manage__sqlite3.c
@@ -0,0 +1,16 @@
+$NetBSD$
+
+Don't overwrite _*_SOURCE, it breaks build on NetBSD.
+
+--- src/manage_sqlite3.c.orig	2016-08-25 12:15:47.000000000 +0000
++++ src/manage_sqlite3.c
+@@ -23,7 +23,9 @@
+  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+  */
+ 
++#if !defined(__NetBSD__)
+ #define _XOPEN_SOURCE /* Glibc2 needs this for strptime. */
++#endif
+ 
+ #include "sql.h"
+ #include "manage.h"


Home | Main Index | Thread Index | Old Index