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–2022 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-2022 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, 2022 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 ;;; Copyright © 2022 Pierre Langlois <pierre.langlois@gmx.com>
52 ;;; Copyright © 2022 Petr Hodina <phodina@protonmail.com>
53 ;;; Copyright © 2022 Manolis Fragkiskos Ragkousis <manolis837@gmail.com>
55 ;;; This file is part of GNU Guix.
57 ;;; GNU Guix is free software; you can redistribute it and/or modify it
58 ;;; under the terms of the GNU General Public License as published by
59 ;;; the Free Software Foundation; either version 3 of the License, or (at
60 ;;; your option) any later version.
62 ;;; GNU Guix is distributed in the hope that it will be useful, but
63 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
64 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
65 ;;; GNU General Public License for more details.
67 ;;; You should have received a copy of the GNU General Public License
68 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
70 (define-module (gnu packages networking)
71 #:use-module ((guix licenses) #:prefix license:)
72 #:use-module (guix packages)
73 #:use-module (guix download)
74 #:use-module (guix gexp)
75 #:use-module (guix git-download)
76 #:use-module (guix build-system cmake)
77 #:use-module (guix build-system glib-or-gtk)
78 #:use-module (guix build-system gnu)
79 #:use-module (guix build-system go)
80 #:use-module (guix build-system meson)
81 #:use-module (guix build-system perl)
82 #:use-module (guix build-system python)
83 #:use-module (guix build-system trivial)
84 #:use-module (guix utils)
85 #:use-module (gnu packages)
86 #:use-module (gnu packages admin)
87 #:use-module (gnu packages adns)
88 #:use-module (gnu packages algebra)
89 #:use-module (gnu packages audio)
90 #:use-module (gnu packages autogen)
91 #:use-module (gnu packages autotools)
92 #:use-module (gnu packages assembly)
93 #:use-module (gnu packages base)
94 #:use-module (gnu packages bash)
95 #:use-module (gnu packages bison)
96 #:use-module (gnu packages boost)
97 #:use-module (gnu packages check)
98 #:use-module (gnu packages code)
99 #:use-module (gnu packages compression)
100 #:use-module (gnu packages cpp)
101 #:use-module (gnu packages crypto)
102 #:use-module (gnu packages curl)
103 #:use-module (gnu packages cyrus-sasl)
104 #:use-module (gnu packages dejagnu)
105 #:use-module (gnu packages docbook)
106 #:use-module (gnu packages documentation)
107 #:use-module (gnu packages flex)
108 #:use-module (gnu packages freedesktop)
109 #:use-module (gnu packages gettext)
110 #:use-module (gnu packages glib)
111 #:use-module (gnu packages gnome)
112 #:use-module (gnu packages gnupg)
113 #:use-module (gnu packages golang)
114 #:use-module (gnu packages graphviz)
115 #:use-module (gnu packages gstreamer)
116 #:use-module (gnu packages gtk)
117 #:use-module (gnu packages image)
118 #:use-module (gnu packages libevent)
119 #:use-module (gnu packages libidn)
120 #:use-module (gnu packages libusb)
121 #:use-module (gnu packages linux)
122 #:use-module (gnu packages lua)
123 #:use-module (gnu packages kerberos)
124 #:use-module (gnu packages mpi)
125 #:use-module (gnu packages ncurses)
126 #:use-module (gnu packages nettle)
127 #:use-module (gnu packages openldap)
128 #:use-module (gnu packages onc-rpc)
129 #:use-module (gnu packages password-utils)
130 #:use-module (gnu packages pcre)
131 #:use-module (gnu packages perl)
132 #:use-module (gnu packages perl-check)
133 #:use-module (gnu packages pkg-config)
134 #:use-module (gnu packages polkit)
135 #:use-module (gnu packages pretty-print)
136 #:use-module (gnu packages protobuf)
137 #:use-module (gnu packages pulseaudio)
138 #:use-module (gnu packages python)
139 #:use-module (gnu packages python-crypto)
140 #:use-module (gnu packages python-web)
141 #:use-module (gnu packages python-xyz)
142 #:use-module (gnu packages qt)
143 #:use-module (gnu packages readline)
144 #:use-module (gnu packages ruby)
145 #:use-module (gnu packages samba)
146 #:use-module (gnu packages serialization)
147 #:use-module (gnu packages shells)
148 #:use-module (gnu packages sphinx)
149 #:use-module (gnu packages sqlite)
150 #:use-module (gnu packages ssh)
151 #:use-module (gnu packages tcl)
152 #:use-module (gnu packages textutils)
153 #:use-module (gnu packages tls)
154 #:use-module (gnu packages valgrind)
155 #:use-module (gnu packages web)
156 #:use-module (gnu packages wxwidgets)
157 #:use-module (gnu packages xml)
158 #:use-module (ice-9 match))
160 (define-public usrsctp
169 (url "https://github.com/sctplab/usrsctp")
171 (file-name (git-file-name name version))
173 (base32 "10ndzkip8blgkw572n3dicl6mgjaa7kygwn3vls80liq92vf1sa9"))))
174 (build-system gnu-build-system)
182 (home-page "https://github.com/sctplab/usrsctp/")
183 (synopsis "SCTP user-land implementation")
184 (description "UsrSCTP is a portable SCTP userland stack. SCTP is a message
185 oriented, reliable transport protocol with direct support for multihoming that
186 runs on top of IP or UDP, and supports both v4 and v6 versions.")
187 (license license:bsd-3)))
189 (define-public arp-scan
198 (url "https://github.com/royhills/arp-scan/")
200 (file-name (git-file-name name version))
202 (base32 "1mf7a4f9vzvnkiavc87aqyciswggsb4fpy7j05jxnvjyyxv3l7gp"))))
203 (build-system gnu-build-system)
207 (list autoconf automake libtool pkg-config))
210 (home-page "https://github.com/royhills/arp-scan")
211 (synopsis "Discover and fingerprint IP hosts on the local network using ARP")
212 (description "Arp-scan is a tool that uses ARP to discover and fingerprint
213 IP hosts on the local network.")
214 (license license:gpl3+)))
223 (uri (string-append "https://github.com/axel-download-accelerator/axel/"
224 "releases/download/v" version "/"
225 "axel-" version ".tar.xz"))
227 (base32 "1yfcsi0zv07bvhj8klgna3y1ycc4jhaija1b3rzzv0i4d4c2q2sq"))))
228 (build-system gnu-build-system)
230 (list gettext-minimal pkg-config))
233 (home-page "https://github.com/axel-download-accelerator/axel")
234 (synopsis "Light command line download accelerator")
236 "Axel tries to accelerate the download process by using multiple
237 connections per file, and can also balance the load between different
238 servers. It tries to be as light as possible, so it might be useful
239 on byte-critical systems. It supports HTTP, HTTPS, FTP and FTPS
241 (license license:gpl2+)))
250 (url "https://codeberg.org/librecast/lcrq")
251 (commit (string-append "v" version))))
252 (file-name (git-file-name name version))
255 "0jf7x3zcdbz5b99qz7liw4i90hn9s457zr82n0r8g9qsi81a1d8c"))))
256 (build-system gnu-build-system)
258 `(#:parallel-tests? #f
259 #:make-flags (let ((target ,(%current-target-system)))
260 (list ,(string-append "CC="
262 (string-append "PREFIX="
263 (assoc-ref %outputs "out"))))
264 #:test-target "test"))
265 (home-page "https://librecast.net/lcrq.html")
266 (synopsis "librecast RaptorQ library")
268 "C library implementation of RaptorQ Forward Error Correction for
269 Librecast. RFC6330 (IETF) describes the RaptorQ proposed standard, which LCRQ
270 more-or-less follows. The primary focus has been on building a fast, simple
271 and dependency-free FEC implementation for use with Librecast, and not on
272 strict standards compliance. The code does, however, fairly closely follow
274 (license (list license:gpl2 license:gpl3))))
276 (define-public lcsync
283 (url "https://codeberg.org/librecast/lcsync")
284 (commit (string-append "v" version))))
285 (file-name (git-file-name name version))
288 "0s038b4xg9nlzhrganzjyfvc6n6cgd6kilnpik4axp62j2n5q11q"))))
289 (build-system gnu-build-system)
291 `(#:parallel-tests? #f
292 #:make-flags (let ((target ,(%current-target-system)))
293 (list ,(string-append "CC="
295 ;; avoid running setcap in the install process
296 "SETCAP_PROGRAM=true"
297 (string-append "prefix="
298 (assoc-ref %outputs "out"))))
300 #:phases (modify-phases %standard-phases
301 (delete 'configure) ;no configure script
302 (add-before 'check 'remove-network-tests
304 ;; these tests require networking
305 (delete-file "./test/0000-0027.c")
306 (delete-file "./test/0000-0049.c")
307 (delete-file "./test/0000-0074.c")))
308 (add-after 'unpack 'remove-immintrin.h
309 (lambda* (#:key inputs #:allow-other-keys)
310 (substitute* "Makefile"
312 (string-append "CFLAGS := -I" (search-input-directory
313 inputs "include/simde"))))
314 (substitute* (find-files "src")
315 ((".*immintrin\\.h.*")
316 (string-append "#include <simde-features.h>\n"
317 "#include <x86/ssse3.h>\n"))
318 (("__m128i") "simde__m128i"))))
319 (add-before 'build 'add-library-paths
320 (lambda* (#:key inputs #:allow-other-keys)
321 (let* ((librecast (assoc-ref inputs "librecast")))
322 (substitute* (list "./src/Makefile" "./test/Makefile")
324 (string-append "-L" librecast "/lib -llibrecast")))))))))
325 (inputs (list librecast libsodium))
326 (native-inputs (list simde))
327 (home-page "https://librecast.net/lcsync.html")
328 (synopsis "librecast file and data syncing tool")
330 "lcsync is a tool to sync files over IPv6 multicast or the
331 local filesystem. It splits the file into blocks, hashes them, and compares
332 them in order to efficiently transfer a minimal amount of data.")
333 (license (list license:gpl2 license:gpl3))))
335 ;; This package does not have a release yet.
336 ;; But this is required to provide a feature in PipeWire.
337 (define-public libcamera
346 (url "git://linuxtv.org/libcamera.git")
347 (commit "10be87fa7c3bfb097b21ca3d469c67e40c333f7e")))
349 (git-file-name name version))
351 (base32 "0qgirhlalmk9f9v6piwz50dr2asb64rvbb9zb1vix7y9zh7m11by"))))
352 (build-system meson-build-system)
353 (outputs '("out" "doc"))
355 `(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
359 ;; XXX: Requires bundled pybind11.
360 "-Dpycamera=disabled")
362 (modify-phases %standard-phases
363 (add-after 'unpack 'disable-failing-tests
365 (substitute* "test/meson.build"
366 (("\\['list-cameras', 'list-cameras.cpp'\\],")
368 ;; TODO: Why do the gstreamer tests fail.
369 (("^subdir\\('gstreamer'\\)")
371 (add-after 'install 'move-doc
372 (lambda* (#:key outputs #:allow-other-keys)
373 (let* ((out (assoc-ref outputs "out"))
374 (doc (assoc-ref outputs "doc")))
375 (mkdir-p (string-append doc "/share"))
377 (string-append out "/share/doc")
378 (string-append doc "/share/doc"))))))))
380 (list graphviz ;for 'dot'
398 (synopsis "Camera stack and framework")
399 (description "LibCamera is a complex camera support library for GNU+Linux,
400 Android, and ChromeOS.")
401 (home-page "https://libcamera.org/")
402 (license license:lgpl2.1+)))
404 (define-public libnice
405 ;; The latest release is old and randomly fails tests with GStreamer 1.18.5,
406 ;; such as: "test-bind: ../libnice-0.1.18/stun/tests/test-bind.c:234:
407 ;; bad_responses: Assertion `len >= 20' failed"
409 (commit "47a96334448838c43d7e72f4ef51b317befbfae1"))
412 (version (git-version "0.1.18" revision commit))
417 (url "https://gitlab.freedesktop.org/libnice/libnice")
419 (file-name (git-file-name name version))
422 "19ypjazslmsb9vqs2wyyzvi72h5jbn16dbng7pxh485djdrmgcg4"))))
423 (build-system meson-build-system)
424 (outputs '("out" "doc"))
426 `(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
431 (modify-phases %standard-phases
432 (add-after 'unpack 'disable-failing-tests
434 (substitute* "tests/meson.build"
435 ;; ‘test-set-port-range.c:66:main: assertion failed:
436 ;; (nice_agent_gather_candidates (agent, stream1))’
437 (("'test-set-port-range'" all)
438 (string-append "# " all))
439 ;; The following test is disabled as it fails in a
440 ;; nondeterministic fashion (see:
441 ;; https://gitlab.freedesktop.org/libnice/libnice/-/issues/151).
443 (string-append "# " all)))
444 (substitute* "stun/tests/meson.build"
445 ;; test-bind.c:234: bad_responses: Assertion `len >= 20'
447 ;; https://gitlab.freedesktop.org/libnice/libnice/-/issues/150).
450 (add-after 'install 'move-docs
451 (lambda* (#:key outputs #:allow-other-keys)
452 (let* ((out (assoc-ref outputs "out"))
453 (doc (assoc-ref outputs "doc")))
454 (mkdir-p (string-append doc "/share"))
456 (string-append out "/share/gtk-doc")
457 (string-append doc "/share/gtk-doc"))))))))
459 `(("glib:bin" ,glib "bin")
460 ("gobject-introspection" ,gobject-introspection)
461 ("graphviz" ,graphviz)
462 ("gtk-doc" ,gtk-doc/stable)
463 ("pkg-config" ,pkg-config)))
465 (list gstreamer gst-plugins-base libnsl))
467 (list glib glib-networking gnutls))
468 (synopsis "GLib ICE implementation")
469 (description "LibNice is a library that implements the Interactive
470 Connectivity Establishment (ICE) standard (RFC 5245 & RFC 8445). It provides a
471 GLib-based library, libnice, as well as GStreamer elements to use it.")
472 (home-page "https://libnice.freedesktop.org/")
474 ;; This project is dual-licensed.
479 (define-public librecast
486 (url "https://codeberg.org/librecast/librecast")
487 (commit (string-append "v" version))))
488 (file-name (git-file-name name version))
491 "1zzdxawzsj0lxyxm8c2wdqx3b633f8ybvlg6szs4v0y42xg4a829"))))
492 (build-system gnu-build-system)
494 `(#:parallel-tests? #f
495 #:make-flags (let ((target ,(%current-target-system)))
496 (list ,(string-append "CC="
498 (string-append "PREFIX="
499 (assoc-ref %outputs "out"))))
501 #:phases (modify-phases %standard-phases
502 (add-before 'check 'remove-network-tests
504 ;; these tests require networking
505 (delete-file "./test/0000-0010.c")
506 (delete-file "./test/0000-0012.c")
507 (delete-file "./test/0000-0013.c")
508 (delete-file "./test/0000-0014.c")
509 (delete-file "./test/0000-0015.c")
510 (delete-file "./test/0000-0016.c")
511 (delete-file "./test/0000-0018.c")
512 (delete-file "./test/0000-0019.c")
513 (delete-file "./test/0000-0021.c")
514 (delete-file "./test/0000-0028.c")
515 (delete-file "./test/0000-0036.c")
516 (delete-file "./test/0000-0037.c")
517 (delete-file "./test/0000-0038.c")
518 (delete-file "./test/0000-0039.c")
519 (delete-file "./test/0000-0040.c"))))))
520 (inputs (list libsodium lcrq))
521 (synopsis "librecast IPv6 multicast library")
522 (description "Librecast is a C library which supports IPv6 multicast
524 (home-page "https://librecast.net/librecast.html")
525 (license (list license:gpl2 license:gpl3))))
527 (define-public rtmpdump
528 ;; There are no tags in the repository, and the project is unlikely to
529 ;; make new releases. Take a recent commit for multiple security fixes
530 ;; as well as GnuTLS compatibility.
531 (let ((commit "c5f04a58fc2aeea6296ca7c44ee4734c18401aa3")
533 (version "2.4")) ;as mentioned in README and man pages
536 (version (git-version version revision commit))
541 (url "https://git.ffmpeg.org/rtmpdump")
543 (file-name (git-file-name name version))
545 (base32 "07ias612jgmxpam9h418kvlag32da914jsnjsfyafklpnh8gdzjb"))))
546 (build-system gnu-build-system)
548 `(#:tests? #f ; no tests
551 ;; The ‘validate-runpath’ phase fails to find librtmp.so.0.
552 (string-append "LDFLAGS=-Wl,-rpath="
553 (assoc-ref %outputs "out") "/lib")
554 (string-append "prefix=" (assoc-ref %outputs "out")))
556 (modify-phases %standard-phases
557 (add-after 'unpack 'omit-static-library
559 (substitute* "librtmp/Makefile"
560 (("cp librtmp\\.a .*") ; don't install it
562 (("librtmp\\.a ") ; don't build it
565 (add-after 'unpack 'prefer-gnutls
567 (substitute* '("Makefile" "librtmp/Makefile")
572 (delete 'configure))))
575 (synopsis "Tools and library for handling RTMP streams")
576 (description "RTMPdump is a toolkit for RTMP streams. All forms of RTMP are
577 supported, including rtmp://, rtmpt://, rtmpe://, rtmpte://, and rtmps://.")
578 (home-page "https://rtmpdump.mplayerhq.hu/")
586 (define-public slurm-monitor
588 (name "slurm-monitor")
595 (url "https://github.com/mattthias/slurm")
596 (commit (string-append "upstream/" version))))
597 (file-name (git-file-name name version))
599 (base32 "1n6pgrcs8gwrcq5fch1q3yk3jipjwrf21s9a13fbjrl903g5zzv9"))))
600 (build-system cmake-build-system)
601 (arguments `(#:tests? #f)) ;no tests
602 (inputs (list ncurses))
603 (synopsis "Network load monitor")
605 "Slurm is a network load monitor. It shows real-time traffic statistics
606 from any network device in any of three ASCII graph formats.")
607 (home-page "https://github.com/mattthias/slurm")
608 (license license:gpl2)))
619 (url "https://github.com/Haivision/srt")
620 (commit (string-append "v" version))))
621 (file-name (git-file-name name version))
623 (base32 "1zr1l9zkai7rpw9cn5j9h4zrv08hgpfmwscwyscf2j4cgwf0rxrr"))))
624 (build-system cmake-build-system)
628 (string-append "-DCMAKE_INSTALL_BINDIR="
629 (assoc-ref %outputs "out") "/bin")
630 "-DCMAKE_INSTALL_INCLUDEDIR=include"
631 "-DENABLE_STATIC=OFF"
632 "-DENABLE_UNITTESTS=ON")))
634 (list googletest pkg-config tcl))
637 (synopsis "Secure Reliable Transport")
638 (description "SRT is a transport technology that optimizes streaming
639 performance across unpredictable networks, such as the Internet.")
640 (home-page "https://www.srtalliance.org/")
641 (license license:mpl2.0)))
643 (define-public lksctp-tools
645 (name "lksctp-tools")
652 (url "https://github.com/sctp/lksctp-tools")
653 (commit (string-append "v" version))))
654 (file-name (git-file-name name version))
656 (base32 "1jfq58j365mlgssavyw5wcal42n0xjkr40vmj9b8w265wgs28j20"))))
657 (build-system gnu-build-system)
659 (list autoconf automake libtool pkg-config))
661 "@acronym{SCTP, Stream Control Transmission Protocol} helpers for Linux")
663 "The lksctp-tools project provides a user-space library for @acronym{SCTP,
664 the Stream Control Transmission Protocol} (@file{libsctp}) and C language header
665 files (@file{netinet/sctp.h}) for accessing SCTP-specific @acronym{APIs,
666 application programming interfaces} not provided by the standard sockets.
667 It also includes some SCTP-related helper utilities.")
668 (home-page "http://lksctp.sourceforge.net/")
676 (define-public python-pysctp
678 (name "python-pysctp")
683 (uri (pypi-uri "pysctp" version))
685 (base32 "14h2qlmfi24bizhvvqkfqfa78pzm3911ibrzy9k94i97xy1978dy"))))
686 (build-system python-build-system)
690 `(#:tests? #f ;; tests require network
692 (modify-phases %standard-phases
693 (add-after 'unpack 'patch-setup.py
695 (substitute* "setup.py"
696 (("include_dirs\\s*=.*")
697 (string-append "include_dirs = ['.'] + '"
698 (getenv "C_INCLUDE_PATH") "'.split(':'),"))
699 (("library_dirs\\s*=.*")
700 (string-append "library_dirs = '"
701 (getenv "LIBRARY_PATH") "'.split(':'),"))))))))
702 (home-page "https://github.com/p1sec/pysctp")
703 (synopsis "Python module for the SCTP protocol stack and library")
704 (description "@code{pysctp} implements the SCTP socket API. You need a
705 SCTP-aware kernel (most are).")
706 (license license:lgpl2.1+)))
708 (define-public kismet
715 (url "https://www.kismetwireless.net/git/kismet.git")
716 (commit (string-append "kismet-" version "-R1"))))
717 (file-name (git-file-name name version))
718 (patches (search-patches "kismet-unbundle-boost.patch"))
719 (modules '((guix build utils)))
721 ;; Drop bundled libraries.
722 (delete-file-recursively "boost")))
725 "01q86hrgpai433sc65dlnqy91qd26w5dwyp37adszqxfb6d2an1r"))))
726 (build-system gnu-build-system)
728 (list #:tests? #f ;no test suite
730 #~(modify-phases %standard-phases
731 (add-after 'unpack 'fix-install
733 (substitute* "Makefile.in"
734 (("-o \\$\\(INSTUSR\\) -g \\$\\(SUIDGROUP\\)") "")
735 (("-o \\$\\(INSTUSR\\) -g \\$\\(INSTGRP\\)") "")))))))
736 (home-page "https://www.kismetwireless.net/")
737 (native-inputs (list perl pkg-config python python-2))
747 (synopsis "Wireless network and device detector")
749 "This package provides a wireless network and device detector, sniffer,
750 wardriving tool, and WIDS (wireless intrusion detection) framework. Kismet
751 works with Wi-Fi interfaces, Bluetooth interfaces, some SDR
752 (software defined radio) hardware like the RTLSDR, and other specialized
754 (license license:gpl2+)))
756 (define-public knockd
762 (uri (string-append "https://www.zeroflux.org/proj/knock/files/knock-"
766 "1iv9h7a9l81ilbld3pi0dmzkizjss1755x1x3v5jxsi4asb8r3b9"))))
767 (build-system gnu-build-system)
770 (list (string-append "--docdir=" (assoc-ref %outputs "out")
771 "/share/doc/" ,name "-" ,version))))
774 (home-page "https://www.zeroflux.org/projects/knock")
775 (synopsis "Small port-knock daemon")
776 (description "@command{knockd} is a port-knock daemon. It listens to all traffic on
777 an ethernet or PPP interface, looking for special \"knock\" sequences of @dfn{port-hits}
778 (UDP/TCP packets sent to a server port). This port need not be open, since knockd listens
779 at the link-layer level.")
780 (license license:gpl2+)))
790 (url "https://github.com/nanomsg/nng")
791 (commit (string-append "v" version))))
792 (file-name (git-file-name name version))
794 (base32 "0a4jg8alh2h0rw6fb4dqpvk4hgl2a7h76mq7g34fy89qh9sgg1a4"))))
795 (build-system cmake-build-system)
798 (list "-DNNG_ENABLE_COVERAGE=ON"
799 "-DNNG_ENABLE_TLS=ON"
800 "-DBUILD_SHARED_LIBS=ON")
802 (modify-phases %standard-phases
803 (add-after 'unpack 'disable-failing-tests
805 ;; These tests require network access.
806 (substitute* "tests/CMakeLists.txt"
807 (("add_nng_test1\\(httpclient 60 NNG_SUPP_HTTP\\)") "")
808 (("add_nng_test1\\(resolv 10 NNG_STATIC_LIB\\)") "")
809 (("add_nng_test\\(tls 60\\)") ""))
814 `(("mbedtls" ,mbedtls-apache)))
815 (synopsis "Lightweight messaging library")
816 (description "NNG project is a rewrite of the scalability protocols library
817 known as libnanomsg, and adds significant new capabilities, while retaining
818 compatibility with the original. It is a lightweight, broker-less library,
819 offering a simple API to solve common recurring messaging problems, such as
820 publish/subscribe, RPC-style request/reply, or service discovery.")
821 (home-page "https://nng.nanomsg.org/")
822 (license license:expat)))
824 (define-public nanomsg
833 (url "https://github.com/nanomsg/nanomsg")
835 (file-name (git-file-name name version))
837 (base32 "01ddfzjlkf2dgijrmm3j3j8irccsnbgfvjcnwslsfaxnrmrq5s64"))))
838 (build-system cmake-build-system)
839 (outputs '("out" "doc"))
843 "-DNN_ENABLE_COVERAGE=ON")
845 (modify-phases %standard-phases
846 (add-after 'install 'move-docs
847 (lambda* (#:key outputs #:allow-other-keys)
848 (let* ((out (assoc-ref outputs "out"))
849 (doc (assoc-ref outputs "doc")))
850 (mkdir-p (string-append doc "/share/doc"))
852 (string-append out "/share/doc/nanomsg")
853 (string-append doc "/share/doc/nanomsg"))
856 `(("asciidoctor" ,ruby-asciidoctor)
857 ("pkg-config" ,pkg-config)))
858 (synopsis "Scalable socket library")
859 (description "Nanomsg is a socket library that provides several common
860 communication patterns. It aims to make the networking layer fast, scalable,
861 and easy to use. Implemented in C, it works on a wide range of operating
862 systems with no further dependencies.")
863 (home-page "https://nanomsg.org/")
864 (license (license:non-copyleft "file:///COPYING"))))
866 (define-public blueman
873 (uri (string-append "https://github.com/blueman-project/blueman/releases"
874 "/download/" version "/blueman-" version ".tar.xz"))
876 (base32 "1s86w4mklzr8hvbgl3nkg8jycl6grww533dhzw8gdn5glqfpkpbf"))))
877 (build-system glib-or-gtk-build-system)
879 `(#:configure-flags (list "--enable-polkit"
880 "--without-systemdsystemunitdir" ; Not required
881 "--without-systemduserunitdir") ; Not required
883 (modify-phases %standard-phases
884 ;; Python references are not being patched in patch-phase of build,
885 ;; despite using python-wrapper as input. So we patch them manually.
886 (add-after 'unpack 'patch-python-references
887 (lambda* (#:key inputs #:allow-other-keys)
888 (with-directory-excursion "apps"
889 (substitute* '("blueman-adapters.in" "blueman-applet.in"
890 "blueman-manager.in" "blueman-mechanism.in"
891 "blueman-rfcomm-watcher.in" "blueman-sendto.in"
892 "blueman-services.in" "blueman-tray.in")
894 (search-input-file inputs
897 ,(version-major+minor
898 (package-version python)))))))))
899 ;; Fix loading of external programs.
900 (add-after 'unpack 'patch-external-programs
901 (lambda* (#:key inputs #:allow-other-keys)
902 (substitute* '("blueman/main/NetConf.py"
903 "blueman/main/PPPConnection.py")
904 (("/usr/sbin/bluetoothd")
905 (search-input-directory inputs
906 "/libexec/bluetooth/bluetoothd"))
908 (search-input-file inputs "/sbin/iptables"))
910 (search-input-file inputs "/sbin/pppd")))))
911 ;; Fix loading of pulseaudio libraries.
912 (add-after 'unpack 'patch-pulseaudio-libraries
913 (lambda* (#:key inputs #:allow-other-keys)
914 (let* ((pulseaudio (assoc-ref inputs "pulseaudio"))
915 (pulse (string-append pulseaudio "/lib/libpulse.so.0"))
916 (pulse-glib (string-append pulseaudio
917 "/lib/libpulse-mainloop-glib.so.0")))
918 (with-directory-excursion "blueman/main"
919 (substitute* "PulseAudioUtils.py"
920 (("libpulse.so.0") pulse)
921 (("libpulse-mainloop-glib.so.0") pulse-glib))))))
922 ;; Fix running of blueman programs.
923 (add-after 'glib-or-gtk-wrap 'wrap-blueman-progs
924 (lambda* (#:key outputs #:allow-other-keys)
925 (let* ((out (assoc-ref outputs "out"))
926 (bin (string-append out "/bin/blueman-"))
927 (libexec (string-append out "/libexec/blueman-"))
928 (lib (string-append out "/lib/python"
929 ,(version-major+minor
930 (package-version python))
934 (wrap-program program
935 `("GUIX_PYTHONPATH" = (,(getenv "GUIX_PYTHONPATH") ,lib))
936 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))))
938 (map (lambda (prog) (string-append bin prog))
939 '("adapters" "applet" "manager"
940 "sendto" "services" "tray"))
941 (map (lambda (prog) (string-append libexec prog))
942 '("mechanism" "rfcomm-watcher"))))))))))
944 `(("cython" ,python-cython)
945 ("glib:bin" ,glib "bin")
946 ("gobject-introspection" ,gobject-introspection)
947 ("gtk+:bin" ,gtk+ "bin")
948 ("intltool" ,intltool)
949 ("pkg-config" ,pkg-config)))
956 ("iproute2" ,iproute)
957 ("iptables" ,iptables)
958 ("net-tools" ,net-tools)
962 ("pulseaudio" ,pulseaudio)
963 ("pycairo" ,python-pycairo)
964 ("pygobject" ,python-pygobject)
965 ("python" ,python-wrapper)
966 ("libappindicator" ,libappindicator)
967 ("libnm" ,network-manager)))
968 (synopsis "GTK+ Bluetooth manager")
969 (description "Blueman is a Bluetooth management utility using the Bluez
970 D-Bus backend. It is designed to be easy to use for most common Bluetooth
972 (home-page "https://github.com/blueman-project/blueman")
973 (license license:gpl3+)))
975 ;; The gnu.org ‘home’ for this GNU project is a directory listing with 1.6.0 as
976 ;; the latest version. The author's git repository, mentioned in the 1.6.0
977 ;; README and otherwise legit-looking, contains a proper 1.7.0 release tarball
978 ;; with many OUI updates. Use it, even though it's also several years old now.
979 (define-public macchanger
986 (uri (string-append "https://github.com/alobbs/macchanger/"
987 "releases/download/" version "/"
988 name "-" version ".tar.gz"))
990 (base32 "1gs5m0jxyprdp00w2qkbnaqm3ilkjz0q1gqdg4nzdm8g4xy73qns"))))
991 (build-system gnu-build-system)
992 (home-page "https://www.gnu.org/software/macchanger/")
993 (synopsis "Viewing and manipulating MAC addresses of network interfaces")
994 (description "GNU MAC Changer is a utility for viewing and changing MAC
995 addresses of networking devices. New addresses may be set explicitly or
996 randomly. They can include MAC addresses of the same or other hardware vendors
997 or, more generally, MAC addresses of the same category of hardware.")
998 (license license:gpl2+)))
1000 (define-public miredo
1006 (uri (string-append "http://www.remlab.net/files/miredo/miredo-"
1010 "0j9ilig570snbmj48230hf7ms8kvcwi2wblycqrmhh85lksd49ps"))))
1011 (build-system gnu-build-system)
1014 (list "--localstatedir=/var")
1016 (modify-phases %standard-phases
1017 (add-after 'unpack 'do-not-create-/run
1019 (substitute* (find-files "src" "Makefile.*")
1020 (("^.+install_sh.+/run.+$")
1023 (add-after 'unpack 'patch-iproute2
1024 (lambda* (#:key inputs #:allow-other-keys)
1025 (let* ((iproute (assoc-ref inputs "iproute"))
1026 (ip (string-append iproute "/sbin/ip")))
1027 (substitute* "misc/client-hook.iproute"
1030 ;; The checkconf test in src/ requires network access.
1032 'check 'disable-checkconf-test
1034 (substitute* "src/Makefile"
1035 (("^TESTS = .*") "TESTS = \n"))
1038 `(("iproute" ,iproute)))
1039 (home-page "https://www.remlab.net/miredo/")
1040 (synopsis "Teredo IPv6 tunneling software")
1042 "Miredo is an implementation (client, relay, server) of the Teredo
1043 specification, which provides IPv6 Internet connectivity to IPv6 enabled hosts
1044 residing in IPv4-only networks, even when they are behind a NAT device.")
1045 (license license:gpl2+)))
1047 (define-public ndisc6
1053 (uri (string-append "https://www.remlab.net/files/ndisc6/ndisc6-"
1054 version ".tar.bz2"))
1057 "1yrw8maj1646d498ax8xi0jmzk80idrc5x0913x5rwg1kc7224x7"))))
1058 (build-system gnu-build-system)
1059 (home-page "https://www.remlab.net/ndisc6/")
1060 (synopsis "IPv6 diagnostic tools")
1062 "NDisc6 is a collection of tools for IPv6 networking diagnostics.
1063 It includes the following programs:
1066 @item @command{ndisc6}: ICMPv6 Neighbor Discovery tool.
1067 @item @command{rdisc6}: ICMPv6 Router Discovery tool.
1068 @item @command{tcptraceroute6}: IPv6 traceroute over TCP.
1069 @item @command{traceroute6}: IPv6 traceroute over UDP.
1070 @item @command{rdnssd}: Recursive DNS Servers discovery daemon.
1072 ;; The user can choose version 2 or 3 of the GPL, not later versions.
1073 (license (list license:gpl2 license:gpl3))))
1075 (define-public parprouted
1081 (uri (string-append "https://www.hazard.maks.net/parprouted/"
1082 "parprouted-" version ".tar.gz"))
1085 "1z6yg28i0pv20jivyy82pxb38hsryj95inhj27bs6ja1bp4l6dnn"))))
1086 (build-system gnu-build-system)
1088 `(#:tests? #f ;no tests
1089 #:phases (modify-phases %standard-phases
1090 (add-after 'unpack 'insert-absolute-iproute-reference
1091 (lambda* (#:key inputs #:allow-other-keys)
1092 (let* ((iproute (assoc-ref inputs "iproute"))
1093 (ip (string-append iproute "/sbin/ip")))
1094 (substitute* "parprouted.c"
1098 (lambda* (#:key outputs #:allow-other-keys)
1099 (let* ((out (assoc-ref outputs "out"))
1100 (sbin (string-append out "/sbin"))
1101 (man8 (string-append out "/share/man/man8")))
1102 ;; No configure script; hijack the phase to make
1103 ;; the necessary arrangements.
1104 (setenv "CC" ,(cc-for-target))
1105 (for-each mkdir-p (list sbin man8))
1106 (substitute* "Makefile"
1107 (("/usr/local/sbin") sbin)
1108 (("/usr/local/man/man8") man8))
1111 `(("iproute" ,iproute)))
1112 (home-page "https://www.hazard.maks.net/parprouted/")
1113 (synopsis "Proxy ARP requests to other interfaces")
1115 "@command{parprouted} is a daemon for transparent IP (Layer@tie{}3)
1116 proxy ARP bridging. Unlike standard bridging, proxy ARP bridging can bridge
1117 Ethernet networks behind wireless nodes. Normal layer@tie{}2 bridging does
1118 not work between wireless nodes because wireless does not know about MAC
1119 addresses used in the wired Ethernet networks. This daemon can also be
1120 useful for making transparent firewalls.")
1121 (license license:gpl2)))
1123 (define-public pproxy
1129 (uri (pypi-uri "pproxy" version))
1132 "1j4nv72i77i2j5nl9ymzpk4m98qih3naihfrqjghrc9b7g0krdzs"))))
1133 (build-system python-build-system)
1136 #~(modify-phases %standard-phases
1138 (lambda* (#:key tests? #:allow-other-keys)
1140 (with-directory-excursion "tests"
1141 (for-each (lambda (file)
1142 (invoke "python" file))
1143 ;; XXX: The api_ tests require network access
1144 ;; so we only run the cipher tests for now.
1145 (find-files "." "^cipher_.*\\.py$")))))))))
1147 (list python-asyncssh
1151 (home-page "https://github.com/qwj/python-proxy")
1152 (synopsis "Multi-protocol network proxy")
1154 "@command{pproxy} is an asynchronuous proxy server implemented with
1155 Python 3 @code{asyncio}. Among the supported protocols are HTTP, SOCKS
1156 and SSH, and it can use both TCP and UDP as transport mechanisms.")
1157 (license license:expat)))
1159 (define-public socat
1166 "http://www.dest-unreach.org/socat/download/socat-"
1167 version ".tar.bz2"))
1170 "1sbmqqvni3ss9wyay6ik5v81kxffkra80mh4ypgj74g82iba5b1z"))))
1171 (build-system gnu-build-system)
1172 (arguments '(#:tests? #f)) ; no test suite
1173 (inputs (list openssl))
1174 (home-page "http://www.dest-unreach.org/socat/")
1176 "Open bidirectional communication channels from the command line")
1178 "socat is a relay for bidirectional data transfer between two independent
1179 data channels---files, pipes, devices, sockets, etc. It can create
1180 \"listening\" sockets, named pipes, and pseudo terminals.
1182 socat can be used, for instance, as TCP port forwarder, as a shell interface
1183 to UNIX sockets, IPv6 relay, for redirecting TCP oriented programs to a serial
1184 line, to logically connect serial lines on different computers, or to
1185 establish a relatively secure environment (su and chroot) for running client
1186 or server shell scripts with network connections.")
1187 (license license:gpl2)))
1189 (define-public mbuffer
1192 (version "20220418")
1196 "http://www.maier-komor.de/software/mbuffer/mbuffer-"
1200 "1iq0lcl350r7qja7yyv911aay26d0dd8n0h33mfl84gzypwh2n3f"))))
1201 (build-system gnu-build-system)
1204 (inputs (list openssl))
1205 (home-page "http://www.maier-komor.de/mbuffer.html")
1207 "Swiss army knife for data stream buffering (network aware)")
1209 "mbuffer is a tool for buffering data streams with a large set of features:
1212 @item direct support for TCP based network targets (IPv4 and IPv6)
1213 @item ability to send to multiple targets in parallel (distribution mode)
1214 @item support for multiple volumes
1215 @item I/O rate limitation
1216 @item high/low watermark based restart criteria
1217 @item configurable buffer size
1218 @item on the fly MD5 hash calculation
1219 @item highly efficient, multi-threaded implementation
1221 (license license:gpl3+)))
1223 (define-public tcp-wrappers
1225 (name "tcp-wrappers")
1230 "ftp://ftp.porcupine.org/pub/security/tcp_wrappers_"
1234 "0p9ilj4v96q32klavx0phw9va21fjp8vpk11nbh6v2ppxnnxfhwm"))
1235 (modules '((guix build utils)))
1237 ;; 'sys_errlist' & co. are gone in glibc 2.33; work around it.
1238 '(substitute* "percent_m.c"
1239 (("sys_errlist\\[errno\\]")
1241 (("errno < sys_nerr")
1243 (("errno >= sys_nerr")
1245 (build-system gnu-build-system)
1248 (modify-phases %standard-phases
1249 (delete 'configure) ; there is no configure script
1250 (delete 'check) ; there are no tests
1254 ;; Upstream doesn't generate a shared library. So we have to do it.
1255 (setenv "CC" "gcc -fno-builtin -fPIC")
1256 (substitute* "Makefile"
1257 (("^(all[^\n]*)" line) (string-append line " libwrap.so\n
1258 libwrap.so: $(LIB_OBJ)\n
1259 \tgcc -shared $^ -o $@\n")))
1260 ;; Deal with some gcc breakage.
1261 (substitute* "percent_m.c"
1262 (("extern char .sys_errlist.*;") ""))
1263 (substitute* "scaffold.c"
1264 (("extern char .malloc.*;") ""))
1265 ;; This, believe it or not, is the recommended way to build!
1266 (invoke "make" "REAL_DAEMON_DIR=/etc" "linux")))
1267 ;; There is no make install stage, so we have to do it ourselves.
1270 (let ((out (assoc-ref %outputs "out"))
1271 (man-pages `("hosts_access.3"
1279 (headers `("tcpd.h"))
1280 (bins `("safe_finger"
1287 (install-file x (string-append out "/include")))
1291 (install-file x (string-append out "/share/man/man"
1292 (string-take-right x 1))))
1296 (install-file x (string-append out "/lib/")))
1300 (install-file x (string-append out "/bin/")))
1303 (home-page "http://www.porcupine.org")
1304 (synopsis "Monitor and filter incoming requests for network services")
1305 (description "With this package you can monitor and filter incoming requests for
1306 network services. It includes a library which may be used by daemons to
1307 transparently check connection attempts against an access control list.")
1308 (license (license:non-copyleft "file://DISCLAIMER"
1309 "See the file DISCLAIMER in the distribution."))))
1311 (define-public zeromq
1318 (uri (string-append "https://github.com/zeromq/libzmq/releases"
1319 "/download/v" version "/zeromq-" version ".tar.gz"))
1321 (base32 "1rf3jmi36ms8jh2g5cvi253h43l6xdfq0r7mvp95va7mi4d014y5"))))
1322 (build-system gnu-build-system)
1323 (arguments '(#:configure-flags '("--disable-static"
1324 "--enable-drafts")))
1325 (home-page "https://zeromq.org")
1326 (synopsis "Library for message-based applications")
1328 "The 0MQ lightweight messaging kernel is a library which extends the
1329 standard socket interfaces with features traditionally provided by specialized
1330 messaging middle-ware products. 0MQ sockets provide an abstraction of
1331 asynchronous message queues, multiple messaging patterns, message
1332 filtering (subscriptions), seamless access to multiple transport protocols and
1334 (license license:lgpl3+)))
1343 "https://github.com/zeromq/" name
1344 "/releases/download/v" version
1345 "/" name "-" version ".tar.gz"))
1348 "0fdclvd7fcwixp0k57ccv7d159v3slasyhvndxfn8n1a9hh0lwjx"))))
1349 (build-system gnu-build-system)
1351 '(#:configure-flags '("--enable-drafts")))
1354 (home-page "https://zeromq.org")
1355 (synopsis "High-level C bindings for ØMQ")
1357 "czmq provides bindings for the ØMQ core API that hides the differences
1358 between different versions of ØMQ.")
1359 (license license:mpl2.0)))
1361 (define-public cppzmq
1368 (url "https://github.com/zeromq/cppzmq")
1369 (commit (string-append "v" version))))
1372 "0zzq20wzk5grshxfqhqgqqfwb38w3k83r821isvyaxghsglpwks3"))
1373 (file-name (git-file-name name version))))
1374 (build-system cmake-build-system)
1376 `(#:tests? ,(not (%current-target-system)))) ; run unless cross-compiling
1380 (list catch-framework2 zeromq))
1381 (home-page "https://zeromq.org")
1382 (synopsis "C++ bindings for the ØMQ messaging library")
1384 "This package provides header-only C++ bindings for ØMQ. The header
1385 files contain direct mappings of the abstractions provided by the ØMQ C API.")
1386 (license license:expat)))
1388 (define-public libnatpmp
1391 (version "20150609")
1395 "http://miniupnp.free.fr/files/"
1396 name "-" version ".tar.gz"))
1399 "1c1n8n7mp0amsd6vkz32n8zj3vnsckv308bb7na0dg0r8969rap1"))))
1400 (build-system gnu-build-system)
1403 (modify-phases %standard-phases
1405 (delete 'check)) ; no tests
1407 (let* ((target ,(%current-target-system))
1409 (string-append target "-gcc")
1412 (string-append "CC=" gcc)
1413 (string-append "INSTALLPREFIX=" (assoc-ref %outputs "out"))
1414 (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib")))))
1415 (home-page "http://miniupnp.free.fr/libnatpmp.html")
1416 (synopsis "C library implementing NAT-PMP")
1418 "@code{libnatpmp} is a portable and asynchronous implementation of
1419 the Network Address Translation - Port Mapping Protocol (NAT-PMP)
1420 written in the C programming language.")
1421 (license license:bsd-3)))
1423 (define-public librdkafka
1430 (url "https://github.com/edenhill/librdkafka")
1431 (commit (string-append "v" version))))
1432 (file-name (git-file-name name version))
1435 "05mgrdzacn9kdpr68r5j0cvsvl54s52glnsc1ww9rcxx6p7hq1ly"))))
1436 (build-system gnu-build-system)
1439 (modify-phases %standard-phases
1441 ;; its custom configure script doesn't understand 'CONFIG_SHELL'.
1442 (lambda* (#:key outputs #:allow-other-keys)
1443 (let ((out (assoc-ref outputs "out")))
1444 ;; librdkafka++.so lacks RUNPATH for librdkafka.so
1446 (string-append "-Wl,-rpath=" out "/lib"))
1447 (invoke "./configure"
1448 (string-append "--prefix=" out))))))))
1450 `(("python" ,python-wrapper)))
1452 (list zlib)) ; in the Libs.private field of rdkafka.pc
1453 (home-page "https://github.com/edenhill/librdkafka")
1454 (synopsis "Apache Kafka C/C++ client library")
1456 "librdkafka is a C library implementation of the Apache Kafka protocol,
1457 containing both Producer and Consumer support.")
1458 (license license:bsd-2)))
1460 (define-public libndp
1466 (uri (string-append "https://libndp.org/files/"
1467 "libndp-" version ".tar.gz"))
1470 "0ay0n0d85254zdmv8znmn399gfiqpk6ga0jwdwa7ylpbw9pbdzw8"))))
1471 (build-system gnu-build-system)
1472 (home-page "https://libndp.org/")
1473 (synopsis "Library for Neighbor Discovery Protocol")
1475 "libndp contains a library which provides a wrapper for IPv6 Neighbor
1476 Discovery Protocol. It also provides a tool named ndptool for sending and
1477 receiving NDP messages.")
1478 (license license:lgpl2.1+)))
1480 (define-public ethtool
1486 (uri (string-append "mirror://kernel.org/software/network/"
1487 "ethtool/ethtool-" version ".tar.xz"))
1490 "0v8i592vwjypf111w0lfvaxdwhzybp6w600g28m9rm490c8xcvv8"))))
1491 (build-system gnu-build-system)
1496 (home-page "https://www.kernel.org/pub/software/network/ethtool/")
1497 (synopsis "Display or change Ethernet device settings")
1499 "ethtool can be used to query and change settings such as speed,
1500 auto-negotiation and checksum offload on many network devices, especially
1502 (license license:gpl2)))
1504 (define-public ifstatus
1510 (uri (string-append "mirror://sourceforge/ifstatus/ifstatus/"
1511 "ifstatus%20v" version "/ifstatus-v"
1515 "045cbsq9ps32j24v8y5hpyqxnqn9mpaf3mgvirlhgpqyb9jsia0c"))
1516 (modules '((guix build utils)))
1519 (substitute* "Main.h"
1520 (("#include <stdio.h>")
1521 "#include <stdio.h>\n#include <stdlib.h>"))
1523 (build-system gnu-build-system)
1525 '(#:tests? #f ; no "check" target
1527 (modify-phases %standard-phases
1528 (delete 'configure) ; no configure script
1530 (lambda* (#:key outputs #:allow-other-keys)
1531 (let* ((out (assoc-ref outputs "out"))
1532 (bin (string-append out "/bin")))
1534 (copy-file "ifstatus"
1535 (string-append bin "/ifstatus")))
1537 (inputs (list ncurses))
1538 (home-page "http://ifstatus.sourceforge.net/graphic/index.html")
1539 (synopsis "Text based network interface status monitor")
1541 "IFStatus is a simple, easy-to-use program for displaying commonly
1542 needed/wanted real-time traffic statistics of multiple network
1543 interfaces, with a simple and efficient view on the command line. It is
1544 intended as a substitute for the PPPStatus and EthStatus projects.")
1545 (license license:gpl2+)))
1547 (define-public iputils
1550 (version "20190709")
1551 (home-page "https://github.com/iputils/iputils")
1554 (uri (git-reference (url home-page)
1555 (commit (string-append "s" version))))
1556 (file-name (git-file-name name version))
1557 (patches (search-patches "iputils-libcap-compat.patch"))
1560 "04bp4af15adp79ipxmiakfp0ij6hx5qam266flzbr94pr8z8l693"))))
1561 (build-system meson-build-system)
1563 `(#:configure-flags '("-DBUILD_RARPD=true")
1565 (modify-phases %standard-phases
1566 (add-after 'unpack 'fix-docbook-url
1567 (lambda* (#:key inputs #:allow-other-keys)
1568 (let* ((docbook-xsl (assoc-ref inputs "docbook-xsl"))
1569 (uri (string-append docbook-xsl "/xml/xsl/docbook-xsl-"
1570 ,(package-version docbook-xsl))))
1574 (("http://docbook\\.sourceforge\\.net/release/xsl-ns/current")
1576 (cons "doc/meson.build"
1577 (find-files "doc" "\\.xsl$")))
1580 `(("gettext" ,gettext-minimal)
1581 ("pkg-config" ,pkg-config)
1582 ("docbook-xsl" ,docbook-xsl)
1583 ("docbook-xml" ,docbook-xml-5)
1584 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
1585 ("xsltproc" ,libxslt)))
1587 (list libcap libidn2 openssl))
1588 (synopsis "Collection of network utilities")
1590 "This package contains a variety of tools for dealing with network
1591 configuration, troubleshooting, or servers. Utilities included are:
1594 @item @command{arping}: Ping hosts using the @dfn{Address Resolution Protocol}.
1595 @item @command{clockdiff}: Compute time difference between network hosts
1596 using ICMP TSTAMP messages.
1597 @item @command{ninfod}: Daemon that responds to IPv6 Node Information Queries.
1598 @item @command{ping}: Use ICMP ECHO messages to measure round-trip delays
1599 and packet loss across network paths.
1600 @item @command{rarpd}: Answer RARP requests from clients.
1601 @item @command{rdisc}: Populate network routing tables with information from
1602 the ICMP router discovery protocol.
1603 @item @command{tftpd}: Trivial file transfer protocol server.
1604 @item @command{tracepath}: Trace network path to an IPv4 or IPv6 address and
1605 discover MTU along the way.
1607 ;; The various utilities are covered by different licenses, see LICENSE
1609 (license (list license:gpl2+ ;arping, rarpd, tracepath
1610 license:bsd-3 ;clockdiff, ninfod, ping, tftpd
1611 (license:non-copyleft
1612 "https://spdx.org/licenses/Rdisc.html"
1613 "Sun Microsystems license, see rdisc.c for details")))))
1615 (define-public nload
1621 (uri (string-append "mirror://sourceforge/nload/nload/" version
1622 "/nload-" version ".tar.gz"))
1625 "1rb9skch2kgqzigf19x8bzk211jdfjfdkrcvaqyj89jy2pkm3h61"))))
1626 (build-system gnu-build-system)
1627 (inputs (list ncurses))
1628 (home-page "http://www.roland-riegel.de/nload/")
1629 (synopsis "Realtime console network usage monitor")
1631 "Nload is a console application which monitors network traffic and
1632 bandwidth usage in real time. It visualizes the in- and outgoing traffic using
1633 two graphs, and provides additional info like total amount of transferred data
1634 and min/max network usage.")
1635 (license license:gpl2+)))
1637 (define-public iodine
1643 (uri (string-append "http://code.kryo.se/" name "/"
1644 name "-" version ".tar.gz"))
1647 "0gh17kcxxi37k65zm4gqsvbk3aw7yphcs3c02pn1c4s2y6n40axd"))))
1648 (build-system gnu-build-system)
1651 (modify-phases %standard-phases
1653 (add-before 'build 'fix-ifconfig-path
1654 ;; This package works only with the net-tools version of ifconfig.
1655 (lambda* (#:key inputs #:allow-other-keys)
1656 (substitute* "src/tun.c"
1658 (string-append (assoc-ref inputs "net-tools") "/bin/")))
1660 (add-before 'check 'delete-failing-tests
1661 ;; Avoid https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802105.
1663 (substitute* "tests/common.c"
1664 (("tcase_add_test\\(tc, \
1665 test_parse_format_ipv(4(|_listen_all|_mapped_ipv6)|6)\\);")
1668 #:make-flags (list ,(string-append "CC=" (cc-for-target))
1669 (string-append "prefix=" (assoc-ref %outputs "out")))
1670 #:test-target "test"))
1671 (inputs (list net-tools zlib))
1672 (native-inputs (list check pkg-config))
1673 (home-page "https://code.kryo.se/iodine/")
1674 (synopsis "Tunnel IPv4 data through a DNS server")
1675 (description "Iodine tunnels IPv4 data through a DNS server. This
1676 can be useful in different situations where internet access is firewalled, but
1677 DNS queries are allowed. The bandwidth is asymmetrical, with limited upstream
1678 and up to 1 Mbit/s downstream.")
1679 ;; src/md5.[ch] is released under the zlib license
1680 (license (list license:isc license:zlib))))
1682 (define-public whois
1690 (url "https://github.com/rfc1036/whois")
1691 (commit (string-append "v" version))))
1692 (file-name (git-file-name name version))
1694 (base32 "0wys0aixzq6mzvg7p6jb0d5rkkg23pjcgcsx86p7hjidxdvnbwzr"))))
1695 (build-system gnu-build-system)
1697 `(#:tests? #f ; no test suite
1698 #:make-flags (list (string-append "CC=" ,(cc-for-target))
1699 (string-append "PKG_CONFIG=" ,(pkg-config-for-target))
1700 (string-append "prefix=" (assoc-ref %outputs "out")))
1702 (modify-phases %standard-phases
1703 (delete 'configure) ; no configure script
1704 (add-before 'build 'setenv
1706 (setenv "HAVE_ICONV" "1")
1711 `(("gettext" ,gettext-minimal)
1713 ("pkg-config" ,pkg-config)))
1714 (synopsis "Intelligent client for the WHOIS directory service")
1716 "whois searches for an object in a @dfn{WHOIS} (RFC 3912) database.
1717 It is commonly used to look up the registered users or assignees of an Internet
1718 resource, such as a domain name, an IP address block, or an autonomous system.
1719 It can automatically select the appropriate server for most queries.
1721 For historical reasons, this package also includes @command{mkpasswd}, which
1722 encrypts passwords using @code{crypt(3)} and is unrelated to the Expect command
1724 (home-page "https://github.com/rfc1036/whois")
1725 (license license:gpl2+)))
1727 (define-public wireshark
1734 (uri (string-append "https://www.wireshark.org/download/src/wireshark-"
1737 (base32 "03n34jh4318y3q14jclxfxi4r7b9l393w9fw9bq57ydff9aim42x"))))
1738 (build-system cmake-build-system)
1741 (modify-phases %standard-phases
1742 (add-after 'unpack 'remove-failing-test
1743 ;; Skip test suite failing with "Program reassemble_test is not
1744 ;; available" and alike errors. Also skip test suite failing with
1745 ;; "AssertionError: Program extcap/sdjournal is not available"
1748 (substitute* "CMakeLists.txt"
1749 (("suite_unittests" all) (string-append "# " all))
1750 (("suite_extcaps" all) (string-append "# " all))))))
1751 ;; Build process chokes during `validate-runpath' phase.
1753 ;; Errors are like the following:
1754 ;; "/gnu/store/...wireshark-3.0.0/lib/wireshark/plugins/3.0/epan/ethercat.so:
1755 ;; error: depends on 'libwireshark.so.12', which cannot be found in
1756 ;; RUNPATH". That is, "/gnu/store/...wireshark-3.0.0./lib" doesn't
1757 ;; belong to RUNPATH.
1759 ;; That’s not a problem in practice because "ethercat.so" is a plugin,
1760 ;; so it’s dlopen’d by a process that already provides "libwireshark".
1761 ;; For now, we disable this phase.
1762 #:validate-runpath? #f))
1775 lua-5.2 ;Lua 5.3 unsupported
1795 (synopsis "Network traffic analyzer")
1796 (description "Wireshark is a network protocol analyzer, or @dfn{packet
1797 sniffer}, that lets you capture and interactively browse the contents of
1799 (home-page "https://www.wireshark.org/")
1800 (license license:gpl2+)))
1802 (define-public fping
1809 (uri (string-append "https://fping.org/dist/fping-"
1812 (base32 "1zh9fkyn0bixgn77v9z6ayv446nqwx960hmly9m68xix0s62dr8y"))))
1813 (build-system gnu-build-system)
1814 (arguments '(#:configure-flags '("--enable-ipv6")))
1815 (home-page "https://fping.org/")
1816 (synopsis "Send ICMP ECHO_REQUEST packets to network hosts")
1818 "fping is a ping-like program which uses @acronym{ICMP, Internet Control
1819 Message Protocol} echo requests to determine if a target host is responding.
1821 @command{fping} differs from @command{ping} in that you can specify any number
1822 of targets on the command line, or specify a file containing the lists of
1823 targets to ping. Instead of sending to one target until it times out or
1824 replies, fping will send out a ping packet and move on to the next target in a
1825 round-robin fashion.")
1826 (license license:expat)))
1828 (define-public gandi.cli
1835 (uri (pypi-uri name version))
1837 (base32 "1h36jahbp7273wn3yd747kbiwjc0bm3sja67bcxdsd54ln0vyndg"))))
1838 (build-system python-build-system)
1841 (modify-phases %standard-phases
1842 (add-after 'unpack 'embed-store-file-names
1844 (substitute* (list "gandi/cli/modules/cert.py"
1845 "gandi/cli/tests/commands/test_certificate.py")
1846 (("openssl") (which "openssl")))
1848 (add-after 'install 'install-documentation
1849 ;; The included man page may be outdated but we install it anyway,
1850 ;; since it's mentioned in 'gandi --help' and better than nothing.
1851 (lambda* (#:key outputs #:allow-other-keys)
1852 (let* ((out (assoc-ref outputs "out"))
1853 (man1 (string-append out "/share/man/man1")))
1855 (with-output-to-file (string-append man1 "/gandi.1")
1857 (invoke "rst2man.py" "gandicli.man.rst")))
1860 (list python-docutils ; for rst2man.py
1861 python-pytest python-pytest-cov python-tox))
1863 (list openssh)) ; used by gandi/cli/modules/iass.py
1865 (list openssl python-click-7 python-ipy python-pyyaml python-requests))
1866 (home-page "https://cli.gandi.net")
1867 (synopsis "Command-line interface to the Gandi.net Web API")
1869 "This package provides a command-line client (@command{gandi}) to buy,
1870 manage, and delete Internet resources from Gandi.net such as domain names,
1871 virtual machines, and certificates.")
1872 (license license:gpl3+)))
1874 (define-public go-netns
1875 (let ((commit "13995c7128ccc8e51e9a6bd2b551020a27180abd")
1879 (version (git-version "0.0.0" revision commit))
1883 (url "https://github.com/vishvananda/netns")
1885 (file-name (git-file-name name version))
1888 "1zk6w8158qi4niva5rijchbv9ixgmijsgqshh54wdaav4xrhjshn"))))
1889 (build-system go-build-system)
1891 `(#:import-path "github.com/vishvananda/netns"
1892 #:tests? #f)) ;tests require root privileges
1893 (home-page "https://github.com/vishvananda/netns")
1894 (synopsis "Simple network namespace handling for Go")
1895 (description "The netns package provides a simple interface for
1896 handling network namespaces in Go.")
1897 (license license:asl2.0))))
1899 (define-public go-sctp
1900 ;; docker-libnetwork-cmd-proxy requires this exact commit.
1901 ;; This commit is mentioned in docker-libnetwork-cmd-proxy's vendor.conf.
1902 (let ((commit "f2269e66cdee387bd321445d5d300893449805be")
1906 (version (git-version "0.0.0" revision commit))
1910 (url "https://github.com/ishidawataru/sctp")
1912 (file-name (git-file-name name version))
1915 "04463rnn9y9psp11ac5di6wrwxlhymw5h9hfhhhnxqwla90ikp0g"))))
1916 (build-system go-build-system)
1918 `(#:tests? #f ; Test suite is flakey.
1919 #:import-path "github.com/ishidawataru/sctp"))
1920 (home-page "https://github.com/ishidawataru/sctp")
1921 (synopsis "SCTP library for the Go programming language")
1922 (description "This library provides methods for using the stream control
1923 transmission protocol (SCTP) in a Go application.")
1924 (license license:asl2.0))))
1926 (define-public httping
1933 (uri (string-append "https://www.vanheusden.com/httping/httping-"
1937 "1y7sbgkhgadmd93x1zafqc4yp26ssiv16ni5bbi9vmvvdl55m29y"))))
1938 (build-system gnu-build-system)
1940 `(("gettext" ,gettext-minimal)))
1942 (list fftw ncurses openssl))
1944 `(#:make-flags (list ,(string-append "CC=" (cc-for-target))
1945 (string-append "DESTDIR=" (assoc-ref %outputs "out"))
1947 #:tests? #f)) ; no tests
1948 (home-page "https://www.vanheusden.com/httping/")
1949 (synopsis "Web server latency and throughput monitor")
1951 "httping measures how long it takes to connect to a web server, send an
1952 HTTP(S) request, and receive the reply headers. It is somewhat similar to
1953 @command{ping}, but can be used even in cases where ICMP traffic is blocked
1954 by firewalls or when you want to monitor the response time of the actual web
1955 application stack itself.")
1956 (license license:gpl2))) ; with permission to link with OpenSSL
1958 (define-public httpstat
1966 (url "https://github.com/reorx/httpstat")
1968 (file-name (git-file-name name version))
1970 (base32 "0cw8299a080m42slsimz31xs0gjnh833gpbj2dsr4hkcinrn4iyd"))))
1971 (build-system python-build-system)
1972 (inputs (list curl))
1975 (modify-phases %standard-phases
1976 (add-before 'build 'fix-curl-path
1977 (lambda* (#:key inputs #:allow-other-keys)
1978 (substitute* "httpstat.py"
1979 (("ENV_CURL_BIN.get\\('curl'\\)")
1980 (string-append "ENV_CURL_BIN.get('"
1981 (assoc-ref inputs "curl")
1983 ;; "curl -w time_*" units seems to have
1984 ;; changed from seconds to nanoseconds.
1985 (("d\\[k\\] \\* 1000") "d[k] / 1000"))
1987 (home-page "https://github.com/reorx/httpstat")
1988 (synopsis "Visualize curl statistics")
1990 "@command{httpstat} is a tool to visualize statistics from the
1991 @command{curl} HTTP client. It acts as a wrapper for @command{curl} and
1992 prints timing information for each step of the HTTP request (DNS lookup,
1993 TCP connection, TLS handshake and so on) in the terminal.")
1994 (license license:expat)))
1996 (define-public squid
2003 (uri (string-append "http://www.squid-cache.org/Versions/v4/squid-"
2006 (base32 "060lwghn6q982bay11ia38c86kd8w6mjgy68n58v31kwik08m4nb"))))
2007 (build-system gnu-build-system)
2010 ;; disable -march=native in build for reproducibility; see
2011 ;; https://wiki.squid-cache.org/KnowledgeBase/IllegalInstructionError
2012 (list "--disable-arch-native")
2014 (modify-phases %standard-phases
2015 (add-before 'build 'fix-true-path
2016 (lambda* (#:key inputs #:allow-other-keys)
2017 (substitute* "test-suite/testheaders.sh"
2019 (search-input-file inputs "/bin/true"))))))))
2030 (list cppunit pkg-config))
2031 (synopsis "Web caching proxy")
2032 (description "Squid is a caching proxy for the Web supporting HTTP, HTTPS,
2033 FTP, and more. It reduces bandwidth and improves response times by caching and
2034 reusing frequently-requested web pages.")
2035 (home-page "http://www.squid-cache.org/")
2036 (license license:gpl2+)))
2038 (define-public bwm-ng
2046 (url "https://github.com/vgropp/bwm-ng")
2047 (commit (string-append "v" version))))
2048 (file-name (git-file-name name version))
2050 (base32 "1gpp2l3w479h1w5skjra5xy0gxd24kvmk6i4psbkafnv2399la4k"))))
2051 (build-system gnu-build-system)
2054 (modify-phases %standard-phases
2055 (add-after 'unpack 'disable-premature-./configure
2057 (substitute* "autogen.sh"
2058 (("\\$srcdir/configure")
2062 (list autoconf automake))
2065 (synopsis "Console based live network and disk I/O bandwidth monitor")
2066 (description "Bandwidth Monitor NG is a small and simple console based
2067 live network and disk I/O bandwidth monitor.")
2068 (home-page "https://www.gropp.org/?id=projects&sub=bwm-ng")
2069 (license license:gpl2)))
2071 (define-public aircrack-ng
2073 (name "aircrack-ng")
2078 (uri (string-append "https://download.aircrack-ng.org/aircrack-ng-"
2081 (base32 "1hsq1gwmafka4bahs6rc8p98yi542h9a502h64bjlygpr3ih99q5"))))
2082 (build-system gnu-build-system)
2084 (list autoconf automake libtool pkg-config which
2088 (list `(,hwloc "lib") ; speed boost on SMP machines
2098 (list "CFLAGS=-fcommon"
2099 "--with-experimental=yes" ; build wesside-ng, etc.
2100 "--with-gcrypt") ; openssl's the default
2101 #:phases (modify-phases %standard-phases
2102 (add-before 'bootstrap 'patch-evalrev
2104 ;; Called by ./autogen.sh below, before the default
2105 ;; ‘patch-shebangs’ phase has had a chance to run.
2106 (substitute* "evalrev"
2109 (add-after 'build 'absolutize-tools
2110 (lambda* (#:key inputs #:allow-other-keys)
2111 (let ((ethtool (search-input-file inputs
2113 (substitute* "scripts/airmon-ng"
2115 (string-append ethtool " ")))))))))
2116 (home-page "https://www.aircrack-ng.org")
2117 (synopsis "Assess WiFi network security")
2119 "Aircrack-ng is a complete suite of tools to assess WiFi network
2120 security. It focuses on different areas of WiFi security: monitoring,
2121 attacking, testing, and cracking. All tools are command-line driven, which
2122 allows for heavy scripting.")
2123 (license (list license:gpl2+ license:bsd-3))))
2125 (define-public pixiewps
2132 "https://github.com/wiire-a/pixiewps/releases/"
2133 "download/v" version "/" name "-" version ".tar.xz"))
2136 "07nym6bqml0k9v29vnj003nrgnwrywgjvnljb7cdpsvnwilhbp64"))))
2137 (build-system gnu-build-system)
2140 (list ,(string-append "CC=" (cc-for-target))
2141 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2143 (modify-phases %standard-phases
2144 (delete 'configure)) ; no configure script
2145 #:tests? #f)) ; there are no tests
2146 (home-page "https://github.com/wiire-a/pixiewps/")
2147 (synopsis "Offline brute-force tool for Wi-Fi Protected Setup")
2148 (description "Pixiewps implements the pixie-dust attack to brute
2149 force the Wi-Fi Protected Setup (WPS) PIN by exploiting the low or
2150 non-existing entropy of some access points.")
2151 (license license:gpl3+)))
2153 (define-public reaver
2160 "https://github.com/t6x/reaver-wps-fork-t6x/releases/"
2161 "download/v" version "/reaver-" version ".tar.xz"))
2164 "00k7mc81ifv0wma7k4v18mj498badbw5yls6c28qin3d1gda0ag3"))))
2165 (build-system gnu-build-system)
2168 ;; Save session files to current directory instead of /var.
2169 (list "--enable-savetocurrent"
2170 "--localstatedir=/tmp/dummy") ; prevent creating /var during install
2172 (modify-phases %standard-phases
2173 (add-before 'configure 'change-directory
2177 (add-after 'install 'install-doc
2178 (lambda* (#:key outputs #:allow-other-keys)
2180 (let* ((out (assoc-ref outputs "out"))
2181 (doc (string-append out "/share/doc/" ,name "-" ,version))
2182 (man1 (string-append out "/share/man/man1")))
2183 (for-each (lambda (file) (install-file file doc))
2184 (find-files "." "README.*"))
2185 (install-file "reaver.1" man1)
2187 #:tests? #f)) ; there are no tests
2191 (list aircrack-ng pixiewps))
2192 (home-page "https://github.com/t6x/reaver-wps-fork-t6x/")
2193 (synopsis "Attack tool for Wi-Fi Protected Setup")
2194 (description "Reaver performs a brute force attack against an access
2195 point's Wi-Fi Protected Setup (WPS) PIN. Once the PIN is found, the WPA
2196 passphrase can be recovered and the AP's wireless settings can be
2198 (license license:gpl2+)))
2200 (define-public perl-danga-socket
2202 (name "perl-danga-socket")
2207 (uri (string-append "mirror://cpan/authors/id/N/NM/NML/"
2208 "Danga-Socket-" version ".tar.gz"))
2210 (base32 "0x4bvirmf0kphks19jwgva00zz73zx344218dfaiv8gigrw3yg4m"))))
2211 (build-system perl-build-system)
2213 (list perl-test-tcp))
2215 (list perl-sys-syscall))
2216 (home-page "https://metacpan.org/release/Danga-Socket")
2217 (synopsis "Event loop and event-driven async socket base class")
2219 "Danga::Socket is an abstract base class for objects backed by a socket
2220 which provides the basic framework for event-driven asynchronous IO, designed
2221 to be fast. Danga::Socket is both a base class for objects, and an event
2223 (license license:perl-license)))
2225 (define-public perl-data-validate-ip
2227 (name "perl-data-validate-ip")
2233 "mirror://cpan/authors/id/D/DR/DROLSKY/Data-Validate-IP-"
2236 (base32 "074adrlvkiahj1fdc9nvb95dpfyjzm2jzhi90m8xaw4bw5ipcbzy"))))
2237 (build-system perl-build-system)
2239 (list perl-test-requires))
2241 (list perl-netaddr-ip))
2242 (home-page "https://metacpan.org/release/Data-Validate-IP")
2243 (synopsis "IPv4 and IPv6 validation methods")
2245 "This module provides several IP address validation subroutines that both
2246 validate and untaint their input. This includes both basic validation
2247 (@code{is_ipv4()} and @code{is_ipv6()}) and special cases like checking whether
2248 an address belongs to a specific network or whether an address is public or
2249 private (reserved).")
2250 (license license:perl-license)))
2252 (define-public perl-net-dns
2254 (name "perl-net-dns")
2261 (string-append "https://www.net-dns.org/download/Net-DNS-"
2263 (string-append "mirror://cpan/authors/id/N/NL/NLNETLABS/Net-DNS-"
2264 version ".tar.gz")))
2266 (base32 "05f6rzvvmm6xd0p100k5y9kczdzqgala09ra8bccc18n6y74l0h0"))))
2267 (build-system perl-build-system)
2269 (list perl-digest-hmac))
2270 (home-page "https://www.net-dns.org/")
2272 "Perl Interface to the Domain Name System")
2273 (description "Net::DNS is the Perl Interface to the Domain Name System.")
2274 (license license:x11)))
2276 (define-public perl-socket6
2278 (name "perl-socket6")
2284 "mirror://cpan/authors/id/U/UM/UMEMOTO/Socket6-"
2289 "054izici8klfxs8hr5rljib28plijpsfymy99xbzdp047bx1b2a6"))))
2290 (build-system perl-build-system)
2293 (modify-phases %standard-phases
2295 (lambda* (#:key outputs #:allow-other-keys)
2296 (let* ((out (assoc-ref outputs "out"))
2297 (args `("Makefile.PL"
2298 ,(string-append "PREFIX=" out)
2299 "INSTALLDIRS=site")))
2300 (setenv "CONFIG_SHELL" (which "sh"))
2301 (apply invoke "perl" args)))))))
2302 (home-page "https://metacpan.org/release/Socket6")
2304 "IPv6 related part of the C socket.h defines and structure manipulators for Perl")
2305 (description "Socket6 binds the IPv6 related part of the C socket header
2306 definitions and structure manipulators for Perl.")
2307 (license license:bsd-3)))
2309 (define-public perl-net-dns-resolver-programmable
2311 (name "perl-net-dns-resolver-programmable")
2317 "mirror://cpan/authors/id/J/JM/JMEHNLE/net-dns-resolver-programmable/"
2318 "Net-DNS-Resolver-Programmable-v" version ".tar.gz"))
2321 "1v3nl2kaj4fs55n1617n53q8sa3mir06898vpy1rq98zjih24h4d"))
2323 (search-patches "perl-net-dns-resolver-programmable-fix.patch"))))
2324 (build-system perl-build-system)
2326 (list perl-module-build))
2327 (inputs (list perl-net-dns))
2329 "https://metacpan.org/release/Net-DNS-Resolver-Programmable")
2331 "Programmable DNS resolver class for offline emulation of DNS")
2332 (description "Net::DNS::Resolver::Programmable is a programmable DNS resolver for
2333 offline emulation of DNS.")
2334 (license license:perl-license)))
2336 (define-public perl-net-dns-resolver-mock
2338 (name "perl-net-dns-resolver-mock")
2339 (version "1.20171219")
2343 "mirror://cpan/authors/id/M/MB/MBRADSHAW/"
2344 "Net-DNS-Resolver-Mock-" version ".tar.gz"))
2347 "0m3rxpkv1b9121srvbqkrgzg4m8mnydiydqv34in1i1ixwrl6jn9"))))
2348 (build-system perl-build-system)
2350 (list perl-net-dns))
2351 (home-page "https://metacpan.org/release/Net-DNS-Resolver-Mock")
2352 (synopsis "Mock DNS Resolver object for testing")
2354 "Net::DNS::Resolver::Mock is a subclass of Net::DNS::Resolver, but returns
2355 static data from any provided DNS zone file instead of querying the network.
2356 It is intended primarily for use in testing.")
2357 (license license:perl-license)))
2359 (define-public perl-netaddr-ip
2361 (name "perl-netaddr-ip")
2367 "mirror://cpan/authors/id/M/MI/MIKER/NetAddr-IP-"
2372 "1rx0dinrz9fk9qcg4rwqq5n1dm3xv2arymixpclcv2q2nzgq4npc"))))
2373 (build-system perl-build-system)
2376 (modify-phases %standard-phases
2378 (lambda* (#:key outputs #:allow-other-keys)
2379 (let* ((out (assoc-ref outputs "out"))
2380 (args `("Makefile.PL"
2381 ,(string-append "PREFIX=" out)
2382 "INSTALLDIRS=site")))
2383 (setenv "CONFIG_SHELL" (which "sh"))
2384 (apply invoke "perl" args)))))))
2386 "https://metacpan.org/release/NetAddr-IP")
2388 "Manages IPv4 and IPv6 addresses and subnets")
2389 (description "NetAddr::IP manages IPv4 and IPv6 addresses and subsets.")
2390 (license license:perl-license)))
2392 (define-public perl-net-patricia
2394 (name "perl-net-patricia")
2400 "mirror://cpan/authors/id/G/GR/GRUBER/Net-Patricia-"
2405 "0ln5f57vc8388kyh9vhx2infrdzfhbpgyby74h1qsnhwds95m0vh"))))
2406 (build-system perl-build-system)
2409 (modify-phases %standard-phases
2410 (add-after 'unpack 'dont-link-with-nsl ; Borrowed from Debian.
2412 (substitute* "Makefile.PL"
2416 (list perl-net-cidr-lite perl-socket6))
2418 "https://metacpan.org/release/Net-Patricia")
2420 "Patricia Trie Perl module for fast IP address lookups")
2422 "Net::Patricia does IP address lookups quickly in Perl.")
2423 ;; The bindings are licensed under GPL2 or later.
2424 ;; libpatricia is licensed under 2-clause BSD.
2425 (license (list license:gpl2+ license:bsd-2))))
2427 (define-public perl-net-cidr-lite
2429 (name "perl-net-cidr-lite")
2435 "mirror://cpan/authors/id/S/ST/STIGTSP/Net-CIDR-Lite-"
2439 (base32 "05w57db2lx4djb4vixzdr6qgrzyzkk047nl812g7nq8s6k5xh5s3"))))
2440 (build-system perl-build-system)
2441 (home-page "https://metacpan.org/release/Net-CIDR-Lite")
2442 (synopsis "Perl extension for merging IPv4 or IPv6 CIDR addresses")
2443 (description "Net::CIDR::Lite merges IPv4 or IPv6 CIDR addresses.")
2444 (license license:gpl1+)))
2446 (define-public perl-io-socket-inet6
2448 (name "perl-io-socket-inet6")
2454 "mirror://cpan/authors/id/S/SH/SHLOMIF/IO-Socket-INET6-"
2459 "1fqypz6qa5rw2d5y2zq7f49frwra0aln13nhq5gi514j2zx21q45"))))
2460 (build-system perl-build-system)
2462 (list perl-module-build perl-test-pod perl-test-pod-coverage))
2463 (propagated-inputs (list perl-socket6))
2464 (arguments `(;; Need network socket API
2467 "https://metacpan.org/release/IO-Socket-INET6")
2469 "Perl object interface for AF_INET/AF_INET6 domain sockets")
2470 (description "IO::Socket::INET6 is an interface for AF_INET/AF_INET6 domain
2472 (license license:perl-license)))
2474 (define-public libproxy
2480 (uri (string-append "https://github.com/libproxy/libproxy/"
2481 "releases/download/" version "/libproxy-"
2485 "01cbgz6lc3v59sldqk96l1281kp2qxnsa2qwlf2ikvjlyr1gi2dw"))))
2486 (build-system cmake-build-system)
2493 (modify-phases %standard-phases
2495 (lambda* (#:key tests? #:allow-other-keys)
2497 (invoke "ctest" "-E" "url-test")))))))
2498 (synopsis "Library providing automatic proxy configuration management")
2499 (description "Libproxy handles the details of HTTP/HTTPS proxy
2500 configuration for applications across all scenarios. Applications using
2501 libproxy only have to specify which proxy to use.")
2502 (home-page "https://libproxy.github.io/libproxy")
2503 (license license:lgpl2.1+)))
2505 (define-public proxychains-ng
2507 (name "proxychains-ng")
2512 (uri (string-append "http://ftp.barfooze.de/pub/sabotage/tarballs/"
2513 "proxychains-ng-" version ".tar.xz"))
2515 (base32 "04k80jbv1wcr7ccsa0qyly33syw275kvkvzyihwwqmsqk4yria9p"))))
2516 (build-system gnu-build-system)
2518 `(#:tests? #f ; there are no tests
2520 (modify-phases %standard-phases
2521 (add-after 'unpack 'fix-configure-script
2523 ;; The configure script is very intolerant to unknown arguments,
2524 ;; such as "CONFIG_SHELL".
2525 (substitute* "configure"
2526 (("\\*\\) break ;;" line)
2527 (string-append "[A-Z]*) shift ;;\n"
2529 (add-before 'configure 'set-up-environment
2531 (setenv "CC" ,(cc-for-target)))))))
2532 (synopsis "Redirect any TCP connection through a proxy or proxy chain")
2533 (description "Proxychains-ng is a preloader which hooks calls to sockets
2534 in dynamically linked programs and redirects them through one or more SOCKS or
2536 (home-page "https://github.com/rofl0r/proxychains-ng")
2537 (license license:gpl2+)))
2546 (uri (string-append "http://enet.bespin.org/download/"
2547 "enet-" version ".tar.gz"))
2549 (base32 "1p6f9mby86af6cs7pv6h48032ip9g32c05cb7d9mimam8lchz3x3"))))
2550 (build-system gnu-build-system)
2553 (synopsis "Network communication layer on top of UDP")
2555 "ENet's purpose is to provide a relatively thin, simple and robust network
2556 communication layer on top of UDP. The primary feature it provides is optional
2557 reliable, in-order delivery of packets. ENet omits certain higher level
2558 networking features such as authentication, server discovery, encryption, or
2559 other similar tasks that are particularly application specific so that the
2560 library remains flexible, portable, and easily embeddable.")
2561 (home-page "http://enet.bespin.org")
2562 (license license:expat)))
2572 (url "https://github.com/yrutschle/sslh")
2573 (commit (string-append "v" version))))
2574 (file-name (git-file-name name version))
2576 (base32 "19h32dn0076p3s7dn35qi5yp2xvnxw9sqphppmn72vyb8caxvw1z"))))
2577 (build-system gnu-build-system)
2579 (list ;; Test dependencies.
2583 perl-io-socket-inet6
2585 psmisc)) ; for ‘killall’
2587 (list libcap libconfig pcre tcp-wrappers))
2590 (modify-phases %standard-phases
2591 (delete 'configure) ; no configure script
2592 (add-before 'check 'fix-tests
2595 (("\"/tmp") "$ENV{\"TMPDIR\"} . \"")
2596 ;; The Guix build environment lacks ‘ip6-localhost’.
2597 (("ip6-localhost") "localhost"))
2599 ;; Many of these files are mentioned in the man page. Install them.
2600 (add-after 'install 'install-documentation
2601 (lambda* (#:key outputs #:allow-other-keys)
2602 (let* ((out (assoc-ref outputs "out"))
2603 (doc (string-append out "/share/doc/sslh")))
2604 (install-file "README.md" doc)
2607 (install-file file (string-append doc "/examples")))
2608 (append (find-files "." "\\.cfg")
2609 (find-files "scripts"))))
2611 #:make-flags (list ,(string-append "CC=" (cc-for-target))
2614 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2615 #:test-target "test"))
2616 (home-page "https://www.rutschle.net/tech/sslh/README.html")
2617 (synopsis "Applicative network protocol demultiplexer")
2619 "sslh is a network protocol demultiplexer. It acts like a switchboard,
2620 accepting connections from clients on one port and forwarding them to different
2621 servers based on the contents of the first received data packet. Detection of
2622 common protocols like HTTP(S), SSL, SSH, OpenVPN, tinc, and XMPP is already
2623 implemented, but any other protocol that matches a regular expression can be
2624 added. sslh's name comes from its original application of serving both SSH and
2625 HTTPS on port 443, allowing SSH connections from inside corporate firewalls
2626 that block port 22.")
2627 (license (list license:bsd-2 ; tls.[ch]
2628 license:gpl2+)))) ; everything else
2630 (define-public iperf
2638 (url "https://github.com/esnet/iperf")
2640 (file-name (git-file-name name version))
2642 (base32 "064sb8f9jxi5ii43swd73c0mm50lvk51v7awhgbj6p129c1a4nn5"))))
2643 (build-system gnu-build-system)
2646 (list "--disable-static")))
2647 (synopsis "TCP, UDP and SCTP bandwidth measurement tool")
2649 "iPerf is a tool to measure achievable bandwidth on IP networks. It
2650 supports tuning of various parameters related to timing, buffers and
2651 protocols (TCP, UDP, SCTP with IPv4 and IPv6). For each test it reports
2652 the bandwidth, loss, and other parameters.")
2653 (home-page "https://software.es.net/iperf/")
2654 (license (list license:bsd-3 ; Main distribution.
2655 license:ncsa ; src/{units,iperf_locale,tcp_window_size}.c
2656 license:expat ; src/{cjson,net}.[ch]
2657 license:public-domain)))) ; src/portable_endian.h
2659 (define-public nethogs
2667 (url "https://github.com/raboof/nethogs")
2668 (commit (string-append "v" version))))
2671 (base32 "10shdwvfj90lp2fxz9260342a1c2n1jbw058qy5pyq5kh3xwr9b8")
2673 (file-name (git-file-name name version))))
2674 (build-system gnu-build-system)
2676 (list libpcap ncurses))
2678 `(#:make-flags `(,,(string-append "CC=" (cc-for-target))
2679 ,(string-append "PREFIX=" %output)
2680 ,(string-append "VERSION=" ,version))
2682 (modify-phases %standard-phases
2683 (delete 'configure)))) ; no ./configure script.
2684 (home-page "https://github.com/raboof/nethogs")
2685 (synopsis "Per-process bandwidth monitor")
2686 (description "NetHogs is a small 'net top' tool for Linux. Instead of
2687 breaking the traffic down per protocol or per subnet, like most tools do, it
2688 groups bandwidth by process.
2690 NetHogs does not rely on a special kernel module to be loaded. If there's
2691 suddenly a lot of network traffic, you can fire up NetHogs and immediately see
2692 which PID is causing this. This makes it easy to identify programs that have
2693 gone wild and are suddenly taking up your bandwidth.")
2694 (license license:gpl2+)))
2696 (define-public nzbget
2703 (uri (string-append "https://github.com/nzbget/nzbget/releases"
2704 "/download/v" version
2705 "/nzbget-" version "-src.tar.gz"))
2707 (base32 "09900x1k0yf4yi2cc0k093advvadyhrkm8rnd8nszhhdp2zc33sf"))))
2711 (string-append "--with-libcurses-includes="
2712 (assoc-ref %build-inputs "ncurses") "/include")
2713 (string-append "--with-libcurses-libraries="
2714 (assoc-ref %build-inputs "ncurses") "/lib")
2715 (string-append "--with-tlslib=GnuTLS"))))
2716 (build-system gnu-build-system)
2717 (inputs (list gnutls libxml2 ncurses zlib))
2718 (native-inputs (list pkg-config))
2719 (home-page "https://github.com/nzbget/nzbget")
2720 (synopsis "Usenet binary file downloader")
2722 "NZBGet is a binary newsgrabber, which downloads files from Usenet based
2723 on information given in @code{nzb} files. NZBGet can be used in standalone
2724 and in server/client modes. In standalone mode, you pass NZBGet @command{nzb}
2725 files as command-line parameters and it downloads them and exits. NZBGet also
2726 contains a Web interface. Its server can be controlled through remote
2727 procedure calls (RPCs).")
2728 (license license:gpl2+)))
2730 (define-public openvswitch
2732 (name "openvswitch")
2737 "https://www.openvswitch.org/releases/openvswitch-"
2741 "1x0k0pw6jykrfgb8rq56bp2ghxd433d55pmr8mxy9gbzw1nc1vbi"))))
2742 (build-system gnu-build-system)
2746 "--disable-static" ; XXX still installs libopenvswitchavx512.a
2747 "--localstatedir=/var"
2748 "--with-dbdir=/var/lib/openvswitch")
2750 (modify-phases %standard-phases
2751 (add-after 'unpack 'use-absolute-/bin/sh
2752 (lambda* (#:key inputs #:allow-other-keys)
2753 (let* ((bash (assoc-ref inputs "bash-minimal")))
2754 (substitute* "ovsdb/ovsdb-server.c"
2755 (("/bin/sh") (string-append bash "/bin/sh"))))))
2756 (add-before 'check 'adjust-tests
2757 (lambda* (#:key inputs #:allow-other-keys)
2758 (let* ((bash (assoc-ref inputs "bash-minimal"))
2759 (/bin/sh (string-append bash "/bin/sh")))
2760 (with-fluids ((%default-port-encoding "ISO-8859-1"))
2761 (substitute* (find-files "tests" ".*(run|testsuite)$")
2763 (string-append "#! " /bin/sh))
2765 ;; The tests use 'kill -0' to check whether a test has
2766 ;; completed, but it does not work in the build container
2767 ;; because zombies are not reaped automatically (PID 1 is
2768 ;; the builder script). Change to something that handles
2769 ;; undead processes.
2773 (call-with-output-file "/tmp/bin/kill-0"
2776 ps --no-header -p $1 -o state= | grep -qv '^Z$'"
2778 (chmod "/tmp/bin/kill-0" #o755)
2780 (string-append "/tmp/bin:" (getenv "PATH"))))))
2784 ;; Don't try to create directories under /var.
2792 ("pkg-config" ,pkg-config)
2793 ("python" ,python-wrapper)
2795 ("bash" ,bash) ;for 'compgen'
2797 ("util-linux" ,util-linux)))
2799 (list bash-minimal libcap-ng openssl))
2800 (synopsis "Virtual network switch")
2801 (home-page "https://www.openvswitch.org/")
2803 "Open vSwitch is a multilayer virtual switch. It is designed to enable
2804 massive network automation through programmatic extension, while still
2805 supporting standard management interfaces and protocols (e.g. NetFlow, sFlow,
2806 IPFIX, RSPAN, CLI, LACP, 802.1ag).")
2807 (license ; see debian/copyright for detail
2808 (list license:lgpl2.1 ; xenserver and utilities/bugtool
2809 license:gpl2 ; datapath
2810 license:bsd-2 license:bsd-3
2811 license:asl2.0)))) ; all other
2813 (define-public python-ipy
2819 (uri (pypi-uri "IPy" version))
2822 "08d6kcacj67mvh0b6y765ipccy6gi4w2ndd4v1l3im2qm1cgcarg"))))
2823 (build-system python-build-system)
2824 (home-page "https://github.com/autocracy/python-ipy/")
2825 (synopsis "Python class and tools for handling IP addresses and networks")
2826 (description "The @code{IP} class allows a comfortable parsing and
2827 handling for most notations in use for IPv4 and IPv6 addresses and
2829 (license license:bsd-3)))
2831 (define-public speedtest-cli
2833 (name "speedtest-cli")
2839 (url "https://github.com/sivel/speedtest-cli")
2840 (commit (string-append "v" version))))
2841 (file-name (git-file-name name version))
2843 (base32 "10fazl4kwf41mk7pnwpfms16n0ii0kg9pf8r3mz9xwnl9y04mv9x"))))
2844 (build-system python-build-system)
2845 (home-page "https://github.com/sivel/speedtest-cli")
2846 (synopsis "Internet bandwidth tester")
2848 "Command line interface for testing internet bandwidth using
2850 (license license:asl2.0)))
2852 (define-public tftp-hpa
2858 (uri (string-append "mirror://kernel.org/software/"
2859 "network/tftp/tftp-hpa/tftp-hpa-" version
2863 "12vidchglhyc20znq5wdsbhi9mqg90jnl7qr9qs8hbvaz4fkdvmg"))))
2864 (build-system gnu-build-system)
2866 (list #:tests? #f ; no test target
2868 #~(list "CFLAGS=-fcommon"))) ; XXX fix 5.2 build with GCC 10
2869 (synopsis "HPA's tftp client")
2871 "This is a tftp client derived from OpenBSD tftp with some extra options
2872 added and bugs fixed. The source includes readline support but it is not
2873 enabled due to license conflicts between the BSD advertising clause and the GPL.")
2874 (home-page "https://git.kernel.org/cgit/network/tftp/tftp-hpa.git/about/")
2875 ;; Some source files are distributed under a 3-clause BSD license, and
2876 ;; others under a 4-clause BSD license. Refer to the files in the source
2877 ;; distribution for clarification.
2878 (license (list license:bsd-3 license:bsd-4))))
2880 (define-public spiped
2886 (uri (string-append "https://www.tarsnap.com/spiped/spiped-"
2890 "04rpnc53whfky7pp2m9h35gwzwn6788pnl6c1qd576mpknbqjw4d"))))
2891 (build-system gnu-build-system)
2893 `(#:test-target "test"
2894 #:make-flags (let* ((out (assoc-ref %outputs "out"))
2895 (bindir (string-append out "/bin"))
2896 (man1dir (string-append out "/share/man/man1")))
2897 (list ,(string-append "CC=" (cc-for-target)) ; It tries to invoke `c99`.
2898 (string-append "BINDIR=" bindir)
2899 (string-append "MAN1DIR=" man1dir)))
2901 (modify-phases %standard-phases
2902 (add-after 'unpack 'patch-command-invocations
2904 (substitute* '("Makefile"
2905 "libcperciva/cpusupport/Build/cpusupport.sh"
2906 "libcperciva/POSIX/posix-cflags.sh"
2907 "libcperciva/POSIX/posix-l.sh")
2908 (("command -p") ""))
2910 (delete 'configure) ; No ./configure script.
2911 (add-after 'install 'install-more-docs
2912 (lambda* (#:key outputs #:allow-other-keys)
2913 (let* ((out (assoc-ref %outputs "out"))
2914 (misc (string-append out "/share/doc/spiped")))
2915 (install-file "DESIGN.md" misc)
2918 (list procps)) ; `ps` is used by the test suite.
2921 (home-page "https://www.tarsnap.com/spiped.html")
2922 (synopsis "Create secure pipes between sockets")
2923 (description "Spiped (pronounced \"ess-pipe-dee\") is a utility for creating
2924 symmetrically encrypted and authenticated pipes between socket addresses, so
2925 that one may connect to one address (e.g., a UNIX socket on localhost) and
2926 transparently have a connection established to another address (e.g., a UNIX
2927 socket on a different system). This is similar to 'ssh -L' functionality, but
2928 does not use SSH and requires a pre-shared symmetric key.")
2929 (license license:bsd-2)))
2931 (define-public quagga
2937 ;; Use archived sources; see <http://issues.guix.gnu.org/47123>.
2938 (uri (string-append "https://fossies.org/linux/misc/"
2939 "quagga-" version ".tar.gz"))
2942 "1lsksqxij5f1llqn86pkygrf5672kvrqn1kvxghi169hqf1c0r73"))
2944 (search-patches "quagga-reproducible-build.patch"))))
2945 (build-system gnu-build-system)
2946 (native-inputs (list pkg-config perl dejagnu))
2947 (inputs (list readline c-ares))
2948 (synopsis "Routing Software Suite")
2949 (description "Quagga is a routing software suite, providing implementations
2950 of OSPFv2, OSPFv3, RIP v1 and v2, RIPng and BGP-4 for Unix platforms.
2952 The Quagga architecture consists of a core daemon, @command{zebra}, which
2953 acts as an abstraction layer to the underlying Unix kernel and presents the
2954 Zserv API over a Unix or TCP stream to Quagga clients. It is these Zserv
2955 clients which typically implement a routing protocol and communicate routing
2956 updates to the zebra daemon.")
2957 (home-page "https://www.nongnu.org/quagga/")
2958 (license license:gpl2+)))
2960 (define-public thc-ipv6
2961 (let ((revision "0")
2962 (commit "4bb72573e0950ce6f8ca2800a10748477020029e"))
2965 (version (git-version "3.4" revision commit))
2969 (url "https://github.com/vanhauser-thc/thc-ipv6")
2971 (file-name (git-file-name name version))
2974 "1x5i6vbsddqc2yks7r1a2fw2fk16qxvd6hpzh1lykjfpkal8fdir"))))
2975 (build-system gnu-build-system)
2977 `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2978 #:tests? #f ; No test suite.
2980 (modify-phases %standard-phases
2981 (add-after 'unpack 'use-source-date-epoch-in-manpages
2982 ;; For reproducible builds
2984 (substitute* "Makefile"
2985 (("date --iso-8601")
2986 "date --iso-8601 --utc --date=@$(SOURCE_DATE_EPOCH)"))))
2987 (delete 'configure) ; No ./configure script.
2988 (add-before 'build 'patch-paths
2990 (substitute* "Makefile"
2991 (("/bin/echo") "echo"))
2993 (add-after 'install 'install-more-docs
2994 (lambda* (#:key outputs #:allow-other-keys)
2995 (let* ((out (assoc-ref outputs "out"))
2996 (doc (string-append out "/share/thc-ipv6/doc")))
2997 (install-file "README" doc)
2998 (install-file "HOWTO-INJECT" doc)
3000 ;; TODO Add libnetfilter-queue once packaged.
3002 (list libpcap openssl perl))
3003 (home-page "https://github.com/vanhauser-thc/thc-ipv6")
3004 (synopsis "IPv6 security research toolkit")
3005 (description "The THC IPv6 Toolkit provides command-line tools and a library
3006 for researching IPv6 implementations and deployments. It requires Linux 2.6 or
3007 newer and only works on Ethernet network interfaces.")
3008 ;; AGPL 3 with exception for linking with OpenSSL. See the 'LICENSE' file in
3009 ;; the source distribution for more information.
3010 (license license:agpl3))))
3019 (uri (string-append "https://github.com/tgraf/bmon/releases/download/v"
3020 version "/bmon-" version ".tar.gz"))
3023 "0ylzriv4pwh76344abzl1w219x188gshbycbna35gsyfp09c7z82"))))
3024 (build-system gnu-build-system)
3026 (list libconfuse libnl ncurses))
3029 (synopsis "Bandwidth monitor")
3030 (description "bmon is a monitoring and debugging tool to capture
3031 networking-related statistics and prepare them visually in a human-friendly
3032 way. It features various output methods including an interactive curses user
3033 interface and a programmable text output for scripting.")
3034 (home-page "https://github.com/tgraf/bmon")
3035 ;; README.md mentions both the 2-clause BSD and expat licenses, but all
3036 ;; the source files only have expat license headers. Upstream has been
3037 ;; contacted for clarification: https://github.com/tgraf/bmon/issues/59
3038 ;; Update the license field when upstream responds.
3039 (license (list license:bsd-2
3042 (define-public libnet
3049 (uri (string-append "https://github.com/libnet/libnet/releases/download"
3050 "/v" version "/libnet-" version ".tar.gz"))
3053 "19ys9vxk6fg70yzzdxsphfr0rwzgxxhr9b3ykhpg7rfray0qd96a"))))
3054 (build-system gnu-build-system)
3057 (modify-phases %standard-phases
3058 (add-before 'build 'build-doc
3059 (lambda* (#:key make-flags #:allow-other-keys)
3060 (apply invoke "make" "-C" "doc" "doc"
3063 (list ;; To build the documentation, Doxygen and Perl is required.
3065 (home-page "https://github.com/libnet/libnet")
3066 (synopsis "Framework for low-level network packet construction")
3068 "Libnet provides a fairly portable framework for network packet
3069 construction and injection. It features portable packet creation interfaces
3070 at the IP layer and link layer, as well as a host of supplementary
3071 functionality. Using libnet, quick and simple packet assembly applications
3072 can be whipped up with little effort.")
3073 (license license:bsd-2)))
3082 (uri (string-append "ftp://ftp.bitwizard.nl/mtr/"
3083 "mtr-" version ".tar.gz"))
3085 (base32 "0haanralbvd12pvkyihgkmx9ld74dnzm1s7mzparfandl416ibff"))))
3086 (build-system gnu-build-system)
3088 (list libcap ncurses))
3090 `(#:tests? #f)) ; tests require network access
3091 (home-page "https://www.bitwizard.nl/mtr/")
3092 (synopsis "Network diagnostic tool")
3094 "@acronym{mtr, My TraceRoute} combines the functionality of the
3095 @command{traceroute} and @command{ping} programs in a single network diagnostic
3096 tool. @command{mtr} can use several network protocols to detect intermediate
3097 routers (or @dfn{hops}) between the local host and a user-specified destination.
3098 It then continually measures the response time and packet loss at each hop, and
3099 displays the results in real time.")
3100 (license license:gpl2+)))
3102 (define-public amule
3109 (url "https://github.com/amule-project/amule")
3111 (file-name (git-file-name name version))
3114 "1nm4vxgmisn1b6l3drmz0q04x067j2i8lw5rnf0acaapwlp8qwvi"))))
3115 (build-system gnu-build-system)
3118 (modify-phases %standard-phases
3119 (delete 'bootstrap) ; bootstrap phase runs too early.
3120 (add-after 'patch-source-shebangs 'autogen
3122 (invoke "sh" "autogen.sh")
3136 "--enable-amule-gui"
3137 "--enable-amule-daemon"
3138 "--enable-webserver"
3139 "--with-denoise-level=0")))
3141 (list autoconf automake gettext-minimal perl))
3143 (list zlib crypto++ libpng wxwidgets-gtk2))
3144 (home-page "https://amule.org/")
3145 (synopsis "Peer-to-peer client for the eD2K and Kademlia networks")
3147 "aMule is an eMule-like client for the eD2k and Kademlia peer-to-peer
3148 file sharing networks. It includes a graphical user interface (GUI), a daemon
3149 allowing you to run a client with no graphical interface, and a Web GUI for
3150 remote access. The @command{amulecmd} command allows you to control aMule
3152 (license license:gpl2+)))
3161 (string-append "https://github.com/zeromq/zyre/releases/download/v"
3162 version "/" name "-" version ".tar.gz"))
3165 "13596507ma1474cjqzxym5jlvcshvw7sjhw80rdz788gyz6kz90b"))))
3166 (build-system gnu-build-system)
3167 (inputs (list zeromq czmq libsodium))
3168 (synopsis "Framework for proximity-based peer-to-peer applications")
3169 (description "Zyre provides reliable group messaging over local area
3170 networks using zeromq. It has these key characteristics:
3173 @item Zyre needs no administration or configuration.
3174 @item Peers may join and leave the network at any time.
3175 @item Peers talk to each other without any central brokers or servers.
3176 @item Peers can talk directly to each other.
3177 @item Peers can join groups, and then talk to groups.
3178 @item Zyre is reliable, and loses no messages even when the network is heavily loaded.
3179 @item Zyre is fast and has low latency, requiring no consensus protocols.
3180 @item Zyre is designed for WiFi networks, yet also works well on Ethernet networks.
3182 (home-page "https://github.com/zeromq/zyre")
3183 (license license:mpl2.0)))
3185 (define-public libsocketcan
3187 (name "libsocketcan")
3192 (url "https://git.pengutronix.de/cgit/tools/libsocketcan")
3193 (commit (string-append "v" version))))
3194 (file-name (git-file-name name version))
3197 "0nrav2yqxgb7jwnhrwirnxs9ycqqh90sqgv5a8lns837jf385jvq"))))
3198 (build-system gnu-build-system)
3201 #~(modify-phases %standard-phases
3202 ;; Upstream already puts (more) files in share/doc/libsocketcan.
3203 (delete 'install-license-files))))
3205 (list autoconf automake libtool))
3206 (home-page "https://git.pengutronix.de/cgit/tools/libsocketcan")
3207 (synopsis "SocketCAN user-space library")
3208 (description "This library allows controlling basic functions in SocketCAN
3209 from user-space. It requires a kernel built with SocketCAN support.")
3210 (license license:lgpl2.1+)))
3212 (define-public can-utils
3215 (version "2020.02.04")
3219 (url "https://github.com/linux-can/can-utils")
3220 (commit (string-append "v" version))))
3221 (file-name (git-file-name name version))
3224 "1a3j1mmnb7pvgc8r7zzp6sdp7903in2hna6bmpraxln7cwlzn4l6"))))
3225 (build-system gnu-build-system)
3227 `(#:tests? #f ; No tests exist.
3228 #:make-flags (list ,(string-append "CC=" (cc-for-target))
3229 (string-append "PREFIX="
3230 (assoc-ref %outputs "out")))
3232 (modify-phases %standard-phases
3234 (delete 'configure))))
3235 (home-page "https://github.com/linux-can/can-utils")
3236 (synopsis "CAN utilities")
3237 (description "This package provides CAN utilities in the following areas:
3240 @item Basic tools to display, record, generate and replay CAN traffic
3241 @item CAN access via IP sockets
3242 @item CAN in-kernel gateway configuration
3243 @item CAN bus measurement and testing
3244 @item ISO-TP (ISO15765-2:2016 - this means messages with a body larger than
3246 @item Log file converters
3247 @item Serial Line Discipline configuration for slcan driver
3249 ;; Either BSD-3 or GPL-2 can be used.
3250 (license (list license:bsd-3 license:gpl2))))
3259 (uri (string-append "mirror://sourceforge/asio/asio/"
3260 version " (Stable)/asio-" version ".tar.bz2"))
3262 (base32 "0v5w9j4a02j2rkc7mrdj3ms0kfpqbgq2ipkixlz2l0p8xs0vfsvp"))))
3263 (build-system gnu-build-system)
3265 (list boost openssl))
3269 (string-append "--with-boost=" (assoc-ref %build-inputs "boost"))
3270 (string-append "--with-openssl=" (assoc-ref %build-inputs "openssl")))))
3271 (home-page "https://think-async.com/Asio")
3272 (synopsis "C++ library for ASynchronous network I/O")
3273 (description "Asio is a cross-platform C++ library for network and
3274 low-level I/O programming that provides developers with a consistent
3275 asynchronous model using a modern C++ approach.")
3276 (license license:boost1.0)))
3278 (define-public shadowsocks
3280 (name "shadowsocks")
3286 (url "https://github.com/shadowsocks/shadowsocks")
3289 (base32 "02mp5905nz02d7amb4zc77rcrkxmvy8mf5rci7mvy58g24lvbw25"))
3290 (file-name (git-file-name name version))))
3295 (modify-phases %standard-phases
3296 (add-after 'unpack 'patch-crypto-paths
3297 (lambda* (#:key inputs #:allow-other-keys)
3298 (substitute* "shadowsocks/shell.py"
3299 (("config\\.get\\('libopenssl', None\\)")
3300 (format #f "config.get('libopenssl', ~s)"
3302 (assoc-ref inputs "openssl")
3303 "/lib/libssl.so")))))))))
3304 (build-system python-build-system)
3305 (home-page "https://github.com/shadowsocks/shadowsocks")
3306 (synopsis "Fast tunnel proxy that helps you bypass firewalls")
3308 "This package is a fast tunnel proxy that helps you bypass firewalls.
3312 @item TCP & UDP support
3313 @item User management API
3315 @item Workers and graceful restart
3316 @item Destination IP blacklist
3318 (license license:asl2.0)))
3320 (define-public net-snmp
3326 (uri (string-append "mirror://sourceforge/net-snmp/net-snmp/"
3327 version "/net-snmp-" version ".tar.gz"))
3330 "02pgl89s8qll5zhdp61rbn6vpl084gx55bjb1cqg3wqvgsdz55r0"))
3331 (modules '((guix build utils)))
3334 ;; Drop bundled libraries.
3335 (delete-file-recursively "snmplib/openssl")))))
3336 (build-system gnu-build-system)
3338 `(#:test-target "test"
3339 ;; XXX: With parallel build enabled, Perl modules may not get linked with
3340 ;; libnetsnmp. See e.g. <https://bugzilla.novell.com/show_bug.cgi?id=819497>.
3341 #:parallel-build? #f
3343 (list (string-append "LDFLAGS=-Wl,-rpath="
3344 (assoc-ref %outputs "out")
3347 "--with-logfile=/var/log/snmpd.log"
3348 (string-append "--with-openssl="
3349 (assoc-ref %build-inputs "openssl")))
3351 (modify-phases %standard-phases
3352 (add-after 'unpack 'patch-tests
3353 (lambda* (#:key inputs #:allow-other-keys)
3354 (substitute* "testing/fulltests/support/simple_TESTCONF.sh"
3356 (string-append "NETSTAT=\"" (which "netstat") "\"")))
3357 (substitute* '("testing/fulltests/default/T065agentextend_simple"
3358 "testing/fulltests/default/T115agentxperl_simple")
3359 (("/usr/bin/env") (which "env")))
3360 (substitute* "testing/fulltests/default/T065agentextend_sh_simple"
3361 (("/bin/sh") (which "sh")))
3362 ;; These tests require network access.
3363 (for-each delete-file
3364 '("testing/fulltests/default/T070com2sec_simple"
3365 "testing/fulltests/default/T071com2sec6_simple"))))
3366 (add-after 'unpack 'patch-Makefile.PL
3367 (lambda* (#:key outputs #:allow-other-keys)
3368 (substitute* "Makefile.in"
3369 (("Makefile.PL -NET")
3370 (string-append "Makefile.PL PREFIX="
3371 (assoc-ref outputs "out")
3372 " INSTALLDIRS=site" " NO_PERLLOCAL=1"
3375 (list libnl ncurses ; for the ‘apps’
3380 net-tools coreutils grep))
3381 (home-page "http://www.net-snmp.org/")
3382 (synopsis "Simple Network Management Protocol library and tools")
3383 (description "The @dfn{Simple Network Management Protocol} (SNMP) is a
3384 widely used protocol for monitoring the health and welfare of network
3385 equipment (e.g. routers), computer equipment and even devices like UPSs.
3386 Net-SNMP is a suite of applications used to implement SNMP v1, SNMP v2c and
3387 SNMP v3 using both IPv4 and IPv6.")
3388 ;; This only affects OpenBSD
3389 ;; https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-8100
3390 (properties `((lint-hidden-cve . ("CVE-2015-8100"))))
3391 (license (list license:bsd-3
3392 (license:non-copyleft
3393 "http://www.net-snmp.org/about/license.html"
3394 "CMU/UCD copyright notice")))))
3396 (define-public ubridge
3404 (url "https://github.com/GNS3/ubridge")
3405 (commit (string-append "v" version))))
3406 (file-name (git-file-name name version))
3408 (base32 "0jg66jhhpv4c9340fsdp64hf9h253i8r81fknxa0gq241ripp3jn"))))
3409 (build-system gnu-build-system)
3411 `(#:tests? #f ; no tests
3413 (list ,(string-append "CC=" (cc-for-target)))
3415 (modify-phases %standard-phases
3416 (delete 'configure) ; no configure script
3417 (add-before 'install 'set-bindir
3418 (lambda* (#:key inputs outputs #:allow-other-keys)
3419 (let ((bin (string-append (assoc-ref outputs "out")
3422 (substitute* "Makefile"
3423 (("\\$\\(BINDIR\\)") bin)
3424 (("\tsetcap cap_net.*$") "")))
3428 (home-page "https://github.com/GNS3/ubridge/")
3429 (synopsis "Bridge for UDP tunnels, Ethernet, TAP and VMnet interfaces")
3430 (description "uBridge is a simple program to create user-land bridges
3431 between various technologies. Currently, bridging between UDP tunnels,
3432 Ethernet and TAP interfaces is supported. Packet capture is also supported.")
3433 (license license:gpl3+)))
3435 (define-public hcxtools
3443 (url "https://github.com/ZerBea/hcxtools")
3446 (base32 "0460dxbc04w60l3g06rk007yyb6qprgyii59y2zdki0vy7q63m8b"))
3447 (file-name (git-file-name name version))))
3448 (build-system gnu-build-system)
3449 (native-inputs (list pkg-config))
3450 (inputs (list curl libpcap openssl zlib))
3453 #~(list (string-append "CC="
3454 #$(cc-for-target)) "LDFLAGS+=-lcrypto"
3455 "LDFLAGS+=-lcurl" "LDFLAGS+=-lz"
3456 (string-append "PREFIX="
3458 #:tests? #f ;no test suite
3460 #~(modify-phases %standard-phases
3461 (delete 'configure))))
3462 (home-page "https://github.com/ZerBea/hcxtools")
3463 (synopsis "Capture wlan traffic to hashcat and John the Ripper")
3465 "This package contains a small set of tools to capture and convert
3466 packets from wireless devices for use with hashcat or John the Ripper.")
3467 (license license:expat)))
3469 (define-public hcxdumptool
3471 (name "hcxdumptool")
3477 (url "https://github.com/ZerBea/hcxdumptool")
3480 (base32 "1b4d543y64ib92w9gcmiyjn5hz2vyjqmxk3f3yr1zk04fhw16gmf"))
3481 (file-name (git-file-name name version))))
3482 (build-system gnu-build-system)
3485 (list ,(string-append "CC=" (cc-for-target))
3486 (string-append "INSTALLDIR=" (assoc-ref %outputs "out") "/bin"))
3487 #:tests? #f ; no test suite
3489 (modify-phases %standard-phases
3490 (delete 'configure))))
3493 (home-page "https://github.com/ZerBea/hcxdumptool")
3494 (synopsis "Small tool to capture packets from wlan devices")
3496 "Small tool to capture packets from WLAN devices. After capturing,
3497 upload the \"uncleaned\" cap to @url{https://wpa-sec.stanev.org/?submit} to
3498 see if the access point or the client is vulnerable to a dictionary attack.
3499 Convert the cap file to hccapx format and/or to WPA-PMKID-PBKDF2
3500 hashline (16800) with @command{hcxpcaptool} from the @code{hcxtools} package
3501 and check if the WLAN key or the master key was transmitted unencrypted.")
3502 (license license:expat)))
3504 (define-public dante
3511 (uri (string-append "https://www.inet.no/dante/files/dante-"
3514 (base32 "0pbahkj43rx7rmv2x40mf5p3g3x9d6i2sz7pzglarf54w5ghd2j1"))))
3515 (build-system gnu-build-system)
3517 ;; XXX: The dynamic socks library doesn't work with 'libc.so' (GNU ld
3518 ;; script). When preloading is enabled, 'sockd' failed with:
3519 ;; … Failed to open library "libc.so": …: invalid ELF header
3520 '(#:configure-flags '("--disable-preload")))
3521 (home-page "https://www.inet.no/dante/")
3522 (synopsis "SOCKS server and client")
3523 (description "Dante is a SOCKS client and server implementation. It can
3524 be installed on a machine with access to an external TCP/IP network and will
3525 allow all other machines, without direct access to that network, to be relayed
3526 through the machine the Dante server is running on. The external network will
3527 never see any machines other than the one Dante is running on.")
3528 (license (license:non-copyleft "file://LICENSE"))))
3530 (define-public restbed
3538 (url "https://github.com/Corvusoft/restbed/")
3540 (file-name (git-file-name name version))
3542 (base32 "15j09x36i6zj6innl0w1mfzlc56qmjwrs82my8dsagqa2ikd08ya"))))
3543 (build-system cmake-build-system)
3545 (list asio catch-framework openssl))
3550 (modify-phases %standard-phases
3551 (add-after 'unpack 'apply-patches-and-fix-paths
3552 (lambda* (#:key inputs #:allow-other-keys)
3553 (let ((asio (assoc-ref inputs "asio"))
3554 (catch (assoc-ref inputs "catch"))
3555 (openssl (assoc-ref inputs "openssl")))
3556 (substitute* "cmake/Findasio.cmake"
3557 (("(find_path\\( asio_INCLUDE asio\\.hpp HINTS ).*$" all begin)
3558 (string-append begin " \"" asio "/include\" )")))
3559 (substitute* "cmake/Findcatch.cmake"
3560 (("(find_path\\( catch_INCLUDE catch\\.hpp HINTS ).*$" all begin)
3561 (string-append begin " \"" catch "/include\" )")))
3562 (substitute* "cmake/Findopenssl.cmake"
3563 (("(find_library\\( ssl_LIBRARY ssl ssleay32 HINTS ).*$" all begin)
3564 (string-append begin " \"" openssl "/lib\" )"))
3565 (("(find_library\\( crypto_LIBRARY crypto libeay32 HINTS ).*$" all begin)
3566 (string-append begin " \"" openssl "/lib\" )"))
3567 (("(find_path\\( ssl_INCLUDE openssl/ssl\\.h HINTS ).*$" all begin)
3568 (string-append begin " \"" openssl "/include\" )")))))))))
3569 (synopsis "Asynchronous RESTful functionality to C++11 applications")
3570 (description "Restbed is a comprehensive and consistent programming
3571 model for building applications that require seamless and secure
3572 communication over HTTP.")
3573 (home-page "https://github.com/Corvusoft/restbed")
3574 (license license:agpl3+)))
3576 (define-public restinio
3583 (url "https://github.com/Stiffstream/restinio")
3584 (commit (string-append "v." version))))
3585 (file-name (git-file-name name version))
3588 "1f8d5nfm8jqhspzsslwb1b7j4glipz31i9vszrcnkx3clc39nj2n"))))
3589 (build-system cmake-build-system)
3590 (inputs ; TODO: Need to force-keep references on some inputs, e.g. boost.
3599 (list asio fmt http-parser))
3601 `(#:configure-flags '("-DRESTINIO_INSTALL=on")
3602 #:tests? #f ; TODO: The tests are called from the root CMakelist, need RESTINIO_TEST=on.
3604 (modify-phases %standard-phases
3605 (add-after 'unpack 'change-directory
3607 (chdir "dev/restinio"))))))
3608 (home-page "https://stiffstream.com/en/products/restinio.html")
3609 (synopsis "C++14 library that gives you an embedded HTTP/Websocket server")
3610 (description "RESTinio is a header-only C++14 library that gives you an embedded
3611 HTTP/Websocket server. It is based on standalone version of ASIO
3612 and targeted primarily for asynchronous processing of HTTP-requests.")
3613 (license license:bsd-3)))
3615 (define-public opendht
3622 (url "https://github.com/savoirfairelinux/opendht")
3623 (commit (string-append "v" version))))
3624 (file-name (git-file-name name version))
3627 "150yxlhn8ykhck7gr1i2bppbqpfyhk0cscn5z7vyn94y5fnqkxsb"))))
3628 (outputs '("out" "tools" "debug"))
3629 (build-system gnu-build-system)
3632 #:imported-modules `((guix build python-build-system) ;for site-packages
3633 ,@%gnu-build-system-modules)
3634 #:modules '(((guix build python-build-system) #:prefix python:)
3635 (guix build gnu-build-system)
3638 #~(list "--enable-tests"
3639 "--enable-proxy-server"
3640 "--enable-push-notifications"
3641 "--enable-proxy-server-identity"
3642 "--enable-proxy-client")
3644 #~(modify-phases %standard-phases
3645 (add-after 'unpack 'disable-problematic-tests
3647 ;; The dhtrunnertester test suite includes 'testListen', which
3648 ;; is sensitive to the performance/load of the machine it runs
3649 ;; on, introducing nondeterminism (see:
3650 ;; https://github.com/savoirfairelinux/opendht/issues/626).
3651 (substitute* "tests/Makefile.am"
3652 (("\\bdhtrunnertester\\.(h|cpp)\\b")
3654 (add-after 'unpack 'fix-python-installation-prefix
3655 ;; Specify the installation prefix for the compiled Python module
3656 ;; that would otherwise attempt to installs itself to Python's own
3657 ;; site-packages directory.
3659 (substitute* "python/Makefile.am"
3660 (("--root=\\$\\(DESTDIR)/")
3661 (string-append "--root=/ --single-version-externally-managed "
3662 "--prefix=" #$output)))))
3663 (add-after 'unpack 'specify-runpath-for-python-module
3665 (substitute* "python/setup.py.in"
3666 (("extra_link_args=\\[(.*)\\]" _ args)
3667 (string-append "extra_link_args=[" args
3668 ", '-Wl,-rpath=" #$output "/lib']")))))
3670 (lambda* (#:key tests? #:allow-other-keys)
3672 (invoke "tests/opendht_unit_tests"))))
3673 (add-after 'install 'move-and-wrap-tools
3674 (lambda* (#:key inputs outputs #:allow-other-keys)
3675 (let* ((tools (assoc-ref outputs "tools"))
3676 (dhtcluster (string-append tools "/bin/dhtcluster"))
3677 (site-packages (python:site-packages inputs outputs)))
3679 (rename-file (string-append #$output "/bin")
3680 (string-append tools "/bin"))
3681 ;; TODO: Contribute a patch to python/Makefile.am to
3683 (copy-file "python/tools/dhtcluster.py" dhtcluster)
3684 (chmod dhtcluster #o555)
3685 (wrap-program dhtcluster
3686 `("GUIX_PYTHONPATH" prefix (,site-packages)))))))))
3687 (inputs (list bash-minimal fmt readline))
3689 (list msgpack ;included in several installed headers
3690 restinio ;included in opendht/http.h
3691 ;; The following are listed in the 'Requires.private' field of
3697 openssl)) ;required for the DHT proxy
3706 (home-page "https://github.com/savoirfairelinux/opendht/")
3707 (synopsis "Lightweight Distributed Hash Table (DHT) library")
3708 (description "OpenDHT provides an easy to use distributed in-memory data
3709 store. Every node in the network can read and write values to the store.
3710 Values are distributed over the network, with redundancy. It includes the
3713 @item Lightweight and scalable, designed for large networks and small devices;
3714 @item High resilience to network disruption;
3715 @item Public key cryptography layer providing optional data signature and
3716 encryption (using GnuTLS);
3717 @item IPv4 and IPv6 support;
3718 @item Clean and powerful C++14 map API;
3719 @item Bindings for C, Rust & Python 3;
3720 @item REST API with an optional HTTP client and server with push notification
3723 The following tools are also included:
3726 A command line tool to run a DHT node and perform operations supported by the
3727 library (get, put, etc.) with text values.
3729 A very simple IM client working over the DHT.
3731 (license license:gpl3+)))
3733 (define-public frrouting
3739 (uri (string-append "https://github.com/FRRouting/frr/releases/"
3740 "download/frr-" version "/frr-" version
3744 "1r7gh5h27ii7d1d0z0x48wx7hs8vvympv3gqvy3cwzg05q5vk9xs"))))
3745 (build-system gnu-build-system)
3747 (list c-ares json-c libcap libyang readline))
3749 (list perl pkg-config python-wrapper python-pytest))
3750 (home-page "https://frrouting.org/")
3751 (synopsis "IP routing protocol suite")
3752 (description "FRRouting (FRR) is an IP routing protocol suite which includes
3753 protocol daemons for BGP, IS-IS, LDP, OSPF, PIM, and RIP.")
3754 (license license:gpl2+)))
3762 (uri (string-append "ftp://bird.network.cz/pub/bird/bird-"
3766 "0npx3zgbjnhm4905zmj2qkz3d13s8hakassq6sbzm1ywv3fl3lvy"))))
3768 (list libssh readline))
3772 `(#:configure-flags '("--localstatedir=/var" "--enable-ipv6")
3774 (modify-phases %standard-phases
3775 (add-before 'configure 'dont-create-sysconfdir
3776 (lambda* (#:key outputs #:allow-other-keys)
3777 (substitute* "Makefile.in"
3778 ((" \\$\\(DESTDIR)/\\$\\(runstatedir)") "")))))))
3779 (build-system gnu-build-system)
3780 (home-page "http://bird.network.cz")
3781 (synopsis "Internet Routing Daemon")
3782 (description "BIRD is an Internet routing daemon with full support for all
3783 the major routing protocols. It allows redistribution between protocols with a
3784 powerful route filtering syntax and an easy-to-use configuration interface.")
3785 (license license:gpl2+)))
3794 (url "https://git.kernel.org/pub/scm/network/wireless/iwd.git")
3796 (file-name (git-file-name name version))
3799 "1sdi7008j5jhlg2rqpczh1pzb8zay6mc9dpnjjsmdnsmrcr3v7wi"))))
3800 (build-system gnu-build-system)
3802 (list dbus ell (package-source ell) readline))
3813 ,#~(list "--disable-systemd-service"
3814 "--enable-external-ell"
3818 "--localstatedir=/var"
3819 (string-append "--with-dbus-datadir=" #$output "/share/")
3820 (string-append "--with-dbus-busdir="
3821 #$output "/share/dbus-1/system-services"))
3823 (modify-phases %standard-phases
3824 (add-after 'unpack 'copy-ell-header-files
3825 ;; Copy into the source tree two of ell's private header files that
3826 ;; it shares with iwd, as is required to build with the
3827 ;; "--enable-external-ell" configure option.
3828 ;; See the definition of "ell_shared" in iwd's Makefile.am.
3829 (lambda* (#:key inputs #:allow-other-keys)
3830 (let ((ell-header-dir (search-input-directory inputs "/ell"))
3835 (copy-file (string-append ell-header-dir "/" file-name)
3836 (string-append target-dir "/" file-name)))
3837 '("asn1-private.h" "useful.h")))))
3838 (add-after 'configure 'patch-Makefile
3840 (substitute* "Makefile"
3841 ;; Don't try to 'mkdir /var'.
3842 (("\\$\\(MKDIR_P\\) -m 700") "true")))))))
3843 (home-page "https://git.kernel.org/pub/scm/network/wireless/iwd.git/")
3844 (synopsis "Internet Wireless Daemon")
3845 (description "iwd is a wireless daemon for Linux that aims to replace WPA
3846 Supplicant. It optimizes resource utilization by not depending on any external
3847 libraries and instead utilizing features provided by the Linux kernel to the
3848 maximum extent possible.")
3849 (license license:lgpl2.1+)))
3851 (define-public libyang
3858 (url "https://github.com/CESNET/libyang")
3859 (commit (string-append "v" version))))
3860 (file-name (git-file-name name version))
3863 "0mrs2ppmq77z8sbqgm2w0rl9bfgybd6bcxanakfww4chih6cy0dw"))))
3864 (build-system cmake-build-system)
3867 (list "-DENABLE_BUILD_TESTS=ON" "-DENABLE_LYD_PRIV=ON")))
3868 (propagated-inputs (list pcre))
3869 (native-inputs (list cmocka pkg-config))
3870 (home-page "https://github.com/CESNET/libyang")
3871 (synopsis "YANG data modelling language library")
3872 (description "libyang is a YANG data modelling language parser and toolkit
3873 written (and providing API) in C. Current implementation covers YANG 1.0 (RFC
3874 6020) as well as YANG 1.1 (RFC 7950).")
3875 (license license:bsd-3)))
3877 (define-public batctl
3884 (uri (string-append "https://downloads.open-mesh.org/batman/releases/batman-adv-"
3885 version "/batctl-" version ".tar.gz"))
3887 (base32 "1ryqz90av2p5pgmmpi1afmycd18zhpwz1i4f7r0s359jis86xndn"))))
3892 (build-system gnu-build-system)
3895 ;; Batctl only has a makefile. Thus we disable tests and
3896 ;; configuration, passing in a few make-flags.
3897 #:phases (modify-phases %standard-phases (delete 'configure))
3899 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3900 (string-append "PKG_CONFIG="
3901 (search-input-file %build-inputs
3903 ,(string-append "CC=" (cc-for-target)))))
3904 (home-page "https://www.open-mesh.org/projects/batman-adv/wiki/Wiki")
3905 (synopsis "Management tool for the mesh networking BATMAN protocol")
3906 (description "This package provides a control tool for the
3907 B.A.T.M.A.N. mesh networking routing protocol provided by the Linux kernel
3908 module @code{batman-adv}, for Layer 2.")
3909 (license license:gpl2+)))
3911 (define-public pagekite
3914 (version "1.5.2.200725")
3919 (url "https://github.com/pagekite/PyPagekite")
3920 (commit (string-append "v" version))))
3921 (file-name (git-file-name name version))
3923 (base32 "0lig1i42bn9isw848vnml5qhcaa04x1dr2hb075bm0a3439kv3rr"))))
3924 (build-system python-build-system)
3927 (modify-phases %standard-phases
3928 (add-after 'install 'install-man-page
3929 (lambda* (#:key inputs outputs #:allow-other-keys)
3930 (let* ((out (assoc-ref outputs "out"))
3931 (man (string-append out "/share/man")))
3932 (invoke "make" "doc/pagekite.1")
3933 (install-file "doc/pagekite.1" (string-append man "/man1"))))))))
3935 (list python-six python-socksipychain))
3936 (home-page "https://pagekite.net/")
3937 (synopsis "Make localhost servers publicly visible")
3939 "PageKite implements a tunneled reverse proxy which makes it easy to make
3940 a service (such as an HTTP or SSH server) on localhost visible to the wider
3941 Internet, even behind NAT or restrictive firewalls. A managed front-end relay
3942 service is available at @url{https://pagekite.net/}, or you can run your own.")
3943 (license license:agpl3+)))
3945 (define-public ipcalc
3953 ;; This is the IPv6-capable continuation of the unmaintained
3954 ;; <https://jodies.de/ipcalc-archive/>.
3955 (url "https://github.com/kjokjo/ipcalc")
3957 (file-name (git-file-name name version))
3959 (base32 "0cnygb69vjmp3by75jcd2z4y3ybp1s7x4nl3d32xa49h8lkhdbfv"))))
3960 (inputs `(("perl" ,perl)))
3961 (build-system trivial-build-system) ;no Makefile.PL
3963 `(#:modules ((guix build utils))
3966 (use-modules (guix build utils))
3967 (use-modules (srfi srfi-1))
3968 (let* ((source (assoc-ref %build-inputs "source"))
3969 (perl (string-append (assoc-ref %build-inputs "perl")
3971 (out (assoc-ref %outputs "out"))
3972 (bin (string-append out "/bin"))
3973 (doc (string-append out "/share/doc/ipcalc")))
3974 (copy-recursively source "source")
3977 (install-file "ipcalc" bin)
3978 (patch-shebang (string-append bin "/ipcalc") (list perl))))))
3979 (synopsis "Simple IP network calculator")
3980 (description "ipcalc takes an IP address and netmask and calculates the
3981 resulting broadcast, network, Cisco wildcard mask, and host range. By giving
3982 a second netmask, you can design subnets and supernets. It is also intended
3983 to be a teaching tool and presents the subnetting results as
3984 easy-to-understand binary values.")
3985 (home-page "https://github.com/kjokjo/ipcalc")
3986 (license license:gpl2+)))
3988 (define-public tunctl
3995 (uri (string-append "mirror://sourceforge/tunctl/tunctl/" version "/"
3996 "tunctl-" version ".tar.gz"))
3998 (base32 "1zsgn7w6l2zh2q0j6qaw8wsx981qcr536qlz1lgb3b5zqr66qama"))))
3999 (build-system gnu-build-system)
4002 (modify-phases %standard-phases
4003 (delete 'bootstrap) ;there is no configure.ac file
4004 (delete 'configure) ;there is no configure script
4005 (delete 'check) ;there are no tests
4009 (invoke "make" "tunctl")))
4010 ;; TODO: Requires docbook2x to generate man page from SGML.
4012 (lambda* (#:key outputs #:allow-other-keys)
4013 (let* ((out (assoc-ref outputs "out"))
4014 (bin (string-append out "/bin")))
4015 (install-file "tunctl" bin))
4017 (home-page "http://tunctl.sourceforge.net")
4018 (synopsis "Utility to set up and maintain TUN/TAP network interfaces")
4019 (description "Tunctl is used to set up and maintain persistent TUN/TAP
4020 network interfaces, enabling user applications to simulate network traffic.
4021 Such interfaces are useful for VPN software, virtualization, emulation,
4022 simulation, and a number of other applications.")
4023 (license license:gpl2)))
4032 (uri (string-append "mirror://sourceforge/wake-on-lan/wol/"
4033 version "/wol-" version ".tar.gz"))
4035 (base32 "08i6l5lr14mh4n3qbmx6kyx7vjqvzdnh3j9yfvgjppqik2dnq270"))))
4036 (build-system gnu-build-system)
4037 (home-page "https://sourceforge.net/projects/wake-on-lan/")
4038 (synopsis "Implements Wake On LAN functionality in a small program")
4039 (description "Tool to send a magic packet to wake another host on the
4040 network. This must be enabled on the target host, usually in the BIOS.")
4041 (license license:gpl2)))
4043 (define-public traceroute
4050 (uri (string-append "mirror://sourceforge/traceroute/traceroute/"
4051 "traceroute-" version "/traceroute-"
4054 (base32 "1dh32vcfawkl1p9g4ral1p0camds4paqr8db1kaqxwyk6hmd4s9n"))))
4055 (build-system gnu-build-system)
4057 `(#:tests? #f ;no test suite
4059 (list (string-append "LIBRARY_PATH="
4060 (assoc-ref %build-inputs "libc") "/lib")
4061 (string-append "CFLAGS=-I"
4062 (assoc-ref %build-inputs "kernel-headers")
4064 "LDFLAGS=-lm -L../libsupp"
4065 (string-append "prefix=" (assoc-ref %outputs "out")))
4067 (modify-phases %standard-phases
4068 (add-after 'unpack 'patch-make
4070 (substitute* "default.rules"
4071 ((" \\$\\(LIBDEPS\\)") "$(filter-out -l%,$(LIBDEPS))"))))
4072 (delete 'bootstrap) ;no configure.ac file
4073 (delete 'configure)))) ;no configure script
4074 (home-page "http://traceroute.sourceforge.net/")
4075 (synopsis "Tracks the route taken by packets over an IP network")
4076 (description "This package provides a modern, but Linux-specific
4077 implementation of the @command{traceroute} command that can be used to follow
4078 the route taken by packets on an IP network on their way to a given host. It
4079 utilizes the IP protocol's time to live (TTL) field and attempts to elicit an
4080 ICMP TIME_EXCEEDED response from each gateway along the path to the host.
4081 Compared to other implementations, this @command{traceroute} command allows
4082 some traces for unprivileged users.")
4083 (license (list license:gpl2+
4084 license:lgpl2.1+)))) ;for the libsupp subdirectory
4087 (let ((commit "8c65ebc464b2f986d5f1f4e6ae829ef4480c9d5a")
4091 (version (git-version "2.3.2" revision commit))
4096 (url "https://github.com/virtualsquare/vde-2")
4098 (file-name (git-file-name name version))
4100 (base32 "0l5xf71sv9zm5zw0wg8xgip58c0wh8zck2bazyc2a8gb67gc3s8y"))))
4101 (build-system gnu-build-system)
4103 `(#:parallel-build? #f)) ; Build fails if #t.
4105 (list autoconf automake libtool))
4107 (list python libpcap wolfssl))
4108 (home-page "https://github.com/virtualsquare/vde-2")
4109 (synopsis "Virtual Distributed Ethernet")
4110 (description "VDE is a set of programs to provide virtual software-defined
4111 Ethernet network interface controllers across multiple virtual or
4112 physical, local or remote devices. The VDE architecture provides
4113 virtual counterparts to hardware components such as switches and
4115 (license (list license:gpl2
4116 license:lgpl2.1 ; libvdeplug
4117 (license:non-copyleft ; slirpvde
4118 "file://COPYING.slirpvde"
4119 "See COPYING.slirpvde in the distribution."))))))
4121 (define-public haproxy
4127 (uri (string-append "https://www.haproxy.org/download/"
4128 (version-major+minor version)
4129 "/src/haproxy-" version ".tar.gz"))
4132 "0fd3c1znid5a9w3gcf77b85hm2a2558w9s02c4b7xzkmivqnqbir"))))
4133 (build-system gnu-build-system)
4136 (let* ((out (assoc-ref %outputs "out")))
4137 (list (string-append "PREFIX=" out)
4138 (string-append "DOCDIR=" out "/share/" ,name)
4139 "TARGET=linux-glibc"
4144 #:tests? #f ; there are only regression tests, using varnishtest
4146 (modify-phases %standard-phases
4147 (delete 'configure))))
4149 (list lua openssl pcre2 zlib))
4150 (home-page "https://www.haproxy.org/")
4151 (synopsis "Reliable, high performance TCP/HTTP load balancer")
4152 (description "HAProxy offers @acronym{HA, high availability}, load
4153 balancing, and proxying for TCP and HTTP-based applications. It is particularly
4154 suited to Web sites crawling under very high loads while needing persistence or
4155 Layer 7 processing. Supporting tens of thousands of connections is clearly
4156 realistic with today's hardware.")
4157 (license (list license:gpl2+
4159 license:lgpl2.1+))))
4161 (define-public lldpd
4168 (uri (string-append "https://media.luffy.cx/files/lldpd/lldpd-"
4171 (base32 "1s0j5p0mjh1pda1aq5wm4hd41fh1m864jgbs82y5sshi9whijj57"))
4172 (modules '((guix build utils)))
4175 ;; Drop bundled library.
4176 (delete-file-recursively "libevent")))))
4178 (list #:configure-flags
4180 "--with-privsep-user=nobody"
4181 "--with-privsep-group=nogroup"
4182 "--localstatedir=/var"
4185 "--without-embedded-libevent"
4186 (string-append "--with-systemdsystemunitdir="
4187 #$output "/lib/systemd/system"))))
4188 (build-system gnu-build-system)
4190 (list libevent libxml2 openssl readline))
4193 (home-page "https://vincentbernat.github.io/lldpd/")
4194 (synopsis "Locate neighbors of your network equipment")
4196 "The @dfn{Link Layer Discovery Protocol} (LLDP) is an industry standard
4197 protocol designed to supplant proprietary Link-Layer protocols such as EDP or
4198 CDP. The goal of LLDP is to provide an inter-vendor compatible mechanism to
4199 deliver Link-Layer notifications to adjacent network devices. @code{lldpd} is
4200 an implementation of LLDP. It also supports some proprietary protocols.")
4201 (license license:isc)))
4203 (define-public hashcash
4210 (uri (string-append "http://www.hashcash.org/source/hashcash-"
4214 "15kqaimwb2y8wvzpn73021bvay9mz1gqqfc40gk4hj6f84nz34h1"))))
4215 (build-system gnu-build-system)
4217 `(#:make-flags (list (string-append "CC=" ,(cc-for-target)))
4219 (modify-phases %standard-phases
4221 ;; No tests available.
4224 (lambda* (#:key outputs #:allow-other-keys)
4225 (let* ((outdir (assoc-ref outputs "out"))
4226 (bindir (string-append outdir "/bin"))
4227 (mandir (string-append outdir "/share/man/man1"))
4228 (docdir (string-append outdir "/share/doc/hashcash-" ,version)))
4229 ;; Install manually, as we don't need the `sha1' binary
4230 (install-file "hashcash" bindir)
4231 (install-file "hashcash.1" mandir)
4232 (install-file "README" docdir)
4233 (install-file "LICENSE" docdir)
4234 (install-file "CHANGELOG" docdir)
4236 (home-page "https://www.hashcash.org/")
4237 (synopsis "Denial-of-service countermeasure")
4238 (description "Hashcash is a proof-of-work algorithm, which has been used
4239 as a denial-of-service countermeasure technique in a number of systems.
4241 A hashcash stamp constitutes a proof-of-work which takes a parametrizable
4242 amount of work to compute for the sender. The recipient can verify received
4243 hashcash stamps efficiently.
4245 This package contains a command-line tool for computing and verifying hashcash
4247 (license license:public-domain)))
4256 (uri (string-append "mirror://sourceforge/nbd/nbd/" version
4257 "/nbd-" version ".tar.xz"))
4259 (base32 "036ib2d5722sx9nn7jydqfpl5ici5if2z7g8xrskzcx74dniaxv8"))))
4260 (build-system gnu-build-system)
4264 (list bison pkg-config which))
4265 (home-page "https://nbd.sourceforge.io/")
4266 (synopsis "NBD client and server")
4267 (description "This package provides the NBD (Network Block Devices)
4268 client and server. It allows you to use remote block devices over a TCP/IP
4270 (license license:gpl2)))
4272 (define-public yggdrasil
4281 (url "https://github.com/yggdrasil-network/yggdrasil-go")
4282 (commit (string-append "v" version))
4284 (file-name (git-file-name name version))
4286 (base32 "0jp6998a45xi8pbi8p84chvpm1mhhcvcxm1avi1c1gjjp4jqm3vl"))
4287 (patches (search-patches "yggdrasil-extra-config.patch"))))
4288 (build-system go-build-system)
4290 '(#:import-path "github.com/yggdrasil-network/yggdrasil-go"
4291 ;; TODO: figure out how tests are run
4293 #:install-source? #f
4295 (modify-phases %standard-phases
4297 (lambda* (#:key import-path build-flags #:allow-other-keys)
4300 ((assoc-ref %standard-phases 'build)
4301 #:build-flags build-flags
4302 #:import-path directory))
4303 (list "github.com/yggdrasil-network/yggdrasil-go/cmd/yggdrasil"
4304 "github.com/yggdrasil-network/yggdrasil-go/cmd/yggdrasilctl"
4305 "github.com/yggdrasil-network/yggdrasil-go/cmd/genkeys"))
4307 ;; https://github.com/kardianos/minwinsvc is windows only
4309 (list ;;("go-golang-zx2c4-com-wireguard-windows"
4310 ;; ,go-golang-zx2c4-com-wireguard-windows)
4311 go-golang-zx2c4-com-wireguard
4312 go-golang-org-x-text
4315 go-golang-org-x-crypto
4318 go-github-com-mitchellh-mapstructure
4319 go-github-com-mattn-go-runewidth
4320 go-github-com-mattn-go-isatty
4321 go-github-com-kardianos-minwinsvc
4322 go-github-com-hjson-hjson-go
4323 go-github-com-hashicorp-go-syslog
4324 go-github-com-gologme-log
4325 go-github-com-fatih-color
4326 go-github-com-cheggaaa-pb-v3
4327 go-github-com-vividcortex-ewma
4328 go-github-com-arceliar-phony
4329 go-github-com-arceliar-ironwood))
4330 (home-page "https://yggdrasil-network.github.io/blog.html")
4332 "Experiment in scalable routing as an encrypted IPv6 overlay network")
4334 "Yggdrasil is an early-stage implementation of a fully end-to-end encrypted
4335 IPv6 network. It is lightweight, self-arranging, supported on multiple
4336 platforms and allows pretty much any IPv6-capable application to communicate
4337 securely with other Yggdrasil nodes. Yggdrasil does not require you to have
4338 IPv6 Internet connectivity - it also works over IPv4.")
4340 ;; As a special exception to the GNU Lesser General Public License
4341 ;; version 3 ("LGPL3"), the copyright holders of this Library give you
4342 ;; permission to convey to a third party a Combined Work that links
4343 ;; statically or dynamically to this Library without providing any Minimal
4344 ;; Corresponding Source or Minimal Application Code as set out in 4d or
4345 ;; providing the installation information set out in section 4e, provided
4346 ;; that you comply with the other provisions of LGPL3 and provided that you
4347 ;; meet, for the Application the terms and conditions of the license(s)
4348 ;; which apply to the Application. Except as stated in this special
4349 ;; exception, the provisions of LGPL3 will continue to comply in full to
4350 ;; this Library. If you modify this Library, you may apply this exception
4351 ;; to your version of this Library, but you are not obliged to do so. If
4352 ;; you do not wish to do so, delete this exception statement from your
4353 ;; version. This exception does not (and cannot) modify any license terms
4354 ;; which apply to the Application, with which you must still comply
4357 (define-public netdiscover
4359 (name "netdiscover")
4365 (url "https://github.com/netdiscover-scanner/netdiscover")
4368 (base32 "0g8w8rlg16dsibxi4dnyn7v7r8wwi5ypd51c4w59j0ps2id0w8yj"))
4369 (file-name (string-append "netdiscover-" version))))
4371 `(#:tests? #f)) ;; no tests
4372 (build-system gnu-build-system)
4374 (list libnet libpcap))
4376 (list autoconf automake))
4377 (synopsis "Network address discovery tool")
4378 (description "Netdiscover is a network address discovery tool developed
4379 mainly for wireless networks without a @acronym{DHCP} server. It also works
4380 on hub/switched networks. It is based on @acronym{ARP} packets, it will send
4381 @acronym{ARP} requests and sniff for replies.")
4382 (home-page "https://github.com/netdiscover-scanner/netdiscover")
4383 (license license:gpl3+)))
4385 (define-public putty
4392 (uri (list (string-append "https://the.earth.li/~sgtatham/putty/"
4393 version "/putty-" version ".tar.gz")
4394 (string-append "http://www.putty.be/" version
4395 "/putty-" version ".tar.gz")))
4397 (base32 "1rgabc447a5aa9h16krpg3x78vh5jf4l6hkbqzr4bz9qabs7d6j1"))))
4398 (build-system cmake-build-system)
4401 (modify-phases %standard-phases
4403 ;; As ‘documented’ in ./Buildscr and the 0.76 Makefile.in.
4404 (lambda* (#:key tests? #:allow-other-keys)
4406 (setenv "PUTTY_TESTCRYPT" "./testcrypt")
4407 (invoke (string-append "../putty-" ,version
4408 "/test/cryptsuite.py"))))))))
4417 (synopsis "Graphical @acronym{SSH, Secure SHell} and telnet client")
4418 (description "PuTTY is a graphical text terminal client. It supports
4419 @acronym{SSH, Secure SHell}, telnet, and raw socket connections with good
4420 terminal emulation. It can authenticate with public keys and Kerberos
4421 single-sign-on. It also includes command-line @acronym{SFTP, Secure File
4422 Transfer Protocol} and older @acronym{SCP, Secure Copy Protocol}
4424 (home-page "https://www.chiark.greenend.org.uk/~sgtatham/putty/")
4425 (license license:expat)))