1 |
jlec 14/09/30 16:03:10 |
2 |
|
3 |
Modified: openvassd.tmpfiles.d openvassd-daemon.conf |
4 |
openvassd.service openvassd.init |
5 |
Added: openvas-scanner-4.0.3-run.patch |
6 |
Log: |
7 |
net-analyzer/openvas-scanner: Correct pidfile location |
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.2 net-analyzer/openvas-scanner/files/openvassd.tmpfiles.d |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/openvas-scanner/files/openvassd.tmpfiles.d?rev=1.2&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/openvas-scanner/files/openvassd.tmpfiles.d?rev=1.2&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/openvas-scanner/files/openvassd.tmpfiles.d?r1=1.1&r2=1.2 |
17 |
|
18 |
Index: openvassd.tmpfiles.d |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/openvas-scanner/files/openvassd.tmpfiles.d,v |
21 |
retrieving revision 1.1 |
22 |
retrieving revision 1.2 |
23 |
diff -u -r1.1 -r1.2 |
24 |
--- openvassd.tmpfiles.d 28 Sep 2014 15:40:44 -0000 1.1 |
25 |
+++ openvassd.tmpfiles.d 30 Sep 2014 16:03:10 -0000 1.2 |
26 |
@@ -1 +1 @@ |
27 |
-d /var/cache/openvassd |
28 |
+d /var/cache/openvassd 0775 |
29 |
|
30 |
|
31 |
|
32 |
1.2 net-analyzer/openvas-scanner/files/openvassd-daemon.conf |
33 |
|
34 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/openvas-scanner/files/openvassd-daemon.conf?rev=1.2&view=markup |
35 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/openvas-scanner/files/openvassd-daemon.conf?rev=1.2&content-type=text/plain |
36 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/openvas-scanner/files/openvassd-daemon.conf?r1=1.1&r2=1.2 |
37 |
|
38 |
Index: openvassd-daemon.conf |
39 |
=================================================================== |
40 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/openvas-scanner/files/openvassd-daemon.conf,v |
41 |
retrieving revision 1.1 |
42 |
retrieving revision 1.2 |
43 |
diff -u -r1.1 -r1.2 |
44 |
--- openvassd-daemon.conf 28 Sep 2014 18:12:28 -0000 1.1 |
45 |
+++ openvassd-daemon.conf 30 Sep 2014 16:03:10 -0000 1.2 |
46 |
@@ -7,6 +7,9 @@ |
47 |
#Send the packets with the source IP of IP1,IP2,IP3.... |
48 |
#SCANNER_SRCIP=--src-ip=127.0.0.1,192.168.1.2 |
49 |
|
50 |
+# Extra Arguments |
51 |
+# SCANNER_EXTRA_ARGS="" |
52 |
+ |
53 |
# Set to yes if plugins should be automatically updated via a cron job |
54 |
auto_plugin_update=no |
55 |
|
56 |
@@ -21,4 +24,3 @@ |
57 |
#NVT_DIR where to extract plugins (absolute path) |
58 |
#OV_RSYNC_FEED URL of rsync feed |
59 |
#OV_HTTP_FEED URL of http feed |
60 |
- |
61 |
|
62 |
|
63 |
|
64 |
1.3 net-analyzer/openvas-scanner/files/openvassd.service |
65 |
|
66 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/openvas-scanner/files/openvassd.service?rev=1.3&view=markup |
67 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/openvas-scanner/files/openvassd.service?rev=1.3&content-type=text/plain |
68 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/openvas-scanner/files/openvassd.service?r1=1.2&r2=1.3 |
69 |
|
70 |
Index: openvassd.service |
71 |
=================================================================== |
72 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/openvas-scanner/files/openvassd.service,v |
73 |
retrieving revision 1.2 |
74 |
retrieving revision 1.3 |
75 |
diff -u -r1.2 -r1.3 |
76 |
--- openvassd.service 28 Sep 2014 18:12:28 -0000 1.2 |
77 |
+++ openvassd.service 30 Sep 2014 16:03:10 -0000 1.3 |
78 |
@@ -5,7 +5,7 @@ |
79 |
|
80 |
[Service] |
81 |
EnvironmentFile=-/etc/openvas/openvassd-daemon.conf |
82 |
-ExecStart=/usr/sbin/openvassd -f $SCANNER_PORT $SCANNER_LISTEN $SCANNER_SRCIP |
83 |
+ExecStart=/usr/sbin/openvassd -f ${SCANNER_PORT} ${SCANNER_LISTEN} ${SCANNER_SRCIP} ${SCANNER_EXTRA_ARGS} |
84 |
Restart=always |
85 |
RestartSec=1 |
86 |
User=root |
87 |
|
88 |
|
89 |
|
90 |
1.3 net-analyzer/openvas-scanner/files/openvassd.init |
91 |
|
92 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/openvas-scanner/files/openvassd.init?rev=1.3&view=markup |
93 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/openvas-scanner/files/openvassd.init?rev=1.3&content-type=text/plain |
94 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/openvas-scanner/files/openvassd.init?r1=1.2&r2=1.3 |
95 |
|
96 |
Index: openvassd.init |
97 |
=================================================================== |
98 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/openvas-scanner/files/openvassd.init,v |
99 |
retrieving revision 1.2 |
100 |
retrieving revision 1.3 |
101 |
diff -u -r1.2 -r1.3 |
102 |
--- openvassd.init 28 Sep 2014 18:12:28 -0000 1.2 |
103 |
+++ openvassd.init 30 Sep 2014 16:03:10 -0000 1.3 |
104 |
@@ -5,8 +5,14 @@ |
105 |
|
106 |
name="OpenVAS Scanner" |
107 |
command="/usr/sbin/openvassd" |
108 |
-command_args="${SCANNER_LISTEN} ${SCANNER_PORT} ${SCANNER_SRCIP}" |
109 |
+command_args="${SCANNER_LISTEN} ${SCANNER_PORT} ${SCANNER_SRCIP} ${SCANNER_EXTRA_ARGS}" |
110 |
+pidfile="/run/openvassd.pid" |
111 |
|
112 |
depend() { |
113 |
- need net |
114 |
+ after bootmisc |
115 |
+ need localmount net |
116 |
+} |
117 |
+ |
118 |
+start_pre() { |
119 |
+ checkpath --directory --mode 0775 --quiet /var/cache/openvas |
120 |
} |
121 |
|
122 |
|
123 |
|
124 |
1.1 net-analyzer/openvas-scanner/files/openvas-scanner-4.0.3-run.patch |
125 |
|
126 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/openvas-scanner/files/openvas-scanner-4.0.3-run.patch?rev=1.1&view=markup |
127 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/openvas-scanner/files/openvas-scanner-4.0.3-run.patch?rev=1.1&content-type=text/plain |
128 |
|
129 |
Index: openvas-scanner-4.0.3-run.patch |
130 |
=================================================================== |
131 |
CMakeLists.txt | 2 +- |
132 |
tools/greenbone-nvt-sync | 2 +- |
133 |
2 files changed, 2 insertions(+), 2 deletions(-) |
134 |
|
135 |
diff --git a/CMakeLists.txt b/CMakeLists.txt |
136 |
index c691100..d78ffa6 100644 |
137 |
--- a/CMakeLists.txt |
138 |
+++ b/CMakeLists.txt |
139 |
@@ -155,7 +155,7 @@ set (OPENVAS_DATA_DIR "${DATADIR}/openvas") |
140 |
set (OPENVAS_STATE_DIR "${LOCALSTATEDIR}/lib/openvas") |
141 |
set (OPENVAS_LOG_DIR "${LOCALSTATEDIR}/log/openvas") |
142 |
set (OPENVAS_CACHE_DIR "${LOCALSTATEDIR}/cache/openvas") |
143 |
-set (OPENVAS_PID_DIR "${LOCALSTATEDIR}/run") |
144 |
+set (OPENVAS_PID_DIR "/run") |
145 |
set (OPENVAS_SYSCONF_DIR "${SYSCONFDIR}/openvas") |
146 |
|
147 |
set (OPENVAS_NVT_DIR "${OPENVAS_STATE_DIR}/plugins") |
148 |
diff --git a/tools/greenbone-nvt-sync b/tools/greenbone-nvt-sync |
149 |
index 50bce8c..d773e4c 100755 |
150 |
--- a/tools/greenbone-nvt-sync |
151 |
+++ b/tools/greenbone-nvt-sync |
152 |
@@ -78,7 +78,7 @@ SELFTEST_FAIL=0 |
153 |
PORT=24 |
154 |
|
155 |
# Directory where pidfiles are located |
156 |
-PIDFILEDIR="/var/run" |
157 |
+PIDFILEDIR="/run" |
158 |
|
159 |
# If ENABLED is set to 0, the sync script will not perform a synchronization. |
160 |
ENABLED=1 |