diff options
Diffstat (limited to 'security/py-ospd-openvas/files')
-rw-r--r-- | security/py-ospd-openvas/files/ospd_openvas.in | 36 | ||||
-rw-r--r-- | security/py-ospd-openvas/files/patch-setup.py | 18 |
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', |