jlec        14/10/01 09:33:11

  Added:                gsad.service gsad.init gsad.logrotate
                        greenbone-security-assistant-5.0.3-run.patch
                        gsad.tmpfiles.d gsad-daemon.conf
  Log:
  net-analyzer/greenbone-security-assistant: Add systemd support
  
  (Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with 
key B9D4F231BD1558AB!)

Revision  Changes    Path
1.1                  
net-analyzer/greenbone-security-assistant/files/gsad.service

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/greenbone-security-assistant/files/gsad.service?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/greenbone-security-assistant/files/gsad.service?rev=1.1&content-type=text/plain

Index: gsad.service
===================================================================
[Unit]
Description=Greenbone Security Assistant Daemon
After=network.target
Before=openvasmd.service

[Service]
EnvironmentFile=-/etc/openvas/gsad-daemon.conf
ExecStart=/usr/sbin/gsad -f ${ASSISTANT_LISTEN} ${ASSISTANT_PORT} 
${MANAGER_LISTEN} ${MANAGER_PORT} ${ASSISTANT_EXTRA_ARGS}
Restart=always
RestartSec=1
User=root
Group=root
TimeoutSec=1200

[Install]
WantedBy=multi-user.target



1.1                  net-analyzer/greenbone-security-assistant/files/gsad.init

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/greenbone-security-assistant/files/gsad.init?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/greenbone-security-assistant/files/gsad.init?rev=1.1&content-type=text/plain

Index: gsad.init
===================================================================
#!/sbin/runscript
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: 
/var/cvsroot/gentoo-x86/net-analyzer/greenbone-security-assistant/files/gsad.init,v
 1.1 2014/10/01 09:33:11 jlec Exp $ 

name="Greenbone Security Assistant Daemon"
command="/usr/sbin/gsad"
command_args="${ASSISTANT_LISTEN} ${ASSISTANT_PORT} ${MANAGER_LISTEN} 
${MANAGER_PORT} ${ASSISTANT_EXTRA_ARGS}"
pidfile="/run/gsad.pid"

depend() {
        after bootmisc
        need localmount net
}



1.1                  
net-analyzer/greenbone-security-assistant/files/gsad.logrotate

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/greenbone-security-assistant/files/gsad.logrotate?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/greenbone-security-assistant/files/gsad.logrotate?rev=1.1&content-type=text/plain

Index: gsad.logrotate
===================================================================
# logrotate for openvas
/var/log/openvas/gsad.log {
        rotate 4
        weekly
        compress
        delaycompress
        missingok
        postrotate
            /bin/kill -HUP `pidof gsad`
        endscript
}



1.1                  
net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-5.0.3-run.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-5.0.3-run.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-5.0.3-run.patch?rev=1.1&content-type=text/plain

Index: greenbone-security-assistant-5.0.3-run.patch
===================================================================
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 67cf344..c15f785 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -272,7 +272,7 @@ endif (NOT DATADIR)
 
 set (OPENVAS_STATE_DIR "${LOCALSTATEDIR}/lib/openvas")
 set (OPENVAS_LOG_DIR   "${LOCALSTATEDIR}/log/openvas")
-set (GSAD_PID_DIR   "${LOCALSTATEDIR}/run")
+set (GSAD_PID_DIR   "/run")
 set (GSA_DATA_DIR "${DATADIR}/openvas/gsa")
 
 # TODO: Eventually use own certificates



1.1                  
net-analyzer/greenbone-security-assistant/files/gsad.tmpfiles.d

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/greenbone-security-assistant/files/gsad.tmpfiles.d?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/greenbone-security-assistant/files/gsad.tmpfiles.d?rev=1.1&content-type=text/plain

Index: gsad.tmpfiles.d
===================================================================
d       /var/cache/openvassd 0775



1.1                  
net-analyzer/greenbone-security-assistant/files/gsad-daemon.conf

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/greenbone-security-assistant/files/gsad-daemon.conf?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/greenbone-security-assistant/files/gsad-daemon.conf?rev=1.1&content-type=text/plain

Index: gsad-daemon.conf
===================================================================
#Listen on given address - by default assistant listens on all addresses
# ASSISTANT_LISTEN=--listen=127.0.0.1

#Listen on given port - by default 9391
#ASSISTANT_PORT=--port=9392

#Contact manager on given address
#MANAGER_LISTEN=--mlisten=127.0.0.1

#Manager listens on given port - by default 9390
#MANAGER_PORT=--mport=9390

# Additional arguments
# ASSISTANT_EXTRA_ARGS=""




Reply via email to