gnu: Use 'gtk-doc/stable' in native-inputs of selected packages.
[jackhill/guix/guix.git] / gnu / packages / networking.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014, 2017, 2018 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2015, 2016, 2017, 2018, 2020 Ricardo Wurmus <rekado@elephly.net>
4 ;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
5 ;;; Copyright © 2015, 2016, 2017 Stefan Reichör <stefan@xsteve.at>
6 ;;; Copyright © 2016 Raimon Grau <raimonster@gmail.com>
7 ;;; Copyright © 2016–2021 Tobias Geerinckx-Rice <me@tobias.gr>
8 ;;; Copyright © 2016 John Darrington <jmd@gnu.org>
9 ;;; Copyright © 2016, 2017, 2018, 2019, 2020, 2021 Nicolas Goaziou <mail@nicolasgoaziou.fr>
10 ;;; Copyright © 2016 Eric Bavier <bavier@member.fsf.org>
11 ;;; Copyright © 2016, 2017 Nikita <nikita@n0.is>
12 ;;; Copyright © 2016, 2017, 2018 Arun Isaac <arunisaac@systemreboot.net>
13 ;;; Copyright © 2016 Benz Schenk <benz.schenk@uzh.ch>
14 ;;; Copyright © 2016, 2017 Pjotr Prins <pjotr.guix@thebird.nl>
15 ;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
16 ;;; Copyright © 2017, 2020 Leo Famulari <leo@famulari.name>
17 ;;; Copyright © 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
18 ;;; Copyright © 2017, 2018, 2019 Rutger Helling <rhelling@mykolab.com>
19 ;;; Copyright © 2017, 2019 Gábor Boskovits <boskovits@gmail.com>
20 ;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
21 ;;; Copyright © 2018 Adam Van Ymeren <adam@vany.ca>
22 ;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com>
23 ;;; Copyright © 2018 Tonton <tonton@riseup.net>
24 ;;; Copyright © 2018 Clément Lassieur <clement@lassieur.org>
25 ;;; Copyright © 2018 Theodoros Foradis <theodoros@foradis.org>
26 ;;; Copyright © 2018, 2020 Marius Bakke <mbakke@fastmail.com>
27 ;;; Copyright © 2018, 2020 Oleg Pykhalov <go.wigust@gmail.com>
28 ;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz>
29 ;;; Copyright © 2019, 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
30 ;;; Copyright © 2019 Vasile Dumitrascu <va511e@yahoo.com>
31 ;;; Copyright © 2019 Julien Lepiller <julien@lepiller.eu>
32 ;;; Copyright © 2019 Timotej Lazar <timotej.lazar@araneo.si>
33 ;;; Copyright © 2019 Brice Waegeneire <brice@waegenei.re>
34 ;;; Copyright © 2019 Tonton <tonton@riseup.net>
35 ;;; Copyright © 2019, 2020 Alex Griffin <a@ajgrf.com>
36 ;;; Copyright © 2019, 2020 Jan Wielkiewicz <tona_kosmicznego_smiecia@interia.pl>
37 ;;; Copyright © 2019 Daniel Schaefer <git@danielschaefer.me>
38 ;;; Copyright © 2019 Diego N. Barbato <dnbarbato@posteo.de>
39 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
40 ;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
41 ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
42 ;;; Copyright © 2020 Jesse Dowell <jessedowell@gmail.com>
43 ;;; Copyright © 2020 Hamzeh Nasajpour <h.nasajpour@pantherx.org>
44 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
45 ;;;
46 ;;; This file is part of GNU Guix.
47 ;;;
48 ;;; GNU Guix is free software; you can redistribute it and/or modify it
49 ;;; under the terms of the GNU General Public License as published by
50 ;;; the Free Software Foundation; either version 3 of the License, or (at
51 ;;; your option) any later version.
52 ;;;
53 ;;; GNU Guix is distributed in the hope that it will be useful, but
54 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
55 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
56 ;;; GNU General Public License for more details.
57 ;;;
58 ;;; You should have received a copy of the GNU General Public License
59 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
60
61 (define-module (gnu packages networking)
62 #:use-module ((guix licenses) #:prefix license:)
63 #:use-module (guix packages)
64 #:use-module (guix download)
65 #:use-module (guix git-download)
66 #:use-module (guix build-system cmake)
67 #:use-module (guix build-system glib-or-gtk)
68 #:use-module (guix build-system gnu)
69 #:use-module (guix build-system go)
70 #:use-module (guix build-system meson)
71 #:use-module (guix build-system perl)
72 #:use-module (guix build-system python)
73 #:use-module (guix build-system trivial)
74 #:use-module (guix utils)
75 #:use-module (gnu packages)
76 #:use-module (gnu packages admin)
77 #:use-module (gnu packages adns)
78 #:use-module (gnu packages algebra)
79 #:use-module (gnu packages audio)
80 #:use-module (gnu packages autogen)
81 #:use-module (gnu packages autotools)
82 #:use-module (gnu packages base)
83 #:use-module (gnu packages bison)
84 #:use-module (gnu packages boost)
85 #:use-module (gnu packages check)
86 #:use-module (gnu packages code)
87 #:use-module (gnu packages compression)
88 #:use-module (gnu packages cpp)
89 #:use-module (gnu packages crypto)
90 #:use-module (gnu packages curl)
91 #:use-module (gnu packages cyrus-sasl)
92 #:use-module (gnu packages dejagnu)
93 #:use-module (gnu packages docbook)
94 #:use-module (gnu packages documentation)
95 #:use-module (gnu packages flex)
96 #:use-module (gnu packages freedesktop)
97 #:use-module (gnu packages gettext)
98 #:use-module (gnu packages glib)
99 #:use-module (gnu packages gnome)
100 #:use-module (gnu packages gnupg)
101 #:use-module (gnu packages golang)
102 #:use-module (gnu packages graphviz)
103 #:use-module (gnu packages gstreamer)
104 #:use-module (gnu packages gtk)
105 #:use-module (gnu packages image)
106 #:use-module (gnu packages libevent)
107 #:use-module (gnu packages libidn)
108 #:use-module (gnu packages linux)
109 #:use-module (gnu packages lua)
110 #:use-module (gnu packages multiprecision)
111 #:use-module (gnu packages kerberos)
112 #:use-module (gnu packages ncurses)
113 #:use-module (gnu packages nettle)
114 #:use-module (gnu packages openldap)
115 #:use-module (gnu packages onc-rpc)
116 #:use-module (gnu packages password-utils)
117 #:use-module (gnu packages pcre)
118 #:use-module (gnu packages perl)
119 #:use-module (gnu packages perl-check)
120 #:use-module (gnu packages pkg-config)
121 #:use-module (gnu packages polkit)
122 #:use-module (gnu packages pretty-print)
123 #:use-module (gnu packages pulseaudio)
124 #:use-module (gnu packages python)
125 #:use-module (gnu packages python-web)
126 #:use-module (gnu packages python-xyz)
127 #:use-module (gnu packages qt)
128 #:use-module (gnu packages readline)
129 #:use-module (gnu packages ruby)
130 #:use-module (gnu packages samba)
131 #:use-module (gnu packages serialization)
132 #:use-module (gnu packages shells)
133 #:use-module (gnu packages sphinx)
134 #:use-module (gnu packages sqlite)
135 #:use-module (gnu packages ssh)
136 #:use-module (gnu packages tcl)
137 #:use-module (gnu packages textutils)
138 #:use-module (gnu packages tls)
139 #:use-module (gnu packages valgrind)
140 #:use-module (gnu packages web)
141 #:use-module (gnu packages wxwidgets)
142 #:use-module (gnu packages xml)
143 #:use-module (ice-9 match))
144
145 (define-public usrsctp
146 (package
147 (name "usrsctp")
148 (version "0.9.5.0")
149 (source
150 (origin
151 (method git-fetch)
152 (uri
153 (git-reference
154 (url "https://github.com/sctplab/usrsctp")
155 (commit version)))
156 (file-name (git-file-name name version))
157 (sha256
158 (base32 "10ndzkip8blgkw572n3dicl6mgjaa7kygwn3vls80liq92vf1sa9"))))
159 (build-system gnu-build-system)
160 (native-inputs
161 `(("autoconf" ,autoconf)
162 ("automake" ,automake)
163 ("libtool" ,libtool)
164 ("pkg-config" ,pkg-config)
165 ("python" ,python-wrapper)
166 ("which" ,which)))
167 (home-page "https://github.com/sctplab/usrsctp/")
168 (synopsis "SCTP user-land implementation")
169 (description "UsrSCTP is a portable SCTP userland stack. SCTP is a message
170 oriented, reliable transport protocol with direct support for multihoming that
171 runs on top of IP or UDP, and supports both v4 and v6 versions.")
172 (license license:bsd-3)))
173
174 (define-public axel
175 (package
176 (name "axel")
177 (version "2.17.10")
178 (source
179 (origin
180 (method url-fetch)
181 (uri (string-append "https://github.com/axel-download-accelerator/axel/"
182 "releases/download/v" version "/"
183 "axel-" version ".tar.xz"))
184 (sha256
185 (base32 "0kmlqk04sgkshsll4r9w3k0rvrgz0gpk987618r50khwl484zss6"))))
186 (build-system gnu-build-system)
187 (native-inputs
188 `(("gettext" ,gettext-minimal)
189 ("pkg-config" ,pkg-config)))
190 (inputs
191 `(("libressl" ,libressl)))
192 (home-page "https://github.com/axel-download-accelerator/axel")
193 (synopsis "Light command line download accelerator")
194 (description
195 "Axel tries to accelerate the download process by using multiple
196 connections per file, and can also balance the load between different
197 servers. It tries to be as light as possible, so it might be useful
198 on byte-critical systems. It supports HTTP, HTTPS, FTP and FTPS
199 protocols.")
200 (license license:gpl2+)))
201
202 ;; This package does not have a release yet.
203 ;; But this is required to provide a feature in PipeWire.
204 (define-public libcamera
205 (package
206 (name "libcamera")
207 (version "0.0.0")
208 (source
209 (origin
210 (method git-fetch)
211 (uri
212 (git-reference
213 (url "git://linuxtv.org/libcamera.git")
214 (commit "74c8b508338ccdd0780aa1e067a1e8fcb9ee326b")))
215 (file-name
216 (git-file-name name version))
217 (sha256
218 (base32 "0d9lp8b9gyxh4jwfh55kp8zl1xyyg32z684v3y29378zpksncss1"))))
219 (build-system meson-build-system)
220 (outputs '("out" "doc"))
221 (arguments
222 `(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
223 #:configure-flags
224 (list
225 "-Dv4l2=true")
226 #:phases
227 (modify-phases %standard-phases
228 (add-after 'unpack 'disable-failing-tests
229 (lambda _
230 (substitute* "test/meson.build"
231 (("\\['list-cameras', 'list-cameras.cpp'\\],")
232 ""))
233 #t))
234 (add-after 'install 'move-doc
235 (lambda* (#:key outputs #:allow-other-keys)
236 (let* ((out (assoc-ref outputs "out"))
237 (doc (assoc-ref outputs "doc")))
238 (mkdir-p (string-append doc "/share"))
239 (rename-file
240 (string-append out "/share/doc")
241 (string-append doc "/share/doc"))
242 #t))))))
243 (native-inputs
244 `(("dot" ,graphviz)
245 ("doxygen" ,doxygen)
246 ("pkg-config" ,pkg-config)
247 ("python" ,python-wrapper)
248 ("sphinx" ,python-sphinx)
249 ("yaml" ,python-pyyaml)))
250 (inputs
251 `(("boost" ,boost)
252 ("glib" ,glib)
253 ("gstreamer" ,gst-plugins-base)
254 ("gnutls" ,gnutls)
255 ("libtiff" ,libtiff)
256 ("openssl" ,openssl)
257 ("qt5" ,qtbase)
258 ("udev" ,eudev)))
259 (synopsis "Camera stack and framework")
260 (description "LibCamera is a complex camera support library for GNU+Linux,
261 Android, and ChromeOS.")
262 (home-page "https://libcamera.org/")
263 (license license:lgpl2.1+)))
264
265 (define-public libnice
266 (package
267 (name "libnice")
268 (version "0.1.18")
269 (source
270 (origin
271 (method url-fetch)
272 (uri
273 (string-append "https://libnice.freedesktop.org/releases/"
274 name "-" version ".tar.gz"))
275 (sha256
276 (base32 "1x3kj9b3dy9m2h6j96wgywfamas1j8k2ca43k5v82kmml9dx5asy"))))
277 (build-system meson-build-system)
278 (outputs '("out" "doc"))
279 (arguments
280 `(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
281 #:configure-flags
282 (list
283 "-Dgtk_doc=enabled")
284 #:phases
285 (modify-phases %standard-phases
286 (add-after 'unpack 'disable-failing-test
287 (lambda _
288 (substitute* "tests/meson.build"
289 ;; ‘test-set-port-range.c:66:main: assertion failed:
290 ;; (nice_agent_gather_candidates (agent, stream1))’
291 (("'test-set-port-range'") "#"))
292 #t))
293 (add-after 'install 'move-docs
294 (lambda* (#:key outputs #:allow-other-keys)
295 (let* ((out (assoc-ref outputs "out"))
296 (doc (assoc-ref outputs "doc")))
297 (mkdir-p (string-append doc "/share"))
298 (rename-file
299 (string-append out "/share/gtk-doc")
300 (string-append doc "/share/gtk-doc"))
301 #t))))))
302 (native-inputs
303 `(("glib:bin" ,glib "bin")
304 ("gobject-introspection" ,gobject-introspection)
305 ("gtk-doc" ,gtk-doc/stable)
306 ("pkg-config" ,pkg-config)))
307 (inputs
308 `(("gstreamer" ,gstreamer)
309 ("gst-plugins-base" ,gst-plugins-base)
310 ("libnsl" ,libnsl)))
311 (propagated-inputs
312 `(("glib" ,glib)
313 ("glib-networking" ,glib-networking)
314 ("gnutls" ,gnutls)))
315 (synopsis "GLib ICE implementation")
316 (description "LibNice is a library that implements the Interactive
317 Connectivity Establishment (ICE) standard (RFC 5245 & RFC 8445). It provides a
318 GLib-based library, libnice, as well as GStreamer elements to use it.")
319 (home-page "https://libnice.freedesktop.org/")
320 (license
321 ;; This project is dual-licensed.
322 (list
323 license:lgpl2.1+
324 license:mpl1.1))))
325
326 (define-public rtmpdump
327 ;; There are no tags in the repository, and the project is unlikely to
328 ;; make new releases. Take a recent commit for multiple security fixes
329 ;; as well as GnuTLS compatibility.
330 (let ((commit "c5f04a58fc2aeea6296ca7c44ee4734c18401aa3")
331 (revision "0")
332 (version "2.4")) ;as mentioned in README and man pages
333 (package
334 (name "rtmpdump")
335 (version (git-version version revision commit))
336 (source
337 (origin
338 (method git-fetch)
339 (uri (git-reference
340 (url "https://git.ffmpeg.org/rtmpdump")
341 (commit commit)))
342 (file-name (git-file-name name version))
343 (sha256
344 (base32 "07ias612jgmxpam9h418kvlag32da914jsnjsfyafklpnh8gdzjb"))))
345 (build-system gnu-build-system)
346 (arguments
347 `(#:tests? #f ; no tests
348 #:make-flags
349 (list
350 ;; The ‘validate-runpath’ phase fails to find librtmp.so.0.
351 (string-append "LDFLAGS=-Wl,-rpath="
352 (assoc-ref %outputs "out") "/lib")
353 (string-append "prefix=" (assoc-ref %outputs "out")))
354 #:phases
355 (modify-phases %standard-phases
356 (add-after 'unpack 'omit-static-library
357 (lambda _
358 (substitute* "librtmp/Makefile"
359 (("cp librtmp\\.a .*") ; don't install it
360 "")
361 (("librtmp\\.a ") ; don't build it
362 ""))
363 #t))
364 (add-after 'unpack 'prefer-gnutls
365 (lambda _
366 (substitute* '("Makefile" "librtmp/Makefile")
367 (("CRYPTO=OPENSSL")
368 "#CRYPTO=OPENSSL")
369 (("#CRYPTO=GNUTLS")
370 "CRYPTO=GNUTLS"))))
371 (delete 'configure))))
372 (inputs
373 `(("gnutls" ,gnutls)
374 ("zlib" ,zlib)))
375 (synopsis "Tools and library for handling RTMP streams")
376 (description "RTMPdump is a toolkit for RTMP streams. All forms of RTMP are
377 supported, including rtmp://, rtmpt://, rtmpe://, rtmpte://, and rtmps://.")
378 (home-page "https://rtmpdump.mplayerhq.hu/")
379 (license
380 (list
381 ;; Library.
382 license:lgpl2.1+
383 ;; Others.
384 license:gpl2+)))))
385
386 (define-public srt
387 (package
388 (name "srt")
389 (version "1.4.2")
390 (source
391 (origin
392 (method git-fetch)
393 (uri
394 (git-reference
395 (url "https://github.com/Haivision/srt")
396 (commit (string-append "v" version))))
397 (file-name (git-file-name name version))
398 (sha256
399 (base32 "01nx3a35hzq2x0dvp2n2b86phpdy1z83kdraag7aq3hmc7f8iagg"))))
400 (build-system cmake-build-system)
401 (arguments
402 `(#:configure-flags
403 (list
404 (string-append "-DCMAKE_INSTALL_BINDIR="
405 (assoc-ref %outputs "out") "/bin")
406 "-DCMAKE_INSTALL_INCLUDEDIR=include"
407 "-DENABLE_STATIC=OFF"
408 "-DENABLE_UNITTESTS=ON")))
409 (native-inputs
410 `(("gtest" ,googletest)
411 ("pkg-config" ,pkg-config)
412 ("tclsh" ,tcl)))
413 (propagated-inputs
414 `(("openssl" ,openssl)))
415 (synopsis "Secure Reliable Transport")
416 (description "SRT is a transport technology that optimizes streaming
417 performance across unpredictable networks, such as the Internet.")
418 (home-page "https://www.srtalliance.org/")
419 (license license:mpl2.0)))
420
421 ;; FFmpeg, GStreamer, and VLC don't support SRT 1.4.2 yet.
422 (define-public srt-1.4.1
423 (package
424 (inherit srt)
425 (name "srt")
426 (version "1.4.1")
427 (source
428 (origin
429 (method git-fetch)
430 (uri
431 (git-reference
432 (url "https://github.com/Haivision/srt")
433 (commit (string-append "v" version))))
434 (file-name (git-file-name name version))
435 (sha256
436 (base32
437 "01xaq44j95kbgqfl41pnybvqy0yq6wd4wdw88ckylzf0nzp977xz"))))))
438
439 (define-public lksctp-tools
440 (package
441 (name "lksctp-tools")
442 (version "1.0.18")
443 (source
444 (origin
445 (method git-fetch)
446 (uri
447 (git-reference
448 (url "https://github.com/sctp/lksctp-tools")
449 (commit (string-append "v" version))))
450 (file-name (git-file-name name version))
451 (sha256
452 (base32 "1x4fwzrlzvfa3vcpja97m8w5g9ir2zrh4zs7zksminrnmdrs0dsr"))))
453 (build-system gnu-build-system)
454 (native-inputs
455 `(("autoconf" ,autoconf)
456 ("automake" ,automake)
457 ("libtool" ,libtool)
458 ("pkg-config" ,pkg-config)))
459 (inputs
460 `(("linux-headers" ,linux-libre-headers)))
461 (synopsis "Linux SCTP helper library")
462 (description "Lksctp-tools project provides a user space library for SCTP
463 (libsctp) including C language header files (netinet/sctp.h) for accessing SCTP
464 specific application programming interfaces not provided by the standard
465 sockets, and also some helper utilities around SCTP.")
466 (home-page "http://lksctp.sourceforge.net/")
467 (license
468 (list
469 ;; Library.
470 license:lgpl2.1+
471 ;; Others.
472 license:gpl2+))))
473
474 (define-public knockd
475 (package
476 (name "knockd")
477 (version "0.7")
478 (source (origin
479 (method url-fetch)
480 (uri (string-append "https://www.zeroflux.org/proj/knock/files/knock-"
481 version ".tar.gz"))
482 (sha256
483 (base32
484 "193qcpsy7v51c6awhg9652l5blyz8vp6n7y6fi7l4rhh6af4ff4r"))))
485 (build-system gnu-build-system)
486 (inputs
487 `(("libpcap" ,libpcap)))
488 (home-page "https://www.zeroflux.org/projects/knock")
489 (synopsis "Small port-knock daemon")
490 (description "@command{knockd} is a port-knock daemon. It listens to all traffic on
491 an ethernet or PPP interface, looking for special \"knock\" sequences of @dfn{port-hits}
492 (UDP/TCP packets sent to a server port). This port need not be open, since knockd listens
493 at the link-layer level.")
494 (license license:gpl2+)))
495
496 (define-public nng
497 (package
498 (name "nng")
499 (version "1.3.2")
500 (source
501 (origin
502 (method git-fetch)
503 (uri (git-reference
504 (url "https://github.com/nanomsg/nng")
505 (commit (string-append "v" version))))
506 (file-name (git-file-name name version))
507 (sha256
508 (base32 "0a4jg8alh2h0rw6fb4dqpvk4hgl2a7h76mq7g34fy89qh9sgg1a4"))))
509 (build-system cmake-build-system)
510 (arguments
511 `(#:configure-flags
512 (list "-DNNG_ENABLE_COVERAGE=ON"
513 "-DNNG_ENABLE_TLS=ON"
514 "-DBUILD_SHARED_LIBS=ON")
515 #:phases
516 (modify-phases %standard-phases
517 (add-after 'unpack 'disable-failing-tests
518 (lambda _
519 ;; These tests require network access.
520 (substitute* "tests/CMakeLists.txt"
521 (("add_nng_test1\\(httpclient 60 NNG_SUPP_HTTP\\)") "")
522 (("add_nng_test1\\(resolv 10 NNG_STATIC_LIB\\)") "")
523 (("add_nng_test\\(tls 60\\)") ""))
524 #t)))))
525 (native-inputs
526 `(("ksh" ,oksh)))
527 (inputs
528 `(("mbedtls" ,mbedtls-apache)))
529 (synopsis "Lightweight messaging library")
530 (description "NNG project is a rewrite of the scalability protocols library
531 known as libnanomsg, and adds significant new capabilities, while retaining
532 compatibility with the original. It is a lightweight, broker-less library,
533 offering a simple API to solve common recurring messaging problems, such as
534 publish/subscribe, RPC-style request/reply, or service discovery.")
535 (home-page "https://nng.nanomsg.org/")
536 (license license:expat)))
537
538 (define-public nanomsg
539 (package
540 (name "nanomsg")
541 (version "1.1.5")
542 (source
543 (origin
544 (method git-fetch)
545 (uri
546 (git-reference
547 (url "https://github.com/nanomsg/nanomsg")
548 (commit version)))
549 (file-name (git-file-name name version))
550 (sha256
551 (base32 "01ddfzjlkf2dgijrmm3j3j8irccsnbgfvjcnwslsfaxnrmrq5s64"))))
552 (build-system cmake-build-system)
553 (outputs '("out" "doc"))
554 (arguments
555 `(#:configure-flags
556 (list
557 "-DNN_ENABLE_COVERAGE=ON")
558 #:phases
559 (modify-phases %standard-phases
560 (add-after 'install 'move-docs
561 (lambda* (#:key outputs #:allow-other-keys)
562 (let* ((out (assoc-ref outputs "out"))
563 (doc (assoc-ref outputs "doc")))
564 (mkdir-p (string-append doc "/share/doc"))
565 (rename-file
566 (string-append out "/share/doc/nanomsg")
567 (string-append doc "/share/doc/nanomsg"))
568 #t))))))
569 (native-inputs
570 `(("asciidoctor" ,ruby-asciidoctor)
571 ("pkg-config" ,pkg-config)))
572 (synopsis "Scalable socket library")
573 (description "Nanomsg is a socket library that provides several common
574 communication patterns. It aims to make the networking layer fast, scalable,
575 and easy to use. Implemented in C, it works on a wide range of operating
576 systems with no further dependencies.")
577 (home-page "https://nanomsg.org/")
578 (license (license:non-copyleft "file:///COPYING"))))
579
580 (define-public blueman
581 (package
582 (name "blueman")
583 (version "2.1.4")
584 (source
585 (origin
586 (method url-fetch)
587 (uri (string-append "https://github.com/blueman-project/blueman/releases"
588 "/download/" version "/blueman-" version ".tar.xz"))
589 (sha256
590 (base32 "1nk46s1s8yrlqv37sc7la05nnn7sdgqhkrcdm98qin34llwkv70x"))))
591 (build-system glib-or-gtk-build-system)
592 (arguments
593 `(#:configure-flags (list "--enable-polkit"
594 "--without-systemdsystemunitdir" ; Not required
595 "--without-systemduserunitdir") ; Not required
596 #:phases
597 (modify-phases %standard-phases
598 ;; Python references are not being patched in patch-phase of build,
599 ;; despite using python-wrapper as input. So we patch them manually.
600 (add-after 'unpack 'patch-python-references
601 (lambda* (#:key inputs #:allow-other-keys)
602 (with-directory-excursion "apps"
603 (substitute* '("blueman-adapters.in" "blueman-applet.in"
604 "blueman-assistant.in" "blueman-manager.in"
605 "blueman-mechanism.in" "blueman-report.in"
606 "blueman-rfcomm-watcher.in" "blueman-sendto.in"
607 "blueman-services.in" "blueman-tray.in")
608 (("@PYTHON@") (string-append (assoc-ref inputs "python")
609 "/bin/python"
610 ,(version-major+minor
611 (package-version python))))))
612 #t))
613 ;; Fix loading of external programs.
614 (add-after 'unpack 'patch-external-programs
615 (lambda* (#:key inputs #:allow-other-keys)
616 (substitute* '("apps/blueman-report.in" "blueman/main/NetConf.py"
617 "blueman/main/PPPConnection.py")
618 (("/usr/sbin/bluetoothd")
619 (string-append (assoc-ref inputs "bluez")
620 "/libexec/bluetooth/bluetoothd"))
621 (("/sbin/iptables")
622 (string-append (assoc-ref inputs "iptables")
623 "/sbin/iptables"))
624 (("/usr/sbin/pppd")
625 (string-append (assoc-ref inputs "ppp")
626 "/sbin/pppd")))
627 #t))
628 ;; Fix loading of pulseaudio libraries.
629 (add-after 'unpack 'patch-pulseaudio-libraries
630 (lambda* (#:key inputs #:allow-other-keys)
631 (let* ((pulseaudio (assoc-ref inputs "pulseaudio"))
632 (pulse (string-append pulseaudio "/lib/libpulse.so.0"))
633 (pulse-glib (string-append pulseaudio
634 "/lib/libpulse-mainloop-glib.so.0")))
635 (with-directory-excursion "blueman/main"
636 (substitute* "PulseAudioUtils.py"
637 (("libpulse.so.0") pulse)
638 (("libpulse-mainloop-glib.so.0") pulse-glib)))
639 #t)))
640 ;; Fix running of blueman programs.
641 (add-after 'glib-or-gtk-wrap 'wrap-blueman-progs
642 (lambda* (#:key outputs #:allow-other-keys)
643 (let* ((out (assoc-ref outputs "out"))
644 (bin (string-append out "/bin/blueman-"))
645 (libexec (string-append out "/libexec/blueman-"))
646 (lib (string-append out "/lib/python"
647 ,(version-major+minor
648 (package-version python))
649 "/site-packages")))
650 (for-each
651 (lambda (program)
652 (wrap-program program
653 `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,lib))
654 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))))
655 (append
656 (map (lambda (prog) (string-append bin prog))
657 '("adapters" "applet" "assistant" "manager" "report"
658 "sendto" "services" "tray"))
659 (map (lambda (prog) (string-append libexec prog))
660 '("mechanism" "rfcomm-watcher"))))
661 #t))))))
662 (native-inputs
663 `(("cython" ,python-cython)
664 ("glib:bin" ,glib "bin")
665 ("gobject-introspection" ,gobject-introspection)
666 ("gtk+:bin" ,gtk+ "bin")
667 ("intltool" ,intltool)
668 ("pkg-config" ,pkg-config)))
669 (inputs
670 `(("bluez" ,bluez)
671 ("dbus" ,dbus)
672 ("gdkpixbuf" ,gdk-pixbuf+svg)
673 ("glib" ,glib)
674 ("gtk+" ,gtk+)
675 ("iproute2" ,iproute)
676 ("iptables" ,iptables)
677 ("net-tools" ,net-tools)
678 ("pango" ,pango)
679 ("polkit" ,polkit)
680 ("ppp" ,ppp)
681 ("pulseaudio" ,pulseaudio)
682 ("pycairo" ,python-pycairo)
683 ("pygobject" ,python-pygobject)
684 ("python" ,python-wrapper)
685 ("libappindicator" ,libappindicator)
686 ("libnm" ,network-manager)))
687 (synopsis "GTK+ Bluetooth manager")
688 (description "Blueman is a Bluetooth management utility using the Bluez
689 D-Bus backend. It is designed to be easy to use for most common Bluetooth
690 tasks.")
691 (home-page "https://github.com/blueman-project/blueman")
692 (license license:gpl3+)))
693
694 ;; The gnu.org ‘home’ for this GNU project is a directory listing with 1.6.0 as
695 ;; the latest version. The author's git repository, mentioned in the 1.6.0
696 ;; README and otherwise legit-looking, contains a proper 1.7.0 release tarball
697 ;; with many OUI updates. Use it, even though it's also several years old now.
698 (define-public macchanger
699 (package
700 (name "macchanger")
701 (version "1.7.0")
702 (source
703 (origin
704 (method url-fetch)
705 (uri (string-append "https://github.com/alobbs/macchanger/"
706 "releases/download/" version "/"
707 name "-" version ".tar.gz"))
708 (sha256
709 (base32 "1gs5m0jxyprdp00w2qkbnaqm3ilkjz0q1gqdg4nzdm8g4xy73qns"))))
710 (build-system gnu-build-system)
711 (home-page "https://www.gnu.org/software/macchanger/")
712 (synopsis "Viewing and manipulating MAC addresses of network interfaces")
713 (description "GNU MAC Changer is a utility for viewing and changing MAC
714 addresses of networking devices. New addresses may be set explicitly or
715 randomly. They can include MAC addresses of the same or other hardware vendors
716 or, more generally, MAC addresses of the same category of hardware.")
717 (license license:gpl2+)))
718
719 (define-public miredo
720 (package
721 (name "miredo")
722 (version "1.2.6")
723 (source (origin
724 (method url-fetch)
725 (uri (string-append "http://www.remlab.net/files/miredo/miredo-"
726 version ".tar.xz"))
727 (sha256
728 (base32
729 "0j9ilig570snbmj48230hf7ms8kvcwi2wblycqrmhh85lksd49ps"))))
730 (build-system gnu-build-system)
731 (arguments
732 '(#:configure-flags
733 (list "--localstatedir=/var")
734 #:phases
735 (modify-phases %standard-phases
736 (add-after 'unpack 'do-not-create-/run
737 (lambda _
738 (substitute* (find-files "src" "Makefile.*")
739 (("^.+install_sh.+/run.+$")
740 "\ttrue"))
741 #t))
742 (add-after 'unpack 'patch-iproute2
743 (lambda* (#:key inputs #:allow-other-keys)
744 (let* ((iproute (assoc-ref inputs "iproute"))
745 (ip (string-append iproute "/sbin/ip")))
746 (substitute* "misc/client-hook.iproute"
747 (("/sbin/ip") ip))
748 #t)))
749 ;; The checkconf test in src/ requires network access.
750 (add-before
751 'check 'disable-checkconf-test
752 (lambda _
753 (substitute* "src/Makefile"
754 (("^TESTS = .*") "TESTS = \n"))
755 #t)))))
756 (inputs
757 `(("iproute" ,iproute)))
758 (home-page "https://www.remlab.net/miredo/")
759 (synopsis "Teredo IPv6 tunneling software")
760 (description
761 "Miredo is an implementation (client, relay, server) of the Teredo
762 specification, which provides IPv6 Internet connectivity to IPv6 enabled hosts
763 residing in IPv4-only networks, even when they are behind a NAT device.")
764 (license license:gpl2+)))
765
766 (define-public ndisc6
767 (package
768 (name "ndisc6")
769 (version "1.0.4")
770 (source (origin
771 (method url-fetch)
772 (uri (string-append "https://www.remlab.net/files/ndisc6/ndisc6-"
773 version ".tar.bz2"))
774 (sha256
775 (base32
776 "07swyar1hl83zxmd7fqwb2q0c0slvrswkcfp3nz5lknrk15dmcdb"))))
777 (build-system gnu-build-system)
778 (home-page "https://www.remlab.net/ndisc6/")
779 (synopsis "IPv6 diagnostic tools")
780 (description
781 "NDisc6 is a collection of tools for IPv6 networking diagnostics.
782 It includes the following programs:
783
784 @itemize
785 @item @command{ndisc6}: ICMPv6 Neighbor Discovery tool.
786 @item @command{rdisc6}: ICMPv6 Router Discovery tool.
787 @item @command{tcptraceroute6}: IPv6 traceroute over TCP.
788 @item @command{traceroute6}: IPv6 traceroute over UDP.
789 @item @command{rdnssd}: Recursive DNS Servers discovery daemon.
790 @end itemize")
791 ;; The user can choose version 2 or 3 of the GPL, not later versions.
792 (license (list license:gpl2 license:gpl3))))
793
794 (define-public parprouted
795 (package
796 (name "parprouted")
797 (version "0.7")
798 (source (origin
799 (method url-fetch)
800 (uri (string-append "https://www.hazard.maks.net/parprouted/"
801 "parprouted-" version ".tar.gz"))
802 (sha256
803 (base32
804 "1z6yg28i0pv20jivyy82pxb38hsryj95inhj27bs6ja1bp4l6dnn"))))
805 (build-system gnu-build-system)
806 (arguments
807 `(#:tests? #f ;no tests
808 #:phases (modify-phases %standard-phases
809 (add-after 'unpack 'insert-absolute-iproute-reference
810 (lambda* (#:key inputs #:allow-other-keys)
811 (let* ((iproute (assoc-ref inputs "iproute"))
812 (ip (string-append iproute "/sbin/ip")))
813 (substitute* "parprouted.c"
814 (("/sbin/ip") ip))
815 #t)))
816 (replace 'configure
817 (lambda* (#:key outputs #:allow-other-keys)
818 (let* ((out (assoc-ref outputs "out"))
819 (sbin (string-append out "/sbin"))
820 (man8 (string-append out "/share/man/man8")))
821 ;; No configure script; hijack the phase to make
822 ;; the necessary arrangements.
823 (setenv "CC" ,(cc-for-target))
824 (for-each mkdir-p (list sbin man8))
825 (substitute* "Makefile"
826 (("/usr/local/sbin") sbin)
827 (("/usr/local/man/man8") man8))
828 #t))))))
829 (inputs
830 `(("iproute" ,iproute)))
831 (home-page "https://www.hazard.maks.net/parprouted/")
832 (synopsis "Proxy ARP requests to other interfaces")
833 (description
834 "@command{parprouted} is a daemon for transparent IP (Layer@tie{}3)
835 proxy ARP bridging. Unlike standard bridging, proxy ARP bridging can bridge
836 Ethernet networks behind wireless nodes. Normal layer@tie{}2 bridging does
837 not work between wireless nodes because wireless does not know about MAC
838 addresses used in the wired Ethernet networks. This daemon can also be
839 useful for making transparent firewalls.")
840 (license license:gpl2)))
841
842 (define-public socat
843 (package
844 (name "socat")
845 (version "1.7.4.1")
846 (source (origin
847 (method url-fetch)
848 (uri (string-append
849 "http://www.dest-unreach.org/socat/download/socat-"
850 version ".tar.bz2"))
851 (sha256
852 (base32
853 "1sbmqqvni3ss9wyay6ik5v81kxffkra80mh4ypgj74g82iba5b1z"))))
854 (build-system gnu-build-system)
855 (arguments '(#:tests? #f)) ; no test suite
856 (inputs `(("openssl" ,openssl)))
857 (home-page "http://www.dest-unreach.org/socat/")
858 (synopsis
859 "Open bidirectional communication channels from the command line")
860 (description
861 "socat is a relay for bidirectional data transfer between two independent
862 data channels---files, pipes, devices, sockets, etc. It can create
863 \"listening\" sockets, named pipes, and pseudo terminals.
864
865 socat can be used, for instance, as TCP port forwarder, as a shell interface
866 to UNIX sockets, IPv6 relay, for redirecting TCP oriented programs to a serial
867 line, to logically connect serial lines on different computers, or to
868 establish a relatively secure environment (su and chroot) for running client
869 or server shell scripts with network connections.")
870 (license license:gpl2)))
871
872 (define-public tcp-wrappers
873 (package
874 (name "tcp-wrappers")
875 (version "7.6")
876 (source (origin
877 (method url-fetch)
878 (uri (string-append
879 "ftp://ftp.porcupine.org/pub/security/tcp_wrappers_"
880 version ".tar.gz"))
881 (sha256
882 (base32
883 "0p9ilj4v96q32klavx0phw9va21fjp8vpk11nbh6v2ppxnnxfhwm"))))
884 (build-system gnu-build-system)
885 (arguments
886 `(#:phases
887 (modify-phases %standard-phases
888 (delete 'configure) ; there is no configure script
889 (delete 'check) ; there are no tests
890 (replace 'build
891 (lambda _
892 (chmod "." #o755)
893 ;; Upstream doesn't generate a shared library. So we have to do it.
894 (setenv "CC" "gcc -fno-builtin -fPIC")
895 (substitute* "Makefile"
896 (("^(all[^\n]*)" line) (string-append line " libwrap.so\n
897 libwrap.so: $(LIB_OBJ)\n
898 \tgcc -shared $^ -o $@\n")))
899 ;; Deal with some gcc breakage.
900 (substitute* "percent_m.c"
901 (("extern char .sys_errlist.*;") ""))
902 (substitute* "scaffold.c"
903 (("extern char .malloc.*;") ""))
904 ;; This, believe it or not, is the recommended way to build!
905 (invoke "make" "REAL_DAEMON_DIR=/etc" "linux")))
906 ;; There is no make install stage, so we have to do it ourselves.
907 (replace 'install
908 (lambda _
909 (let ((out (assoc-ref %outputs "out"))
910 (man-pages `("hosts_access.3"
911 "hosts_access.5"
912 "hosts_options.5"
913 "tcpd.8"
914 "tcpdchk.8"
915 "tcpdmatch.8"))
916 (libs `("libwrap.a"
917 "libwrap.so"))
918 (headers `("tcpd.h"))
919 (bins `("safe_finger"
920 "tcpd"
921 "tcpdchk"
922 "tcpdmatch"
923 "try-from")))
924 (for-each
925 (lambda (x)
926 (install-file x (string-append out "/include")))
927 headers)
928 (for-each
929 (lambda (x)
930 (install-file x (string-append out "/share/man/man"
931 (string-take-right x 1))))
932 man-pages)
933 (for-each
934 (lambda (x)
935 (install-file x (string-append out "/lib/")))
936 libs)
937 (for-each
938 (lambda (x)
939 (install-file x (string-append out "/bin/")))
940 bins))
941 #t)))))
942 (home-page "http://www.porcupine.org")
943 (synopsis "Monitor and filter incoming requests for network services")
944 (description "With this package you can monitor and filter incoming requests for
945 network services. It includes a library which may be used by daemons to
946 transparently check connection attempts against an access control list.")
947 (license (license:non-copyleft "file://DISCLAIMER"
948 "See the file DISCLAIMER in the distribution."))))
949
950 (define-public zeromq
951 (package
952 (name "zeromq")
953 (version "4.3.4")
954 (source
955 (origin
956 (method url-fetch)
957 (uri (string-append "https://github.com/zeromq/libzmq/releases"
958 "/download/v" version "/zeromq-" version ".tar.gz"))
959 (sha256
960 (base32 "1rf3jmi36ms8jh2g5cvi253h43l6xdfq0r7mvp95va7mi4d014y5"))))
961 (build-system gnu-build-system)
962 (arguments '(#:configure-flags '("--disable-static")))
963 (home-page "https://zeromq.org")
964 (synopsis "Library for message-based applications")
965 (description
966 "The 0MQ lightweight messaging kernel is a library which extends the
967 standard socket interfaces with features traditionally provided by specialized
968 messaging middle-ware products. 0MQ sockets provide an abstraction of
969 asynchronous message queues, multiple messaging patterns, message
970 filtering (subscriptions), seamless access to multiple transport protocols and
971 more.")
972 (license license:lgpl3+)))
973
974 (define-public czmq
975 (package
976 (name "czmq")
977 (version "4.2.1")
978 (source (origin
979 (method url-fetch)
980 (uri (string-append
981 "https://github.com/zeromq/" name
982 "/releases/download/v" version
983 "/" name "-" version ".tar.gz"))
984 (sha256
985 (base32
986 "0fdclvd7fcwixp0k57ccv7d159v3slasyhvndxfn8n1a9hh0lwjx"))))
987 (build-system gnu-build-system)
988 (arguments
989 '(#:configure-flags '("--enable-drafts")
990 #:phases (modify-phases %standard-phases
991 (add-before 'check 'patch-tests
992 (lambda _
993 (substitute* "src/czmq_selftest.c"
994 ;; Disable the zproc test, which fails on some hardware
995 ;; (see: https://github.com/zeromq/czmq/issues/2007).
996 (("\\{ \"zproc\", zproc_test.*")
997 "")
998 ;; Also disable the zarmour test, which fails as well
999 ;; (see: https://github.com/zeromq/czmq/issues/2125).
1000 (("\\{ \"zarmour\", zarmour_test.*")
1001 ""))
1002 #t)))))
1003 (inputs
1004 `(("zeromq" ,zeromq)))
1005 (home-page "https://zeromq.org")
1006 (synopsis "High-level C bindings for ØMQ")
1007 (description
1008 "czmq provides bindings for the ØMQ core API that hides the differences
1009 between different versions of ØMQ.")
1010 (license license:mpl2.0)))
1011
1012 (define-public cppzmq
1013 (package
1014 (name "cppzmq")
1015 (version "4.6.0")
1016 (source (origin
1017 (method git-fetch)
1018 (uri (git-reference
1019 (url "https://github.com/zeromq/cppzmq")
1020 (commit (string-append "v" version))))
1021 (sha256
1022 (base32
1023 "19acx2bzi4n6fdnfgkja1nds7m1bwg8lw5vfcijrx9fv75pa7m8h"))
1024 (file-name (git-file-name name version))))
1025 (build-system cmake-build-system)
1026 (arguments
1027 '(;; FIXME: The test suite requires downloading Catch and custom
1028 ;; CMake targets, and refuses to use the system version.
1029 ;; See <https://github.com/zeromq/cppzmq/issues/334>.
1030 #:tests? #f
1031 #:configure-flags '("-DCPPZMQ_BUILD_TESTS=OFF")))
1032 (native-inputs
1033 `(("pkg-config" ,pkg-config)))
1034 (inputs
1035 `(("zeromq" ,zeromq)))
1036 (home-page "https://zeromq.org")
1037 (synopsis "C++ bindings for the ØMQ messaging library")
1038 (description
1039 "This package provides header-only C++ bindings for ØMQ. The header
1040 files contain direct mappings of the abstractions provided by the ØMQ C API.")
1041 (license license:expat)))
1042
1043 (define-public libnatpmp
1044 (package
1045 (name "libnatpmp")
1046 (version "20150609")
1047 (source (origin
1048 (method url-fetch)
1049 (uri (string-append
1050 "http://miniupnp.free.fr/files/"
1051 name "-" version ".tar.gz"))
1052 (sha256
1053 (base32
1054 "1c1n8n7mp0amsd6vkz32n8zj3vnsckv308bb7na0dg0r8969rap1"))))
1055 (build-system gnu-build-system)
1056 (arguments
1057 `(#:phases
1058 (modify-phases %standard-phases
1059 (delete 'configure)
1060 (delete 'check)) ; no tests
1061 #:make-flags
1062 (let* ((target ,(%current-target-system))
1063 (gcc (if target
1064 (string-append target "-gcc")
1065 "gcc")))
1066 (list
1067 (string-append "CC=" gcc)
1068 (string-append "INSTALLPREFIX=" (assoc-ref %outputs "out"))
1069 (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib")))))
1070 (home-page "http://miniupnp.free.fr/libnatpmp.html")
1071 (synopsis "C library implementing NAT-PMP")
1072 (description
1073 "@code{libnatpmp} is a portable and asynchronous implementation of
1074 the Network Address Translation - Port Mapping Protocol (NAT-PMP)
1075 written in the C programming language.")
1076 (license license:bsd-3)))
1077
1078 (define-public librdkafka
1079 (package
1080 (name "librdkafka")
1081 (version "1.4.2")
1082 (source (origin
1083 (method git-fetch)
1084 (uri (git-reference
1085 (url "https://github.com/edenhill/librdkafka")
1086 (commit (string-append "v" version))))
1087 (file-name (git-file-name name version))
1088 (sha256
1089 (base32
1090 "05mgrdzacn9kdpr68r5j0cvsvl54s52glnsc1ww9rcxx6p7hq1ly"))))
1091 (build-system gnu-build-system)
1092 (arguments
1093 '(#:phases
1094 (modify-phases %standard-phases
1095 (replace 'configure
1096 ;; its custom configure script doesn't understand 'CONFIG_SHELL'.
1097 (lambda* (#:key outputs #:allow-other-keys)
1098 (let ((out (assoc-ref outputs "out")))
1099 ;; librdkafka++.so lacks RUNPATH for librdkafka.so
1100 (setenv "LDFLAGS"
1101 (string-append "-Wl,-rpath=" out "/lib"))
1102 (invoke "./configure"
1103 (string-append "--prefix=" out))))))))
1104 (native-inputs
1105 `(("python" ,python-wrapper)))
1106 (propagated-inputs
1107 `(("zlib" ,zlib))) ; in the Libs.private field of rdkafka.pc
1108 (home-page "https://github.com/edenhill/librdkafka")
1109 (synopsis "Apache Kafka C/C++ client library")
1110 (description
1111 "librdkafka is a C library implementation of the Apache Kafka protocol,
1112 containing both Producer and Consumer support.")
1113 (license license:bsd-2)))
1114
1115 (define-public libndp
1116 (package
1117 (name "libndp")
1118 (version "1.7")
1119 (source (origin
1120 (method url-fetch)
1121 (uri (string-append "https://libndp.org/files/"
1122 "libndp-" version ".tar.gz"))
1123 (sha256
1124 (base32
1125 "1dlinhl39va00v55qygjc9ap77yqf7xvn4rwmvdr49xhzzxhlj1c"))))
1126 (build-system gnu-build-system)
1127 (home-page "https://libndp.org/")
1128 (synopsis "Library for Neighbor Discovery Protocol")
1129 (description
1130 "libndp contains a library which provides a wrapper for IPv6 Neighbor
1131 Discovery Protocol. It also provides a tool named ndptool for sending and
1132 receiving NDP messages.")
1133 (license license:lgpl2.1+)))
1134
1135 (define-public ethtool
1136 (package
1137 (name "ethtool")
1138 (version "5.10")
1139 (source (origin
1140 (method url-fetch)
1141 (uri (string-append "mirror://kernel.org/software/network/"
1142 "ethtool/ethtool-" version ".tar.xz"))
1143 (sha256
1144 (base32
1145 "1kygjg6g90017k53b8342i59cpwgidalqpa3gdilqyrhm6b56zc1"))))
1146 (build-system gnu-build-system)
1147 (native-inputs
1148 `(("pkg-config" ,pkg-config)))
1149 (inputs
1150 `(("libmnl" ,libmnl)))
1151 (home-page "https://www.kernel.org/pub/software/network/ethtool/")
1152 (synopsis "Display or change Ethernet device settings")
1153 (description
1154 "ethtool can be used to query and change settings such as speed,
1155 auto-negotiation and checksum offload on many network devices, especially
1156 Ethernet devices.")
1157 (license license:gpl2)))
1158
1159 (define-public ifstatus
1160 (package
1161 (name "ifstatus")
1162 (version "1.1.0")
1163 (source (origin
1164 (method url-fetch)
1165 (uri (string-append "mirror://sourceforge/ifstatus/ifstatus/"
1166 "ifstatus%20v" version "/ifstatus-v"
1167 version ".tar.gz"))
1168 (sha256
1169 (base32
1170 "045cbsq9ps32j24v8y5hpyqxnqn9mpaf3mgvirlhgpqyb9jsia0c"))
1171 (modules '((guix build utils)))
1172 (snippet
1173 '(begin
1174 (substitute* "Main.h"
1175 (("#include <stdio.h>")
1176 "#include <stdio.h>\n#include <stdlib.h>"))
1177 #t))))
1178 (build-system gnu-build-system)
1179 (arguments
1180 '(#:tests? #f ; no "check" target
1181 #:phases
1182 (modify-phases %standard-phases
1183 (delete 'configure) ; no configure script
1184 (replace 'install
1185 (lambda* (#:key outputs #:allow-other-keys)
1186 (let* ((out (assoc-ref outputs "out"))
1187 (bin (string-append out "/bin")))
1188 (mkdir-p bin)
1189 (copy-file "ifstatus"
1190 (string-append bin "/ifstatus")))
1191 #t)))))
1192 (inputs `(("ncurses" ,ncurses)))
1193 (home-page "http://ifstatus.sourceforge.net/graphic/index.html")
1194 (synopsis "Text based network interface status monitor")
1195 (description
1196 "IFStatus is a simple, easy-to-use program for displaying commonly
1197 needed/wanted real-time traffic statistics of multiple network
1198 interfaces, with a simple and efficient view on the command line. It is
1199 intended as a substitute for the PPPStatus and EthStatus projects.")
1200 (license license:gpl2+)))
1201
1202 (define-public iputils
1203 (package
1204 (name "iputils")
1205 (version "20190709")
1206 (home-page "https://github.com/iputils/iputils")
1207 (source (origin
1208 (method git-fetch)
1209 (uri (git-reference (url home-page)
1210 (commit (string-append "s" version))))
1211 (file-name (git-file-name name version))
1212 (patches (search-patches "iputils-libcap-compat.patch"))
1213 (sha256
1214 (base32
1215 "04bp4af15adp79ipxmiakfp0ij6hx5qam266flzbr94pr8z8l693"))))
1216 (build-system meson-build-system)
1217 (arguments
1218 `(#:configure-flags '("-DBUILD_RARPD=true")
1219 #:phases
1220 (modify-phases %standard-phases
1221 (add-after 'unpack 'fix-docbook-url
1222 (lambda* (#:key inputs #:allow-other-keys)
1223 (let* ((docbook-xsl (assoc-ref inputs "docbook-xsl"))
1224 (uri (string-append docbook-xsl "/xml/xsl/docbook-xsl-"
1225 ,(package-version docbook-xsl))))
1226 (for-each
1227 (lambda (file)
1228 (substitute* file
1229 (("http://docbook\\.sourceforge\\.net/release/xsl-ns/current")
1230 uri)))
1231 (cons "doc/meson.build"
1232 (find-files "doc" "\\.xsl$")))
1233 #t))))))
1234 (native-inputs
1235 `(("gettext" ,gettext-minimal)
1236 ("pkg-config" ,pkg-config)
1237 ("docbook-xsl" ,docbook-xsl)
1238 ("docbook-xml" ,docbook-xml-5)
1239 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
1240 ("xsltproc" ,libxslt)))
1241 (inputs
1242 `(("libcap" ,libcap)
1243 ("libidn2" ,libidn2)
1244 ("openssl" ,openssl)))
1245 (synopsis "Collection of network utilities")
1246 (description
1247 "This package contains a variety of tools for dealing with network
1248 configuration, troubleshooting, or servers. Utilities included are:
1249
1250 @itemize @bullet
1251 @item @command{arping}: Ping hosts using the @dfn{Address Resolution Protocol}.
1252 @item @command{clockdiff}: Compute time difference between network hosts
1253 using ICMP TSTAMP messages.
1254 @item @command{ninfod}: Daemon that responds to IPv6 Node Information Queries.
1255 @item @command{ping}: Use ICMP ECHO messages to measure round-trip delays
1256 and packet loss across network paths.
1257 @item @command{rarpd}: Answer RARP requests from clients.
1258 @item @command{rdisc}: Populate network routing tables with information from
1259 the ICMP router discovery protocol.
1260 @item @command{tftpd}: Trivial file transfer protocol server.
1261 @item @command{tracepath}: Trace network path to an IPv4 or IPv6 address and
1262 discover MTU along the way.
1263 @end itemize")
1264 ;; The various utilities are covered by different licenses, see LICENSE
1265 ;; for details.
1266 (license (list license:gpl2+ ;arping, rarpd, tracepath
1267 license:bsd-3 ;clockdiff, ninfod, ping, tftpd
1268 (license:non-copyleft
1269 "https://spdx.org/licenses/Rdisc.html"
1270 "Sun Microsystems license, see rdisc.c for details")))))
1271
1272 (define-public nload
1273 (package
1274 (name "nload")
1275 (version "0.7.4")
1276 (source (origin
1277 (method url-fetch)
1278 (uri (string-append "mirror://sourceforge/nload/nload/" version
1279 "/nload-" version ".tar.gz"))
1280 (sha256
1281 (base32
1282 "1rb9skch2kgqzigf19x8bzk211jdfjfdkrcvaqyj89jy2pkm3h61"))))
1283 (build-system gnu-build-system)
1284 (inputs `(("ncurses" ,ncurses)))
1285 (home-page "http://www.roland-riegel.de/nload/")
1286 (synopsis "Realtime console network usage monitor")
1287 (description
1288 "Nload is a console application which monitors network traffic and
1289 bandwidth usage in real time. It visualizes the in- and outgoing traffic using
1290 two graphs, and provides additional info like total amount of transferred data
1291 and min/max network usage.")
1292 (license license:gpl2+)))
1293
1294 (define-public iodine
1295 (package
1296 (name "iodine")
1297 (version "0.7.0")
1298 (source (origin
1299 (method url-fetch)
1300 (uri (string-append "http://code.kryo.se/" name "/"
1301 name "-" version ".tar.gz"))
1302 (sha256
1303 (base32
1304 "0gh17kcxxi37k65zm4gqsvbk3aw7yphcs3c02pn1c4s2y6n40axd"))))
1305 (build-system gnu-build-system)
1306 (arguments
1307 '(#:phases
1308 (modify-phases %standard-phases
1309 (delete 'configure)
1310 (add-before 'build 'fix-ifconfig-path
1311 ;; This package works only with the net-tools version of ifconfig.
1312 (lambda* (#:key inputs #:allow-other-keys)
1313 (substitute* "src/tun.c"
1314 (("PATH=[^ ]* ")
1315 (string-append (assoc-ref inputs "net-tools") "/bin/")))
1316 #t))
1317 (add-before 'check 'delete-failing-tests
1318 ;; Avoid https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802105.
1319 (lambda _
1320 (substitute* "tests/common.c"
1321 (("tcase_add_test\\(tc, \
1322 test_parse_format_ipv(4(|_listen_all|_mapped_ipv6)|6)\\);")
1323 ""))
1324 #t)))
1325 #:make-flags (list "CC=gcc"
1326 (string-append "prefix=" (assoc-ref %outputs "out")))
1327 #:test-target "test"))
1328 (inputs `(("net-tools" ,net-tools)
1329 ("zlib" ,zlib)))
1330 (native-inputs `(("check" ,check-0.14)
1331 ("pkg-config" ,pkg-config)))
1332 (home-page "https://code.kryo.se/iodine/")
1333 (synopsis "Tunnel IPv4 data through a DNS server")
1334 (description "Iodine tunnels IPv4 data through a DNS server. This
1335 can be useful in different situations where internet access is firewalled, but
1336 DNS queries are allowed. The bandwidth is asymmetrical, with limited upstream
1337 and up to 1 Mbit/s downstream.")
1338 ;; src/md5.[ch] is released under the zlib license
1339 (license (list license:isc license:zlib))))
1340
1341 (define-public whois
1342 (package
1343 (name "whois")
1344 (version "5.5.8")
1345 (source
1346 (origin
1347 (method git-fetch)
1348 (uri (git-reference
1349 (url "https://github.com/rfc1036/whois")
1350 (commit (string-append "v" version))))
1351 (file-name (git-file-name name version))
1352 (sha256
1353 (base32 "12lhl2q1pa1qkbv0l1cpy8hn4wh5i99bqc68rlm4f7jyqlj2l82r"))))
1354 (build-system gnu-build-system)
1355 (arguments
1356 `(#:tests? #f ; no test suite
1357 #:make-flags (list (string-append "CC=" ,(cc-for-target))
1358 (string-append "PKG_CONFIG=" ,(pkg-config-for-target))
1359 (string-append "prefix=" (assoc-ref %outputs "out")))
1360 #:phases
1361 (modify-phases %standard-phases
1362 (delete 'configure) ; no configure script
1363 (add-before 'build 'setenv
1364 (lambda _
1365 (setenv "HAVE_ICONV" "1")
1366 #t)))))
1367 (inputs
1368 `(("libidn2" ,libidn2)))
1369 (native-inputs
1370 `(("gettext" ,gettext-minimal)
1371 ("perl" ,perl)
1372 ("pkg-config" ,pkg-config)))
1373 (synopsis "Intelligent client for the WHOIS directory service")
1374 (description
1375 "whois searches for an object in a @dfn{WHOIS} (RFC 3912) database.
1376 It is commonly used to look up the registered users or assignees of an Internet
1377 resource, such as a domain name, an IP address block, or an autonomous system.
1378 It can automatically select the appropriate server for most queries.
1379
1380 For historical reasons, this package also includes @command{mkpasswd}, which
1381 encrypts passwords using @code{crypt(3)} and is unrelated to the Expect command
1382 of the same name.")
1383 (home-page "https://github.com/rfc1036/whois")
1384 (license license:gpl2+)))
1385
1386 (define-public wireshark
1387 (package
1388 (name "wireshark")
1389 (version "3.4.4")
1390 (source
1391 (origin
1392 (method url-fetch)
1393 (uri (string-append "https://www.wireshark.org/download/src/wireshark-"
1394 version ".tar.xz"))
1395 (sha256
1396 (base32 "0aad3m8nh4i75dgjs68217135bzqmhmlgjklmpjh1ihmjwgd373j"))))
1397 (build-system cmake-build-system)
1398 (arguments
1399 `(#:phases
1400 (modify-phases %standard-phases
1401 (add-after 'unpack 'remove-failing-test
1402 ;; Skip test suite failing with "Program reassemble_test is not
1403 ;; available" and alike errors. Also skip test suite failing with
1404 ;; "AssertionError: Program extcap/sdjournal is not available"
1405 ;; error.'
1406 (lambda _
1407 (substitute* "CMakeLists.txt"
1408 (("suite_unittests" all) (string-append "# " all))
1409 (("suite_extcaps" all) (string-append "# " all)))
1410 #t)))
1411 ;; Build process chokes during `validate-runpath' phase.
1412 ;;
1413 ;; Errors are like the following:
1414 ;; "/gnu/store/...wireshark-3.0.0/lib/wireshark/plugins/3.0/epan/ethercat.so:
1415 ;; error: depends on 'libwireshark.so.12', which cannot be found in
1416 ;; RUNPATH". That is, "/gnu/store/...wireshark-3.0.0./lib" doesn't
1417 ;; belong to RUNPATH.
1418 ;;
1419 ;; That’s not a problem in practice because "ethercat.so" is a plugin,
1420 ;; so it’s dlopen’d by a process that already provides "libwireshark".
1421 ;; For now, we disable this phase.
1422 #:validate-runpath? #f))
1423 (inputs
1424 `(("c-ares" ,c-ares)
1425 ("glib" ,glib)
1426 ("gnutls" ,gnutls)
1427 ("libcap" ,libcap)
1428 ("libgcrypt" ,libgcrypt)
1429 ("libnl" ,libnl)
1430 ("libpcap" ,libpcap)
1431 ("libssh" ,libssh)
1432 ("libxml2" ,libxml2)
1433 ("lz4" ,lz4)
1434 ("lua" ,lua-5.2) ;Lua 5.3 unsupported
1435 ("krb5" ,mit-krb5)
1436 ("qtbase" ,qtbase)
1437 ("qtmultimedia" ,qtmultimedia)
1438 ("qtsvg" ,qtsvg)
1439 ("sbc" ,sbc)
1440 ("snappy" ,snappy)
1441 ("zlib" ,zlib)))
1442 (native-inputs
1443 `(("bison" ,bison)
1444 ("doxygen" ,doxygen)
1445 ("flex" ,flex)
1446 ("gettext" ,gettext-minimal)
1447 ("perl" ,perl)
1448 ("pkg-config" ,pkg-config)
1449 ("python" ,python-wrapper)
1450 ("qttools" ,qttools)))
1451 (synopsis "Network traffic analyzer")
1452 (description "Wireshark is a network protocol analyzer, or @dfn{packet
1453 sniffer}, that lets you capture and interactively browse the contents of
1454 network frames.")
1455 (home-page "https://www.wireshark.org/")
1456 (license license:gpl2+)))
1457
1458 (define-public fping
1459 (package
1460 (name "fping")
1461 (version "5.0")
1462 (source
1463 (origin
1464 (method url-fetch)
1465 (uri (string-append "https://fping.org/dist/fping-"
1466 version ".tar.gz"))
1467 (sha256
1468 (base32 "1f2prmii4fyl44cfykp40hp4jjhicrhddh9v3dfs11j6nsww0f7d"))))
1469 (build-system gnu-build-system)
1470 (home-page "https://fping.org/")
1471 (synopsis "Send ICMP ECHO_REQUEST packets to network hosts")
1472 (description
1473 "fping is a ping-like program which uses @acronym{ICMP, Internet Control
1474 Message Protocol} echo requests to determine if a target host is responding.
1475
1476 @command{fping} differs from @command{ping} in that you can specify any number
1477 of targets on the command line, or specify a file containing the lists of
1478 targets to ping. Instead of sending to one target until it times out or
1479 replies, fping will send out a ping packet and move on to the next target in a
1480 round-robin fashion.")
1481 (license license:expat)))
1482
1483 (define-public gandi.cli
1484 (package
1485 (name "gandi.cli")
1486 (version "1.6")
1487 (source
1488 (origin
1489 (method url-fetch)
1490 (uri (pypi-uri name version))
1491 (sha256
1492 (base32 "1h36jahbp7273wn3yd747kbiwjc0bm3sja67bcxdsd54ln0vyndg"))))
1493 (build-system python-build-system)
1494 (arguments
1495 `(#:phases
1496 (modify-phases %standard-phases
1497 (add-after 'unpack 'embed-store-file-names
1498 (lambda _
1499 (substitute* (list "gandi/cli/modules/cert.py"
1500 "gandi/cli/tests/commands/test_certificate.py")
1501 (("openssl") (which "openssl")))
1502 #t))
1503 (add-after 'install 'install-documentation
1504 ;; The included man page may be outdated but we install it anyway,
1505 ;; since it's mentioned in 'gandi --help' and better than nothing.
1506 (lambda* (#:key outputs #:allow-other-keys)
1507 (let* ((out (assoc-ref outputs "out"))
1508 (man1 (string-append out "/share/man/man1")))
1509 (mkdir-p man1)
1510 (with-output-to-file (string-append man1 "/gandi.1")
1511 (lambda _
1512 (invoke "rst2man.py" "gandicli.man.rst")))
1513 #t))))))
1514 (native-inputs
1515 `(("python-docutils" ,python-docutils) ; for rst2man.py
1516 ("python-pytest" ,python-pytest)
1517 ("python-pytest-cov" ,python-pytest-cov)
1518 ("python-tox" ,python-tox)))
1519 (propagated-inputs
1520 `(("openssh" ,openssh))) ; used by gandi/cli/modules/iass.py
1521 (inputs
1522 `(("openssl" ,openssl)
1523 ("python-click" ,python-click)
1524 ("python-ipy" ,python-ipy)
1525 ("python-pyyaml" ,python-pyyaml)
1526 ("python-requests" ,python-requests)))
1527 (home-page "https://cli.gandi.net")
1528 (synopsis "Command-line interface to the Gandi.net Web API")
1529 (description
1530 "This package provides a command-line client (@command{gandi}) to buy,
1531 manage, and delete Internet resources from Gandi.net such as domain names,
1532 virtual machines, and certificates.")
1533 (license license:gpl3+)))
1534
1535 (define-public go-netns
1536 (let ((commit "13995c7128ccc8e51e9a6bd2b551020a27180abd")
1537 (revision "1"))
1538 (package
1539 (name "go-netns")
1540 (version (git-version "0.0.0" revision commit))
1541 (source (origin
1542 (method git-fetch)
1543 (uri (git-reference
1544 (url "https://github.com/vishvananda/netns")
1545 (commit commit)))
1546 (file-name (git-file-name name version))
1547 (sha256
1548 (base32
1549 "1zk6w8158qi4niva5rijchbv9ixgmijsgqshh54wdaav4xrhjshn"))))
1550 (build-system go-build-system)
1551 (arguments
1552 `(#:import-path "github.com/vishvananda/netns"
1553 #:tests? #f)) ;tests require root privileges
1554 (home-page "https://github.com/vishvananda/netns")
1555 (synopsis "Simple network namespace handling for Go")
1556 (description "The netns package provides a simple interface for
1557 handling network namespaces in Go.")
1558 (license license:asl2.0))))
1559
1560 (define-public go-sctp
1561 ;; docker-libnetwork-cmd-proxy requires this exact commit.
1562 ;; This commit is mentioned in docker-libnetwork-cmd-proxy's vendor.conf.
1563 (let ((commit "6e2cb1366111dcf547c13531e3a263a067715847")
1564 (revision "2"))
1565 (package
1566 (name "go-sctp")
1567 (version (git-version "0.0.0" revision commit))
1568 (source (origin
1569 (method git-fetch)
1570 (uri (git-reference
1571 (url "https://github.com/ishidawataru/sctp")
1572 (commit commit)))
1573 (file-name (git-file-name name version))
1574 (sha256
1575 (base32
1576 "1ba90fmpdwxa1ba4hrsjhi3gfy3pwmz7x8amw1p5dc9p5a7nnqrb"))))
1577 (build-system go-build-system)
1578 (arguments
1579 `(#:tests? #f ; Test suite is flakey.
1580 #:import-path "github.com/ishidawataru/sctp"))
1581 (home-page "https://github.com/ishidawataru/sctp")
1582 (synopsis "SCTP library for the Go programming language")
1583 (description "This library provides methods for using the stream control
1584 transmission protocol (SCTP) in a Go application.")
1585 (license license:asl2.0))))
1586
1587 (define-public httping
1588 (package
1589 (name "httping")
1590 (version "2.5")
1591 (source
1592 (origin
1593 (method url-fetch)
1594 (uri (string-append "https://www.vanheusden.com/httping/httping-"
1595 version ".tgz"))
1596 (sha256
1597 (base32
1598 "1y7sbgkhgadmd93x1zafqc4yp26ssiv16ni5bbi9vmvvdl55m29y"))))
1599 (build-system gnu-build-system)
1600 (native-inputs
1601 `(("gettext" ,gettext-minimal)))
1602 (inputs
1603 `(("fftw" ,fftw)
1604 ("ncurses" ,ncurses)
1605 ("openssl" ,openssl)))
1606 (arguments
1607 `(#:make-flags (list "CC=gcc"
1608 (string-append "DESTDIR=" (assoc-ref %outputs "out"))
1609 "PREFIX=")
1610 #:tests? #f)) ; no tests
1611 (home-page "https://www.vanheusden.com/httping/")
1612 (synopsis "Web server latency and throughput monitor")
1613 (description
1614 "httping measures how long it takes to connect to a web server, send an
1615 HTTP(S) request, and receive the reply headers. It is somewhat similar to
1616 @command{ping}, but can be used even in cases where ICMP traffic is blocked
1617 by firewalls or when you want to monitor the response time of the actual web
1618 application stack itself.")
1619 (license license:gpl2))) ; with permission to link with OpenSSL
1620
1621 (define-public httpstat
1622 (package
1623 (name "httpstat")
1624 (version "1.3.1")
1625 (source
1626 (origin
1627 (method git-fetch)
1628 (uri (git-reference
1629 (url "https://github.com/reorx/httpstat")
1630 (commit version)))
1631 (file-name (git-file-name name version))
1632 (sha256
1633 (base32 "0cw8299a080m42slsimz31xs0gjnh833gpbj2dsr4hkcinrn4iyd"))))
1634 (build-system python-build-system)
1635 (inputs `(("curl" ,curl)))
1636 (arguments
1637 '(#:phases
1638 (modify-phases %standard-phases
1639 (add-before 'build 'fix-curl-path
1640 (lambda* (#:key inputs #:allow-other-keys)
1641 (substitute* "httpstat.py"
1642 (("ENV_CURL_BIN.get\\('curl'\\)")
1643 (string-append "ENV_CURL_BIN.get('"
1644 (assoc-ref inputs "curl")
1645 "/bin/curl')"))
1646 ;; "curl -w time_*" units seems to have
1647 ;; changed from seconds to nanoseconds.
1648 (("d\\[k\\] \\* 1000") "d[k] / 1000"))
1649 #t)))))
1650 (home-page "https://github.com/reorx/httpstat")
1651 (synopsis "Visualize curl statistics")
1652 (description
1653 "@command{httpstat} is a tool to visualize statistics from the
1654 @command{curl} HTTP client. It acts as a wrapper for @command{curl} and
1655 prints timing information for each step of the HTTP request (DNS lookup,
1656 TCP connection, TLS handshake and so on) in the terminal.")
1657 (license license:expat)))
1658
1659 (define-public squid
1660 (package
1661 (name "squid")
1662 (version "4.14")
1663 (source
1664 (origin
1665 (method url-fetch)
1666 (uri (string-append "http://www.squid-cache.org/Versions/v4/squid-"
1667 version ".tar.xz"))
1668 (sha256
1669 (base32 "1z4zf98q24ps19fq840n0hwh6z1la65rf061kcapr29lcjm7s2gi"))))
1670 (build-system gnu-build-system)
1671 (arguments
1672 '(#:configure-flags
1673 ;; disable -march=native in build for reproducibility; see
1674 ;; https://wiki.squid-cache.org/KnowledgeBase/IllegalInstructionError
1675 (list "--disable-arch-native")
1676 #:phases
1677 (modify-phases %standard-phases
1678 (add-before 'build 'fix-true-path
1679 (lambda* (#:key inputs #:allow-other-keys)
1680 (substitute* "test-suite/testheaders.sh"
1681 (("/bin/true")
1682 (string-append (assoc-ref inputs "coreutils")
1683 "/bin/true")))
1684 #t)))))
1685 (inputs
1686 `(("perl" ,perl)
1687 ("openldap" ,openldap)
1688 ("linux-pam" ,linux-pam)
1689 ("libcap" ,libcap)
1690 ("cyrus-sasl" ,cyrus-sasl)
1691 ("expat" ,expat)
1692 ("libxml2" ,libxml2)
1693 ("openssl" ,openssl)))
1694 (native-inputs
1695 `(("cppunit" ,cppunit)
1696 ("pkg-config" ,pkg-config)))
1697 (synopsis "Web caching proxy")
1698 (description "Squid is a caching proxy for the Web supporting HTTP, HTTPS,
1699 FTP, and more. It reduces bandwidth and improves response times by caching and
1700 reusing frequently-requested web pages.")
1701 (home-page "http://www.squid-cache.org/")
1702 (license license:gpl2+)))
1703
1704 (define-public bwm-ng
1705 (package
1706 (name "bwm-ng")
1707 (version "0.6.3")
1708 (source
1709 (origin
1710 (method git-fetch)
1711 (uri (git-reference
1712 (url "https://github.com/vgropp/bwm-ng")
1713 (commit (string-append "v" version))))
1714 (file-name (git-file-name name version))
1715 (sha256
1716 (base32 "1gpp2l3w479h1w5skjra5xy0gxd24kvmk6i4psbkafnv2399la4k"))))
1717 (build-system gnu-build-system)
1718 (arguments
1719 `(#:phases
1720 (modify-phases %standard-phases
1721 (add-after 'unpack 'disable-premature-./configure
1722 (lambda _
1723 (substitute* "autogen.sh"
1724 (("\\$srcdir/configure")
1725 "true"))
1726 #t)))))
1727 (native-inputs
1728 `(("autoconf" ,autoconf)
1729 ("automake" ,automake)))
1730 (inputs
1731 `(("ncurses" ,ncurses)))
1732 (synopsis "Console based live network and disk I/O bandwidth monitor")
1733 (description "Bandwidth Monitor NG is a small and simple console based
1734 live network and disk I/O bandwidth monitor.")
1735 (home-page "https://www.gropp.org/?id=projects&sub=bwm-ng")
1736 (license license:gpl2)))
1737
1738 (define-public aircrack-ng
1739 (package
1740 (name "aircrack-ng")
1741 (version "1.6")
1742 (source
1743 (origin
1744 (method url-fetch)
1745 (uri (string-append "https://download.aircrack-ng.org/aircrack-ng-"
1746 version ".tar.gz"))
1747 (sha256
1748 (base32 "0ix2k64qg7x3w0bzdsbk1m50kcpq1ws59g3zkwiafvpwdr4gs2sg"))))
1749 (build-system gnu-build-system)
1750 (native-inputs
1751 `(("autoconf" ,autoconf)
1752 ("automake" ,automake)
1753 ("libtool" ,libtool)
1754 ("pkg-config" ,pkg-config)
1755 ("which" ,which)))
1756 (inputs
1757 `(("libgcrypt" ,libgcrypt)
1758 ("libnl" ,libnl)
1759 ("libpcap" ,libpcap)
1760 ("ethtool" ,ethtool)
1761 ("pcre" ,pcre)
1762 ("sqlite" ,sqlite)
1763 ("zlib" ,zlib)))
1764 (arguments
1765 `(#:configure-flags
1766 (list "--with-experimental=yes" ; build wesside-ng, etc.
1767 "--with-gcrypt") ; openssl's the default
1768 #:phases (modify-phases %standard-phases
1769 (add-before 'bootstrap 'patch-evalrev
1770 (lambda _
1771 ;; Called by ./autogen.sh below, before the default
1772 ;; ‘patch-shebangs’ phase has had a chance to run.
1773 (substitute* "evalrev"
1774 (("/bin/sh")
1775 (which "sh")))
1776 #t))
1777 (add-after 'build 'absolutize-tools
1778 (lambda* (#:key inputs #:allow-other-keys)
1779 (let ((ethtool (string-append (assoc-ref inputs "ethtool")
1780 "/sbin/ethtool")))
1781 (substitute* "scripts/airmon-ng"
1782 (("ethtool ")
1783 (string-append ethtool " ")))
1784 #t))))))
1785 (home-page "https://www.aircrack-ng.org")
1786 (synopsis "Assess WiFi network security")
1787 (description
1788 "Aircrack-ng is a complete suite of tools to assess WiFi network
1789 security. It focuses on different areas of WiFi security: monitoring,
1790 attacking, testing, and cracking. All tools are command-line driven, which
1791 allows for heavy scripting.")
1792 (license (list license:gpl2+ license:bsd-3))))
1793
1794 (define-public pixiewps
1795 (package
1796 (name "pixiewps")
1797 (version "1.4.2")
1798 (source (origin
1799 (method url-fetch)
1800 (uri (string-append
1801 "https://github.com/wiire-a/pixiewps/releases/"
1802 "download/v" version "/" name "-" version ".tar.xz"))
1803 (sha256
1804 (base32
1805 "07nym6bqml0k9v29vnj003nrgnwrywgjvnljb7cdpsvnwilhbp64"))))
1806 (build-system gnu-build-system)
1807 (arguments
1808 '(#:make-flags
1809 (list "CC=gcc"
1810 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1811 #:phases
1812 (modify-phases %standard-phases
1813 (delete 'configure)) ; no configure script
1814 #:tests? #f)) ; there are no tests
1815 (home-page "https://github.com/wiire-a/pixiewps/")
1816 (synopsis "Offline brute-force tool for Wi-Fi Protected Setup")
1817 (description "Pixiewps implements the pixie-dust attack to brute
1818 force the Wi-Fi Protected Setup (WPS) PIN by exploiting the low or
1819 non-existing entropy of some access points.")
1820 (license license:gpl3+)))
1821
1822 (define-public reaver
1823 (package
1824 (name "reaver")
1825 (version "1.6.6")
1826 (source (origin
1827 (method url-fetch)
1828 (uri (string-append
1829 "https://github.com/t6x/reaver-wps-fork-t6x/releases/"
1830 "download/v" version "/reaver-" version ".tar.xz"))
1831 (sha256
1832 (base32
1833 "00k7mc81ifv0wma7k4v18mj498badbw5yls6c28qin3d1gda0ag3"))))
1834 (build-system gnu-build-system)
1835 (arguments
1836 `(#:configure-flags
1837 ;; Save session files to current directory instead of /var.
1838 (list "--enable-savetocurrent"
1839 "--localstatedir=/tmp/dummy") ; prevent creating /var during install
1840 #:phases
1841 (modify-phases %standard-phases
1842 (add-before 'configure 'change-directory
1843 (lambda _
1844 (chdir "src")
1845 #t))
1846 (add-after 'install 'install-doc
1847 (lambda* (#:key outputs #:allow-other-keys)
1848 (chdir "../docs")
1849 (let* ((out (assoc-ref outputs "out"))
1850 (doc (string-append out "/share/doc/" ,name "-" ,version))
1851 (man1 (string-append out "/share/man/man1")))
1852 (for-each (lambda (file) (install-file file doc))
1853 (find-files "." "README.*"))
1854 (install-file "reaver.1" man1)
1855 #t))))
1856 #:tests? #f)) ; there are no tests
1857 (inputs
1858 `(("libpcap" ,libpcap)))
1859 (propagated-inputs
1860 `(("aircrack-ng" ,aircrack-ng)
1861 ("pixiewps" ,pixiewps)))
1862 (home-page "https://github.com/t6x/reaver-wps-fork-t6x/")
1863 (synopsis "Attack tool for Wi-Fi Protected Setup")
1864 (description "Reaver performs a brute force attack against an access
1865 point's Wi-Fi Protected Setup (WPS) PIN. Once the PIN is found, the WPA
1866 passphrase can be recovered and the AP's wireless settings can be
1867 reconfigured.")
1868 (license license:gpl2+)))
1869
1870 (define-public perl-danga-socket
1871 (package
1872 (name "perl-danga-socket")
1873 (version "1.62")
1874 (source
1875 (origin
1876 (method url-fetch)
1877 (uri (string-append "mirror://cpan/authors/id/N/NM/NML/"
1878 "Danga-Socket-" version ".tar.gz"))
1879 (sha256
1880 (base32 "0x4bvirmf0kphks19jwgva00zz73zx344218dfaiv8gigrw3yg4m"))))
1881 (build-system perl-build-system)
1882 (native-inputs
1883 `(("perl-test-tcp" ,perl-test-tcp)))
1884 (propagated-inputs
1885 `(("perl-sys-syscall" ,perl-sys-syscall)))
1886 (home-page "https://metacpan.org/release/Danga-Socket")
1887 (synopsis "Event loop and event-driven async socket base class")
1888 (description
1889 "Danga::Socket is an abstract base class for objects backed by a socket
1890 which provides the basic framework for event-driven asynchronous IO, designed
1891 to be fast. Danga::Socket is both a base class for objects, and an event
1892 loop.")
1893 (license license:perl-license)))
1894
1895 (define-public perl-data-validate-ip
1896 (package
1897 (name "perl-data-validate-ip")
1898 (version "0.27")
1899 (source
1900 (origin
1901 (method url-fetch)
1902 (uri (string-append
1903 "mirror://cpan/authors/id/D/DR/DROLSKY/Data-Validate-IP-"
1904 version ".tar.gz"))
1905 (sha256
1906 (base32 "1mmppyzsh1w2z2h86kvzqxy56wxgs62a3kf8nvcnz76bblir5ap1"))))
1907 (build-system perl-build-system)
1908 (native-inputs
1909 `(("perl-test-requires" ,perl-test-requires)))
1910 (propagated-inputs
1911 `(("perl-netaddr-ip" ,perl-netaddr-ip)))
1912 (home-page "https://metacpan.org/release/Data-Validate-IP")
1913 (synopsis "IPv4 and IPv6 validation methods")
1914 (description
1915 "This module provides several IP address validation subroutines that both
1916 validate and untaint their input. This includes both basic validation
1917 (@code{is_ipv4()} and @code{is_ipv6()}) and special cases like checking whether
1918 an address belongs to a specific network or whether an address is public or
1919 private (reserved).")
1920 (license license:perl-license)))
1921
1922 (define-public perl-net-dns
1923 (package
1924 (name "perl-net-dns")
1925 (version "1.28")
1926 (source
1927 (origin
1928 (method url-fetch)
1929 (uri
1930 (list
1931 (string-append "https://www.net-dns.org/download/Net-DNS-"
1932 version ".tar.gz")
1933 (string-append "mirror://cpan/authors/id/N/NL/NLNETLABS/Net-DNS-"
1934 version ".tar.gz")))
1935 (sha256
1936 (base32 "0kh2qbhxv005pqb35mdk2bld7cg7xnxl12qvdwv30sgd91aqica7"))))
1937 (build-system perl-build-system)
1938 (inputs
1939 `(("perl-digest-hmac" ,perl-digest-hmac)))
1940 (home-page "https://www.net-dns.org/")
1941 (synopsis
1942 "Perl Interface to the Domain Name System")
1943 (description "Net::DNS is the Perl Interface to the Domain Name System.")
1944 (license license:x11)))
1945
1946 (define-public perl-socket6
1947 (package
1948 (name "perl-socket6")
1949 (version "0.29")
1950 (source
1951 (origin
1952 (method url-fetch)
1953 (uri (string-append
1954 "mirror://cpan/authors/id/U/UM/UMEMOTO/Socket6-"
1955 version
1956 ".tar.gz"))
1957 (sha256
1958 (base32
1959 "054izici8klfxs8hr5rljib28plijpsfymy99xbzdp047bx1b2a6"))))
1960 (build-system perl-build-system)
1961 (arguments
1962 `(#:phases
1963 (modify-phases %standard-phases
1964 (replace 'configure
1965 (lambda* (#:key outputs #:allow-other-keys)
1966 (let* ((out (assoc-ref outputs "out"))
1967 (args `("Makefile.PL"
1968 ,(string-append "PREFIX=" out)
1969 "INSTALLDIRS=site")))
1970 (setenv "CONFIG_SHELL" (which "sh"))
1971 (apply invoke "perl" args)))))))
1972 (home-page "https://metacpan.org/release/Socket6")
1973 (synopsis
1974 "IPv6 related part of the C socket.h defines and structure manipulators for Perl")
1975 (description "Socket6 binds the IPv6 related part of the C socket header
1976 definitions and structure manipulators for Perl.")
1977 (license license:bsd-3)))
1978
1979 (define-public perl-net-dns-resolver-programmable
1980 (package
1981 (name "perl-net-dns-resolver-programmable")
1982 (version "0.003")
1983 (source
1984 (origin
1985 (method url-fetch)
1986 (uri (string-append
1987 "mirror://cpan/authors/id/J/JM/JMEHNLE/net-dns-resolver-programmable/"
1988 "Net-DNS-Resolver-Programmable-v" version ".tar.gz"))
1989 (sha256
1990 (base32
1991 "1v3nl2kaj4fs55n1617n53q8sa3mir06898vpy1rq98zjih24h4d"))
1992 (patches
1993 (search-patches "perl-net-dns-resolver-programmable-fix.patch"))))
1994 (build-system perl-build-system)
1995 (native-inputs
1996 `(("perl-module-build" ,perl-module-build)))
1997 (inputs `(("perl-net-dns" ,perl-net-dns)))
1998 (home-page
1999 "https://metacpan.org/release/Net-DNS-Resolver-Programmable")
2000 (synopsis
2001 "Programmable DNS resolver class for offline emulation of DNS")
2002 (description "Net::DNS::Resolver::Programmable is a programmable DNS resolver for
2003 offline emulation of DNS.")
2004 (license license:perl-license)))
2005
2006 (define-public perl-net-dns-resolver-mock
2007 (package
2008 (name "perl-net-dns-resolver-mock")
2009 (version "1.20171219")
2010 (source (origin
2011 (method url-fetch)
2012 (uri (string-append
2013 "mirror://cpan/authors/id/M/MB/MBRADSHAW/"
2014 "Net-DNS-Resolver-Mock-" version ".tar.gz"))
2015 (sha256
2016 (base32
2017 "0m3rxpkv1b9121srvbqkrgzg4m8mnydiydqv34in1i1ixwrl6jn9"))))
2018 (build-system perl-build-system)
2019 (inputs
2020 `(("perl-net-dns" ,perl-net-dns)))
2021 (home-page "https://metacpan.org/release/Net-DNS-Resolver-Mock")
2022 (synopsis "Mock DNS Resolver object for testing")
2023 (description
2024 "Net::DNS::Resolver::Mock is a subclass of Net::DNS::Resolver, but returns
2025 static data from any provided DNS zone file instead of querying the network.
2026 It is intended primarily for use in testing.")
2027 (license license:perl-license)))
2028
2029 (define-public perl-netaddr-ip
2030 (package
2031 (name "perl-netaddr-ip")
2032 (version "4.079")
2033 (source
2034 (origin
2035 (method url-fetch)
2036 (uri (string-append
2037 "mirror://cpan/authors/id/M/MI/MIKER/NetAddr-IP-"
2038 version
2039 ".tar.gz"))
2040 (sha256
2041 (base32
2042 "1rx0dinrz9fk9qcg4rwqq5n1dm3xv2arymixpclcv2q2nzgq4npc"))))
2043 (build-system perl-build-system)
2044 (arguments
2045 `(#:phases
2046 (modify-phases %standard-phases
2047 (replace 'configure
2048 (lambda* (#:key outputs #:allow-other-keys)
2049 (let* ((out (assoc-ref outputs "out"))
2050 (args `("Makefile.PL"
2051 ,(string-append "PREFIX=" out)
2052 "INSTALLDIRS=site")))
2053 (setenv "CONFIG_SHELL" (which "sh"))
2054 (apply invoke "perl" args)))))))
2055 (home-page
2056 "https://metacpan.org/release/NetAddr-IP")
2057 (synopsis
2058 "Manages IPv4 and IPv6 addresses and subnets")
2059 (description "NetAddr::IP manages IPv4 and IPv6 addresses and subsets.")
2060 (license license:perl-license)))
2061
2062 (define-public perl-net-patricia
2063 (package
2064 (name "perl-net-patricia")
2065 (version "1.22")
2066 (source
2067 (origin
2068 (method url-fetch)
2069 (uri (string-append
2070 "mirror://cpan/authors/id/G/GR/GRUBER/Net-Patricia-"
2071 version
2072 ".tar.gz"))
2073 (sha256
2074 (base32
2075 "0ln5f57vc8388kyh9vhx2infrdzfhbpgyby74h1qsnhwds95m0vh"))))
2076 (build-system perl-build-system)
2077 (arguments
2078 '(#:phases
2079 (modify-phases %standard-phases
2080 (add-after 'unpack 'dont-link-with-nsl ; Borrowed from Debian.
2081 (lambda _
2082 (substitute* "Makefile.PL"
2083 (("-lnsl") ""))
2084 #t)))))
2085 (inputs
2086 `(("perl-net-cidr-lite" ,perl-net-cidr-lite)
2087 ("perl-socket6" ,perl-socket6)))
2088 (home-page
2089 "https://metacpan.org/release/Net-Patricia")
2090 (synopsis
2091 "Patricia Trie Perl module for fast IP address lookups")
2092 (description
2093 "Net::Patricia does IP address lookups quickly in Perl.")
2094 ;; The bindings are licensed under GPL2 or later.
2095 ;; libpatricia is licensed under 2-clause BSD.
2096 (license (list license:gpl2+ license:bsd-2))))
2097
2098 (define-public perl-net-cidr-lite
2099 (package
2100 (name "perl-net-cidr-lite")
2101 (version "0.21")
2102 (source
2103 (origin
2104 (method url-fetch)
2105 (uri (string-append
2106 "mirror://cpan/authors/id/D/DO/DOUGW/Net-CIDR-Lite-"
2107 version
2108 ".tar.gz"))
2109 (sha256
2110 (base32
2111 "14shj73zbqmfjbp0qz1fs9j4p2dpvz5hfkm4qfdjbydflbl2b8fg"))))
2112 (build-system perl-build-system)
2113 (home-page
2114 "https://metacpan.org/release/Net-CIDR-Lite")
2115 (synopsis
2116 "Perl extension for merging IPv4 or IPv6 CIDR addresses")
2117 (description "Net::CIDR::Lite merges IPv4 or IPv6 CIDR addresses.")
2118 (license license:gpl1+)))
2119
2120 (define-public perl-io-socket-inet6
2121 (package
2122 (name "perl-io-socket-inet6")
2123 (version "2.72")
2124 (source
2125 (origin
2126 (method url-fetch)
2127 (uri (string-append
2128 "mirror://cpan/authors/id/S/SH/SHLOMIF/IO-Socket-INET6-"
2129 version
2130 ".tar.gz"))
2131 (sha256
2132 (base32
2133 "1fqypz6qa5rw2d5y2zq7f49frwra0aln13nhq5gi514j2zx21q45"))))
2134 (build-system perl-build-system)
2135 (native-inputs
2136 `(("perl-module-build" ,perl-module-build)
2137 ("perl-test-pod" ,perl-test-pod)
2138 ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
2139 (inputs `(("perl-socket6" ,perl-socket6)))
2140 (arguments `(;; Need network socket API
2141 #:tests? #f))
2142 (home-page
2143 "https://metacpan.org/release/IO-Socket-INET6")
2144 (synopsis
2145 "Perl object interface for AF_INET/AF_INET6 domain sockets")
2146 (description "IO::Socket::INET6 is an interface for AF_INET/AF_INET6 domain
2147 sockets in Perl.")
2148 (license license:perl-license)))
2149
2150 (define-public libproxy
2151 (package
2152 (name "libproxy")
2153 (version "0.4.17")
2154 (source (origin
2155 (method url-fetch)
2156 (uri (string-append "https://github.com/libproxy/libproxy/"
2157 "releases/download/" version "/libproxy-"
2158 version ".tar.xz"))
2159 (sha256
2160 (base32
2161 "01cbgz6lc3v59sldqk96l1281kp2qxnsa2qwlf2ikvjlyr1gi2dw"))))
2162 (build-system cmake-build-system)
2163 (native-inputs
2164 `(("pkg-config" ,pkg-config)))
2165 (inputs
2166 `(("dbus" ,dbus)
2167 ("zlib" ,zlib)))
2168 (arguments
2169 `(#:phases
2170 (modify-phases %standard-phases
2171 (replace 'check
2172 (lambda _
2173 (invoke "ctest" "-E" "url-test"))))))
2174 (synopsis "Library providing automatic proxy configuration management")
2175 (description "Libproxy handles the details of HTTP/HTTPS proxy
2176 configuration for applications across all scenarios. Applications using
2177 libproxy only have to specify which proxy to use.")
2178 (home-page "https://libproxy.github.io/libproxy")
2179 (license license:lgpl2.1+)))
2180
2181 (define-public proxychains-ng
2182 (package
2183 (name "proxychains-ng")
2184 (version "4.14")
2185 (source
2186 (origin
2187 (method url-fetch)
2188 (uri (string-append "http://ftp.barfooze.de/pub/sabotage/tarballs/"
2189 "proxychains-ng-" version ".tar.xz"))
2190 (sha256
2191 (base32 "1bmhfbl1bzc87vl0xwr1wh5xvslfyc41nl2hqzhbj258p0sy004x"))))
2192 (build-system gnu-build-system)
2193 (arguments
2194 `(#:tests? #f ; there are no tests
2195 #:phases
2196 (modify-phases %standard-phases
2197 (add-after 'unpack 'fix-configure-script
2198 (lambda _
2199 ;; The configure script is very intolerant to unknown arguments,
2200 ;; such as "CONFIG_SHELL".
2201 (substitute* "configure"
2202 (("\\*\\) break ;;" line)
2203 (string-append "[A-Z]*) shift ;;\n"
2204 line)))
2205 #t))
2206 (add-before 'configure 'set-up-environment
2207 (lambda _
2208 (setenv "CC" "gcc")
2209 #t)))))
2210 (synopsis "Redirect any TCP connection through a proxy or proxy chain")
2211 (description "Proxychains-ng is a preloader which hooks calls to sockets
2212 in dynamically linked programs and redirects them through one or more SOCKS or
2213 HTTP proxies.")
2214 (home-page "https://github.com/rofl0r/proxychains-ng")
2215 (license license:gpl2+)))
2216
2217 (define-public enet
2218 (package
2219 (name "enet")
2220 (version "1.3.17")
2221 (source
2222 (origin
2223 (method url-fetch)
2224 (uri (string-append "http://enet.bespin.org/download/"
2225 "enet-" version ".tar.gz"))
2226 (sha256
2227 (base32 "1p6f9mby86af6cs7pv6h48032ip9g32c05cb7d9mimam8lchz3x3"))))
2228 (build-system gnu-build-system)
2229 (native-inputs
2230 `(("pkg-config" ,pkg-config)))
2231 (synopsis "Network communication layer on top of UDP")
2232 (description
2233 "ENet's purpose is to provide a relatively thin, simple and robust network
2234 communication layer on top of UDP. The primary feature it provides is optional
2235 reliable, in-order delivery of packets. ENet omits certain higher level
2236 networking features such as authentication, server discovery, encryption, or
2237 other similar tasks that are particularly application specific so that the
2238 library remains flexible, portable, and easily embeddable.")
2239 (home-page "http://enet.bespin.org")
2240 (license license:expat)))
2241
2242 (define-public sslh
2243 (package
2244 (name "sslh")
2245 (version "1.21c")
2246 (source
2247 (origin
2248 (method git-fetch)
2249 (uri (git-reference
2250 (url "https://github.com/yrutschle/sslh")
2251 (commit (string-append "v" version))))
2252 (file-name (git-file-name name version))
2253 (sha256
2254 (base32 "19h32dn0076p3s7dn35qi5yp2xvnxw9sqphppmn72vyb8caxvw1z"))))
2255 (build-system gnu-build-system)
2256 (native-inputs
2257 `(;; Test dependencies.
2258 ("lcov" ,lcov)
2259 ("perl" ,perl)
2260 ("perl-conf-libconfig" ,perl-conf-libconfig)
2261 ("perl-io-socket-inet6" ,perl-io-socket-inet6)
2262 ("perl-socket6" ,perl-socket6)
2263 ("psmisc" ,psmisc))) ; for ‘killall’
2264 (inputs
2265 `(("libcap" ,libcap)
2266 ("libconfig" ,libconfig)
2267 ("pcre" ,pcre)
2268 ("tcp-wrappers" ,tcp-wrappers)))
2269 (arguments
2270 '(#:phases
2271 (modify-phases %standard-phases
2272 (delete 'configure) ; no configure script
2273 (add-before 'check 'fix-tests
2274 (lambda _
2275 (substitute* "./t"
2276 (("\"/tmp") "$ENV{\"TMPDIR\"} . \"")
2277 ;; The Guix build environment lacks ‘ip6-localhost’.
2278 (("ip6-localhost") "localhost"))
2279 #t))
2280 ;; Many of these files are mentioned in the man page. Install them.
2281 (add-after 'install 'install-documentation
2282 (lambda* (#:key outputs #:allow-other-keys)
2283 (let* ((out (assoc-ref outputs "out"))
2284 (doc (string-append out "/share/doc/sslh")))
2285 (install-file "README.md" doc)
2286 (for-each
2287 (lambda (file)
2288 (install-file file (string-append doc "/examples")))
2289 (append (find-files "." "\\.cfg")
2290 (find-files "scripts"))))
2291 #t)))
2292 #:make-flags (list "CC=gcc"
2293 "USELIBCAP=1"
2294 "USELIBWRAP=1"
2295 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2296 #:test-target "test"))
2297 (home-page "https://www.rutschle.net/tech/sslh/README.html")
2298 (synopsis "Applicative network protocol demultiplexer")
2299 (description
2300 "sslh is a network protocol demultiplexer. It acts like a switchboard,
2301 accepting connections from clients on one port and forwarding them to different
2302 servers based on the contents of the first received data packet. Detection of
2303 common protocols like HTTP(S), SSL, SSH, OpenVPN, tinc, and XMPP is already
2304 implemented, but any other protocol that matches a regular expression can be
2305 added. sslh's name comes from its original application of serving both SSH and
2306 HTTPS on port 443, allowing SSH connections from inside corporate firewalls
2307 that block port 22.")
2308 (license (list license:bsd-2 ; tls.[ch]
2309 license:gpl2+)))) ; everything else
2310
2311 (define-public iperf
2312 (package
2313 (name "iperf")
2314 (version "3.9")
2315 (source (origin
2316 (method url-fetch)
2317 (uri (string-append "http://downloads.es.net/pub/iperf"
2318 "/iperf-" version ".tar.gz"))
2319 (sha256
2320 (base32
2321 "0f601avdmzpwsa3lbi0ppjhkrdipm5wifhhxy5czf99370k3mdi4"))))
2322 (build-system gnu-build-system)
2323 (synopsis "TCP, UDP and SCTP bandwidth measurement tool")
2324 (description
2325 "iPerf is a tool to measure achievable bandwidth on IP networks. It
2326 supports tuning of various parameters related to timing, buffers and
2327 protocols (TCP, UDP, SCTP with IPv4 and IPv6). For each test it reports
2328 the bandwidth, loss, and other parameters.")
2329 (home-page "https://software.es.net/iperf/")
2330 (license (list license:bsd-3 ; Main distribution.
2331 license:ncsa ; src/{units,iperf_locale,tcp_window_size}.c
2332 license:expat ; src/{cjson,net}.[ch]
2333 license:public-domain)))) ; src/portable_endian.h
2334
2335 (define-public nethogs
2336 (package
2337 (name "nethogs")
2338 (version "0.8.6")
2339 (source
2340 (origin
2341 (method git-fetch)
2342 (uri (git-reference
2343 (url "https://github.com/raboof/nethogs")
2344 (commit (string-append "v" version))))
2345 (hash
2346 (content-hash
2347 (base32 "0sn1sdp86akwlm4r1vmkxjjl50c0xaisk91bbz57z7kcsaphxna9")
2348 sha256))
2349 (file-name (git-file-name name version))))
2350 (build-system gnu-build-system)
2351 (inputs
2352 `(("libpcap" ,libpcap)
2353 ("ncurses" ,ncurses)))
2354 (arguments
2355 `(#:make-flags `("CC=gcc"
2356 ,(string-append "PREFIX=" %output)
2357 ,(string-append "VERSION=" ,version))
2358 #:phases
2359 (modify-phases %standard-phases
2360 (delete 'configure)))) ; no ./configure script.
2361 (home-page "https://github.com/raboof/nethogs")
2362 (synopsis "Per-process bandwidth monitor")
2363 (description "NetHogs is a small 'net top' tool for Linux. Instead of
2364 breaking the traffic down per protocol or per subnet, like most tools do, it
2365 groups bandwidth by process.
2366
2367 NetHogs does not rely on a special kernel module to be loaded. If there's
2368 suddenly a lot of network traffic, you can fire up NetHogs and immediately see
2369 which PID is causing this. This makes it easy to identify programs that have
2370 gone wild and are suddenly taking up your bandwidth.")
2371 (license license:gpl2+)))
2372
2373 (define-public nzbget
2374 (package
2375 (name "nzbget")
2376 (version "21.0")
2377 (source
2378 (origin
2379 (method url-fetch)
2380 (uri (string-append "https://github.com/nzbget/nzbget/releases"
2381 "/download/v" version
2382 "/nzbget-" version "-src.tar.gz"))
2383 (sha256
2384 (base32
2385 "0lwd0pfrs4a5ms193hgz2qiyf7grrc925dw6y0nfc0gkp27db9b5"))
2386 (modules '((guix build utils)))
2387 (snippet
2388 ;; Reported upstream as <https://github.com/nzbget/nzbget/pull/414>.
2389 '(begin
2390 (substitute* "daemon/connect/TlsSocket.cpp"
2391 (("gnutls_certificate-verification_status_print")
2392 "gnutls_certificate_verification_status_print"))
2393 #t))))
2394 (arguments
2395 `(#:configure-flags
2396 (list
2397 (string-append "--with-libcurses-includes="
2398 (assoc-ref %build-inputs "ncurses") "/include")
2399 (string-append "--with-libcurses-libraries="
2400 (assoc-ref %build-inputs "ncurses") "/lib")
2401 (string-append "--with-tlslib=GnuTLS"))))
2402 (build-system gnu-build-system)
2403 (inputs `(("gnutls" ,gnutls)
2404 ("libxml2" ,libxml2)
2405 ("ncurses" ,ncurses)
2406 ("zlib" ,zlib)))
2407 (native-inputs `(("pkg-config" ,pkg-config)))
2408 (home-page "https://github.com/nzbget/nzbget")
2409 (synopsis "Usenet binary file downloader")
2410 (description
2411 "NZBGet is a binary newsgrabber, which downloads files from Usenet based
2412 on information given in @code{nzb} files. NZBGet can be used in standalone
2413 and in server/client modes. In standalone mode, you pass NZBGet @command{nzb}
2414 files as command-line parameters and it downloads them and exits. NZBGet also
2415 contains a Web interface. Its server can be controlled through remote
2416 procedure calls (RPCs).")
2417 (license license:gpl2+)))
2418
2419 (define-public openvswitch
2420 (package
2421 (name "openvswitch")
2422 (version "2.13.3")
2423 (source (origin
2424 (method url-fetch)
2425 (uri (string-append
2426 "https://www.openvswitch.org/releases/openvswitch-"
2427 version ".tar.gz"))
2428 (sha256
2429 (base32
2430 "1wc5zspy9aln7di7m9a1qy4lv3h05gmhgd1nffhb9nxdcxqgnpgp"))))
2431 (build-system gnu-build-system)
2432 (arguments
2433 '(;; FIXME: many tests fail with:
2434 ;; […]
2435 ;; test -e $OVS_RUNDIR/ovs-vswitchd.pid
2436 ;; ovs-appctl -t ovs-vswitchd exit
2437 ;; hard failure
2438 #:tests? #f
2439 #:configure-flags
2440 '("--enable-shared"
2441 "--localstatedir=/var"
2442 "--with-dbdir=/var/lib/openvswitch")
2443 #:phases
2444 (modify-phases %standard-phases
2445 (replace 'install
2446 (lambda _
2447 (invoke "make"
2448 ;; Don't try to create directories under /var.
2449 "RUNDIR=/tmp"
2450 "PKIDIR=/tmp"
2451 "LOGDIR=/tmp"
2452 "DBDIR=/tmp"
2453 "install"))))))
2454 (native-inputs
2455 `(("perl" ,perl)
2456 ("pkg-config" ,pkg-config)
2457 ("python" ,python-wrapper)
2458 ;; for testing
2459 ("util-linux" ,util-linux)))
2460 (inputs
2461 `(("libcap-ng" ,libcap-ng)
2462 ("openssl" ,openssl)))
2463 (synopsis "Virtual network switch")
2464 (home-page "https://www.openvswitch.org/")
2465 (description
2466 "Open vSwitch is a multilayer virtual switch. It is designed to enable
2467 massive network automation through programmatic extension, while still
2468 supporting standard management interfaces and protocols (e.g. NetFlow, sFlow,
2469 IPFIX, RSPAN, CLI, LACP, 802.1ag).")
2470 (license ; see debian/copyright for detail
2471 (list license:lgpl2.1 ; xenserver and utilities/bugtool
2472 license:gpl2 ; datapath
2473 license:bsd-2 license:bsd-3
2474 license:asl2.0)))) ; all other
2475
2476 (define-public python-ipy
2477 (package
2478 (name "python-ipy")
2479 (version "1.00")
2480 (source (origin
2481 (method url-fetch)
2482 (uri (pypi-uri "IPy" version))
2483 (sha256
2484 (base32
2485 "08d6kcacj67mvh0b6y765ipccy6gi4w2ndd4v1l3im2qm1cgcarg"))))
2486 (build-system python-build-system)
2487 (home-page "https://github.com/autocracy/python-ipy/")
2488 (synopsis "Python class and tools for handling IP addresses and networks")
2489 (description "The @code{IP} class allows a comfortable parsing and
2490 handling for most notations in use for IPv4 and IPv6 addresses and
2491 networks.")
2492 (license license:bsd-3)))
2493
2494 (define-public python2-ipy
2495 (package-with-python2 python-ipy))
2496
2497 (define-public speedtest-cli
2498 (package
2499 (name "speedtest-cli")
2500 (version "2.1.2")
2501 (source
2502 (origin
2503 (method git-fetch)
2504 (uri (git-reference
2505 (url "https://github.com/sivel/speedtest-cli")
2506 (commit (string-append "v" version))))
2507 (file-name (git-file-name name version))
2508 (sha256
2509 (base32 "1456yly6iym2c9bl6pi4sz8xbw34bm2dxm1vzpydsd6jazwpmy26"))))
2510 (build-system python-build-system)
2511 (home-page "https://github.com/sivel/speedtest-cli")
2512 (synopsis "Internet bandwidth tester")
2513 (description
2514 "Command line interface for testing internet bandwidth using
2515 speedtest.net.")
2516 (license license:asl2.0)))
2517
2518 (define-public tftp-hpa
2519 (package
2520 (name "tftp-hpa")
2521 (version "5.2")
2522 (source (origin
2523 (method url-fetch)
2524 (uri (string-append "mirror://kernel.org/software/"
2525 "network/tftp/tftp-hpa/tftp-hpa-" version
2526 ".tar.xz"))
2527 (sha256
2528 (base32
2529 "12vidchglhyc20znq5wdsbhi9mqg90jnl7qr9qs8hbvaz4fkdvmg"))))
2530 (build-system gnu-build-system)
2531 (arguments `(#:tests? #f)) ; no test target
2532 (synopsis "HPA's tftp client")
2533 (description
2534 "This is a tftp client derived from OpenBSD tftp with some extra options
2535 added and bugs fixed. The source includes readline support but it is not
2536 enabled due to license conflicts between the BSD advertising clause and the GPL.")
2537 (home-page "https://git.kernel.org/cgit/network/tftp/tftp-hpa.git/about/")
2538 ;; Some source files are distributed under a 3-clause BSD license, and
2539 ;; others under a 4-clause BSD license. Refer to the files in the source
2540 ;; distribution for clarification.
2541 (license (list license:bsd-3 license:bsd-4))))
2542
2543 (define-public pidentd
2544 (package
2545 (name "pidentd")
2546 (version "3.0.19")
2547 (source
2548 (origin
2549 (method git-fetch)
2550 (uri (git-reference
2551 (url "https://github.com/ptrrkssn/pidentd")
2552 (commit (string-append "v" version))))
2553 (file-name (git-file-name name version))
2554 (sha256
2555 (base32
2556 "1k4rr0b4ygxssbnsykzjvz4hjhazzz4j5arlilyc1iq7b1wzsk7i"))))
2557 (build-system gnu-build-system)
2558 (arguments
2559 `(#:tests? #f)) ; No tests are included
2560 (inputs
2561 `(("openssl" ,openssl-1.0))) ;for the DES library
2562 (home-page "https://www.lysator.liu.se/~pen/pidentd/")
2563 (synopsis "Small Ident Daemon")
2564 (description
2565 "@dfn{Pidentd} (Peter's Ident Daemon) is an identd, which implements a
2566 identification server. Pidentd looks up specific TCP/IP connections and
2567 returns the user name and other information about the connection.")
2568 (license license:public-domain)))
2569
2570 (define-public spiped
2571 (package
2572 (name "spiped")
2573 (version "1.6.1")
2574 (source (origin
2575 (method url-fetch)
2576 (uri (string-append "https://www.tarsnap.com/spiped/spiped-"
2577 version ".tgz"))
2578 (sha256
2579 (base32
2580 "04rpnc53whfky7pp2m9h35gwzwn6788pnl6c1qd576mpknbqjw4d"))))
2581 (build-system gnu-build-system)
2582 (arguments
2583 '(#:test-target "test"
2584 #:make-flags (let* ((out (assoc-ref %outputs "out"))
2585 (bindir (string-append out "/bin"))
2586 (man1dir (string-append out "/share/man/man1")))
2587 (list "CC=gcc" ; It tries to invoke `c99`.
2588 (string-append "BINDIR=" bindir)
2589 (string-append "MAN1DIR=" man1dir)))
2590 #:phases
2591 (modify-phases %standard-phases
2592 (add-after 'unpack 'patch-command-invocations
2593 (lambda _
2594 (substitute* '("Makefile"
2595 "libcperciva/cpusupport/Build/cpusupport.sh"
2596 "libcperciva/POSIX/posix-cflags.sh"
2597 "libcperciva/POSIX/posix-l.sh")
2598 (("command -p") ""))
2599 #t))
2600 (delete 'configure) ; No ./configure script.
2601 (add-after 'install 'install-more-docs
2602 (lambda* (#:key outputs #:allow-other-keys)
2603 (let* ((out (assoc-ref %outputs "out"))
2604 (misc (string-append out "/share/doc/spiped")))
2605 (install-file "DESIGN.md" misc)
2606 #t))))))
2607 (native-inputs
2608 `(("procps" ,procps))) ; `ps` is used by the test suite.
2609 (inputs
2610 `(("openssl" ,openssl)))
2611 (home-page "https://www.tarsnap.com/spiped.html")
2612 (synopsis "Create secure pipes between sockets")
2613 (description "Spiped (pronounced \"ess-pipe-dee\") is a utility for creating
2614 symmetrically encrypted and authenticated pipes between socket addresses, so
2615 that one may connect to one address (e.g., a UNIX socket on localhost) and
2616 transparently have a connection established to another address (e.g., a UNIX
2617 socket on a different system). This is similar to 'ssh -L' functionality, but
2618 does not use SSH and requires a pre-shared symmetric key.")
2619 (license license:bsd-2)))
2620
2621 (define-public quagga
2622 (package
2623 (name "quagga")
2624 (version "1.2.4")
2625 (source (origin
2626 (method url-fetch)
2627 ;; Use archived sources; see <http://issues.guix.gnu.org/47123>.
2628 (uri (string-append "https://fossies.org/linux/misc/"
2629 "quagga-" version ".tar.gz"))
2630 (sha256
2631 (base32
2632 "1lsksqxij5f1llqn86pkygrf5672kvrqn1kvxghi169hqf1c0r73"))
2633 (patches
2634 (search-patches "quagga-reproducible-build.patch"))))
2635 (build-system gnu-build-system)
2636 (native-inputs `(("pkg-config" ,pkg-config)
2637 ("perl" ,perl)
2638 ("dejagnu" ,dejagnu)))
2639 (inputs `(("readline" ,readline)
2640 ("c-ares" ,c-ares)))
2641 (synopsis "Routing Software Suite")
2642 (description "Quagga is a routing software suite, providing implementations
2643 of OSPFv2, OSPFv3, RIP v1 and v2, RIPng and BGP-4 for Unix platforms.
2644
2645 The Quagga architecture consists of a core daemon, @command{zebra}, which
2646 acts as an abstraction layer to the underlying Unix kernel and presents the
2647 Zserv API over a Unix or TCP stream to Quagga clients. It is these Zserv
2648 clients which typically implement a routing protocol and communicate routing
2649 updates to the zebra daemon.")
2650 (home-page "https://www.nongnu.org/quagga/")
2651 (license license:gpl2+)))
2652
2653 (define-public thc-ipv6
2654 (let ((revision "0")
2655 (commit "4bb72573e0950ce6f8ca2800a10748477020029e"))
2656 (package
2657 (name "thc-ipv6")
2658 (version (git-version "3.4" revision commit))
2659 (source (origin
2660 (method git-fetch)
2661 (uri (git-reference
2662 (url "https://github.com/vanhauser-thc/thc-ipv6")
2663 (commit commit)))
2664 (file-name (git-file-name name version))
2665 (sha256
2666 (base32
2667 "1x5i6vbsddqc2yks7r1a2fw2fk16qxvd6hpzh1lykjfpkal8fdir"))))
2668 (build-system gnu-build-system)
2669 (arguments
2670 `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2671 #:tests? #f ; No test suite.
2672 #:phases
2673 (modify-phases %standard-phases
2674 (delete 'configure) ; No ./configure script.
2675 (add-before 'build 'patch-paths
2676 (lambda _
2677 (substitute* "Makefile"
2678 (("/bin/echo") "echo"))
2679 #t))
2680 (add-after 'install 'install-more-docs
2681 (lambda* (#:key outputs #:allow-other-keys)
2682 (let* ((out (assoc-ref outputs "out"))
2683 (doc (string-append out "/share/thc-ipv6/doc")))
2684 (install-file "README" doc)
2685 (install-file "HOWTO-INJECT" doc)
2686 #t))))))
2687 ;; TODO Add libnetfilter-queue once packaged.
2688 (inputs
2689 `(("libpcap" ,libpcap)
2690 ("openssl" ,openssl)
2691 ("perl" ,perl)))
2692 (home-page "https://github.com/vanhauser-thc/thc-ipv6")
2693 (synopsis "IPv6 security research toolkit")
2694 (description "The THC IPv6 Toolkit provides command-line tools and a library
2695 for researching IPv6 implementations and deployments. It requires Linux 2.6 or
2696 newer and only works on Ethernet network interfaces.")
2697 ;; AGPL 3 with exception for linking with OpenSSL. See the 'LICENSE' file in
2698 ;; the source distribution for more information.
2699 (license license:agpl3))))
2700
2701 (define-public bmon
2702 (package
2703 (name "bmon")
2704 (version "4.0")
2705 (source
2706 (origin
2707 (method url-fetch)
2708 (uri (string-append "https://github.com/tgraf/bmon/releases/download/v"
2709 version "/bmon-" version ".tar.gz"))
2710 (sha256
2711 (base32
2712 "0ylzriv4pwh76344abzl1w219x188gshbycbna35gsyfp09c7z82"))))
2713 (build-system gnu-build-system)
2714 (inputs
2715 `(("libconfuse" ,libconfuse)
2716 ("libnl" ,libnl)
2717 ("ncurses" ,ncurses)))
2718 (native-inputs
2719 `(("pkg-config" ,pkg-config)))
2720 (synopsis "Bandwidth monitor")
2721 (description "bmon is a monitoring and debugging tool to capture
2722 networking-related statistics and prepare them visually in a human-friendly
2723 way. It features various output methods including an interactive curses user
2724 interface and a programmable text output for scripting.")
2725 (home-page "https://github.com/tgraf/bmon")
2726 ;; README.md mentions both the 2-clause BSD and expat licenses, but all
2727 ;; the source files only have expat license headers. Upstream has been
2728 ;; contacted for clarification: https://github.com/tgraf/bmon/issues/59
2729 ;; Update the license field when upstream responds.
2730 (license (list license:bsd-2
2731 license:expat))))
2732
2733 (define-public libnet
2734 (package
2735 (name "libnet")
2736 (version "1.2")
2737 (source
2738 (origin
2739 (method url-fetch)
2740 (uri (string-append "https://github.com/libnet/libnet/releases/download"
2741 "/v" version "/libnet-" version ".tar.gz"))
2742 (sha256
2743 (base32
2744 "19ys9vxk6fg70yzzdxsphfr0rwzgxxhr9b3ykhpg7rfray0qd96a"))))
2745 (build-system gnu-build-system)
2746 (arguments
2747 `(#:phases
2748 (modify-phases %standard-phases
2749 (add-before 'build 'build-doc
2750 (lambda* (#:key make-flags #:allow-other-keys)
2751 (apply invoke "make" "-C" "doc" "doc"
2752 make-flags))))))
2753 (native-inputs
2754 `(;; To build the documentation, Doxygen and Perl is required.
2755 ("doxygen" ,doxygen)
2756 ("perl" ,perl)))
2757 (home-page "https://github.com/libnet/libnet")
2758 (synopsis "Framework for low-level network packet construction")
2759 (description
2760 "Libnet provides a fairly portable framework for network packet
2761 construction and injection. It features portable packet creation interfaces
2762 at the IP layer and link layer, as well as a host of supplementary
2763 functionality. Using libnet, quick and simple packet assembly applications
2764 can be whipped up with little effort.")
2765 (license license:bsd-2)))
2766
2767 (define-public mtr
2768 (package
2769 (name "mtr")
2770 (version "0.94")
2771 (source
2772 (origin
2773 (method url-fetch)
2774 (uri (string-append "ftp://ftp.bitwizard.nl/mtr/"
2775 "mtr-" version ".tar.gz"))
2776 (sha256
2777 (base32 "1glxvlqskcmjkxlqk9i12hcfaxb389cx2n8ji7776gmix3aq4z1z"))))
2778 (build-system gnu-build-system)
2779 (inputs
2780 `(("libcap" ,libcap)
2781 ("ncurses" ,ncurses)))
2782 (arguments
2783 `(#:tests? #f)) ; tests require network access
2784 (home-page "https://www.bitwizard.nl/mtr/")
2785 (synopsis "Network diagnostic tool")
2786 (description
2787 "@acronym{mtr, My TraceRoute} combines the functionality of the
2788 @command{traceroute} and @command{ping} programs in a single network diagnostic
2789 tool. @command{mtr} can use several network protocols to detect intermediate
2790 routers (or @dfn{hops}) between the local host and a user-specified destination.
2791 It then continually measures the response time and packet loss at each hop, and
2792 displays the results in real time.")
2793 (license license:gpl2+)))
2794
2795 (define-public strongswan
2796 (package
2797 (name "strongswan")
2798 (version "5.8.4")
2799 (source
2800 (origin
2801 (method url-fetch)
2802 (uri (string-append "https://download.strongswan.org/strongswan-"
2803 version ".tar.bz2"))
2804 (sha256
2805 (base32 "0g2m08gmgdi3qvvqz6zy7n16np53sp232xd0rdc2vdhk73img6id"))))
2806 (build-system gnu-build-system)
2807 (arguments
2808 `(#:phases
2809 (modify-phases %standard-phases
2810 (add-before 'build 'patch-command-file-names
2811 (lambda* (#:key inputs #:allow-other-keys)
2812 (substitute* "src/libstrongswan/utils/process.c"
2813 (("/bin/sh")
2814 (string-append (assoc-ref inputs "bash") "/bin/sh")))
2815
2816 (substitute* "src/libstrongswan/tests/suites/test_process.c"
2817 (("/bin/sh") (which "sh"))
2818 (("/bin/echo") (which "echo"))
2819 (("cat") (which "cat")))
2820 #t))
2821 (add-before 'check 'set-up-test-environment
2822 (lambda* (#:key inputs #:allow-other-keys)
2823 (setenv "TZDIR" (string-append (assoc-ref inputs "tzdata")
2824 "/share/zoneinfo"))
2825 #t)))
2826 #:configure-flags
2827 (list
2828 ;; Disable bsd-4 licensed plugins.
2829 "--disable-des"
2830 "--disable-blowfish")))
2831 (inputs
2832 `(("curl" ,curl)
2833 ("gmp" ,gmp)
2834 ("libgcrypt" ,libgcrypt)
2835 ("openssl" ,openssl)))
2836 (native-inputs
2837 `(("coreutils" ,coreutils)
2838 ("tzdata" ,tzdata-for-tests)))
2839 (synopsis "IKEv1/v2 keying daemon")
2840 (description "StrongSwan is an IPsec implementation originally based upon
2841 the FreeS/WAN project. It contains support for IKEv1, IKEv2, MOBIKE, IPv6,
2842 NAT-T and more.")
2843 (home-page "https://strongswan.org/")
2844 (license
2845 (list license:gpl2+
2846 ;; src/aikgen/*
2847 ;; src/libcharon/plugins/dnscert/*
2848 ;; src/libcharon/plugins/ext_auth/*
2849 ;; src/libcharon/plugins/vici/ruby/*
2850 ;; src/libcharon/plugins/xauth_pam/xauth_pam_listener.[ch]
2851 license:expat
2852 ;; src/inclue/sys/*
2853 license:bsd-3
2854 ;; src/libstrongswan/plugins/sha3/sha3_keccak.c
2855 license:public-domain
2856 ;; src/libstrongswan/plugins/pkcs11/pkcs11.h
2857 (license:non-copyleft
2858 "file://src/libstrongswan/plugins/pkcs11/pkcs11.h"
2859 "pkcs11 contains a unknown permissive license. View the specific
2860 file for more details.")
2861 ;; These files are not included in the
2862 ;; build, they are disabled through
2863 ;; options to ./configure
2864 ;;
2865 ;; src/libstrongswan/plugins/blowfish/bf_enc.c
2866 ;; src/libstrongswan/plugins/blowfish/bf_locl.h
2867 ;; src/libstrongswan/plugins/blowfish/bf_pi.h
2868 ;; src/libstrongswan/plugins/blowfish/bf_skey.c
2869 ;; src/libstrongswan/plugins/blowfish/blowfish_crypter.c
2870 ;; src/libstrongswan/plugins/des/des_crypter.c
2871 license:bsd-4))))
2872
2873 (define-public amule
2874 (package
2875 (name "amule")
2876 (version "2.3.2")
2877 (source (origin
2878 (method git-fetch)
2879 (uri (git-reference
2880 (url "https://github.com/amule-project/amule")
2881 (commit version)))
2882 (file-name (git-file-name name version))
2883 (sha256
2884 (base32
2885 "010wxm6g9f92x6fympj501zbnjka32rzbx0sk3a2y4zpih5d2nsn"))
2886 ;; Patch for adopting crypto++ >= 6.0.
2887 (patches (search-patches "amule-crypto-6.patch"))))
2888 (build-system gnu-build-system)
2889 (arguments
2890 `(#:phases
2891 (modify-phases %standard-phases
2892 (delete 'bootstrap) ; bootstrap phase runs too early.
2893 (add-after 'patch-source-shebangs 'autogen
2894 (lambda _
2895 (invoke "sh" "autogen.sh")
2896 #t)))
2897 #:configure-flags
2898 '("--disable-rpath"
2899 "--enable-wxcas"
2900 "--enable-cas"
2901 "--enable-alc"
2902 "--enable-alcc"
2903 "--enable-xas"
2904 "--enable-amulecmd"
2905 "--enable-geoip"
2906 "--enable-ccache"
2907 "--enable-nls"
2908 "--enable-optimize"
2909 "--enable-amule-gui"
2910 "--enable-amule-daemon"
2911 "--enable-webserver"
2912 "--with-denoise-level=0")))
2913 (native-inputs
2914 `(("autoconf" ,autoconf)
2915 ("automake" ,automake)
2916 ("gettext-minimal" ,gettext-minimal)
2917 ("perl" ,perl)))
2918 (inputs
2919 `(("zlib" ,zlib)
2920 ("crypto++" ,crypto++)
2921 ("libpng" ,libpng)
2922 ("wxwidgets-gtk2" ,wxwidgets-gtk2)))
2923 (home-page "http://amule.org/")
2924 (synopsis "Peer-to-peer client for the eD2K and Kademlia networks")
2925 (description
2926 "aMule is an eMule-like client for the eD2k and Kademlia peer-to-peer
2927 file sharing networks. It includes a graphical user interface (GUI), a daemon
2928 allowing you to run a client with no graphical interface, and a Web GUI for
2929 remote access. The @command{amulecmd} command allows you to control aMule
2930 remotely.")
2931 (license license:gpl2+)))
2932
2933 (define-public zyre
2934 (package
2935 (name "zyre")
2936 (version "2.0.1")
2937 (source (origin
2938 (method url-fetch)
2939 (uri
2940 (string-append "https://github.com/zeromq/zyre/releases/download/v"
2941 version "/" name "-" version ".tar.gz"))
2942 (sha256
2943 (base32
2944 "13596507ma1474cjqzxym5jlvcshvw7sjhw80rdz788gyz6kz90b"))))
2945 (build-system gnu-build-system)
2946 (inputs `(("zeromq" ,zeromq)
2947 ("czmq" ,czmq)
2948 ("libsodium" ,libsodium)))
2949 (synopsis "Framework for proximity-based peer-to-peer applications")
2950 (description "Zyre provides reliable group messaging over local area
2951 networks using zeromq. It has these key characteristics:
2952
2953 @itemize
2954 @item Zyre needs no administration or configuration.
2955 @item Peers may join and leave the network at any time.
2956 @item Peers talk to each other without any central brokers or servers.
2957 @item Peers can talk directly to each other.
2958 @item Peers can join groups, and then talk to groups.
2959 @item Zyre is reliable, and loses no messages even when the network is heavily loaded.
2960 @item Zyre is fast and has low latency, requiring no consensus protocols.
2961 @item Zyre is designed for WiFi networks, yet also works well on Ethernet networks.
2962 @end itemize")
2963 (home-page "https://github.com/zeromq/zyre")
2964 (license license:mpl2.0)))
2965
2966 (define-public libsocketcan
2967 (package
2968 (name "libsocketcan")
2969 (version "0.0.11")
2970 (source (origin
2971 (method git-fetch)
2972 (uri (git-reference
2973 (url "https://git.pengutronix.de/cgit/tools/libsocketcan")
2974 (commit (string-append "v" version))))
2975 (file-name (git-file-name name version))
2976 (sha256
2977 (base32
2978 "17z2y2r9xkixhr9bxr50m77fh710afl30s7jdhbxrvf56vmal2jr"))))
2979 (build-system gnu-build-system)
2980 (native-inputs
2981 `(("autoconf" ,autoconf)
2982 ("automake" ,automake)
2983 ("libtool" ,libtool)))
2984 (home-page "https://git.pengutronix.de/cgit/tools/libsocketcan")
2985 (synopsis "SocketCAN user-space library")
2986 (description "This library allows controlling basic functions in SocketCAN
2987 from user-space. It requires a kernel built with SocketCAN support.")
2988 (license license:lgpl2.1+)))
2989
2990 (define-public can-utils
2991 (package
2992 (name "can-utils")
2993 (version "2020.02.04")
2994 (source (origin
2995 (method git-fetch)
2996 (uri (git-reference
2997 (url "https://github.com/linux-can/can-utils")
2998 (commit (string-append "v" version))))
2999 (file-name (git-file-name name version))
3000 (sha256
3001 (base32
3002 "1a3j1mmnb7pvgc8r7zzp6sdp7903in2hna6bmpraxln7cwlzn4l6"))))
3003 (build-system gnu-build-system)
3004 (arguments
3005 `(#:tests? #f ; No tests exist.
3006 #:make-flags (list "CC=gcc"
3007 (string-append "PREFIX="
3008 (assoc-ref %outputs "out")))
3009 #:phases
3010 (modify-phases %standard-phases
3011 (delete 'bootstrap)
3012 (delete 'configure))))
3013 (home-page "https://github.com/linux-can/can-utils")
3014 (synopsis "CAN utilities")
3015 (description "This package provides CAN utilities in the following areas:
3016
3017 @itemize
3018 @item Basic tools to display, record, generate and replay CAN traffic
3019 @item CAN access via IP sockets
3020 @item CAN in-kernel gateway configuration
3021 @item CAN bus measurement and testing
3022 @item ISO-TP (ISO15765-2:2016 - this means messages with a body larger than
3023 eight bytes) tools
3024 @item Log file converters
3025 @item Serial Line Discipline configuration for slcan driver
3026 @end itemize")
3027 ;; Either BSD-3 or GPL-2 can be used.
3028 (license (list license:bsd-3 license:gpl2))))
3029
3030 (define-public asio
3031 (package
3032 (name "asio")
3033 (version "1.12.2")
3034 (source
3035 (origin
3036 (method url-fetch)
3037 (uri (string-append "mirror://sourceforge/asio/asio/"
3038 version " (Stable)/asio-" version ".tar.bz2"))
3039 (sha256
3040 (base32 "1akray4l3hgahmb92sbvsqg128c7g7s92jrkf1sp1fjnfjrxq9sf"))))
3041 (build-system gnu-build-system)
3042 (inputs
3043 `(("boost" ,boost)
3044 ("openssl" ,openssl)))
3045 (arguments
3046 `(#:configure-flags
3047 (list
3048 (string-append "--with-boost=" (assoc-ref %build-inputs "boost"))
3049 (string-append "--with-openssl=" (assoc-ref %build-inputs "openssl")))))
3050 (home-page "https://think-async.com/Asio")
3051 (synopsis "C++ library for ASynchronous network I/O")
3052 (description "Asio is a cross-platform C++ library for network and
3053 low-level I/O programming that provides developers with a consistent
3054 asynchronous model using a modern C++ approach.")
3055 (license license:boost1.0)))
3056
3057 (define-public shadowsocks
3058 ;; There are some security fixes after the last release.
3059 (let* ((commit "e332ec93e9c90f1cbee676b022bf2c5d5b7b1239")
3060 (revision "0")
3061 (version (git-version "2.8.2" revision commit)))
3062 (package
3063 (name "shadowsocks")
3064 (version version)
3065 (home-page "https://github.com/shadowsocks/shadowsocks")
3066 (source (origin
3067 (method git-fetch)
3068 (uri (git-reference
3069 (url home-page)
3070 (commit commit)))
3071 (sha256
3072 (base32
3073 "1idd9b4f2pnhcpk1bh030hqg5zq25gkwxd53xi3c0cj242w7sp2j"))
3074 (file-name (git-file-name name version))))
3075 (inputs
3076 `(("openssl" ,openssl)))
3077 (arguments
3078 '(#:phases
3079 (modify-phases %standard-phases
3080 (add-after 'unpack 'patch-crypto-paths
3081 (lambda* (#:key inputs #:allow-other-keys)
3082 (substitute* "shadowsocks/shell.py"
3083 (("config\\.get\\('libopenssl', None\\)")
3084 (format #f "config.get('libopenssl', ~s)"
3085 (string-append
3086 (assoc-ref inputs "openssl")
3087 "/lib/libssl.so")))))))))
3088 (build-system python-build-system)
3089 (synopsis "Fast tunnel proxy that helps you bypass firewalls")
3090 (description
3091 "This package is a fast tunnel proxy that helps you bypass firewalls.
3092
3093 Features:
3094 @itemize
3095 @item TCP & UDP support
3096 @item User management API
3097 @item TCP Fast Open
3098 @item Workers and graceful restart
3099 @item Destination IP blacklist
3100 @end itemize")
3101 (license license:asl2.0))))
3102
3103 (define-public net-snmp
3104 (package
3105 (name "net-snmp")
3106 (version "5.9")
3107 (source (origin
3108 (method url-fetch)
3109 (uri (string-append "mirror://sourceforge/net-snmp/net-snmp/"
3110 version "/net-snmp-" version ".tar.gz"))
3111 (sha256
3112 (base32
3113 "0wb0vyafpspw3mcifkjjmf17r1r80kjvslycscb8nvaxz1k3lc04"))
3114 (modules '((guix build utils)))
3115 (snippet
3116 '(begin
3117 ;; Drop bundled libraries.
3118 (delete-file-recursively "snmplib/openssl")
3119 #t))))
3120 (build-system gnu-build-system)
3121 (arguments
3122 `(#:test-target "test"
3123 ;; XXX: With parallel build enabled, Perl modules may not get linked with
3124 ;; libnetsnmp. See e.g. <https://bugzilla.novell.com/show_bug.cgi?id=819497>.
3125 #:parallel-build? #f
3126 #:configure-flags
3127 (list (string-append "LDFLAGS=-Wl,-rpath="
3128 (assoc-ref %outputs "out")
3129 "/lib")
3130 "--with-logfile=/var/log/snmpd.log"
3131 (string-append "--with-openssl="
3132 (assoc-ref %build-inputs "openssl")))
3133 #:phases
3134 (modify-phases %standard-phases
3135 (add-after 'unpack 'patch-tests
3136 (lambda* (#:key inputs #:allow-other-keys)
3137 (substitute* "testing/fulltests/support/simple_TESTCONF.sh"
3138 (("NETSTAT=\"\"")
3139 (string-append "NETSTAT=\"" (which "netstat") "\"")))
3140 (substitute* '("testing/fulltests/default/T065agentextend_simple"
3141 "testing/fulltests/default/T115agentxperl_simple")
3142 (("/usr/bin/env") (which "env")))
3143 (substitute* "testing/fulltests/default/T065agentextend_sh_simple"
3144 (("/bin/sh") (which "sh")))
3145 ;; These tests require network access.
3146 (for-each delete-file
3147 '("testing/fulltests/default/T070com2sec_simple"
3148 "testing/fulltests/default/T071com2sec6_simple"))
3149 #t))
3150 (add-after 'unpack 'patch-Makefile.PL
3151 (lambda* (#:key outputs #:allow-other-keys)
3152 (substitute* "Makefile.in"
3153 (("Makefile.PL -NET")
3154 (string-append "Makefile.PL PREFIX="
3155 (assoc-ref outputs "out")
3156 " INSTALLDIRS=site" " NO_PERLLOCAL=1"
3157 " -NET")))
3158 #t)))))
3159 (inputs
3160 `(("libnl" ,libnl)
3161 ("ncurses" ,ncurses) ; for the ‘apps’
3162 ("openssl" ,openssl)
3163 ("perl" ,perl)))
3164 (native-inputs
3165 `(("pkg-config" ,pkg-config)
3166
3167 ;; For tests only.
3168 ("net-tools" ,net-tools)
3169 ("coreutils" ,coreutils)
3170 ("grep" ,grep)))
3171 (home-page "http://www.net-snmp.org/")
3172 (synopsis "Simple Network Management Protocol library and tools")
3173 (description "The @dfn{Simple Network Management Protocol} (SNMP) is a
3174 widely used protocol for monitoring the health and welfare of network
3175 equipment (e.g. routers), computer equipment and even devices like UPSs.
3176 Net-SNMP is a suite of applications used to implement SNMP v1, SNMP v2c and
3177 SNMP v3 using both IPv4 and IPv6.")
3178 ;; This only affects OpenBSD
3179 ;; https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-8100
3180 (properties `((lint-hidden-cve . ("CVE-2015-8100"))))
3181 (license (list license:bsd-3
3182 (license:non-copyleft
3183 "http://www.net-snmp.org/about/license.html"
3184 "CMU/UCD copyright notice")))))
3185
3186 (define-public ubridge
3187 (package
3188 (name "ubridge")
3189 (version "0.9.18")
3190 (source
3191 (origin
3192 (method git-fetch)
3193 (uri (git-reference
3194 (url "https://github.com/GNS3/ubridge")
3195 (commit (string-append "v" version))))
3196 (file-name (git-file-name name version))
3197 (sha256
3198 (base32 "0jg66jhhpv4c9340fsdp64hf9h253i8r81fknxa0gq241ripp3jn"))))
3199 (build-system gnu-build-system)
3200 (arguments
3201 `(#:tests? #f ; no tests
3202 #:make-flags
3203 (list ,(string-append "CC=" (cc-for-target)))
3204 #:phases
3205 (modify-phases %standard-phases
3206 (delete 'configure) ; no configure script
3207 (add-before 'install 'set-bindir
3208 (lambda* (#:key inputs outputs #:allow-other-keys)
3209 (let ((bin (string-append (assoc-ref outputs "out")
3210 "/bin")))
3211 (mkdir-p bin)
3212 (substitute* "Makefile"
3213 (("\\$\\(BINDIR\\)") bin)
3214 (("\tsetcap cap_net.*$") "")))
3215 #t)))))
3216 (inputs
3217 `(("libpcap" ,libpcap)))
3218 (home-page "https://github.com/GNS3/ubridge/")
3219 (synopsis "Bridge for UDP tunnels, Ethernet, TAP and VMnet interfaces")
3220 (description "uBridge is a simple program to create user-land bridges
3221 between various technologies. Currently, bridging between UDP tunnels,
3222 Ethernet and TAP interfaces is supported. Packet capture is also supported.")
3223 (license license:gpl3+)))
3224
3225 (define-public hcxtools
3226 (package
3227 (name "hcxtools")
3228 (version "5.2.0")
3229 (source
3230 (origin
3231 (method git-fetch)
3232 (uri (git-reference
3233 (url "https://github.com/ZerBea/hcxtools")
3234 (commit version)))
3235 (sha256
3236 (base32 "0k2qlq9hz5zc21nyc6yrnfqzga7hydn5mm0x3rpl2fhkwl81lxcn"))
3237 (file-name (git-file-name name version))))
3238 (build-system gnu-build-system)
3239 (inputs
3240 `(("curl" ,curl)
3241 ("libpcap" ,libpcap)
3242 ("openssl" ,openssl)
3243 ("zlib" ,zlib)))
3244 (arguments
3245 `(#:make-flags
3246 (list "CC=gcc"
3247 (string-append "INSTALLDIR=" (assoc-ref %outputs "out") "/bin"))
3248 #:tests? #f ; no test suite
3249 #:phases
3250 (modify-phases %standard-phases
3251 (delete 'configure))))
3252 (home-page "https://github.com/ZerBea/hcxtools")
3253 (synopsis "Capture wlan traffic to hashcat and John the Ripper")
3254 (description
3255 "This package contains a small set of tools to capture and convert
3256 packets from wireless devices for use with hashcat or John the Ripper.")
3257 (license license:expat)))
3258
3259 (define-public hcxdumptool
3260 (package
3261 (name "hcxdumptool")
3262 (version "6.0.6")
3263 (source
3264 (origin
3265 (method git-fetch)
3266 (uri (git-reference
3267 (url "https://github.com/ZerBea/hcxdumptool")
3268 (commit version)))
3269 (sha256
3270 (base32 "1b4d543y64ib92w9gcmiyjn5hz2vyjqmxk3f3yr1zk04fhw16gmf"))
3271 (file-name (git-file-name name version))))
3272 (build-system gnu-build-system)
3273 (arguments
3274 `(#:make-flags
3275 (list ,(string-append "CC=" (cc-for-target))
3276 (string-append "INSTALLDIR=" (assoc-ref %outputs "out") "/bin"))
3277 #:tests? #f ; no test suite
3278 #:phases
3279 (modify-phases %standard-phases
3280 (delete 'configure))))
3281 (inputs
3282 `(("openssl" ,openssl)))
3283 (home-page "https://github.com/ZerBea/hcxdumptool")
3284 (synopsis "Small tool to capture packets from wlan devices")
3285 (description
3286 "Small tool to capture packets from WLAN devices. After capturing,
3287 upload the \"uncleaned\" cap to @url{https://wpa-sec.stanev.org/?submit} to
3288 see if the access point or the client is vulnerable to a dictionary attack.
3289 Convert the cap file to hccapx format and/or to WPA-PMKID-PBKDF2
3290 hashline (16800) with @command{hcxpcaptool} from the @code{hcxtools} package
3291 and check if the WLAN key or the master key was transmitted unencrypted.")
3292 (license license:expat)))
3293
3294 (define-public dante
3295 (package
3296 (name "dante")
3297 (version "1.4.2")
3298 (source
3299 (origin
3300 (method url-fetch)
3301 (uri (string-append "https://www.inet.no/dante/files/dante-"
3302 version ".tar.gz"))
3303 (sha256
3304 (base32
3305 "19rqzj167q73ag20zxpvswhkk0bj56r5maf83v5016sw7vrcz5sc"))))
3306 (build-system gnu-build-system)
3307 (arguments
3308 ;; XXX: The dynamic socks library doesn't work with 'libc.so' (GNU ld
3309 ;; script). When preloading is enabled, 'sockd' failed with:
3310 ;; … Failed to open library "libc.so": …: invalid ELF header
3311 '(#:configure-flags '("--disable-preload")))
3312 (home-page "https://www.inet.no/dante/")
3313 (synopsis "SOCKS server and client")
3314 (description "Dante is a SOCKS client and server implementation. It can
3315 be installed on a machine with access to an external TCP/IP network and will
3316 allow all other machines, without direct access to that network, to be relayed
3317 through the machine the Dante server is running on. The external network will
3318 never see any machines other than the one Dante is running on.")
3319 (license (license:non-copyleft "file://LICENSE"))))
3320
3321 (define-public restbed
3322 (let ((commit "6eb385fa9051203f28bf96cc1844bbb5a9a6481f"))
3323 (package
3324 (name "restbed")
3325 (version (git-version "4.6" "1" commit))
3326 (source
3327 (origin
3328 (method git-fetch)
3329 (uri (git-reference
3330 (url "https://github.com/Corvusoft/restbed/")
3331 (commit commit)))
3332 (file-name (string-append name "-" version ".tar.gz"))
3333 (sha256
3334 (base32 "0k60i5drklqqrb4khb25fzkgz9y0sncxf1sp6lh2bm1m0gh0661n"))))
3335 (build-system cmake-build-system)
3336 (inputs
3337 `(("asio" ,asio)
3338 ("catch" ,catch-framework)
3339 ("openssl" ,openssl)))
3340 (arguments
3341 `(#:tests? #f
3342 #:configure-flags
3343 '("-DBUILD_TESTS=NO"
3344 "-DBUILD_EXAMPLES=NO"
3345 "-DBUILD_SSL=NO"
3346 "-DBUILD_SHARED=NO")
3347 #:phases
3348 (modify-phases %standard-phases
3349 (add-after 'unpack 'apply-patches-and-fix-paths
3350 (lambda* (#:key inputs #:allow-other-keys)
3351 (let ((asio (assoc-ref inputs "asio"))
3352 (catch (assoc-ref inputs "catch"))
3353 (openssl (assoc-ref inputs "openssl")))
3354 (substitute* "cmake/Findasio.cmake"
3355 (("(find_path\\( asio_INCLUDE asio\\.hpp HINTS ).*$" all begin)
3356 (string-append begin " \"" asio "/include\" )")))
3357 (substitute* "cmake/Findcatch.cmake"
3358 (("(find_path\\( catch_INCLUDE catch\\.hpp HINTS ).*$" all begin)
3359 (string-append begin " \"" catch "/include\" )")))
3360 (substitute* "cmake/Findopenssl.cmake"
3361 (("(find_library\\( ssl_LIBRARY ssl ssleay32 HINTS ).*$" all begin)
3362 (string-append begin " \"" openssl "/lib\" )"))
3363 (("(find_library\\( crypto_LIBRARY crypto libeay32 HINTS ).*$" all begin)
3364 (string-append begin " \"" openssl "/lib\" )"))
3365 (("(find_path\\( ssl_INCLUDE openssl/ssl\\.h HINTS ).*$" all begin)
3366 (string-append begin " \"" openssl "/include\" )")))))))))
3367 (synopsis "Asynchronous RESTful functionality to C++11 applications")
3368 (description "Restbed is a comprehensive and consistent programming
3369 model for building applications that require seamless and secure
3370 communication over HTTP.")
3371 (home-page "https://github.com/Corvusoft/restbed")
3372 (license license:agpl3+))))
3373
3374 (define-public restinio
3375 (package
3376 (name "restinio")
3377 (version "0.6.1.1")
3378 (source (origin
3379 (method git-fetch)
3380 (uri (git-reference
3381 (url "https://github.com/Stiffstream/restinio")
3382 (commit (string-append "v." version))))
3383 (file-name (git-file-name name version))
3384 (sha256
3385 (base32
3386 "141a96hx8zhcdv121g6cs91n46kb47y040v25pnvz5f54964z7f5"))))
3387 (build-system cmake-build-system)
3388 (inputs ; TODO: Need to force-keep references on some inputs, e.g. boost.
3389 `(("zlib" ,zlib)
3390 ("catch2" ,catch-framework2)
3391 ("openssl" ,openssl)
3392 ("boost" ,boost)
3393 ("pcre" ,pcre)
3394 ("pcre2" ,pcre2)
3395 ("sobjectizer" ,sobjectizer)))
3396 (propagated-inputs
3397 `(("asio" ,asio)
3398 ("fmt" ,fmt)
3399 ("http-parser" ,http-parser)))
3400 (arguments
3401 `(#:configure-flags '("-DRESTINIO_INSTALL=on")
3402 #:tests? #f ; TODO: The tests are called from the root CMakelist, need RESTINIO_TEST=on.
3403 #:phases
3404 (modify-phases %standard-phases
3405 (add-after 'unpack 'change-directory
3406 (lambda _
3407 (chdir "dev/restinio")
3408 #t)))))
3409 (home-page "https://stiffstream.com/en/products/restinio.html")
3410 (synopsis "C++14 library that gives you an embedded HTTP/Websocket server")
3411 (description "RESTinio is a header-only C++14 library that gives you an embedded
3412 HTTP/Websocket server. It is based on standalone version of ASIO
3413 and targeted primarily for asynchronous processing of HTTP-requests.")
3414 (license license:bsd-3)))
3415
3416 (define-public opendht
3417 (package
3418 (name "opendht")
3419 (version "2.1.4")
3420 (source (origin
3421 (method git-fetch)
3422 (uri (git-reference
3423 (url "https://github.com/savoirfairelinux/opendht")
3424 (commit version)))
3425 (file-name (git-file-name name version))
3426 (patches (search-patches "opendht-fix-jami.patch"))
3427 (sha256
3428 (base32
3429 "1ax26ri1ifb6s8ppd28jmanka9yf8mw3np65q2h4djhhik0phhal"))))
3430 ;; Since 2.0, the gnu-build-system does not seem to work anymore, upstream bug?
3431 (build-system cmake-build-system)
3432 (inputs
3433 `(("argon2" ,argon2)
3434 ("nettle" ,nettle)
3435 ("readline" ,readline)
3436 ("jsoncpp" ,jsoncpp)
3437 ("openssl" ,openssl) ;required for the DHT proxy
3438 ("fmt" ,fmt)))
3439 (propagated-inputs
3440 `(("gnutls" ,gnutls) ;included in opendht/crypto.h
3441 ("msgpack" ,msgpack))) ;included in several installed headers
3442 (native-inputs
3443 `(("autoconf" ,autoconf)
3444 ("automake" ,automake)
3445 ("pkg-config" ,pkg-config)
3446 ("restinio" ,restinio) ;headers only library
3447 ("libtool" ,libtool)
3448 ("cppunit" ,cppunit)))
3449 (arguments
3450 `(#:tests? #f ; Tests require network connection.
3451 #:configure-flags
3452 '(;; "-DOPENDHT_TESTS=on"
3453 "-DOPENDHT_TOOLS=off"
3454 "-DOPENDHT_PYTHON=off"
3455 "-DOPENDHT_PROXY_SERVER=on"
3456 "-DOPENDHT_PUSH_NOTIFICATIONS=on"
3457 "-DOPENDHT_PROXY_SERVER_IDENTITY=on"
3458 "-DOPENDHT_PROXY_CLIENT=on")))
3459 (home-page "https://github.com/savoirfairelinux/opendht/")
3460 (synopsis "Distributed Hash Table (DHT) library")
3461 (description "OpenDHT is a Distributed Hash Table (DHT) library. It may
3462 be used to manage peer-to-peer network connections as needed for real time
3463 communication.")
3464 (license license:gpl3+)))
3465
3466 (define-public frrouting
3467 (package
3468 (name "frrouting")
3469 (version "7.5")
3470 (source (origin
3471 (method url-fetch)
3472 (uri (string-append "https://github.com/FRRouting/frr/releases/"
3473 "download/frr-" version "/frr-" version
3474 ".tar.xz"))
3475 (sha256
3476 (base32
3477 "1a27wvxmc51sr0kchy0hjfpv19imlgrr3s9k48lik9k01g71yrdr"))))
3478 (build-system gnu-build-system)
3479 (inputs
3480 `(("c-ares" ,c-ares)
3481 ("json-c" ,json-c)
3482 ("libcap" ,libcap)
3483 ("libyang" ,libyang)
3484 ("readline" ,readline)))
3485 (native-inputs
3486 `(("perl" ,perl)
3487 ("pkg-config" ,pkg-config)
3488 ("python" ,python-wrapper)
3489 ("python-pytest" ,python-pytest)))
3490 (home-page "https://frrouting.org/")
3491 (synopsis "IP routing protocol suite")
3492 (description "FRRouting (FRR) is an IP routing protocol suite which includes
3493 protocol daemons for BGP, IS-IS, LDP, OSPF, PIM, and RIP. ")
3494 (license license:gpl2+)))
3495
3496 (define-public iwd
3497 (package
3498 (name "iwd")
3499 (version "0.21")
3500 (source (origin
3501 (method git-fetch)
3502 (uri (git-reference
3503 (url "https://git.kernel.org/pub/scm/network/wireless/iwd.git")
3504 (commit version)))
3505 (file-name (git-file-name name version))
3506 (sha256
3507 (base32
3508 "001dikinsa6kshwscjbvwipavzwpqnpvx9fpshcn63gbvbhyd393"))))
3509 (build-system gnu-build-system)
3510 (inputs
3511 `(("dbus" ,dbus)
3512 ("ell" ,ell)
3513 ("readline" ,readline)))
3514 (native-inputs
3515 `(("asciidoc" ,asciidoc)
3516 ("autoconf" ,autoconf)
3517 ("automake" ,automake)
3518 ("libtool" ,libtool)
3519 ("pkgconfig" ,pkg-config)
3520 ("python" ,python)
3521 ("openssl" ,openssl)))
3522 (arguments
3523 `(#:configure-flags
3524 (let ((dbus (assoc-ref %outputs "out")))
3525 (list "--disable-systemd-service"
3526 "--enable-external-ell"
3527 "--enable-hwsim"
3528 "--enable-tools"
3529 "--enable-wired"
3530 "--enable-docs"
3531 "--localstatedir=/var"
3532 (string-append "--with-dbus-datadir=" dbus "/share/")
3533 (string-append "--with-dbus-busdir="
3534 dbus "/share/dbus-1/system-services")))
3535 #:phases
3536 (modify-phases %standard-phases
3537 (add-before 'bootstrap 'pre-bootstrap
3538 (lambda _
3539 (substitute* "Makefile.am"
3540 ;; Test disabled because it needs the kernel module
3541 ;; 'pkcs8_key_parser' loaded.
3542 (("unit\\/test-eapol.*? ") "")
3543 ;; Don't try to 'mkdir /var'.
3544 (("\\$\\(MKDIR_P\\) -m 700") "true"))
3545 #t)))))
3546 (home-page "https://git.kernel.org/pub/scm/network/wireless/iwd.git/")
3547 (synopsis "Internet Wireless Daemon")
3548 (description "iwd is a wireless daemon for Linux that aims to replace WPA
3549 Supplicant. It optimizes resource utilization by not depending on any external
3550 libraries and instead utilizing features provided by the Linux kernel to the
3551 maximum extent possible.")
3552 (license license:lgpl2.1+)))
3553
3554 (define-public libyang
3555 (package
3556 (name "libyang")
3557 (version "1.0.215")
3558 (source (origin
3559 (method git-fetch)
3560 (uri (git-reference
3561 (url "https://github.com/CESNET/libyang")
3562 (commit (string-append "v" version))))
3563 (file-name (git-file-name name version))
3564 (sha256
3565 (base32
3566 "0mrs2ppmq77z8sbqgm2w0rl9bfgybd6bcxanakfww4chih6cy0dw"))))
3567 (build-system cmake-build-system)
3568 (arguments
3569 `(#:configure-flags
3570 (list "-DENABLE_BUILD_TESTS=ON" "-DENABLE_LYD_PRIV=ON")))
3571 (propagated-inputs `(("pcre" ,pcre)))
3572 (native-inputs `(("cmocka" ,cmocka)
3573 ("pkg-config" ,pkg-config)))
3574 (home-page "https://github.com/CESNET/libyang")
3575 (synopsis "YANG data modelling language library")
3576 (description "libyang is a YANG data modelling language parser and toolkit
3577 written (and providing API) in C. Current implementation covers YANG 1.0 (RFC
3578 6020) as well as YANG 1.1 (RFC 7950).")
3579 (license license:bsd-3)))
3580
3581 (define-public batctl
3582 (package
3583 (name "batctl")
3584 (version "2020.4")
3585 (source
3586 (origin
3587 (method url-fetch)
3588 (uri (string-append "https://downloads.open-mesh.org/batman/releases/batman-adv-"
3589 version "/batctl-" version ".tar.gz"))
3590 (sha256
3591 (base32 "05rrpfbpdhxn5zgdps849qls2ifis6a94cjryb60d4y1nc2n0d7w"))))
3592 (inputs
3593 `(("libnl" ,libnl)))
3594 (native-inputs
3595 `(("pkg-config" ,pkg-config)))
3596 (build-system gnu-build-system)
3597 (arguments
3598 `(#:tests? #f
3599 ;; Batctl only has a makefile. Thus we disable tests and
3600 ;; configuration, passing in a few make-flags.
3601 #:phases (modify-phases %standard-phases (delete 'configure))
3602 #:make-flags
3603 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3604 (string-append "PKG_CONFIG=" (assoc-ref %build-inputs "pkg-config")
3605 "/bin/pkg-config")
3606 "CC=gcc")))
3607 (home-page "https://www.open-mesh.org/projects/batman-adv/wiki/Wiki")
3608 (synopsis "Management tool for the mesh networking BATMAN protocol")
3609 (description "This package provides a control tool for the
3610 B.A.T.M.A.N. mesh networking routing protocol provided by the Linux kernel
3611 module @code{batman-adv}, for Layer 2.")
3612 (license license:gpl2+)))
3613
3614 (define-public pagekite
3615 (package
3616 (name "pagekite")
3617 (version "1.5.2.200725")
3618 (source
3619 (origin
3620 (method git-fetch)
3621 (uri (git-reference
3622 (url "https://github.com/pagekite/PyPagekite")
3623 (commit (string-append "v" version))))
3624 (file-name (git-file-name name version))
3625 (sha256
3626 (base32 "0lig1i42bn9isw848vnml5qhcaa04x1dr2hb075bm0a3439kv3rr"))))
3627 (build-system python-build-system)
3628 (arguments
3629 `(#:phases
3630 (modify-phases %standard-phases
3631 (add-after 'install 'install-man-page
3632 (lambda* (#:key inputs outputs #:allow-other-keys)
3633 (let* ((out (assoc-ref outputs "out"))
3634 (man (string-append out "/share/man")))
3635 (invoke "make"
3636 (string-append "PYTHONPATH=" (getenv "PYTHONPATH"))
3637 "doc/pagekite.1")
3638 (install-file "doc/pagekite.1" (string-append man "/man1"))
3639 #t))))))
3640 (inputs
3641 `(("python-six" ,python-six)
3642 ("python-socksipychain" ,python-socksipychain)))
3643 (home-page "https://pagekite.net/")
3644 (synopsis "Make localhost servers publicly visible")
3645 (description
3646 "PageKite implements a tunneled reverse proxy which makes it easy to make
3647 a service (such as an HTTP or SSH server) on localhost visible to the wider
3648 Internet, even behind NAT or restrictive firewalls. A managed front-end relay
3649 service is available at @url{https://pagekite.net/}, or you can run your own.")
3650 (license license:agpl3+)))
3651
3652 (define-public ipcalc
3653 (package
3654 (name "ipcalc")
3655 (version "0.41")
3656 (source (origin
3657 (method url-fetch)
3658 (uri (string-append "http://jodies.de/ipcalc-archive/"
3659 name "-" version ".tar.gz"))
3660 (sha256
3661 (base32
3662 "12if9sm8h2ac0pgwkw835cgyqjxm6h27k4kfn2vfas9krrqwbafx"))))
3663 (inputs `(("perl" ,perl)
3664 ("tar" ,tar)
3665 ("gzip" ,gzip)
3666 ("tarball" ,source)))
3667 (build-system trivial-build-system) ;no Makefile.PL
3668 (arguments
3669 `(#:modules ((guix build utils))
3670 #:builder
3671 (begin
3672 (use-modules (guix build utils))
3673 (use-modules (srfi srfi-1))
3674 (let* ((source (assoc-ref %build-inputs "source"))
3675 (perl (string-append (assoc-ref %build-inputs "perl")
3676 "/bin"))
3677 (tar (assoc-ref %build-inputs "tar"))
3678 (gz (assoc-ref %build-inputs "gzip"))
3679 (out (assoc-ref %outputs "out"))
3680 (bin (string-append out "/bin"))
3681 (doc (string-append out "/share/doc/ipcalc")))
3682 (setenv "PATH" (string-append gz "/bin"))
3683 (invoke (string-append tar "/bin/tar") "xvf" source)
3684 (chdir (string-append ,name "-" ,version))
3685
3686 (install-file "ipcalc" bin)
3687 (patch-shebang (string-append bin "/ipcalc") (list perl))
3688 #t))))
3689 (synopsis "Simple IP network calculator")
3690 (description "ipcalc takes an IP address and netmask and calculates the
3691 resulting broadcast, network, Cisco wildcard mask, and host range. By giving
3692 a second netmask, you can design subnets and supernets. It is also intended
3693 to be a teaching tool and presents the subnetting results as
3694 easy-to-understand binary values.")
3695 (home-page "http://jodies.de/ipcalc")
3696 (license license:gpl2+)))
3697
3698 (define-public tunctl
3699 (package
3700 (name "tunctl")
3701 (version "1.5")
3702 (source
3703 (origin
3704 (method url-fetch)
3705 (uri (string-append "mirror://sourceforge/tunctl/tunctl/" version "/"
3706 "tunctl-" version ".tar.gz"))
3707 (sha256
3708 (base32 "1zsgn7w6l2zh2q0j6qaw8wsx981qcr536qlz1lgb3b5zqr66qama"))))
3709 (build-system gnu-build-system)
3710 (arguments
3711 `(#:phases
3712 (modify-phases %standard-phases
3713 (delete 'bootstrap) ;there is no configure.ac file
3714 (delete 'configure) ;there is no configure script
3715 (delete 'check) ;there are no tests
3716 (replace 'build
3717 (lambda _
3718 (setenv "CC" "gcc")
3719 (invoke "make" "tunctl")))
3720 ;; TODO: Requires docbook2x to generate man page from SGML.
3721 (replace 'install
3722 (lambda* (#:key outputs #:allow-other-keys)
3723 (let* ((out (assoc-ref outputs "out"))
3724 (bin (string-append out "/bin")))
3725 (install-file "tunctl" bin))
3726 #t)))))
3727 (home-page "http://tunctl.sourceforge.net")
3728 (synopsis "Utility to set up and maintain TUN/TAP network interfaces")
3729 (description "Tunctl is used to set up and maintain persistent TUN/TAP
3730 network interfaces, enabling user applications to simulate network traffic.
3731 Such interfaces are useful for VPN software, virtualization, emulation,
3732 simulation, and a number of other applications.")
3733 (license license:gpl2)))
3734
3735 (define-public wol
3736 (package
3737 (name "wol")
3738 (version "0.7.1")
3739 (source
3740 (origin
3741 (method url-fetch)
3742 (uri (string-append "mirror://sourceforge/wake-on-lan/wol/"
3743 version "/wol-" version ".tar.gz"))
3744 (sha256
3745 (base32 "08i6l5lr14mh4n3qbmx6kyx7vjqvzdnh3j9yfvgjppqik2dnq270"))))
3746 (build-system gnu-build-system)
3747 (home-page "https://sourceforge.net/projects/wake-on-lan/")
3748 (synopsis "Implements Wake On LAN functionality in a small program")
3749 (description "Tool to send a magic packet to wake another host on the
3750 network. This must be enabled on the target host, usually in the BIOS.")
3751 (license license:gpl2)))
3752
3753 (define-public vde2
3754 (package
3755 (name "vde2")
3756 (version "2.3.2")
3757 (source
3758 (origin
3759 (method url-fetch)
3760 (uri "mirror://sourceforge/vde/vde2/2.3.2/vde2-2.3.2.tar.gz")
3761 (sha256
3762 (base32 "14xga0ib6p1wrv3hkl4sa89yzjxv7f1vfqaxsch87j6scdm59pr2"))))
3763 (build-system gnu-build-system)
3764 (arguments
3765 `(#:parallel-build? #f)) ; Build fails if #t.
3766 (inputs
3767 `(("python" ,python)
3768 ("libpcap" ,libpcap)
3769 ("openssl" ,openssl-1.0))) ; Build fails with 1.1.
3770 (home-page "https://github.com/virtualsquare/vde-2")
3771 (synopsis "Virtual Distributed Ethernet")
3772 (description "VDE is a set of programs to provide virtual software-defined
3773 Ethernet network interface controllers across multiple virtual or
3774 physical, local or remote devices. The VDE architecture provides
3775 virtual counterparts to hardware components such as switches and
3776 cables.")
3777 (license (list license:gpl2
3778 license:lgpl2.1 ; libvdeplug
3779 (license:non-copyleft ; slirpvde
3780 "file://COPYING.slirpvde"
3781 "See COPYING.slirpvde in the distribution.")))))
3782
3783 (define-public haproxy
3784 (package
3785 (name "haproxy")
3786 (version "2.1.7")
3787 (source (origin
3788 (method url-fetch)
3789 (uri (string-append "https://www.haproxy.org/download/"
3790 (version-major+minor version)
3791 "/src/haproxy-" version ".tar.gz"))
3792 (sha256
3793 (base32
3794 "0fd3c1znid5a9w3gcf77b85hm2a2558w9s02c4b7xzkmivqnqbir"))))
3795 (build-system gnu-build-system)
3796 (arguments
3797 `(#:make-flags
3798 (let* ((out (assoc-ref %outputs "out")))
3799 (list (string-append "PREFIX=" out)
3800 (string-append "DOCDIR=" out "/share/" ,name)
3801 "TARGET=linux-glibc"
3802 "USE_LUA=1"
3803 "USE_OPENSSL=1"
3804 "USE_ZLIB=1"
3805 "USE_PCRE_2=1"))
3806 #:tests? #f ; there are only regression tests, using varnishtest
3807 #:phases
3808 (modify-phases %standard-phases
3809 (delete 'configure))))
3810 (inputs
3811 `(("lua" ,lua)
3812 ("openssl" ,openssl)
3813 ("pcre2" ,pcre2)
3814 ("zlib" ,zlib)))
3815 (home-page "https://www.haproxy.org/")
3816 (synopsis "Reliable, high performance TCP/HTTP load balancer")
3817 (description "HAProxy is a free, very fast and reliable solution offering
3818 high availability, load balancing, and proxying for TCP and HTTP-based
3819 applications. It is particularly suited for web sites crawling under very
3820 high loads while needing persistence or Layer7 processing. Supporting tens of
3821 thousands of connections is clearly realistic with today's hardware.")
3822 (license (list license:gpl2+
3823 license:lgpl2.1
3824 license:lgpl2.1+))))
3825
3826 (define-public lldpd
3827 (package
3828 (name "lldpd")
3829 (version "1.0.8")
3830 (source
3831 (origin
3832 (method url-fetch)
3833 (uri (string-append "https://media.luffy.cx/files/lldpd/lldpd-"
3834 version ".tar.gz"))
3835 (sha256
3836 (base32 "1vrxr8lgkw7q6ixaaili6ac7i0j0326194s498n2dxihdvkh1llq"))
3837 (modules '((guix build utils)))
3838 (snippet
3839 '(begin
3840 ;; Drop bundled library.
3841 (delete-file-recursively "libevent")
3842 #t))))
3843 (arguments
3844 `(#:configure-flags
3845 (list
3846 "--with-privsep-user=nobody"
3847 "--with-privsep-group=nogroup"
3848 "--localstatedir=/var"
3849 "--enable-pie"
3850 "--disable-static"
3851 "--without-embedded-libevent"
3852 (string-append "--with-systemdsystemunitdir="
3853 (assoc-ref %outputs "out")
3854 "/lib/systemd/system"))))
3855 (build-system gnu-build-system)
3856 (inputs
3857 `(("libevent" ,libevent)
3858 ("libxml2" ,libxml2)
3859 ("openssl" ,openssl)
3860 ("readline" ,readline)))
3861 (native-inputs
3862 `(("pkg-config" ,pkg-config)))
3863 (home-page "https://vincentbernat.github.io/lldpd/")
3864 (synopsis "Locate neighbors of your network equipment")
3865 (description
3866 "The @dfn{Link Layer Discovery Protocol} (LLDP) is an industry standard
3867 protocol designed to supplant proprietary Link-Layer protocols such as EDP or
3868 CDP. The goal of LLDP is to provide an inter-vendor compatible mechanism to
3869 deliver Link-Layer notifications to adjacent network devices. @code{lldpd} is
3870 an implementation of LLDP. It also supports some proprietary protocols.")
3871 (license license:isc)))
3872
3873 (define-public hashcash
3874 (package
3875 (name "hashcash")
3876 (version "1.22")
3877 (source
3878 (origin
3879 (method url-fetch)
3880 (uri (string-append "http://www.hashcash.org/source/hashcash-"
3881 version ".tgz"))
3882 (sha256
3883 (base32
3884 "15kqaimwb2y8wvzpn73021bvay9mz1gqqfc40gk4hj6f84nz34h1"))))
3885 (build-system gnu-build-system)
3886 (arguments
3887 `(#:make-flags (list (string-append "CC=" ,(cc-for-target)))
3888 #:phases
3889 (modify-phases %standard-phases
3890 (delete 'configure)
3891 ;; No tests available.
3892 (delete 'check)
3893 (replace 'install
3894 (lambda* (#:key outputs #:allow-other-keys)
3895 (let* ((outdir (assoc-ref outputs "out"))
3896 (bindir (string-append outdir "/bin"))
3897 (mandir (string-append outdir "/share/man/man1"))
3898 (docdir (string-append outdir "/share/doc/hashcash-" ,version)))
3899 ;; Install manually, as we don't need the `sha1' binary
3900 (install-file "hashcash" bindir)
3901 (install-file "hashcash.1" mandir)
3902 (install-file "README" docdir)
3903 (install-file "LICENSE" docdir)
3904 (install-file "CHANGELOG" docdir)
3905 #t))))))
3906 (home-page "https://www.hashcash.org/")
3907 (synopsis "Denial-of-service countermeasure")
3908 (description "Hashcash is a proof-of-work algorithm, which has been used
3909 as a denial-of-service countermeasure technique in a number of systems.
3910
3911 A hashcash stamp constitutes a proof-of-work which takes a parametrizable
3912 amount of work to compute for the sender. The recipient can verify received
3913 hashcash stamps efficiently.
3914
3915 This package contains a command-line tool for computing and verifying hashcash
3916 stamps.")
3917 (license license:public-domain)))
3918
3919 (define-public nbd
3920 (package
3921 (name "nbd")
3922 (version "3.21")
3923 (source
3924 (origin
3925 (method url-fetch)
3926 (uri (string-append "mirror://sourceforge/nbd/nbd/" version
3927 "/nbd-" version ".tar.xz"))
3928 (sha256
3929 (base32 "1ydylvvayi4w2d08flji9q03sl7y8hn0c26vsay3nwwikprqls77"))))
3930 (build-system gnu-build-system)
3931 (inputs
3932 `(("glib" ,glib)))
3933 (native-inputs
3934 `(("pkg-config" ,pkg-config)
3935 ("which" ,which)))
3936 (home-page "https://nbd.sourceforge.io/")
3937 (synopsis "NBD client and server")
3938 (description "This package provides the NBD (Network Block Devices)
3939 client and server. It allows you to use remote block devices over a TCP/IP
3940 network.")
3941 (license license:gpl2)))
3942
3943 (define-public yggdrasil
3944 (package
3945 (name "yggdrasil")
3946 (version "0.3.16")
3947 (source
3948 (origin
3949 (method git-fetch)
3950 (uri
3951 (git-reference
3952 (url "https://github.com/yggdrasil-network/yggdrasil-go")
3953 (commit (string-append "v" version))
3954 (recursive? #t)))
3955 (file-name (git-file-name name version))
3956 (sha256
3957 (base32 "0vyd7a333hwn6j1lv1g9sicw74a4qk982bsi3cfdhjlv6hsjwmil"))
3958 (patches (search-patches "yggdrasil-extra-config.patch"))))
3959 (build-system go-build-system)
3960 (arguments
3961 '(#:import-path "github.com/yggdrasil-network/yggdrasil-go"
3962 ;; TODO: figure out how tests are run
3963 #:tests? #f
3964 #:install-source? #f
3965 #:phases (modify-phases %standard-phases
3966 (replace 'build
3967 (lambda _
3968 (for-each
3969 (lambda (c)
3970 (invoke
3971 "go" "build" "-v" "-ldflags=-s -w"
3972 (string-append
3973 "github.com/yggdrasil-network/yggdrasil-go/cmd/" c)))
3974 (list "yggdrasil" "yggdrasilctl"))
3975 #t))
3976 (replace 'install
3977 (lambda* (#:key outputs #:allow-other-keys)
3978 (let* ((out (assoc-ref outputs "out"))
3979 (bin (string-append out "/bin/"))
3980 (doc (string-append out "/share/doc/yggdrasil/")))
3981 (mkdir-p bin)
3982 (for-each
3983 (lambda (f)
3984 (install-file f bin))
3985 (list "yggdrasil" "yggdrasilctl"))
3986 (mkdir-p doc)
3987 (copy-recursively
3988 (string-append
3989 "src/github.com/yggdrasil-network/yggdrasil-go/"
3990 "doc/yggdrasil-network.github.io")
3991 doc))
3992 #t)))))
3993 ;; https://github.com/kardianos/minwinsvc is windows only
3994 (propagated-inputs
3995 `(("go-github-com-arceliar-phony" ,go-github-com-arceliar-phony)
3996 ("go-github-com-cheggaaa-pb" ,go-github-com-cheggaaa-pb)
3997 ("go-github-com-gologme-log" ,go-github-com-gologme-log)
3998 ("go-github-com-hashicorp-go-syslog" ,go-github-com-hashicorp-go-syslog)
3999 ("go-github-com-hjson-hjson-go" ,go-github-com-hjson-hjson-go)
4000 ("go-github-com-kardianos-minwinsvc" ,go-github-com-kardianos-minwinsvc)
4001 ("go-github-com-mitchellh-mapstructure"
4002 ,go-github-com-mitchellh-mapstructure)
4003 ("go-golang-org-x-crypto" ,go-golang-org-x-crypto)
4004 ("go-golang-org-x-net" ,go-golang-org-x-net)
4005 ("go-golang-org-x-text" ,go-golang-org-x-text)
4006 ("go-golang-zx2c4-com-wireguard" ,go-golang-zx2c4-com-wireguard)
4007 ("go-netlink" ,go-netlink)
4008 ("go-netns" ,go-netns)))
4009 (home-page "https://yggdrasil-network.github.io/blog.html")
4010 (synopsis
4011 "Experiment in scalable routing as an encrypted IPv6 overlay network")
4012 (description
4013 "Yggdrasil is an early-stage implementation of a fully end-to-end encrypted
4014 IPv6 network. It is lightweight, self-arranging, supported on multiple
4015 platforms and allows pretty much any IPv6-capable application to communicate
4016 securely with other Yggdrasil nodes. Yggdrasil does not require you to have
4017 IPv6 Internet connectivity - it also works over IPv4.")
4018 (license
4019 ;; As a special exception to the GNU Lesser General Public License
4020 ;; version 3 ("LGPL3"), the copyright holders of this Library give you
4021 ;; permission to convey to a third party a Combined Work that links
4022 ;; statically or dynamically to this Library without providing any Minimal
4023 ;; Corresponding Source or Minimal Application Code as set out in 4d or
4024 ;; providing the installation information set out in section 4e, provided
4025 ;; that you comply with the other provisions of LGPL3 and provided that you
4026 ;; meet, for the Application the terms and conditions of the license(s)
4027 ;; which apply to the Application. Except as stated in this special
4028 ;; exception, the provisions of LGPL3 will continue to comply in full to
4029 ;; this Library. If you modify this Library, you may apply this exception
4030 ;; to your version of this Library, but you are not obliged to do so. If
4031 ;; you do not wish to do so, delete this exception statement from your
4032 ;; version. This exception does not (and cannot) modify any license terms
4033 ;; which apply to the Application, with which you must still comply
4034 license:lgpl3)))