1 |
commit: 9cdbb550abafb9a7a04f1cc729b47dbf047cd393 |
2 |
Author: Aaron Bauman <bman <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Nov 29 23:26:15 2019 +0000 |
4 |
Commit: Aaron Bauman <bman <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 29 23:28:48 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9cdbb550 |
7 |
|
8 |
Revert "net-analyzer/*: drop last-rited pkgs" |
9 |
|
10 |
This reverts commit 78d4c66d2bd5af45bea655c85d43ec21c09244c8. |
11 |
|
12 |
Missed version constraint on net-analyzer/openvas-libraries |
13 |
|
14 |
Signed-off-by: Aaron Bauman <bman <AT> gentoo.org> |
15 |
|
16 |
dev-ruby/openvas-omp/Manifest | 1 + |
17 |
dev-ruby/openvas-omp/metadata.xml | 12 +++ |
18 |
dev-ruby/openvas-omp/openvas-omp-0.0.4.ebuild | 26 +++++ |
19 |
net-analyzer/openvas-cli/Manifest | 1 + |
20 |
net-analyzer/openvas-cli/metadata.xml | 5 + |
21 |
net-analyzer/openvas-cli/openvas-cli-1.4.3.ebuild | 33 +++++++ |
22 |
net-analyzer/openvas-libraries/Manifest | 1 + |
23 |
.../openvas-libraries/files/OPENVAS.gentoo | 106 +++++++++++++++++++++ |
24 |
.../files/openvas-libraries-9.0.3-cachedir.patch | 18 ++++ |
25 |
.../files/openvas-libraries-9.0.3-gcc8.patch | 73 ++++++++++++++ |
26 |
.../files/openvas-libraries-9.0.3-netsnmp.patch | 11 +++ |
27 |
.../files/openvas-libraries-9.0.3-rpath.patch | 11 +++ |
28 |
.../files/openvas-libraries-9.0.3-rundir.patch | 45 +++++++++ |
29 |
.../openvas-libraries-9.0.3-underlinking.patch | 47 +++++++++ |
30 |
net-analyzer/openvas-libraries/metadata.xml | 17 ++++ |
31 |
.../openvas-libraries-9.0.3-r1.ebuild | 94 ++++++++++++++++++ |
32 |
net-analyzer/openvas-tools/Manifest | 1 + |
33 |
net-analyzer/openvas-tools/metadata.xml | 5 + |
34 |
.../openvas-tools/openvas-tools-0_pre20512.ebuild | 27 ++++++ |
35 |
net-analyzer/openvas/metadata.xml | 20 ++++ |
36 |
net-analyzer/openvas/openvas-9.0.0.ebuild | 38 ++++++++ |
37 |
profiles/package.mask | 6 ++ |
38 |
22 files changed, 598 insertions(+) |
39 |
|
40 |
diff --git a/dev-ruby/openvas-omp/Manifest b/dev-ruby/openvas-omp/Manifest |
41 |
new file mode 100644 |
42 |
index 00000000000..d25a3b2ec72 |
43 |
--- /dev/null |
44 |
+++ b/dev-ruby/openvas-omp/Manifest |
45 |
@@ -0,0 +1 @@ |
46 |
+DIST openvas-omp-0.0.4.gem 10752 BLAKE2B 866f04895551ecace2183b1125deb727083d1427e4326ad5123e660586e26af40632a8e68b0390720fc39449ff8c3143a25edf22d2e015c31697ce6c24464030 SHA512 cb62ec9e480ad009eb9f47cd4ac77d385b8d5855748509466e5227e9d729067b279c277d3d53f2de1a89cccba75bccdd1e23b7ae858adeb35e0958fdb004c0e1 |
47 |
|
48 |
diff --git a/dev-ruby/openvas-omp/metadata.xml b/dev-ruby/openvas-omp/metadata.xml |
49 |
new file mode 100644 |
50 |
index 00000000000..d29753faaa0 |
51 |
--- /dev/null |
52 |
+++ b/dev-ruby/openvas-omp/metadata.xml |
53 |
@@ -0,0 +1,12 @@ |
54 |
+<?xml version='1.0' encoding='UTF-8'?> |
55 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
56 |
+<pkgmetadata> |
57 |
+ <maintainer type="person"> |
58 |
+ <email>zerochaos@g.o</email> |
59 |
+ <name>Rick Farina</name> |
60 |
+ </maintainer> |
61 |
+ <upstream> |
62 |
+ <remote-id type="github">kost/openvas-omp-ruby</remote-id> |
63 |
+ <remote-id type="rubygems">openvas-omp</remote-id> |
64 |
+ </upstream> |
65 |
+</pkgmetadata> |
66 |
|
67 |
diff --git a/dev-ruby/openvas-omp/openvas-omp-0.0.4.ebuild b/dev-ruby/openvas-omp/openvas-omp-0.0.4.ebuild |
68 |
new file mode 100644 |
69 |
index 00000000000..4de270ec845 |
70 |
--- /dev/null |
71 |
+++ b/dev-ruby/openvas-omp/openvas-omp-0.0.4.ebuild |
72 |
@@ -0,0 +1,26 @@ |
73 |
+# Copyright 1999-2019 Gentoo Authors |
74 |
+# Distributed under the terms of the GNU General Public License v2 |
75 |
+ |
76 |
+EAPI=6 |
77 |
+ |
78 |
+USE_RUBY="ruby23 ruby24 ruby25 ruby26" |
79 |
+RUBY_FAKEGEM_TASK_DOC="" |
80 |
+RUBY_FAKEGEM_BINWRAP="" |
81 |
+ |
82 |
+inherit ruby-fakegem |
83 |
+ |
84 |
+DESCRIPTION="Communicate with OpenVAS manager through OMP" |
85 |
+HOMEPAGE="https://rubygems.org/gems/openvas-omp" |
86 |
+ |
87 |
+LICENSE="BSD" |
88 |
+ |
89 |
+SLOT="0" |
90 |
+KEYWORDS="~amd64 ~x86" |
91 |
+IUSE="" |
92 |
+RESTRICT="test" |
93 |
+ |
94 |
+PDEPEND="net-analyzer/openvas" |
95 |
+ |
96 |
+all_ruby_prepare() { |
97 |
+ sed -i '/bundler/d' Rakefile |
98 |
+} |
99 |
|
100 |
diff --git a/net-analyzer/openvas-cli/Manifest b/net-analyzer/openvas-cli/Manifest |
101 |
new file mode 100644 |
102 |
index 00000000000..ec9e62719bb |
103 |
--- /dev/null |
104 |
+++ b/net-analyzer/openvas-cli/Manifest |
105 |
@@ -0,0 +1 @@ |
106 |
+DIST openvas-cli-1.4.3.tar.gz 108228 BLAKE2B d8f657fde8d1cac257dac8e87fdea23401ce1f89ccb08a63c8c63f5aae9c83ff663193425eabb86481ee697ecf6bf1f893325ba472a794c83586464d24e7ecbc SHA512 a85c754612b8f8102aa1ccf0af72f3266758c4873f7c346004b4f6794bfa8e562dbe14009ae04a2792978354454fa75f8a912bc13a83bce3604ff00019c363e3 |
107 |
|
108 |
diff --git a/net-analyzer/openvas-cli/metadata.xml b/net-analyzer/openvas-cli/metadata.xml |
109 |
new file mode 100644 |
110 |
index 00000000000..6f49eba8f49 |
111 |
--- /dev/null |
112 |
+++ b/net-analyzer/openvas-cli/metadata.xml |
113 |
@@ -0,0 +1,5 @@ |
114 |
+<?xml version="1.0" encoding="UTF-8"?> |
115 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
116 |
+<pkgmetadata> |
117 |
+<!-- maintainer-needed --> |
118 |
+</pkgmetadata> |
119 |
|
120 |
diff --git a/net-analyzer/openvas-cli/openvas-cli-1.4.3.ebuild b/net-analyzer/openvas-cli/openvas-cli-1.4.3.ebuild |
121 |
new file mode 100644 |
122 |
index 00000000000..8a46aad30c2 |
123 |
--- /dev/null |
124 |
+++ b/net-analyzer/openvas-cli/openvas-cli-1.4.3.ebuild |
125 |
@@ -0,0 +1,33 @@ |
126 |
+# Copyright 1999-2019 Gentoo Authors |
127 |
+# Distributed under the terms of the GNU General Public License v2 |
128 |
+ |
129 |
+EAPI=7 |
130 |
+ |
131 |
+DL_ID=2209 |
132 |
+inherit cmake-utils |
133 |
+ |
134 |
+DESCRIPTION="A remote security scanner for Linux (OpenVAS-cli)" |
135 |
+HOMEPAGE="http://www.openvas.org/" |
136 |
+SRC_URI="http://wald.intevation.org/frs/download.php/${DL_ID}/${P/_beta/+beta}.tar.gz" |
137 |
+SLOT="0" |
138 |
+LICENSE="GPL-2" |
139 |
+KEYWORDS="~amd64 ~x86" |
140 |
+IUSE="" |
141 |
+ |
142 |
+DEPEND=" |
143 |
+ >=net-analyzer/openvas-libraries-8.0.4 |
144 |
+" |
145 |
+RDEPEND="${DEPEND} |
146 |
+ !net-analyzer/openvas-client |
147 |
+" |
148 |
+BDEPEND="virtual/pkgconfig" |
149 |
+ |
150 |
+S="${WORKDIR}"/${P/_beta/+beta} |
151 |
+ |
152 |
+src_configure() { |
153 |
+ local mycmakeargs=( |
154 |
+ -DLOCALSTATEDIR="${EPREFIX}"/var |
155 |
+ -DSYSCONFDIR="${EPREFIX}"/etc |
156 |
+ ) |
157 |
+ cmake-utils_src_configure |
158 |
+} |
159 |
|
160 |
diff --git a/net-analyzer/openvas-libraries/Manifest b/net-analyzer/openvas-libraries/Manifest |
161 |
new file mode 100644 |
162 |
index 00000000000..042bb42a270 |
163 |
--- /dev/null |
164 |
+++ b/net-analyzer/openvas-libraries/Manifest |
165 |
@@ -0,0 +1 @@ |
166 |
+DIST openvas-libraries-9.0.3.tar.gz 643948 BLAKE2B c05fbcd2a1b9c2292ac2d7ea3c7f4fe2ff4c5a41b0dd5610283712ce136fe4184d46b9fdcfb74bf2a4a6d7c016497df31caff121d9c7b013280164b49f874f4f SHA512 bca213309e06a39d2dcd790cacb01f2a71471622887424e41cc025a2bc25feb6a9b2c1d904f739df6fd87d8ec7af5171b31d1f5d08411c5143e4be1e6723397a |
167 |
|
168 |
diff --git a/net-analyzer/openvas-libraries/files/OPENVAS.gentoo b/net-analyzer/openvas-libraries/files/OPENVAS.gentoo |
169 |
new file mode 100644 |
170 |
index 00000000000..ab3f4c8918c |
171 |
--- /dev/null |
172 |
+++ b/net-analyzer/openvas-libraries/files/OPENVAS.gentoo |
173 |
@@ -0,0 +1,106 @@ |
174 |
+----------------------------------------------------------------- |
175 |
+--------------------------IMPORTANT------------------------------ |
176 |
+----------------------------------------------------------------- |
177 |
+You will need to set up your /etc/redis.conf file properly before |
178 |
+running openvas-scanner for the first time. |
179 |
+For details, please see the example config file installed to: |
180 |
+--> /etc/openvas/redis.conf.example |
181 |
+Please configure /etc/openvas/openvassd.conf properly |
182 |
+according to redis listening unix socket. |
183 |
+e.g. /etc/openvas/openvassd.conf --> kb_location = /tmp/redis.sock |
184 |
+If you use first-start script it will check various issues and |
185 |
+automatically setup OpenVAS for first time use. |
186 |
+GSA(Greenbone Security Agent) WebUI listens port |
187 |
+9392(local) default. If you want to use nginx reverse proxy |
188 |
+to reach WebUI please see the example config file |
189 |
+--> /etc/openvas/gsa.nginx.reverse.proxy.example |
190 |
+otherwise you can change port to 443 or 80. |
191 |
+ |
192 |
+----------------------------------------------------------------- |
193 |
+---------------------------SCRIPTS------------------------------- |
194 |
+----------------------------------------------------------------- |
195 |
+'first-start' |
196 |
+--> Automatically setup OpenVAS for first time use |
197 |
+--> Installed in /etc/openvas/scripts |
198 |
+ |
199 |
+'openvas-feed-sync' |
200 |
+--> Updates Feeds | You can add this to cron |
201 |
+--> Installed in /etc/openvas/scripts |
202 |
+ |
203 |
+----------------------------------------------------------------- |
204 |
+----------ENVIRONMENT SETTINGS FOR SYSTEMD & OPEN-RC------------- |
205 |
+----------------------------------------------------------------- |
206 |
+'openvas-scanner-daemon.conf' |
207 |
+--> OpenVAS Scanner systemd daemon settings |
208 |
+--> Installed in /etc/openvas/sysconfig |
209 |
+ |
210 |
+'gvmd-daemon.conf' |
211 |
+--> OpenVAS Manager systemd daemon settings |
212 |
+--> Installed in /etc/openvas/sysconfig |
213 |
+ |
214 |
+'gsa-daemon.conf |
215 |
+--> Greenbone Security Agent systemd daemon settings |
216 |
+--> Installed in /etc/openvas/sysconfig |
217 |
+ |
218 |
+'openvas-scanner' |
219 |
+--> OpenVAS Scanner open-rc daemon settings |
220 |
+--> Installed in /etc/config.d |
221 |
+ |
222 |
+'gvmd' |
223 |
+--> OpenVAS Manager open-rc daemon settings |
224 |
+--> Installed in /etc/config.d |
225 |
+ |
226 |
+'gsa' |
227 |
+--> Greenbone Security Agent systemd daemon settings |
228 |
+--> Installed in /etc/config.d |
229 |
+ |
230 |
+----------------------------------------------------------------- |
231 |
+--------QUICK START COMMANDS (IF YOU DON'T USE SCRIPTS)---------- |
232 |
+----------------------------------------------------------------- |
233 |
+'env-update && source /etc/profile' |
234 |
+--> Update PATHS |
235 |
+ |
236 |
+'openvas-manage-certs -a' |
237 |
+--> Create certificates automatically first time |
238 |
+ |
239 |
+'greenbone-nvt-sync' |
240 |
+--> Update NVT Feed |
241 |
+ |
242 |
+'greenbone-scapdata-sync' |
243 |
+--> Update scapdata Feed |
244 |
+ |
245 |
+'greenbone-certdata-sync' |
246 |
+--> Update certdata Feed |
247 |
+ |
248 |
+'openvassd --foreground --only-cache' |
249 |
+--> Generate initial NVT cache and quit |
250 |
+ |
251 |
+'rc-service openvas-scanner start or systemctl start openvas-scanner' |
252 |
+--> Start OpenVAS-Scanner |
253 |
+ |
254 |
+'openvasmd --rebuild --progress' |
255 |
+--> Initialize the Database |
256 |
+ |
257 |
+'openvasmd --create-user=admin --role=Admin' |
258 |
+--> Create User for WEBUI.Save your password |
259 |
+ |
260 |
+'rc-service gvmd start or systemctl start gvmd' |
261 |
+--> Start OpenVAS-Manager |
262 |
+ |
263 |
+'rc-service gsa start or systemctl start gsa' |
264 |
+--> Start the Greenbone Security Assistant |
265 |
+ |
266 |
+----------------------------------------------------------------- |
267 |
+---------------------PLUGIN KEY AND SIGNING---------------------- |
268 |
+----------------------------------------------------------------- |
269 |
+'gpg --homedir=/etc/openvas/gnupg --gen-key' |
270 |
+--> Generate Key |
271 |
+ |
272 |
+'wget https://www.greenbone.net/GBCommunitySigningKey.asc' |
273 |
+--> Official OpenVAS Transfer Key |
274 |
+ |
275 |
+'gpg --homedir=/etc/openvas/gnupg --import GBCommunitySigningKey.asc' |
276 |
+--> Import OpenVAS Transfer Key |
277 |
+ |
278 |
+'gpg --homedir=/etc/openvas/gnupg --lsign-key 0ED1E580' |
279 |
+--> Sign |
280 |
|
281 |
diff --git a/net-analyzer/openvas-libraries/files/openvas-libraries-9.0.3-cachedir.patch b/net-analyzer/openvas-libraries/files/openvas-libraries-9.0.3-cachedir.patch |
282 |
new file mode 100644 |
283 |
index 00000000000..34fc9f68f43 |
284 |
--- /dev/null |
285 |
+++ b/net-analyzer/openvas-libraries/files/openvas-libraries-9.0.3-cachedir.patch |
286 |
@@ -0,0 +1,18 @@ |
287 |
+--- gvm-libs-9.0.3/CMakeLists.txt 2019-02-04 01:40:41.981031382 +0300 |
288 |
++++ gvm-libs-9.0.3/CMakeLists.txt 2019-02-04 01:44:08.867074208 +0300 |
289 |
+@@ -173,7 +173,6 @@ |
290 |
+ set (OPENVAS_DATA_DIR "${DATADIR}/openvas") |
291 |
+ set (OPENVAS_STATE_DIR "${LOCALSTATEDIR}/lib/openvas") |
292 |
+ set (OPENVAS_LOG_DIR "${LOCALSTATEDIR}/log/openvas") |
293 |
+-set (OPENVAS_CACHE_DIR "${LOCALSTATEDIR}/cache/openvas") |
294 |
+ set (OPENVAS_SYSCONF_DIR "${SYSCONFDIR}/openvas") |
295 |
+ |
296 |
+ set (OPENVAS_LIB_INSTALL_DIR "${LIBDIR}") |
297 |
+@@ -330,7 +329,6 @@ |
298 |
+ |
299 |
+ install (DIRECTORY DESTINATION ${OPENVAS_LOG_DIR}) |
300 |
+ install (DIRECTORY DESTINATION ${OPENVAS_DATA_DIR}) |
301 |
+-install (DIRECTORY DESTINATION ${OPENVAS_CACHE_DIR}) |
302 |
+ install (DIRECTORY DESTINATION ${OPENVAS_PID_DIR}) |
303 |
+ install (DIRECTORY DESTINATION ${OPENVAS_SYSCONF_DIR}) |
304 |
+ install (DIRECTORY |
305 |
|
306 |
diff --git a/net-analyzer/openvas-libraries/files/openvas-libraries-9.0.3-gcc8.patch b/net-analyzer/openvas-libraries/files/openvas-libraries-9.0.3-gcc8.patch |
307 |
new file mode 100644 |
308 |
index 00000000000..a2809087f82 |
309 |
--- /dev/null |
310 |
+++ b/net-analyzer/openvas-libraries/files/openvas-libraries-9.0.3-gcc8.patch |
311 |
@@ -0,0 +1,73 @@ |
312 |
+--- gvm-libs-9.0.3/nasl/nasl_isotime.c 2018-08-29 19:01:12.000000000 +0300 |
313 |
++++ gvm-libs-9.0.3/nasl/nasl_isotime.c 2019-02-01 21:11:40.460358131 +0300 |
314 |
+@@ -102,9 +102,13 @@ |
315 |
+ struct tm *tp; |
316 |
+ |
317 |
+ tp = gmtime (&atime); |
318 |
+- snprintf (timebuf, ISOTIME_SIZE, "%04d%02d%02dT%02d%02d%02d", |
319 |
++ if (snprintf (timebuf, ISOTIME_SIZE, "%04d%02d%02dT%02d%02d%02d", |
320 |
+ 1900 + tp->tm_year, tp->tm_mon+1, tp->tm_mday, |
321 |
+- tp->tm_hour, tp->tm_min, tp->tm_sec); |
322 |
++ tp->tm_hour, tp->tm_min, tp->tm_sec) < 0) |
323 |
++ { |
324 |
++ *timebuf = '\0'; |
325 |
++ return; |
326 |
++ } |
327 |
+ } |
328 |
+ } |
329 |
+ |
330 |
+@@ -480,8 +484,9 @@ |
331 |
+ || year < 0 || month < 1 || day < 1) |
332 |
+ return 1; |
333 |
+ |
334 |
+- snprintf (atime, ISOTIME_SIZE, "%04d%02d%02dT%02d%02d%02d", |
335 |
+- year, month, day, hour, minute, sec); |
336 |
++ if (snprintf (atime, ISOTIME_SIZE, "%04d%02d%02dT%02d%02d%02d", |
337 |
++ year, month, day, hour, minute, sec) < 0) |
338 |
++ return 1; |
339 |
+ return 0; |
340 |
+ } |
341 |
+ |
342 |
+@@ -519,8 +524,9 @@ |
343 |
+ || year < 0 || month < 1 || day < 1) |
344 |
+ return 1; |
345 |
+ |
346 |
+- snprintf (atime, ISOTIME_SIZE, "%04d%02d%02dT%02d%02d%02d", |
347 |
+- year, month, day, hour, minute, sec); |
348 |
++ if (snprintf (atime, ISOTIME_SIZE, "%04d%02d%02dT%02d%02d%02d", |
349 |
++ year, month, day, hour, minute, sec) < 0) |
350 |
++ return 1; |
351 |
+ return 0; |
352 |
+ } |
353 |
+ |
354 |
+@@ -558,13 +564,14 @@ |
355 |
+ || year < 0 || month < 1 || day < 1) |
356 |
+ return 1; |
357 |
+ |
358 |
+- snprintf (atime, ISOTIME_SIZE, "%04d%02d%02dT%02d%02d%02d", |
359 |
+- year, month, day, hour, minute, sec); |
360 |
++ if (snprintf (atime, ISOTIME_SIZE, "%04d%02d%02dT%02d%02d%02d", |
361 |
++ year, month, day, hour, minute, sec) < 0) |
362 |
++ return 1; |
363 |
+ return 0; |
364 |
+ } |
365 |
+ |
366 |
+ |
367 |
+- |
368 |
++ |
369 |
+ /** |
370 |
+ * @brief Return the current time in ISO format |
371 |
+ * @naslfn{isotime_now} |
372 |
+@@ -784,9 +791,9 @@ |
373 |
+ memcpy (timebuf, string, ISOTIME_SIZE -1); |
374 |
+ timebuf[ISOTIME_SIZE - 1] = 0; |
375 |
+ |
376 |
+- nyears = get_int_local_var_by_name (lexic, "years", 0); |
377 |
+- ndays = get_int_local_var_by_name (lexic, "days", 0); |
378 |
+- nseconds = get_int_local_var_by_name (lexic, "seconds", 0); |
379 |
++ nyears = get_int_var_by_name (lexic, "years", 0); |
380 |
++ ndays = get_int_var_by_name (lexic, "days", 0); |
381 |
++ nseconds = get_int_var_by_name (lexic, "seconds", 0); |
382 |
+ |
383 |
+ if (nyears && add_years_to_isotime (timebuf, nyears)) |
384 |
+ return NULL; |
385 |
|
386 |
diff --git a/net-analyzer/openvas-libraries/files/openvas-libraries-9.0.3-netsnmp.patch b/net-analyzer/openvas-libraries/files/openvas-libraries-9.0.3-netsnmp.patch |
387 |
new file mode 100644 |
388 |
index 00000000000..69305576d0d |
389 |
--- /dev/null |
390 |
+++ b/net-analyzer/openvas-libraries/files/openvas-libraries-9.0.3-netsnmp.patch |
391 |
@@ -0,0 +1,11 @@ |
392 |
+--- gvm-libs-9.0.3/CMakeLists.txt 2018-08-29 19:01:12.000000000 +0300 |
393 |
++++ gvm-libs-9.0.3/CMakeLists.txt 2019-02-01 20:58:45.946113012 +0300 |
394 |
+@@ -238,7 +238,7 @@ |
395 |
+ OUTPUT_STRIP_TRAILING_WHITESPACE) |
396 |
+ |
397 |
+ message (STATUS "Looking for netsnmp...") |
398 |
+- find_library (SNMP snmp) |
399 |
++ find_library (SNMP netsnmp) |
400 |
+ message (STATUS "Looking for netsnmp... ${SNMP}") |
401 |
+ if (SNMP) |
402 |
+ execute_process (COMMAND net-snmp-config --libs |
403 |
|
404 |
diff --git a/net-analyzer/openvas-libraries/files/openvas-libraries-9.0.3-rpath.patch b/net-analyzer/openvas-libraries/files/openvas-libraries-9.0.3-rpath.patch |
405 |
new file mode 100644 |
406 |
index 00000000000..e14e2965e9f |
407 |
--- /dev/null |
408 |
+++ b/net-analyzer/openvas-libraries/files/openvas-libraries-9.0.3-rpath.patch |
409 |
@@ -0,0 +1,11 @@ |
410 |
+--- gvm-libs-9.0.3/CMakeLists.txt 2019-02-04 21:42:27.367627369 +0300 |
411 |
++++ gvm-libs-9.0.3/CMakeLists.txt 2019-02-04 21:45:48.961135211 +0300 |
412 |
+@@ -80,7 +80,7 @@ |
413 |
+ # TODO: Check pkg-config (maybe with code like in gsa/CMakeLists.txt). |
414 |
+ |
415 |
+ ## CPack configuration |
416 |
+- |
417 |
++set (CMAKE_BUILD_WITH_INSTALL_RPATH TRUE) |
418 |
+ set (CPACK_CMAKE_GENERATOR "Unix Makefiles") |
419 |
+ set (CPACK_GENERATOR "TGZ") |
420 |
+ set (CPACK_INSTALL_CMAKE_PROJECTS ".;openvas-libraries;ALL;/") |
421 |
|
422 |
diff --git a/net-analyzer/openvas-libraries/files/openvas-libraries-9.0.3-rundir.patch b/net-analyzer/openvas-libraries/files/openvas-libraries-9.0.3-rundir.patch |
423 |
new file mode 100644 |
424 |
index 00000000000..6ecdc8a6421 |
425 |
--- /dev/null |
426 |
+++ b/net-analyzer/openvas-libraries/files/openvas-libraries-9.0.3-rundir.patch |
427 |
@@ -0,0 +1,45 @@ |
428 |
+--- gvm-libs-9.0.3/CMakeLists.txt 2019-02-04 14:50:41.230530261 +0300 |
429 |
++++ gvm-libs-9.0.3/CMakeLists.txt 2019-02-04 14:55:08.649433070 +0300 |
430 |
+@@ -162,9 +162,9 @@ |
431 |
+ set (DATADIR "${CMAKE_INSTALL_PREFIX}/share") |
432 |
+ endif (NOT DATADIR) |
433 |
+ |
434 |
+-if (NOT OPENVAS_PID_DIR) |
435 |
+- set (OPENVAS_PID_DIR "${LOCALSTATEDIR}/run") |
436 |
+-endif (NOT OPENVAS_PID_DIR) |
437 |
++#if (NOT OPENVAS_PID_DIR) |
438 |
++# set (OPENVAS_PID_DIR "${LOCALSTATEDIR}/run") |
439 |
++#endif (NOT OPENVAS_PID_DIR) |
440 |
+ |
441 |
+ #if (NOT SYSCONFDIR) |
442 |
+ # set (SYSCONFDIR "${CMAKE_INSTALL_PREFIX}/etc") |
443 |
+--- gvm-libs-9.0.3/base/pidfile.c 2018-08-29 19:01:12.000000000 +0300 |
444 |
++++ gvm-libs-9.0.3/base/pidfile.c 2019-02-04 15:08:04.600958560 +0300 |
445 |
+@@ -59,7 +59,7 @@ |
446 |
+ pidfile_create (gchar * daemon_name) |
447 |
+ { |
448 |
+ gchar *name_pid = g_strconcat (daemon_name, ".pid", NULL); |
449 |
+- gchar *pidfile_name = g_build_filename (OPENVAS_PID_DIR, name_pid, NULL); |
450 |
++ gchar *pidfile_name = g_build_filename (name_pid, NULL); |
451 |
+ FILE *pidfile = g_fopen (pidfile_name, "w"); |
452 |
+ |
453 |
+ g_free (name_pid); |
454 |
+@@ -88,7 +88,7 @@ |
455 |
+ pidfile_remove (gchar * daemon_name) |
456 |
+ { |
457 |
+ gchar *name_pid = g_strconcat (daemon_name, ".pid", NULL); |
458 |
+- gchar *pidfile_name = g_build_filename (OPENVAS_PID_DIR, name_pid, NULL); |
459 |
++ gchar *pidfile_name = g_build_filename (name_pid, NULL); |
460 |
+ gchar *pidfile_contents; |
461 |
+ |
462 |
+ g_free (name_pid); |
463 |
+--- gvm-libs-9.0.3/CMakeLists.txt 2019-02-04 17:39:39.776282496 +0300 |
464 |
++++ gvm-libs-9.0.3/CMakeLists.txt 2019-02-04 17:39:23.160269081 +0300 |
465 |
+@@ -329,7 +329,6 @@ |
466 |
+ |
467 |
+ install (DIRECTORY DESTINATION ${OPENVAS_LOG_DIR}) |
468 |
+ install (DIRECTORY DESTINATION ${OPENVAS_DATA_DIR}) |
469 |
+-install (DIRECTORY DESTINATION ${OPENVAS_PID_DIR}) |
470 |
+ install (DIRECTORY DESTINATION ${OPENVAS_SYSCONF_DIR}) |
471 |
+ install (DIRECTORY |
472 |
+ DESTINATION ${OPENVAS_SYSCONF_DIR}/gnupg |
473 |
|
474 |
diff --git a/net-analyzer/openvas-libraries/files/openvas-libraries-9.0.3-underlinking.patch b/net-analyzer/openvas-libraries/files/openvas-libraries-9.0.3-underlinking.patch |
475 |
new file mode 100644 |
476 |
index 00000000000..e3c25f9b9c4 |
477 |
--- /dev/null |
478 |
+++ b/net-analyzer/openvas-libraries/files/openvas-libraries-9.0.3-underlinking.patch |
479 |
@@ -0,0 +1,47 @@ |
480 |
+--- gvm-libs-9.0.3/base/CMakeLists.txt 2019-02-04 15:11:20.848707365 +0300 |
481 |
++++ gvm-libs-9.0.3/base/CMakeLists.txt 2019-02-04 15:40:27.745955904 +0300 |
482 |
+@@ -88,7 +88,7 @@ |
483 |
+ assuan libgpg-error ole32 ws2_32 ffi z shlwapi dnsapi winmm) |
484 |
+ target_link_libraries (openvas_base_shared ${W32LIBS}) |
485 |
+ else (MINGW) |
486 |
+- target_link_libraries (openvas_base_shared LINK_PRIVATE ${GLIB_LDFLAGS} ${GIO_LDFLAGS} ${ZLIB_LDFLAGS} ${GPGME_LDFLAGS} ${REDIS_LDFLAGS} ${LINKER_HARDENING_FLAGS}) |
487 |
++ target_link_libraries (openvas_base_shared LINK_PRIVATE ${LIBSSH_LDFLAGS} ${GLIB_LDFLAGS} ${GIO_LDFLAGS} ${ZLIB_LDFLAGS} ${GPGME_LDFLAGS} ${REDIS_LDFLAGS} ${LINKER_HARDENING_FLAGS}) |
488 |
+ endif (MINGW) |
489 |
+ endif (BUILD_SHARED) |
490 |
+ |
491 |
+@@ -102,10 +102,10 @@ |
492 |
+ |
493 |
+ # Link the test-hosts executable |
494 |
+ # TODO: This is currently only built for BUILD_SHARED |
495 |
+-if (BUILD_SHARED) |
496 |
+- add_executable (test-hosts test-hosts.c) |
497 |
+- target_link_libraries (test-hosts openvas_base_shared ${GLIB_LDFLAGS} ${REDIS_LDFLAGS}) |
498 |
+-endif (BUILD_SHARED) |
499 |
++#if (BUILD_SHARED) |
500 |
++# add_executable (test-hosts test-hosts.c) |
501 |
++# target_link_libraries (test-hosts openvas_base_shared ${GLIB_LDFLAGS} ${REDIS_LDFLAGS}) |
502 |
++#endif (BUILD_SHARED) |
503 |
+ |
504 |
+ ## Install |
505 |
+ if (BUILD_STATIC) |
506 |
+@@ -123,3 +123,4 @@ |
507 |
+ endif (BUILD_SHARED) |
508 |
+ |
509 |
+ ## End |
510 |
++ |
511 |
+--- gvm-libs-9.0.3/misc/CMakeLists.txt 2019-02-04 15:11:20.847707368 +0300 |
512 |
++++ gvm-libs-9.0.3/misc/CMakeLists.txt 2019-02-04 15:49:34.035071570 +0300 |
513 |
+@@ -146,7 +146,7 @@ |
514 |
+ else (MINGW) |
515 |
+ target_link_libraries (openvas_misc_shared LINK_PRIVATE ${GNUTLS_LDFLAGS} openvas_base_shared ${UUID_LDFLAGS} |
516 |
+ ${GLIB_LDFLAGS} ${PCAP_LDFLAGS} ${LIBSSH_LDFLAGS} ${LDAP_LDFLAGS} |
517 |
+- ${GCRYPT_LDFLAGS} ${RADIUS_LDFLAGS} |
518 |
++ ${REDIS_LDFLAGS} ${GCRYPT_LDFLAGS} ${RADIUS_LDFLAGS} |
519 |
+ ${LINKER_HARDENING_FLAGS}) |
520 |
+ endif (MINGW) |
521 |
+ endif (BUILD_SHARED) |
522 |
+@@ -198,3 +198,4 @@ |
523 |
+ ARCHIVE DESTINATION ${LIBDIR} |
524 |
+ PUBLIC_HEADER DESTINATION "${INCLUDEDIR}/openvas/misc") |
525 |
+ endif (BUILD_SHARED) |
526 |
++ |
527 |
|
528 |
diff --git a/net-analyzer/openvas-libraries/metadata.xml b/net-analyzer/openvas-libraries/metadata.xml |
529 |
new file mode 100644 |
530 |
index 00000000000..c71bb473eca |
531 |
--- /dev/null |
532 |
+++ b/net-analyzer/openvas-libraries/metadata.xml |
533 |
@@ -0,0 +1,17 @@ |
534 |
+<?xml version="1.0" encoding="UTF-8"?> |
535 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
536 |
+<pkgmetadata> |
537 |
+ <maintainer type="person"> |
538 |
+ <email>hasan.calisir@×××××××.com</email> |
539 |
+ <name>Hasan ÇALIŞIR</name> |
540 |
+ </maintainer> |
541 |
+ <maintainer type="project"> |
542 |
+ <email>proxy-maint@g.o</email> |
543 |
+ <name>Proxy Maintainers</name> |
544 |
+ </maintainer> |
545 |
+ <use> |
546 |
+ <flag name="extras">Html docs support</flag> |
547 |
+ <flag name="ldap">Enable support for ldap</flag> |
548 |
+ <flag name="radius">Enable support for radius</flag> |
549 |
+ </use> |
550 |
+</pkgmetadata> |
551 |
|
552 |
diff --git a/net-analyzer/openvas-libraries/openvas-libraries-9.0.3-r1.ebuild b/net-analyzer/openvas-libraries/openvas-libraries-9.0.3-r1.ebuild |
553 |
new file mode 100644 |
554 |
index 00000000000..8f1d7043fc1 |
555 |
--- /dev/null |
556 |
+++ b/net-analyzer/openvas-libraries/openvas-libraries-9.0.3-r1.ebuild |
557 |
@@ -0,0 +1,94 @@ |
558 |
+# Copyright 1999-2019 Gentoo Authors |
559 |
+# Distributed under the terms of the GNU General Public License v2 |
560 |
+ |
561 |
+EAPI=7 |
562 |
+ |
563 |
+CMAKE_MAKEFILE_GENERATOR="emake" |
564 |
+inherit cmake-utils |
565 |
+MY_PN="gvm-libs" |
566 |
+ |
567 |
+DESCRIPTION="A remote security scanner for Linux (openvas-libraries)" |
568 |
+HOMEPAGE="http://www.openvas.org/" |
569 |
+SRC_URI="https://github.com/greenbone/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
570 |
+ |
571 |
+SLOT="0" |
572 |
+LICENSE="GPL-2" |
573 |
+KEYWORDS="~amd64 ~x86" |
574 |
+IUSE="extras ldap radius" |
575 |
+ |
576 |
+DEPEND=" |
577 |
+ app-crypt/gpgme:= |
578 |
+ dev-libs/hiredis |
579 |
+ dev-libs/libgcrypt:0= |
580 |
+ dev-libs/libksba |
581 |
+ dev-perl/UUID |
582 |
+ net-analyzer/net-snmp |
583 |
+ net-libs/gnutls:=[tools] |
584 |
+ net-libs/libpcap |
585 |
+ net-libs/libssh:= |
586 |
+ sys-libs/zlib |
587 |
+ extras? ( dev-perl/CGI ) |
588 |
+ ldap? ( net-nds/openldap ) |
589 |
+ radius? ( net-dialup/freeradius-client )" |
590 |
+ |
591 |
+RDEPEND=" |
592 |
+ ${DEPEND}" |
593 |
+ |
594 |
+BDEPEND=" |
595 |
+ sys-devel/bison |
596 |
+ sys-devel/flex |
597 |
+ virtual/pkgconfig |
598 |
+ extras? ( app-doc/doxygen[dot] |
599 |
+ app-doc/xmltoman |
600 |
+ app-text/htmldoc |
601 |
+ dev-perl/SQL-Translator |
602 |
+ )" |
603 |
+ |
604 |
+PATCHES=( |
605 |
+ "${FILESDIR}/${P}-gcc8.patch" |
606 |
+ "${FILESDIR}/${P}-netsnmp.patch" |
607 |
+ "${FILESDIR}/${P}-cachedir.patch" |
608 |
+ "${FILESDIR}/${P}-rundir.patch" |
609 |
+ "${FILESDIR}/${P}-underlinking.patch" |
610 |
+ "${FILESDIR}/${P}-rpath.patch" |
611 |
+) |
612 |
+ |
613 |
+BUILD_DIR="${WORKDIR}/${MY_PN}-${PV}_build" |
614 |
+S="${WORKDIR}/${MY_PN}-${PV}" |
615 |
+ |
616 |
+src_prepare() { |
617 |
+ cmake-utils_src_prepare |
618 |
+ if use extras; then |
619 |
+ doxygen -u "$S"/doc/Doxyfile_full.in || die |
620 |
+ fi |
621 |
+} |
622 |
+ |
623 |
+src_configure() { |
624 |
+ local mycmakeargs=( |
625 |
+ "-DCMAKE_INSTALL_PREFIX=${EPREFIX}/usr" |
626 |
+ "-DLOCALSTATEDIR=${EPREFIX}/var" |
627 |
+ "-DSYSCONFDIR=${EPREFIX}/etc" |
628 |
+ $(usex ldap -DBUILD_WITHOUT_LDAP=0 -DBUILD_WITHOUT_LDAP=1) |
629 |
+ $(usex radius -DBUILD_WITHOUT_RADIUS=0 -DBUILD_WITHOUT_RADIUS=1) |
630 |
+ ) |
631 |
+ cmake-utils_src_configure |
632 |
+} |
633 |
+ |
634 |
+src_compile() { |
635 |
+ cmake-utils_src_compile |
636 |
+ if use extras; then |
637 |
+ cmake-utils_src_make -C "${BUILD_DIR}" doc |
638 |
+ cmake-utils_src_make doc-full -C "${BUILD_DIR}" doc |
639 |
+ HTML_DOCS=( "${BUILD_DIR}"/doc/generated/html/. ) |
640 |
+ fi |
641 |
+} |
642 |
+ |
643 |
+src_install() { |
644 |
+ cmake-utils_src_install |
645 |
+ |
646 |
+ insinto /usr/share/openvas |
647 |
+ doins "${FILESDIR}"/OPENVAS.gentoo |
648 |
+ |
649 |
+ keepdir /var/lib/openvas/gnupg |
650 |
+ keepdir /var/log/openvas |
651 |
+} |
652 |
|
653 |
diff --git a/net-analyzer/openvas-tools/Manifest b/net-analyzer/openvas-tools/Manifest |
654 |
new file mode 100644 |
655 |
index 00000000000..dcafeba511e |
656 |
--- /dev/null |
657 |
+++ b/net-analyzer/openvas-tools/Manifest |
658 |
@@ -0,0 +1 @@ |
659 |
+DIST openvas-tools-0_pre20512.tar.xz 46100 BLAKE2B 4d497ef59620818c872756b9b251fa813b255d172e0e9968a130700f7851342b7a238790637e3fe93d93b664e2cc01af28d55c006ae38a64480be26fd4f824eb SHA512 ab524c18a9c9cbfbc742d19c55c7eacc99c39d9209d3f915a6e0070c662f9761cc55b1166dfb48cdaab2607a07ea0640ff9f0a3d48a364409e516a3142f96cbb |
660 |
|
661 |
diff --git a/net-analyzer/openvas-tools/metadata.xml b/net-analyzer/openvas-tools/metadata.xml |
662 |
new file mode 100644 |
663 |
index 00000000000..6f49eba8f49 |
664 |
--- /dev/null |
665 |
+++ b/net-analyzer/openvas-tools/metadata.xml |
666 |
@@ -0,0 +1,5 @@ |
667 |
+<?xml version="1.0" encoding="UTF-8"?> |
668 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
669 |
+<pkgmetadata> |
670 |
+<!-- maintainer-needed --> |
671 |
+</pkgmetadata> |
672 |
|
673 |
diff --git a/net-analyzer/openvas-tools/openvas-tools-0_pre20512.ebuild b/net-analyzer/openvas-tools/openvas-tools-0_pre20512.ebuild |
674 |
new file mode 100644 |
675 |
index 00000000000..48c6d833eac |
676 |
--- /dev/null |
677 |
+++ b/net-analyzer/openvas-tools/openvas-tools-0_pre20512.ebuild |
678 |
@@ -0,0 +1,27 @@ |
679 |
+# Copyright 1999-2014 Gentoo Foundation |
680 |
+# Distributed under the terms of the GNU General Public License v2 |
681 |
+ |
682 |
+EAPI=5 |
683 |
+ |
684 |
+inherit multilib |
685 |
+ |
686 |
+DESCRIPTION="A remote security scanner for Linux (extra tools)" |
687 |
+HOMEPAGE="http://www.openvas.org/" |
688 |
+SRC_URI="https://dev.gentoo.org/~jlec/distfiles/${P}.tar.xz" |
689 |
+ |
690 |
+SLOT="0" |
691 |
+LICENSE="GPL-2" |
692 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
693 |
+IUSE="" |
694 |
+ |
695 |
+S="${WORKDIR}"/tools |
696 |
+ |
697 |
+src_install() { |
698 |
+ insinto /usr/$(get_libdir)/nagios/plugins/ |
699 |
+ doins nagios/* |
700 |
+ |
701 |
+ dosbin openvas-check-setup |
702 |
+ |
703 |
+ insinto /usr/share/vim/vimfiles/syntax |
704 |
+ doins nasl.vim |
705 |
+} |
706 |
|
707 |
diff --git a/net-analyzer/openvas/metadata.xml b/net-analyzer/openvas/metadata.xml |
708 |
new file mode 100644 |
709 |
index 00000000000..a2806dd34dc |
710 |
--- /dev/null |
711 |
+++ b/net-analyzer/openvas/metadata.xml |
712 |
@@ -0,0 +1,20 @@ |
713 |
+<?xml version="1.0" encoding="UTF-8"?> |
714 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
715 |
+<pkgmetadata> |
716 |
+ <maintainer type="person"> |
717 |
+ <email>hasan.calisir@×××××××.com</email> |
718 |
+ <name>Hasan ÇALIŞIR</name> |
719 |
+ </maintainer> |
720 |
+ <maintainer type="project"> |
721 |
+ <email>proxy-maint@g.o</email> |
722 |
+ <name>Proxy Maintainers</name> |
723 |
+ </maintainer> |
724 |
+ <use> |
725 |
+ <flag name="extras">Extra fonts, pdf results and html docs support</flag> |
726 |
+ <flag name="cli">Command Line Interface for OpenVAS Scanner throught <pkg>net-analyzer/gvm-tools</pkg></flag> |
727 |
+ <flag name="gsa">Greenbone Security Assistant (WebUI) through <pkg>net-analyzer/greenbone-security-assistant</pkg></flag> |
728 |
+ <flag name="ospd">Enable support for scanner wrappers through <pkg>net-analyzer/ospd</pkg></flag> |
729 |
+ <flag name="ldap">Enable support for ldap through <pkg>net-nds/openldap</pkg></flag> |
730 |
+ <flag name="radius">Enable support for radius through <pkg>net-dialup/freeradius-client</pkg></flag> |
731 |
+ </use> |
732 |
+</pkgmetadata> |
733 |
|
734 |
diff --git a/net-analyzer/openvas/openvas-9.0.0.ebuild b/net-analyzer/openvas/openvas-9.0.0.ebuild |
735 |
new file mode 100644 |
736 |
index 00000000000..b9d86a8e6da |
737 |
--- /dev/null |
738 |
+++ b/net-analyzer/openvas/openvas-9.0.0.ebuild |
739 |
@@ -0,0 +1,38 @@ |
740 |
+# Copyright 1999-2019 Gentoo Authors |
741 |
+# Distributed under the terms of the GNU General Public License v2 |
742 |
+ |
743 |
+EAPI=7 |
744 |
+ |
745 |
+inherit eutils |
746 |
+ |
747 |
+DESCRIPTION="A remote security scanner" |
748 |
+HOMEPAGE="http://www.openvas.org/" |
749 |
+ |
750 |
+SLOT="0" |
751 |
+LICENSE="GPL-2" |
752 |
+KEYWORDS="~amd64 ~x86" |
753 |
+IUSE="+cli +extras +gsa ldap +ospd radius" |
754 |
+ |
755 |
+RDEPEND=" |
756 |
+ >=net-analyzer/openvas-libraries-9.0.3[extras?] |
757 |
+ >=net-analyzer/openvas-manager-7.0.3[extras?] |
758 |
+ ~net-analyzer/openvas-scanner-5.1.3[extras?] |
759 |
+ cli? ( >=net-analyzer/gvm-tools-1.4.1 ) |
760 |
+ gsa? ( ~net-analyzer/greenbone-security-assistant-7.0.3[extras?] ) |
761 |
+ ldap? ( >=net-analyzer/openvas-libraries-9.0.3[ldap] ) |
762 |
+ ospd? ( >=net-analyzer/ospd-1.3.2[extras?] ) |
763 |
+ radius? ( >=net-analyzer/openvas-libraries-9.0.3[radius] )" |
764 |
+ |
765 |
+pkg_postinst() { |
766 |
+ elog "----------------------------IMPORTANT----------------------------" |
767 |
+ elog " Please read important notes > /usr/share/openvas/OPENVAS.gentoo " |
768 |
+ elog "-----------------------------------------------------------------" |
769 |
+ elog "Additional support for extra checks can be get from" |
770 |
+ optfeature "Web server scanning and testing tool" net-analyzer/nikto |
771 |
+ optfeature "Portscanner" net-analyzer/nmap |
772 |
+ optfeature "IPsec VPN scanning, fingerprinting and testing tool" net-analyzer/ike-scan |
773 |
+ optfeature "Application protocol detection tool" net-analyzer/amap |
774 |
+ optfeature "ovaldi (OVAL) — an OVAL Interpreter" app-forensics/ovaldi |
775 |
+ optfeature "Linux-kernel-based portscanner" net-analyzer/portbunny |
776 |
+ optfeature "Web application attack and audit framework" net-analyzer/w3af |
777 |
+} |
778 |
|
779 |
diff --git a/profiles/package.mask b/profiles/package.mask |
780 |
index 33198ab90c2..07cf9a4704b 100644 |
781 |
--- a/profiles/package.mask |
782 |
+++ b/profiles/package.mask |
783 |
@@ -354,6 +354,12 @@ app-portage/install-mask |
784 |
# Removal in 30 days. |
785 |
dev-ada/gps-bin |
786 |
|
787 |
+# Michał Górny <mgorny@g.o> (2019-11-01) |
788 |
+# Both make no sense with dev-embedded/gnap removed. |
789 |
+# Removal in 14 days. Bug #699072. |
790 |
+dev-embedded/gnap-dev |
791 |
+dev-embedded/gnap-ext |
792 |
+ |
793 |
# Hans de Graaff <graaff@g.o> (2019-10-25) |
794 |
# ruby24-only, no longer supported by upstream. |
795 |
# Migrate to Rails 5.2 instead. Masked for removal in 30 days. |