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