From: | "Justin Lecher (jlec)" <jlec@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-analyzer/greenbone-security-assistant/files: gsad.service gsad.init gsad.logrotate greenbone-security-assistant-5.0.3-run.patch gsad.tmpfiles.d gsad-daemon.conf |
Date: | Wed, 01 Oct 2014 09:33:17 |
Message-Id: | 20141001093311.64A446A88@oystercatcher.gentoo.org |
1 | jlec 14/10/01 09:33:11 |
2 | |
3 | Added: gsad.service gsad.init gsad.logrotate |
4 | greenbone-security-assistant-5.0.3-run.patch |
5 | gsad.tmpfiles.d gsad-daemon.conf |
6 | Log: |
7 | net-analyzer/greenbone-security-assistant: Add systemd support |
8 | |
9 | (Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!) |
10 | |
11 | Revision Changes Path |
12 | 1.1 net-analyzer/greenbone-security-assistant/files/gsad.service |
13 | |
14 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/greenbone-security-assistant/files/gsad.service?rev=1.1&view=markup |
15 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/greenbone-security-assistant/files/gsad.service?rev=1.1&content-type=text/plain |
16 | |
17 | Index: gsad.service |
18 | =================================================================== |
19 | [Unit] |
20 | Description=Greenbone Security Assistant Daemon |
21 | After=network.target |
22 | Before=openvasmd.service |
23 | |
24 | [Service] |
25 | EnvironmentFile=-/etc/openvas/gsad-daemon.conf |
26 | ExecStart=/usr/sbin/gsad -f ${ASSISTANT_LISTEN} ${ASSISTANT_PORT} ${MANAGER_LISTEN} ${MANAGER_PORT} ${ASSISTANT_EXTRA_ARGS} |
27 | Restart=always |
28 | RestartSec=1 |
29 | User=root |
30 | Group=root |
31 | TimeoutSec=1200 |
32 | |
33 | [Install] |
34 | WantedBy=multi-user.target |
35 | |
36 | |
37 | |
38 | 1.1 net-analyzer/greenbone-security-assistant/files/gsad.init |
39 | |
40 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/greenbone-security-assistant/files/gsad.init?rev=1.1&view=markup |
41 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/greenbone-security-assistant/files/gsad.init?rev=1.1&content-type=text/plain |
42 | |
43 | Index: gsad.init |
44 | =================================================================== |
45 | #!/sbin/runscript |
46 | # Copyright 1999-2014 Gentoo Foundation |
47 | # Distributed under the terms of the GNU General Public License v2 |
48 | # $Header: /var/cvsroot/gentoo-x86/net-analyzer/greenbone-security-assistant/files/gsad.init,v 1.1 2014/10/01 09:33:11 jlec Exp $ |
49 | |
50 | name="Greenbone Security Assistant Daemon" |
51 | command="/usr/sbin/gsad" |
52 | command_args="${ASSISTANT_LISTEN} ${ASSISTANT_PORT} ${MANAGER_LISTEN} ${MANAGER_PORT} ${ASSISTANT_EXTRA_ARGS}" |
53 | pidfile="/run/gsad.pid" |
54 | |
55 | depend() { |
56 | after bootmisc |
57 | need localmount net |
58 | } |
59 | |
60 | |
61 | |
62 | 1.1 net-analyzer/greenbone-security-assistant/files/gsad.logrotate |
63 | |
64 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/greenbone-security-assistant/files/gsad.logrotate?rev=1.1&view=markup |
65 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/greenbone-security-assistant/files/gsad.logrotate?rev=1.1&content-type=text/plain |
66 | |
67 | Index: gsad.logrotate |
68 | =================================================================== |
69 | # logrotate for openvas |
70 | /var/log/openvas/gsad.log { |
71 | rotate 4 |
72 | weekly |
73 | compress |
74 | delaycompress |
75 | missingok |
76 | postrotate |
77 | /bin/kill -HUP `pidof gsad` |
78 | endscript |
79 | } |
80 | |
81 | |
82 | |
83 | 1.1 net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-5.0.3-run.patch |
84 | |
85 | 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 |
86 | 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 |
87 | |
88 | Index: greenbone-security-assistant-5.0.3-run.patch |
89 | =================================================================== |
90 | CMakeLists.txt | 2 +- |
91 | 1 file changed, 1 insertion(+), 1 deletion(-) |
92 | |
93 | diff --git a/CMakeLists.txt b/CMakeLists.txt |
94 | index 67cf344..c15f785 100644 |
95 | --- a/CMakeLists.txt |
96 | +++ b/CMakeLists.txt |
97 | @@ -272,7 +272,7 @@ endif (NOT DATADIR) |
98 | |
99 | set (OPENVAS_STATE_DIR "${LOCALSTATEDIR}/lib/openvas") |
100 | set (OPENVAS_LOG_DIR "${LOCALSTATEDIR}/log/openvas") |
101 | -set (GSAD_PID_DIR "${LOCALSTATEDIR}/run") |
102 | +set (GSAD_PID_DIR "/run") |
103 | set (GSA_DATA_DIR "${DATADIR}/openvas/gsa") |
104 | |
105 | # TODO: Eventually use own certificates |
106 | |
107 | |
108 | |
109 | 1.1 net-analyzer/greenbone-security-assistant/files/gsad.tmpfiles.d |
110 | |
111 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/greenbone-security-assistant/files/gsad.tmpfiles.d?rev=1.1&view=markup |
112 | 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 |
113 | |
114 | Index: gsad.tmpfiles.d |
115 | =================================================================== |
116 | d /var/cache/openvassd 0775 |
117 | |
118 | |
119 | |
120 | 1.1 net-analyzer/greenbone-security-assistant/files/gsad-daemon.conf |
121 | |
122 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/greenbone-security-assistant/files/gsad-daemon.conf?rev=1.1&view=markup |
123 | 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 |
124 | |
125 | Index: gsad-daemon.conf |
126 | =================================================================== |
127 | #Listen on given address - by default assistant listens on all addresses |
128 | # ASSISTANT_LISTEN=--listen=127.0.0.1 |
129 | |
130 | #Listen on given port - by default 9391 |
131 | #ASSISTANT_PORT=--port=9392 |
132 | |
133 | #Contact manager on given address |
134 | #MANAGER_LISTEN=--mlisten=127.0.0.1 |
135 | |
136 | #Manager listens on given port - by default 9390 |
137 | #MANAGER_PORT=--mport=9390 |
138 | |
139 | # Additional arguments |
140 | # ASSISTANT_EXTRA_ARGS="" |