summaryrefslogtreecommitdiff
path: root/security/py-ospd-openvas/files
diff options
context:
space:
mode:
authorJose Alonso Cardenas Marquez <acm@FreeBSD.org>2021-01-06 08:57:31 +0000
committerJose Alonso Cardenas Marquez <acm@FreeBSD.org>2021-01-06 08:57:31 +0000
commitaeef650820d74bd6d26fd7b050e8db95ada7b011 (patch)
tree9b4d3bc9d760e57590b4f7db149b9e767a5a548f /security/py-ospd-openvas/files
parent- Connect security/gvmd (diff)
- New port: security/py-ospd-openvas
This is an OSP server implementation to allow GVM to remotely control OpenVAS, see https://github.com/greenbone/openvas. Once running, you need to configure OpenVAS for the Greenbone Vulnerability Manager, for example via the web interface Greenbone Security Assistant. Then you can create scan tasks to use OpenVAS. WWW: https://github.com/greenbone/ospd-openva
Notes
Notes: svn path=/head/; revision=560478
Diffstat (limited to 'security/py-ospd-openvas/files')
-rw-r--r--security/py-ospd-openvas/files/ospd_openvas.in36
-rw-r--r--security/py-ospd-openvas/files/patch-setup.py18
2 files changed, 54 insertions, 0 deletions
diff --git a/security/py-ospd-openvas/files/ospd_openvas.in b/security/py-ospd-openvas/files/ospd_openvas.in
new file mode 100644
index 000000000000..17664073e125
--- /dev/null
+++ b/security/py-ospd-openvas/files/ospd_openvas.in
@@ -0,0 +1,36 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: ospd_openvas
+# REQUIRE: NETWORKING
+# KEYWORD: shutdown
+#
+# Configuration settings for ospd_openvas in /etc/rc.conf:
+#
+# ospd_openvas_enable: run ospd_openvas service (default=NO)
+# ospd_openvas_pidfile: path to ospd_openvas pid file
+# ospd_openvas_config: path to ospd_openvas configuration file
+# ospd_openvas_flags: additional flags for ospd_openvas server
+#
+
+. /etc/rc.subr
+
+name=ospd_openvas
+rcvar=ospd_openvas_enable
+
+load_rc_config ${name}
+
+: ${ospd_openvas_enable:=NO}
+: ${ospd_openvas_pidfile="/var/run/ospd/ospd-openvas.pid"}
+: ${ospd_openvas_config="/usr/local/etc/gvm/ospd.conf"}
+: ${ospd_openvas_flags="--lock-file-dir /var/run/ospd --unix-socket /var/run/ospd/ospd.sock"}
+
+ospd_openvas_user="gvm"
+pidfile=${ospd_openvas_pidfile}
+
+command=/usr/local/bin/ospd-openvas
+command_interpreter="%%PYTHON_CMD%%"
+command_args="--pid-file ${pidfile} --config ${ospd_openvas_config} --log-file /var/log/gvm/ospd-openvas.log ${ospd_openvas_flags}"
+
+run_rc_command "$1"
diff --git a/security/py-ospd-openvas/files/patch-setup.py b/security/py-ospd-openvas/files/patch-setup.py
new file mode 100644
index 000000000000..d05ccd1d7ed4
--- /dev/null
+++ b/security/py-ospd-openvas/files/patch-setup.py
@@ -0,0 +1,18 @@
+--- setup.py.orig 2021-01-02 04:58:38.335383000 -0500
++++ setup.py 2021-01-02 04:58:58.712756000 -0500
+@@ -2,13 +2,13 @@
+ from setuptools import setup
+
+ packages = \
+-['ospd_openvas', 'tests']
++['ospd_openvas']
+
+ package_data = \
+ {'': ['*']}
+
+ modules = \
+-['ospd-openvas', 'ospd', 'CHANGELOG', 'COPYING', 'poetry', 'setup', 'MANIFEST']
++['ospd-openvas', 'ospd']
+ install_requires = \
+ ['ospd>=20.8,<21.0',
+ 'packaging>=20.4,<21.0',