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, 2018, 2019, 2020, 2021 Efraim Flashner <efraim@flashner.co.il>
18 ;;; Copyright © 2017, 2018, 2019 Rutger Helling <rhelling@mykolab.com>
19 ;;; Copyright © 2017, 2019 Gábor Boskovits <boskovits@gmail.com>
20 ;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
21 ;;; Copyright © 2018 Adam Van Ymeren <adam@vany.ca>
22 ;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com>
23 ;;; Copyright © 2018, 2019 Tonton <tonton@riseup.net>
24 ;;; Copyright © 2018 Clément Lassieur <clement@lassieur.org>
25 ;;; Copyright © 2018 Theodoros Foradis <theodoros@foradis.org>
26 ;;; Copyright © 2018, 2020-2022 Marius Bakke <marius@gnu.org>
27 ;;; Copyright © 2018, 2020, 2021 Oleg Pykhalov <go.wigust@gmail.com>
28 ;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz>
29 ;;; Copyright © 2019, 2020, 2021, 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
30 ;;; Copyright © 2019 Vasile Dumitrascu <va511e@yahoo.com>
31 ;;; Copyright © 2019 Julien Lepiller <julien@lepiller.eu>
32 ;;; Copyright © 2019 Timotej Lazar <timotej.lazar@araneo.si>
33 ;;; Copyright © 2019, 2020, 2021 Brice Waegeneire <brice@waegenei.re>
34 ;;; Copyright © 2019, 2020 Alex Griffin <a@ajgrf.com>
35 ;;; Copyright © 2019, 2020 Jan Wielkiewicz <tona_kosmicznego_smiecia@interia.pl>
36 ;;; Copyright © 2019 Daniel Schaefer <git@danielschaefer.me>
37 ;;; Copyright © 2019 Diego N. Barbato <dnbarbato@posteo.de>
38 ;;; Copyright © 2020, 2021 Vincent Legoll <vincent.legoll@gmail.com>
39 ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
40 ;;; Copyright © 2020 Jesse Dowell <jessedowell@gmail.com>
41 ;;; Copyright © 2020 Hamzeh Nasajpour <h.nasajpour@pantherx.org>
42 ;;; Copyright © 2020, 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 base)
93 #:use-module (gnu packages bash)
94 #:use-module (gnu packages bison)
95 #:use-module (gnu packages boost)
96 #:use-module (gnu packages check)
97 #:use-module (gnu packages code)
98 #:use-module (gnu packages compression)
99 #:use-module (gnu packages cpp)
100 #:use-module (gnu packages crypto)
101 #:use-module (gnu packages curl)
102 #:use-module (gnu packages cyrus-sasl)
103 #:use-module (gnu packages dejagnu)
104 #:use-module (gnu packages docbook)
105 #:use-module (gnu packages documentation)
106 #:use-module (gnu packages flex)
107 #:use-module (gnu packages freedesktop)
108 #:use-module (gnu packages gettext)
109 #:use-module (gnu packages glib)
110 #:use-module (gnu packages gnome)
111 #:use-module (gnu packages gnupg)
112 #:use-module (gnu packages golang)
113 #:use-module (gnu packages graphviz)
114 #:use-module (gnu packages gstreamer)
115 #:use-module (gnu packages gtk)
116 #:use-module (gnu packages image)
117 #:use-module (gnu packages libevent)
118 #:use-module (gnu packages libidn)
119 #:use-module (gnu packages libusb)
120 #:use-module (gnu packages linux)
121 #:use-module (gnu packages lua)
122 #:use-module (gnu packages kerberos)
123 #:use-module (gnu packages mpi)
124 #:use-module (gnu packages ncurses)
125 #:use-module (gnu packages nettle)
126 #:use-module (gnu packages openldap)
127 #:use-module (gnu packages onc-rpc)
128 #:use-module (gnu packages password-utils)
129 #:use-module (gnu packages pcre)
130 #:use-module (gnu packages perl)
131 #:use-module (gnu packages perl-check)
132 #:use-module (gnu packages pkg-config)
133 #:use-module (gnu packages polkit)
134 #:use-module (gnu packages pretty-print)
135 #:use-module (gnu packages protobuf)
136 #:use-module (gnu packages pulseaudio)
137 #:use-module (gnu packages python)
138 #:use-module (gnu packages python-crypto)
139 #:use-module (gnu packages python-web)
140 #:use-module (gnu packages python-xyz)
141 #:use-module (gnu packages qt)
142 #:use-module (gnu packages readline)
143 #:use-module (gnu packages ruby)
144 #:use-module (gnu packages samba)
145 #:use-module (gnu packages serialization)
146 #:use-module (gnu packages shells)
147 #:use-module (gnu packages sphinx)
148 #:use-module (gnu packages sqlite)
149 #:use-module (gnu packages ssh)
150 #:use-module (gnu packages tcl)
151 #:use-module (gnu packages textutils)
152 #:use-module (gnu packages tls)
153 #:use-module (gnu packages valgrind)
154 #:use-module (gnu packages web)
155 #:use-module (gnu packages wxwidgets)
156 #:use-module (gnu packages xml)
157 #:use-module (ice-9 match))
159 (define-public usrsctp
168 (url "https://github.com/sctplab/usrsctp")
170 (file-name (git-file-name name version))
172 (base32 "10ndzkip8blgkw572n3dicl6mgjaa7kygwn3vls80liq92vf1sa9"))))
173 (build-system gnu-build-system)
181 (home-page "https://github.com/sctplab/usrsctp/")
182 (synopsis "SCTP user-land implementation")
183 (description "UsrSCTP is a portable SCTP userland stack. SCTP is a message
184 oriented, reliable transport protocol with direct support for multihoming that
185 runs on top of IP or UDP, and supports both v4 and v6 versions.")
186 (license license:bsd-3)))
188 (define-public arp-scan
197 (url "https://github.com/royhills/arp-scan/")
199 (file-name (git-file-name name version))
201 (base32 "1mf7a4f9vzvnkiavc87aqyciswggsb4fpy7j05jxnvjyyxv3l7gp"))))
202 (build-system gnu-build-system)
206 (list autoconf automake libtool pkg-config))
209 (home-page "https://github.com/royhills/arp-scan")
210 (synopsis "Discover and fingerprint IP hosts on the local network using ARP")
211 (description "Arp-scan is a tool that uses ARP to discover and fingerprint
212 IP hosts on the local network.")
213 (license license:gpl3+)))
222 (uri (string-append "https://github.com/axel-download-accelerator/axel/"
223 "releases/download/v" version "/"
224 "axel-" version ".tar.xz"))
226 (base32 "1yfcsi0zv07bvhj8klgna3y1ycc4jhaija1b3rzzv0i4d4c2q2sq"))))
227 (build-system gnu-build-system)
229 (list gettext-minimal pkg-config))
232 (home-page "https://github.com/axel-download-accelerator/axel")
233 (synopsis "Light command line download accelerator")
235 "Axel tries to accelerate the download process by using multiple
236 connections per file, and can also balance the load between different
237 servers. It tries to be as light as possible, so it might be useful
238 on byte-critical systems. It supports HTTP, HTTPS, FTP and FTPS
240 (license license:gpl2+)))
242 ;; This package does not have a release yet.
243 ;; But this is required to provide a feature in PipeWire.
244 (define-public libcamera
253 (url "git://linuxtv.org/libcamera.git")
254 (commit "10be87fa7c3bfb097b21ca3d469c67e40c333f7e")))
256 (git-file-name name version))
258 (base32 "0qgirhlalmk9f9v6piwz50dr2asb64rvbb9zb1vix7y9zh7m11by"))))
259 (build-system meson-build-system)
260 (outputs '("out" "doc"))
262 `(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
266 ;; XXX: Requires bundled pybind11.
267 "-Dpycamera=disabled")
269 (modify-phases %standard-phases
270 (add-after 'unpack 'disable-failing-tests
272 (substitute* "test/meson.build"
273 (("\\['list-cameras', 'list-cameras.cpp'\\],")
275 ;; TODO: Why do the gstreamer tests fail.
276 (("^subdir\\('gstreamer'\\)")
278 (add-after 'install 'move-doc
279 (lambda* (#:key outputs #:allow-other-keys)
280 (let* ((out (assoc-ref outputs "out"))
281 (doc (assoc-ref outputs "doc")))
282 (mkdir-p (string-append doc "/share"))
284 (string-append out "/share/doc")
285 (string-append doc "/share/doc"))))))))
287 (list graphviz ;for 'dot'
305 (synopsis "Camera stack and framework")
306 (description "LibCamera is a complex camera support library for GNU+Linux,
307 Android, and ChromeOS.")
308 (home-page "https://libcamera.org/")
309 (license license:lgpl2.1+)))
311 (define-public libnice
312 ;; The latest release is old and randomly fails tests with GStreamer 1.18.5,
313 ;; such as: "test-bind: ../libnice-0.1.18/stun/tests/test-bind.c:234:
314 ;; bad_responses: Assertion `len >= 20' failed"
316 (commit "47a96334448838c43d7e72f4ef51b317befbfae1"))
319 (version (git-version "0.1.18" revision commit))
324 (url "https://gitlab.freedesktop.org/libnice/libnice")
326 (file-name (git-file-name name version))
329 "19ypjazslmsb9vqs2wyyzvi72h5jbn16dbng7pxh485djdrmgcg4"))))
330 (build-system meson-build-system)
331 (outputs '("out" "doc"))
333 `(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
338 (modify-phases %standard-phases
339 (add-after 'unpack 'disable-failing-tests
341 (substitute* "tests/meson.build"
342 ;; ‘test-set-port-range.c:66:main: assertion failed:
343 ;; (nice_agent_gather_candidates (agent, stream1))’
344 (("'test-set-port-range'" all)
345 (string-append "# " all))
346 ;; The following test is disabled as it fails in a
347 ;; nondeterministic fashion (see:
348 ;; https://gitlab.freedesktop.org/libnice/libnice/-/issues/151).
350 (string-append "# " all)))
351 (substitute* "stun/tests/meson.build"
352 ;; test-bind.c:234: bad_responses: Assertion `len >= 20'
354 ;; https://gitlab.freedesktop.org/libnice/libnice/-/issues/150).
357 (add-after 'install 'move-docs
358 (lambda* (#:key outputs #:allow-other-keys)
359 (let* ((out (assoc-ref outputs "out"))
360 (doc (assoc-ref outputs "doc")))
361 (mkdir-p (string-append doc "/share"))
363 (string-append out "/share/gtk-doc")
364 (string-append doc "/share/gtk-doc"))))))))
366 `(("glib:bin" ,glib "bin")
367 ("gobject-introspection" ,gobject-introspection)
368 ("graphviz" ,graphviz)
369 ("gtk-doc" ,gtk-doc/stable)
370 ("pkg-config" ,pkg-config)))
372 (list gstreamer gst-plugins-base libnsl))
374 (list glib glib-networking gnutls))
375 (synopsis "GLib ICE implementation")
376 (description "LibNice is a library that implements the Interactive
377 Connectivity Establishment (ICE) standard (RFC 5245 & RFC 8445). It provides a
378 GLib-based library, libnice, as well as GStreamer elements to use it.")
379 (home-page "https://libnice.freedesktop.org/")
381 ;; This project is dual-licensed.
386 (define-public rtmpdump
387 ;; There are no tags in the repository, and the project is unlikely to
388 ;; make new releases. Take a recent commit for multiple security fixes
389 ;; as well as GnuTLS compatibility.
390 (let ((commit "c5f04a58fc2aeea6296ca7c44ee4734c18401aa3")
392 (version "2.4")) ;as mentioned in README and man pages
395 (version (git-version version revision commit))
400 (url "https://git.ffmpeg.org/rtmpdump")
402 (file-name (git-file-name name version))
404 (base32 "07ias612jgmxpam9h418kvlag32da914jsnjsfyafklpnh8gdzjb"))))
405 (build-system gnu-build-system)
407 `(#:tests? #f ; no tests
410 ;; The ‘validate-runpath’ phase fails to find librtmp.so.0.
411 (string-append "LDFLAGS=-Wl,-rpath="
412 (assoc-ref %outputs "out") "/lib")
413 (string-append "prefix=" (assoc-ref %outputs "out")))
415 (modify-phases %standard-phases
416 (add-after 'unpack 'omit-static-library
418 (substitute* "librtmp/Makefile"
419 (("cp librtmp\\.a .*") ; don't install it
421 (("librtmp\\.a ") ; don't build it
424 (add-after 'unpack 'prefer-gnutls
426 (substitute* '("Makefile" "librtmp/Makefile")
431 (delete 'configure))))
434 (synopsis "Tools and library for handling RTMP streams")
435 (description "RTMPdump is a toolkit for RTMP streams. All forms of RTMP are
436 supported, including rtmp://, rtmpt://, rtmpe://, rtmpte://, and rtmps://.")
437 (home-page "https://rtmpdump.mplayerhq.hu/")
445 (define-public slurm-monitor
447 (name "slurm-monitor")
454 (url "https://github.com/mattthias/slurm")
455 (commit (string-append "upstream/" version))))
456 (file-name (git-file-name name version))
458 (base32 "1n6pgrcs8gwrcq5fch1q3yk3jipjwrf21s9a13fbjrl903g5zzv9"))))
459 (build-system cmake-build-system)
460 (arguments `(#:tests? #f)) ;no tests
461 (inputs (list ncurses))
462 (synopsis "Network load monitor")
464 "Slurm is a network load monitor. It shows real-time traffic statistics
465 from any network device in any of three ASCII graph formats.")
466 (home-page "https://github.com/mattthias/slurm")
467 (license license:gpl2)))
478 (url "https://github.com/Haivision/srt")
479 (commit (string-append "v" version))))
480 (file-name (git-file-name name version))
482 (base32 "1zr1l9zkai7rpw9cn5j9h4zrv08hgpfmwscwyscf2j4cgwf0rxrr"))))
483 (build-system cmake-build-system)
487 (string-append "-DCMAKE_INSTALL_BINDIR="
488 (assoc-ref %outputs "out") "/bin")
489 "-DCMAKE_INSTALL_INCLUDEDIR=include"
490 "-DENABLE_STATIC=OFF"
491 "-DENABLE_UNITTESTS=ON")))
493 (list googletest pkg-config tcl))
496 (synopsis "Secure Reliable Transport")
497 (description "SRT is a transport technology that optimizes streaming
498 performance across unpredictable networks, such as the Internet.")
499 (home-page "https://www.srtalliance.org/")
500 (license license:mpl2.0)))
502 (define-public lksctp-tools
504 (name "lksctp-tools")
511 (url "https://github.com/sctp/lksctp-tools")
512 (commit (string-append "v" version))))
513 (file-name (git-file-name name version))
515 (base32 "1jfq58j365mlgssavyw5wcal42n0xjkr40vmj9b8w265wgs28j20"))))
516 (build-system gnu-build-system)
518 (list autoconf automake libtool pkg-config))
520 "@acronym{SCTP, Stream Control Transmission Protocol} helpers for Linux")
522 "The lksctp-tools project provides a user-space library for @acronym{SCTP,
523 the Stream Control Transmission Protocol} (@file{libsctp}) and C language header
524 files (@file{netinet/sctp.h}) for accessing SCTP-specific @acronym{APIs,
525 application programming interfaces} not provided by the standard sockets.
526 It also includes some SCTP-related helper utilities.")
527 (home-page "http://lksctp.sourceforge.net/")
535 (define-public python-pysctp
537 (name "python-pysctp")
542 (uri (pypi-uri "pysctp" version))
544 (base32 "14h2qlmfi24bizhvvqkfqfa78pzm3911ibrzy9k94i97xy1978dy"))))
545 (build-system python-build-system)
549 `(#:tests? #f ;; tests require network
551 (modify-phases %standard-phases
552 (add-after 'unpack 'patch-setup.py
554 (substitute* "setup.py"
555 (("include_dirs\\s*=.*")
556 (string-append "include_dirs = ['.'] + '"
557 (getenv "C_INCLUDE_PATH") "'.split(':'),"))
558 (("library_dirs\\s*=.*")
559 (string-append "library_dirs = '"
560 (getenv "LIBRARY_PATH") "'.split(':'),"))))))))
561 (home-page "https://github.com/p1sec/pysctp")
562 (synopsis "Python module for the SCTP protocol stack and library")
563 (description "@code{pysctp} implements the SCTP socket API. You need a
564 SCTP-aware kernel (most are).")
565 (license license:lgpl2.1+)))
567 (define-public kismet
574 (url "https://www.kismetwireless.net/git/kismet.git")
575 (commit (string-append "kismet-" version "-R1"))))
576 (file-name (git-file-name name version))
577 (patches (search-patches "kismet-unbundle-boost.patch"))
578 (modules '((guix build utils)))
580 ;; Drop bundled libraries.
581 (delete-file-recursively "boost")))
584 "01q86hrgpai433sc65dlnqy91qd26w5dwyp37adszqxfb6d2an1r"))))
585 (build-system gnu-build-system)
587 (list #:tests? #f ;no test suite
589 #~(modify-phases %standard-phases
590 (add-after 'unpack 'fix-install
592 (substitute* "Makefile.in"
593 (("-o \\$\\(INSTUSR\\) -g \\$\\(SUIDGROUP\\)") "")
594 (("-o \\$\\(INSTUSR\\) -g \\$\\(INSTGRP\\)") "")))))))
595 (home-page "https://www.kismetwireless.net/")
596 (native-inputs (list perl pkg-config python python-2))
606 (synopsis "Wireless network and device detector")
608 "This package provides a wireless network and device detector, sniffer,
609 wardriving tool, and WIDS (wireless intrusion detection) framework. Kismet
610 works with Wi-Fi interfaces, Bluetooth interfaces, some SDR
611 (software defined radio) hardware like the RTLSDR, and other specialized
613 (license license:gpl2+)))
615 (define-public knockd
621 (uri (string-append "https://www.zeroflux.org/proj/knock/files/knock-"
625 "1iv9h7a9l81ilbld3pi0dmzkizjss1755x1x3v5jxsi4asb8r3b9"))))
626 (build-system gnu-build-system)
629 (list (string-append "--docdir=" (assoc-ref %outputs "out")
630 "/share/doc/" ,name "-" ,version))))
633 (home-page "https://www.zeroflux.org/projects/knock")
634 (synopsis "Small port-knock daemon")
635 (description "@command{knockd} is a port-knock daemon. It listens to all traffic on
636 an ethernet or PPP interface, looking for special \"knock\" sequences of @dfn{port-hits}
637 (UDP/TCP packets sent to a server port). This port need not be open, since knockd listens
638 at the link-layer level.")
639 (license license:gpl2+)))
649 (url "https://github.com/nanomsg/nng")
650 (commit (string-append "v" version))))
651 (file-name (git-file-name name version))
653 (base32 "0a4jg8alh2h0rw6fb4dqpvk4hgl2a7h76mq7g34fy89qh9sgg1a4"))))
654 (build-system cmake-build-system)
657 (list "-DNNG_ENABLE_COVERAGE=ON"
658 "-DNNG_ENABLE_TLS=ON"
659 "-DBUILD_SHARED_LIBS=ON")
661 (modify-phases %standard-phases
662 (add-after 'unpack 'disable-failing-tests
664 ;; These tests require network access.
665 (substitute* "tests/CMakeLists.txt"
666 (("add_nng_test1\\(httpclient 60 NNG_SUPP_HTTP\\)") "")
667 (("add_nng_test1\\(resolv 10 NNG_STATIC_LIB\\)") "")
668 (("add_nng_test\\(tls 60\\)") ""))
673 `(("mbedtls" ,mbedtls-apache)))
674 (synopsis "Lightweight messaging library")
675 (description "NNG project is a rewrite of the scalability protocols library
676 known as libnanomsg, and adds significant new capabilities, while retaining
677 compatibility with the original. It is a lightweight, broker-less library,
678 offering a simple API to solve common recurring messaging problems, such as
679 publish/subscribe, RPC-style request/reply, or service discovery.")
680 (home-page "https://nng.nanomsg.org/")
681 (license license:expat)))
683 (define-public nanomsg
692 (url "https://github.com/nanomsg/nanomsg")
694 (file-name (git-file-name name version))
696 (base32 "01ddfzjlkf2dgijrmm3j3j8irccsnbgfvjcnwslsfaxnrmrq5s64"))))
697 (build-system cmake-build-system)
698 (outputs '("out" "doc"))
702 "-DNN_ENABLE_COVERAGE=ON")
704 (modify-phases %standard-phases
705 (add-after 'install 'move-docs
706 (lambda* (#:key outputs #:allow-other-keys)
707 (let* ((out (assoc-ref outputs "out"))
708 (doc (assoc-ref outputs "doc")))
709 (mkdir-p (string-append doc "/share/doc"))
711 (string-append out "/share/doc/nanomsg")
712 (string-append doc "/share/doc/nanomsg"))
715 `(("asciidoctor" ,ruby-asciidoctor)
716 ("pkg-config" ,pkg-config)))
717 (synopsis "Scalable socket library")
718 (description "Nanomsg is a socket library that provides several common
719 communication patterns. It aims to make the networking layer fast, scalable,
720 and easy to use. Implemented in C, it works on a wide range of operating
721 systems with no further dependencies.")
722 (home-page "https://nanomsg.org/")
723 (license (license:non-copyleft "file:///COPYING"))))
725 (define-public blueman
732 (uri (string-append "https://github.com/blueman-project/blueman/releases"
733 "/download/" version "/blueman-" version ".tar.xz"))
735 (base32 "1s86w4mklzr8hvbgl3nkg8jycl6grww533dhzw8gdn5glqfpkpbf"))))
736 (build-system glib-or-gtk-build-system)
738 `(#:configure-flags (list "--enable-polkit"
739 "--without-systemdsystemunitdir" ; Not required
740 "--without-systemduserunitdir") ; Not required
742 (modify-phases %standard-phases
743 ;; Python references are not being patched in patch-phase of build,
744 ;; despite using python-wrapper as input. So we patch them manually.
745 (add-after 'unpack 'patch-python-references
746 (lambda* (#:key inputs #:allow-other-keys)
747 (with-directory-excursion "apps"
748 (substitute* '("blueman-adapters.in" "blueman-applet.in"
749 "blueman-manager.in" "blueman-mechanism.in"
750 "blueman-rfcomm-watcher.in" "blueman-sendto.in"
751 "blueman-services.in" "blueman-tray.in")
753 (search-input-file inputs
756 ,(version-major+minor
757 (package-version python)))))))))
758 ;; Fix loading of external programs.
759 (add-after 'unpack 'patch-external-programs
760 (lambda* (#:key inputs #:allow-other-keys)
761 (substitute* '("blueman/main/NetConf.py"
762 "blueman/main/PPPConnection.py")
763 (("/usr/sbin/bluetoothd")
764 (search-input-directory inputs
765 "/libexec/bluetooth/bluetoothd"))
767 (search-input-file inputs "/sbin/iptables"))
769 (search-input-file inputs "/sbin/pppd")))))
770 ;; Fix loading of pulseaudio libraries.
771 (add-after 'unpack 'patch-pulseaudio-libraries
772 (lambda* (#:key inputs #:allow-other-keys)
773 (let* ((pulseaudio (assoc-ref inputs "pulseaudio"))
774 (pulse (string-append pulseaudio "/lib/libpulse.so.0"))
775 (pulse-glib (string-append pulseaudio
776 "/lib/libpulse-mainloop-glib.so.0")))
777 (with-directory-excursion "blueman/main"
778 (substitute* "PulseAudioUtils.py"
779 (("libpulse.so.0") pulse)
780 (("libpulse-mainloop-glib.so.0") pulse-glib))))))
781 ;; Fix running of blueman programs.
782 (add-after 'glib-or-gtk-wrap 'wrap-blueman-progs
783 (lambda* (#:key outputs #:allow-other-keys)
784 (let* ((out (assoc-ref outputs "out"))
785 (bin (string-append out "/bin/blueman-"))
786 (libexec (string-append out "/libexec/blueman-"))
787 (lib (string-append out "/lib/python"
788 ,(version-major+minor
789 (package-version python))
793 (wrap-program program
794 `("GUIX_PYTHONPATH" = (,(getenv "GUIX_PYTHONPATH") ,lib))
795 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))))
797 (map (lambda (prog) (string-append bin prog))
798 '("adapters" "applet" "manager"
799 "sendto" "services" "tray"))
800 (map (lambda (prog) (string-append libexec prog))
801 '("mechanism" "rfcomm-watcher"))))))))))
803 `(("cython" ,python-cython)
804 ("glib:bin" ,glib "bin")
805 ("gobject-introspection" ,gobject-introspection)
806 ("gtk+:bin" ,gtk+ "bin")
807 ("intltool" ,intltool)
808 ("pkg-config" ,pkg-config)))
815 ("iproute2" ,iproute)
816 ("iptables" ,iptables)
817 ("net-tools" ,net-tools)
821 ("pulseaudio" ,pulseaudio)
822 ("pycairo" ,python-pycairo)
823 ("pygobject" ,python-pygobject)
824 ("python" ,python-wrapper)
825 ("libappindicator" ,libappindicator)
826 ("libnm" ,network-manager)))
827 (synopsis "GTK+ Bluetooth manager")
828 (description "Blueman is a Bluetooth management utility using the Bluez
829 D-Bus backend. It is designed to be easy to use for most common Bluetooth
831 (home-page "https://github.com/blueman-project/blueman")
832 (license license:gpl3+)))
834 ;; The gnu.org ‘home’ for this GNU project is a directory listing with 1.6.0 as
835 ;; the latest version. The author's git repository, mentioned in the 1.6.0
836 ;; README and otherwise legit-looking, contains a proper 1.7.0 release tarball
837 ;; with many OUI updates. Use it, even though it's also several years old now.
838 (define-public macchanger
845 (uri (string-append "https://github.com/alobbs/macchanger/"
846 "releases/download/" version "/"
847 name "-" version ".tar.gz"))
849 (base32 "1gs5m0jxyprdp00w2qkbnaqm3ilkjz0q1gqdg4nzdm8g4xy73qns"))))
850 (build-system gnu-build-system)
851 (home-page "https://www.gnu.org/software/macchanger/")
852 (synopsis "Viewing and manipulating MAC addresses of network interfaces")
853 (description "GNU MAC Changer is a utility for viewing and changing MAC
854 addresses of networking devices. New addresses may be set explicitly or
855 randomly. They can include MAC addresses of the same or other hardware vendors
856 or, more generally, MAC addresses of the same category of hardware.")
857 (license license:gpl2+)))
859 (define-public miredo
865 (uri (string-append "http://www.remlab.net/files/miredo/miredo-"
869 "0j9ilig570snbmj48230hf7ms8kvcwi2wblycqrmhh85lksd49ps"))))
870 (build-system gnu-build-system)
873 (list "--localstatedir=/var")
875 (modify-phases %standard-phases
876 (add-after 'unpack 'do-not-create-/run
878 (substitute* (find-files "src" "Makefile.*")
879 (("^.+install_sh.+/run.+$")
882 (add-after 'unpack 'patch-iproute2
883 (lambda* (#:key inputs #:allow-other-keys)
884 (let* ((iproute (assoc-ref inputs "iproute"))
885 (ip (string-append iproute "/sbin/ip")))
886 (substitute* "misc/client-hook.iproute"
889 ;; The checkconf test in src/ requires network access.
891 'check 'disable-checkconf-test
893 (substitute* "src/Makefile"
894 (("^TESTS = .*") "TESTS = \n"))
897 `(("iproute" ,iproute)))
898 (home-page "https://www.remlab.net/miredo/")
899 (synopsis "Teredo IPv6 tunneling software")
901 "Miredo is an implementation (client, relay, server) of the Teredo
902 specification, which provides IPv6 Internet connectivity to IPv6 enabled hosts
903 residing in IPv4-only networks, even when they are behind a NAT device.")
904 (license license:gpl2+)))
906 (define-public ndisc6
912 (uri (string-append "https://www.remlab.net/files/ndisc6/ndisc6-"
916 "1yrw8maj1646d498ax8xi0jmzk80idrc5x0913x5rwg1kc7224x7"))))
917 (build-system gnu-build-system)
918 (home-page "https://www.remlab.net/ndisc6/")
919 (synopsis "IPv6 diagnostic tools")
921 "NDisc6 is a collection of tools for IPv6 networking diagnostics.
922 It includes the following programs:
925 @item @command{ndisc6}: ICMPv6 Neighbor Discovery tool.
926 @item @command{rdisc6}: ICMPv6 Router Discovery tool.
927 @item @command{tcptraceroute6}: IPv6 traceroute over TCP.
928 @item @command{traceroute6}: IPv6 traceroute over UDP.
929 @item @command{rdnssd}: Recursive DNS Servers discovery daemon.
931 ;; The user can choose version 2 or 3 of the GPL, not later versions.
932 (license (list license:gpl2 license:gpl3))))
934 (define-public parprouted
940 (uri (string-append "https://www.hazard.maks.net/parprouted/"
941 "parprouted-" version ".tar.gz"))
944 "1z6yg28i0pv20jivyy82pxb38hsryj95inhj27bs6ja1bp4l6dnn"))))
945 (build-system gnu-build-system)
947 `(#:tests? #f ;no tests
948 #:phases (modify-phases %standard-phases
949 (add-after 'unpack 'insert-absolute-iproute-reference
950 (lambda* (#:key inputs #:allow-other-keys)
951 (let* ((iproute (assoc-ref inputs "iproute"))
952 (ip (string-append iproute "/sbin/ip")))
953 (substitute* "parprouted.c"
957 (lambda* (#:key outputs #:allow-other-keys)
958 (let* ((out (assoc-ref outputs "out"))
959 (sbin (string-append out "/sbin"))
960 (man8 (string-append out "/share/man/man8")))
961 ;; No configure script; hijack the phase to make
962 ;; the necessary arrangements.
963 (setenv "CC" ,(cc-for-target))
964 (for-each mkdir-p (list sbin man8))
965 (substitute* "Makefile"
966 (("/usr/local/sbin") sbin)
967 (("/usr/local/man/man8") man8))
970 `(("iproute" ,iproute)))
971 (home-page "https://www.hazard.maks.net/parprouted/")
972 (synopsis "Proxy ARP requests to other interfaces")
974 "@command{parprouted} is a daemon for transparent IP (Layer@tie{}3)
975 proxy ARP bridging. Unlike standard bridging, proxy ARP bridging can bridge
976 Ethernet networks behind wireless nodes. Normal layer@tie{}2 bridging does
977 not work between wireless nodes because wireless does not know about MAC
978 addresses used in the wired Ethernet networks. This daemon can also be
979 useful for making transparent firewalls.")
980 (license license:gpl2)))
982 (define-public pproxy
988 (uri (pypi-uri "pproxy" version))
991 "1j4nv72i77i2j5nl9ymzpk4m98qih3naihfrqjghrc9b7g0krdzs"))))
992 (build-system python-build-system)
995 #~(modify-phases %standard-phases
997 (lambda* (#:key tests? #:allow-other-keys)
999 (with-directory-excursion "tests"
1000 (for-each (lambda (file)
1001 (invoke "python" file))
1002 ;; XXX: The api_ tests require network access
1003 ;; so we only run the cipher tests for now.
1004 (find-files "." "^cipher_.*\\.py$")))))))))
1006 (list python-asyncssh
1010 (home-page "https://github.com/qwj/python-proxy")
1011 (synopsis "Multi-protocol network proxy")
1013 "@command{pproxy} is an asynchronuous proxy server implemented with
1014 Python 3 @code{asyncio}. Among the supported protocols are HTTP, SOCKS
1015 and SSH, and it can use both TCP and UDP as transport mechanisms.")
1016 (license license:expat)))
1018 (define-public socat
1025 "http://www.dest-unreach.org/socat/download/socat-"
1026 version ".tar.bz2"))
1029 "1sbmqqvni3ss9wyay6ik5v81kxffkra80mh4ypgj74g82iba5b1z"))))
1030 (build-system gnu-build-system)
1031 (arguments '(#:tests? #f)) ; no test suite
1032 (inputs (list openssl))
1033 (home-page "http://www.dest-unreach.org/socat/")
1035 "Open bidirectional communication channels from the command line")
1037 "socat is a relay for bidirectional data transfer between two independent
1038 data channels---files, pipes, devices, sockets, etc. It can create
1039 \"listening\" sockets, named pipes, and pseudo terminals.
1041 socat can be used, for instance, as TCP port forwarder, as a shell interface
1042 to UNIX sockets, IPv6 relay, for redirecting TCP oriented programs to a serial
1043 line, to logically connect serial lines on different computers, or to
1044 establish a relatively secure environment (su and chroot) for running client
1045 or server shell scripts with network connections.")
1046 (license license:gpl2)))
1048 (define-public mbuffer
1051 (version "20220418")
1055 "http://www.maier-komor.de/software/mbuffer/mbuffer-"
1059 "1iq0lcl350r7qja7yyv911aay26d0dd8n0h33mfl84gzypwh2n3f"))))
1060 (build-system gnu-build-system)
1063 (inputs (list openssl))
1064 (home-page "http://www.maier-komor.de/mbuffer.html")
1066 "Swiss army knife for data stream buffering (network aware)")
1068 "mbuffer is a tool for buffering data streams with a large set of features:
1071 @item direct support for TCP based network targets (IPv4 and IPv6)
1072 @item ability to send to multiple targets in parallel (distribution mode)
1073 @item support for multiple volumes
1074 @item I/O rate limitation
1075 @item high/low watermark based restart criteria
1076 @item configurable buffer size
1077 @item on the fly MD5 hash calculation
1078 @item highly efficient, multi-threaded implementation
1080 (license license:gpl3+)))
1082 (define-public tcp-wrappers
1084 (name "tcp-wrappers")
1089 "ftp://ftp.porcupine.org/pub/security/tcp_wrappers_"
1093 "0p9ilj4v96q32klavx0phw9va21fjp8vpk11nbh6v2ppxnnxfhwm"))
1094 (modules '((guix build utils)))
1096 ;; 'sys_errlist' & co. are gone in glibc 2.33; work around it.
1097 '(substitute* "percent_m.c"
1098 (("sys_errlist\\[errno\\]")
1100 (("errno < sys_nerr")
1102 (("errno >= sys_nerr")
1104 (build-system gnu-build-system)
1107 (modify-phases %standard-phases
1108 (delete 'configure) ; there is no configure script
1109 (delete 'check) ; there are no tests
1113 ;; Upstream doesn't generate a shared library. So we have to do it.
1114 (setenv "CC" "gcc -fno-builtin -fPIC")
1115 (substitute* "Makefile"
1116 (("^(all[^\n]*)" line) (string-append line " libwrap.so\n
1117 libwrap.so: $(LIB_OBJ)\n
1118 \tgcc -shared $^ -o $@\n")))
1119 ;; Deal with some gcc breakage.
1120 (substitute* "percent_m.c"
1121 (("extern char .sys_errlist.*;") ""))
1122 (substitute* "scaffold.c"
1123 (("extern char .malloc.*;") ""))
1124 ;; This, believe it or not, is the recommended way to build!
1125 (invoke "make" "REAL_DAEMON_DIR=/etc" "linux")))
1126 ;; There is no make install stage, so we have to do it ourselves.
1129 (let ((out (assoc-ref %outputs "out"))
1130 (man-pages `("hosts_access.3"
1138 (headers `("tcpd.h"))
1139 (bins `("safe_finger"
1146 (install-file x (string-append out "/include")))
1150 (install-file x (string-append out "/share/man/man"
1151 (string-take-right x 1))))
1155 (install-file x (string-append out "/lib/")))
1159 (install-file x (string-append out "/bin/")))
1162 (home-page "http://www.porcupine.org")
1163 (synopsis "Monitor and filter incoming requests for network services")
1164 (description "With this package you can monitor and filter incoming requests for
1165 network services. It includes a library which may be used by daemons to
1166 transparently check connection attempts against an access control list.")
1167 (license (license:non-copyleft "file://DISCLAIMER"
1168 "See the file DISCLAIMER in the distribution."))))
1170 (define-public zeromq
1177 (uri (string-append "https://github.com/zeromq/libzmq/releases"
1178 "/download/v" version "/zeromq-" version ".tar.gz"))
1180 (base32 "1rf3jmi36ms8jh2g5cvi253h43l6xdfq0r7mvp95va7mi4d014y5"))))
1181 (build-system gnu-build-system)
1182 (arguments '(#:configure-flags '("--disable-static"
1183 "--enable-drafts")))
1184 (home-page "https://zeromq.org")
1185 (synopsis "Library for message-based applications")
1187 "The 0MQ lightweight messaging kernel is a library which extends the
1188 standard socket interfaces with features traditionally provided by specialized
1189 messaging middle-ware products. 0MQ sockets provide an abstraction of
1190 asynchronous message queues, multiple messaging patterns, message
1191 filtering (subscriptions), seamless access to multiple transport protocols and
1193 (license license:lgpl3+)))
1202 "https://github.com/zeromq/" name
1203 "/releases/download/v" version
1204 "/" name "-" version ".tar.gz"))
1207 "0fdclvd7fcwixp0k57ccv7d159v3slasyhvndxfn8n1a9hh0lwjx"))))
1208 (build-system gnu-build-system)
1210 '(#:configure-flags '("--enable-drafts")))
1213 (home-page "https://zeromq.org")
1214 (synopsis "High-level C bindings for ØMQ")
1216 "czmq provides bindings for the ØMQ core API that hides the differences
1217 between different versions of ØMQ.")
1218 (license license:mpl2.0)))
1220 (define-public cppzmq
1227 (url "https://github.com/zeromq/cppzmq")
1228 (commit (string-append "v" version))))
1231 "0zzq20wzk5grshxfqhqgqqfwb38w3k83r821isvyaxghsglpwks3"))
1232 (file-name (git-file-name name version))))
1233 (build-system cmake-build-system)
1235 `(#:tests? ,(not (%current-target-system)))) ; run unless cross-compiling
1239 (list catch-framework2 zeromq))
1240 (home-page "https://zeromq.org")
1241 (synopsis "C++ bindings for the ØMQ messaging library")
1243 "This package provides header-only C++ bindings for ØMQ. The header
1244 files contain direct mappings of the abstractions provided by the ØMQ C API.")
1245 (license license:expat)))
1247 (define-public libnatpmp
1250 (version "20150609")
1254 "http://miniupnp.free.fr/files/"
1255 name "-" version ".tar.gz"))
1258 "1c1n8n7mp0amsd6vkz32n8zj3vnsckv308bb7na0dg0r8969rap1"))))
1259 (build-system gnu-build-system)
1262 (modify-phases %standard-phases
1264 (delete 'check)) ; no tests
1266 (let* ((target ,(%current-target-system))
1268 (string-append target "-gcc")
1271 (string-append "CC=" gcc)
1272 (string-append "INSTALLPREFIX=" (assoc-ref %outputs "out"))
1273 (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib")))))
1274 (home-page "http://miniupnp.free.fr/libnatpmp.html")
1275 (synopsis "C library implementing NAT-PMP")
1277 "@code{libnatpmp} is a portable and asynchronous implementation of
1278 the Network Address Translation - Port Mapping Protocol (NAT-PMP)
1279 written in the C programming language.")
1280 (license license:bsd-3)))
1282 (define-public librdkafka
1289 (url "https://github.com/edenhill/librdkafka")
1290 (commit (string-append "v" version))))
1291 (file-name (git-file-name name version))
1294 "05mgrdzacn9kdpr68r5j0cvsvl54s52glnsc1ww9rcxx6p7hq1ly"))))
1295 (build-system gnu-build-system)
1298 (modify-phases %standard-phases
1300 ;; its custom configure script doesn't understand 'CONFIG_SHELL'.
1301 (lambda* (#:key outputs #:allow-other-keys)
1302 (let ((out (assoc-ref outputs "out")))
1303 ;; librdkafka++.so lacks RUNPATH for librdkafka.so
1305 (string-append "-Wl,-rpath=" out "/lib"))
1306 (invoke "./configure"
1307 (string-append "--prefix=" out))))))))
1309 `(("python" ,python-wrapper)))
1311 (list zlib)) ; in the Libs.private field of rdkafka.pc
1312 (home-page "https://github.com/edenhill/librdkafka")
1313 (synopsis "Apache Kafka C/C++ client library")
1315 "librdkafka is a C library implementation of the Apache Kafka protocol,
1316 containing both Producer and Consumer support.")
1317 (license license:bsd-2)))
1319 (define-public libndp
1325 (uri (string-append "https://libndp.org/files/"
1326 "libndp-" version ".tar.gz"))
1329 "0ay0n0d85254zdmv8znmn399gfiqpk6ga0jwdwa7ylpbw9pbdzw8"))))
1330 (build-system gnu-build-system)
1331 (home-page "https://libndp.org/")
1332 (synopsis "Library for Neighbor Discovery Protocol")
1334 "libndp contains a library which provides a wrapper for IPv6 Neighbor
1335 Discovery Protocol. It also provides a tool named ndptool for sending and
1336 receiving NDP messages.")
1337 (license license:lgpl2.1+)))
1339 (define-public ethtool
1345 (uri (string-append "mirror://kernel.org/software/network/"
1346 "ethtool/ethtool-" version ".tar.xz"))
1349 "0v8i592vwjypf111w0lfvaxdwhzybp6w600g28m9rm490c8xcvv8"))))
1350 (build-system gnu-build-system)
1355 (home-page "https://www.kernel.org/pub/software/network/ethtool/")
1356 (synopsis "Display or change Ethernet device settings")
1358 "ethtool can be used to query and change settings such as speed,
1359 auto-negotiation and checksum offload on many network devices, especially
1361 (license license:gpl2)))
1363 (define-public ifstatus
1369 (uri (string-append "mirror://sourceforge/ifstatus/ifstatus/"
1370 "ifstatus%20v" version "/ifstatus-v"
1374 "045cbsq9ps32j24v8y5hpyqxnqn9mpaf3mgvirlhgpqyb9jsia0c"))
1375 (modules '((guix build utils)))
1378 (substitute* "Main.h"
1379 (("#include <stdio.h>")
1380 "#include <stdio.h>\n#include <stdlib.h>"))
1382 (build-system gnu-build-system)
1384 '(#:tests? #f ; no "check" target
1386 (modify-phases %standard-phases
1387 (delete 'configure) ; no configure script
1389 (lambda* (#:key outputs #:allow-other-keys)
1390 (let* ((out (assoc-ref outputs "out"))
1391 (bin (string-append out "/bin")))
1393 (copy-file "ifstatus"
1394 (string-append bin "/ifstatus")))
1396 (inputs (list ncurses))
1397 (home-page "http://ifstatus.sourceforge.net/graphic/index.html")
1398 (synopsis "Text based network interface status monitor")
1400 "IFStatus is a simple, easy-to-use program for displaying commonly
1401 needed/wanted real-time traffic statistics of multiple network
1402 interfaces, with a simple and efficient view on the command line. It is
1403 intended as a substitute for the PPPStatus and EthStatus projects.")
1404 (license license:gpl2+)))
1406 (define-public iputils
1409 (version "20190709")
1410 (home-page "https://github.com/iputils/iputils")
1413 (uri (git-reference (url home-page)
1414 (commit (string-append "s" version))))
1415 (file-name (git-file-name name version))
1416 (patches (search-patches "iputils-libcap-compat.patch"))
1419 "04bp4af15adp79ipxmiakfp0ij6hx5qam266flzbr94pr8z8l693"))))
1420 (build-system meson-build-system)
1422 `(#:configure-flags '("-DBUILD_RARPD=true")
1424 (modify-phases %standard-phases
1425 (add-after 'unpack 'fix-docbook-url
1426 (lambda* (#:key inputs #:allow-other-keys)
1427 (let* ((docbook-xsl (assoc-ref inputs "docbook-xsl"))
1428 (uri (string-append docbook-xsl "/xml/xsl/docbook-xsl-"
1429 ,(package-version docbook-xsl))))
1433 (("http://docbook\\.sourceforge\\.net/release/xsl-ns/current")
1435 (cons "doc/meson.build"
1436 (find-files "doc" "\\.xsl$")))
1439 `(("gettext" ,gettext-minimal)
1440 ("pkg-config" ,pkg-config)
1441 ("docbook-xsl" ,docbook-xsl)
1442 ("docbook-xml" ,docbook-xml-5)
1443 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
1444 ("xsltproc" ,libxslt)))
1446 (list libcap libidn2 openssl))
1447 (synopsis "Collection of network utilities")
1449 "This package contains a variety of tools for dealing with network
1450 configuration, troubleshooting, or servers. Utilities included are:
1453 @item @command{arping}: Ping hosts using the @dfn{Address Resolution Protocol}.
1454 @item @command{clockdiff}: Compute time difference between network hosts
1455 using ICMP TSTAMP messages.
1456 @item @command{ninfod}: Daemon that responds to IPv6 Node Information Queries.
1457 @item @command{ping}: Use ICMP ECHO messages to measure round-trip delays
1458 and packet loss across network paths.
1459 @item @command{rarpd}: Answer RARP requests from clients.
1460 @item @command{rdisc}: Populate network routing tables with information from
1461 the ICMP router discovery protocol.
1462 @item @command{tftpd}: Trivial file transfer protocol server.
1463 @item @command{tracepath}: Trace network path to an IPv4 or IPv6 address and
1464 discover MTU along the way.
1466 ;; The various utilities are covered by different licenses, see LICENSE
1468 (license (list license:gpl2+ ;arping, rarpd, tracepath
1469 license:bsd-3 ;clockdiff, ninfod, ping, tftpd
1470 (license:non-copyleft
1471 "https://spdx.org/licenses/Rdisc.html"
1472 "Sun Microsystems license, see rdisc.c for details")))))
1474 (define-public nload
1480 (uri (string-append "mirror://sourceforge/nload/nload/" version
1481 "/nload-" version ".tar.gz"))
1484 "1rb9skch2kgqzigf19x8bzk211jdfjfdkrcvaqyj89jy2pkm3h61"))))
1485 (build-system gnu-build-system)
1486 (inputs (list ncurses))
1487 (home-page "http://www.roland-riegel.de/nload/")
1488 (synopsis "Realtime console network usage monitor")
1490 "Nload is a console application which monitors network traffic and
1491 bandwidth usage in real time. It visualizes the in- and outgoing traffic using
1492 two graphs, and provides additional info like total amount of transferred data
1493 and min/max network usage.")
1494 (license license:gpl2+)))
1496 (define-public iodine
1502 (uri (string-append "http://code.kryo.se/" name "/"
1503 name "-" version ".tar.gz"))
1506 "0gh17kcxxi37k65zm4gqsvbk3aw7yphcs3c02pn1c4s2y6n40axd"))))
1507 (build-system gnu-build-system)
1510 (modify-phases %standard-phases
1512 (add-before 'build 'fix-ifconfig-path
1513 ;; This package works only with the net-tools version of ifconfig.
1514 (lambda* (#:key inputs #:allow-other-keys)
1515 (substitute* "src/tun.c"
1517 (string-append (assoc-ref inputs "net-tools") "/bin/")))
1519 (add-before 'check 'delete-failing-tests
1520 ;; Avoid https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802105.
1522 (substitute* "tests/common.c"
1523 (("tcase_add_test\\(tc, \
1524 test_parse_format_ipv(4(|_listen_all|_mapped_ipv6)|6)\\);")
1527 #:make-flags (list ,(string-append "CC=" (cc-for-target))
1528 (string-append "prefix=" (assoc-ref %outputs "out")))
1529 #:test-target "test"))
1530 (inputs (list net-tools zlib))
1531 (native-inputs (list check pkg-config))
1532 (home-page "https://code.kryo.se/iodine/")
1533 (synopsis "Tunnel IPv4 data through a DNS server")
1534 (description "Iodine tunnels IPv4 data through a DNS server. This
1535 can be useful in different situations where internet access is firewalled, but
1536 DNS queries are allowed. The bandwidth is asymmetrical, with limited upstream
1537 and up to 1 Mbit/s downstream.")
1538 ;; src/md5.[ch] is released under the zlib license
1539 (license (list license:isc license:zlib))))
1541 (define-public whois
1549 (url "https://github.com/rfc1036/whois")
1550 (commit (string-append "v" version))))
1551 (file-name (git-file-name name version))
1553 (base32 "0wys0aixzq6mzvg7p6jb0d5rkkg23pjcgcsx86p7hjidxdvnbwzr"))))
1554 (build-system gnu-build-system)
1556 `(#:tests? #f ; no test suite
1557 #:make-flags (list (string-append "CC=" ,(cc-for-target))
1558 (string-append "PKG_CONFIG=" ,(pkg-config-for-target))
1559 (string-append "prefix=" (assoc-ref %outputs "out")))
1561 (modify-phases %standard-phases
1562 (delete 'configure) ; no configure script
1563 (add-before 'build 'setenv
1565 (setenv "HAVE_ICONV" "1")
1570 `(("gettext" ,gettext-minimal)
1572 ("pkg-config" ,pkg-config)))
1573 (synopsis "Intelligent client for the WHOIS directory service")
1575 "whois searches for an object in a @dfn{WHOIS} (RFC 3912) database.
1576 It is commonly used to look up the registered users or assignees of an Internet
1577 resource, such as a domain name, an IP address block, or an autonomous system.
1578 It can automatically select the appropriate server for most queries.
1580 For historical reasons, this package also includes @command{mkpasswd}, which
1581 encrypts passwords using @code{crypt(3)} and is unrelated to the Expect command
1583 (home-page "https://github.com/rfc1036/whois")
1584 (license license:gpl2+)))
1586 (define-public wireshark
1593 (uri (string-append "https://www.wireshark.org/download/src/wireshark-"
1596 (base32 "03n34jh4318y3q14jclxfxi4r7b9l393w9fw9bq57ydff9aim42x"))))
1597 (build-system cmake-build-system)
1600 (modify-phases %standard-phases
1601 (add-after 'unpack 'remove-failing-test
1602 ;; Skip test suite failing with "Program reassemble_test is not
1603 ;; available" and alike errors. Also skip test suite failing with
1604 ;; "AssertionError: Program extcap/sdjournal is not available"
1607 (substitute* "CMakeLists.txt"
1608 (("suite_unittests" all) (string-append "# " all))
1609 (("suite_extcaps" all) (string-append "# " all))))))
1610 ;; Build process chokes during `validate-runpath' phase.
1612 ;; Errors are like the following:
1613 ;; "/gnu/store/...wireshark-3.0.0/lib/wireshark/plugins/3.0/epan/ethercat.so:
1614 ;; error: depends on 'libwireshark.so.12', which cannot be found in
1615 ;; RUNPATH". That is, "/gnu/store/...wireshark-3.0.0./lib" doesn't
1616 ;; belong to RUNPATH.
1618 ;; That’s not a problem in practice because "ethercat.so" is a plugin,
1619 ;; so it’s dlopen’d by a process that already provides "libwireshark".
1620 ;; For now, we disable this phase.
1621 #:validate-runpath? #f))
1634 lua-5.2 ;Lua 5.3 unsupported
1654 (synopsis "Network traffic analyzer")
1655 (description "Wireshark is a network protocol analyzer, or @dfn{packet
1656 sniffer}, that lets you capture and interactively browse the contents of
1658 (home-page "https://www.wireshark.org/")
1659 (license license:gpl2+)))
1661 (define-public fping
1668 (uri (string-append "https://fping.org/dist/fping-"
1671 (base32 "1zh9fkyn0bixgn77v9z6ayv446nqwx960hmly9m68xix0s62dr8y"))))
1672 (build-system gnu-build-system)
1673 (arguments '(#:configure-flags '("--enable-ipv6")))
1674 (home-page "https://fping.org/")
1675 (synopsis "Send ICMP ECHO_REQUEST packets to network hosts")
1677 "fping is a ping-like program which uses @acronym{ICMP, Internet Control
1678 Message Protocol} echo requests to determine if a target host is responding.
1680 @command{fping} differs from @command{ping} in that you can specify any number
1681 of targets on the command line, or specify a file containing the lists of
1682 targets to ping. Instead of sending to one target until it times out or
1683 replies, fping will send out a ping packet and move on to the next target in a
1684 round-robin fashion.")
1685 (license license:expat)))
1687 (define-public gandi.cli
1694 (uri (pypi-uri name version))
1696 (base32 "1h36jahbp7273wn3yd747kbiwjc0bm3sja67bcxdsd54ln0vyndg"))))
1697 (build-system python-build-system)
1700 (modify-phases %standard-phases
1701 (add-after 'unpack 'embed-store-file-names
1703 (substitute* (list "gandi/cli/modules/cert.py"
1704 "gandi/cli/tests/commands/test_certificate.py")
1705 (("openssl") (which "openssl")))
1707 (add-after 'install 'install-documentation
1708 ;; The included man page may be outdated but we install it anyway,
1709 ;; since it's mentioned in 'gandi --help' and better than nothing.
1710 (lambda* (#:key outputs #:allow-other-keys)
1711 (let* ((out (assoc-ref outputs "out"))
1712 (man1 (string-append out "/share/man/man1")))
1714 (with-output-to-file (string-append man1 "/gandi.1")
1716 (invoke "rst2man.py" "gandicli.man.rst")))
1719 (list python-docutils ; for rst2man.py
1720 python-pytest python-pytest-cov python-tox))
1722 (list openssh)) ; used by gandi/cli/modules/iass.py
1724 (list openssl python-click-7 python-ipy python-pyyaml python-requests))
1725 (home-page "https://cli.gandi.net")
1726 (synopsis "Command-line interface to the Gandi.net Web API")
1728 "This package provides a command-line client (@command{gandi}) to buy,
1729 manage, and delete Internet resources from Gandi.net such as domain names,
1730 virtual machines, and certificates.")
1731 (license license:gpl3+)))
1733 (define-public go-netns
1734 (let ((commit "13995c7128ccc8e51e9a6bd2b551020a27180abd")
1738 (version (git-version "0.0.0" revision commit))
1742 (url "https://github.com/vishvananda/netns")
1744 (file-name (git-file-name name version))
1747 "1zk6w8158qi4niva5rijchbv9ixgmijsgqshh54wdaav4xrhjshn"))))
1748 (build-system go-build-system)
1750 `(#:import-path "github.com/vishvananda/netns"
1751 #:tests? #f)) ;tests require root privileges
1752 (home-page "https://github.com/vishvananda/netns")
1753 (synopsis "Simple network namespace handling for Go")
1754 (description "The netns package provides a simple interface for
1755 handling network namespaces in Go.")
1756 (license license:asl2.0))))
1758 (define-public go-sctp
1759 ;; docker-libnetwork-cmd-proxy requires this exact commit.
1760 ;; This commit is mentioned in docker-libnetwork-cmd-proxy's vendor.conf.
1761 (let ((commit "f2269e66cdee387bd321445d5d300893449805be")
1765 (version (git-version "0.0.0" revision commit))
1769 (url "https://github.com/ishidawataru/sctp")
1771 (file-name (git-file-name name version))
1774 "04463rnn9y9psp11ac5di6wrwxlhymw5h9hfhhhnxqwla90ikp0g"))))
1775 (build-system go-build-system)
1777 `(#:tests? #f ; Test suite is flakey.
1778 #:import-path "github.com/ishidawataru/sctp"))
1779 (home-page "https://github.com/ishidawataru/sctp")
1780 (synopsis "SCTP library for the Go programming language")
1781 (description "This library provides methods for using the stream control
1782 transmission protocol (SCTP) in a Go application.")
1783 (license license:asl2.0))))
1785 (define-public httping
1792 (uri (string-append "https://www.vanheusden.com/httping/httping-"
1796 "1y7sbgkhgadmd93x1zafqc4yp26ssiv16ni5bbi9vmvvdl55m29y"))))
1797 (build-system gnu-build-system)
1799 `(("gettext" ,gettext-minimal)))
1801 (list fftw ncurses openssl))
1803 `(#:make-flags (list ,(string-append "CC=" (cc-for-target))
1804 (string-append "DESTDIR=" (assoc-ref %outputs "out"))
1806 #:tests? #f)) ; no tests
1807 (home-page "https://www.vanheusden.com/httping/")
1808 (synopsis "Web server latency and throughput monitor")
1810 "httping measures how long it takes to connect to a web server, send an
1811 HTTP(S) request, and receive the reply headers. It is somewhat similar to
1812 @command{ping}, but can be used even in cases where ICMP traffic is blocked
1813 by firewalls or when you want to monitor the response time of the actual web
1814 application stack itself.")
1815 (license license:gpl2))) ; with permission to link with OpenSSL
1817 (define-public httpstat
1825 (url "https://github.com/reorx/httpstat")
1827 (file-name (git-file-name name version))
1829 (base32 "0cw8299a080m42slsimz31xs0gjnh833gpbj2dsr4hkcinrn4iyd"))))
1830 (build-system python-build-system)
1831 (inputs (list curl))
1834 (modify-phases %standard-phases
1835 (add-before 'build 'fix-curl-path
1836 (lambda* (#:key inputs #:allow-other-keys)
1837 (substitute* "httpstat.py"
1838 (("ENV_CURL_BIN.get\\('curl'\\)")
1839 (string-append "ENV_CURL_BIN.get('"
1840 (assoc-ref inputs "curl")
1842 ;; "curl -w time_*" units seems to have
1843 ;; changed from seconds to nanoseconds.
1844 (("d\\[k\\] \\* 1000") "d[k] / 1000"))
1846 (home-page "https://github.com/reorx/httpstat")
1847 (synopsis "Visualize curl statistics")
1849 "@command{httpstat} is a tool to visualize statistics from the
1850 @command{curl} HTTP client. It acts as a wrapper for @command{curl} and
1851 prints timing information for each step of the HTTP request (DNS lookup,
1852 TCP connection, TLS handshake and so on) in the terminal.")
1853 (license license:expat)))
1855 (define-public squid
1862 (uri (string-append "http://www.squid-cache.org/Versions/v4/squid-"
1865 (base32 "060lwghn6q982bay11ia38c86kd8w6mjgy68n58v31kwik08m4nb"))))
1866 (build-system gnu-build-system)
1869 ;; disable -march=native in build for reproducibility; see
1870 ;; https://wiki.squid-cache.org/KnowledgeBase/IllegalInstructionError
1871 (list "--disable-arch-native")
1873 (modify-phases %standard-phases
1874 (add-before 'build 'fix-true-path
1875 (lambda* (#:key inputs #:allow-other-keys)
1876 (substitute* "test-suite/testheaders.sh"
1878 (search-input-file inputs "/bin/true"))))))))
1889 (list cppunit pkg-config))
1890 (synopsis "Web caching proxy")
1891 (description "Squid is a caching proxy for the Web supporting HTTP, HTTPS,
1892 FTP, and more. It reduces bandwidth and improves response times by caching and
1893 reusing frequently-requested web pages.")
1894 (home-page "http://www.squid-cache.org/")
1895 (license license:gpl2+)))
1897 (define-public bwm-ng
1905 (url "https://github.com/vgropp/bwm-ng")
1906 (commit (string-append "v" version))))
1907 (file-name (git-file-name name version))
1909 (base32 "1gpp2l3w479h1w5skjra5xy0gxd24kvmk6i4psbkafnv2399la4k"))))
1910 (build-system gnu-build-system)
1913 (modify-phases %standard-phases
1914 (add-after 'unpack 'disable-premature-./configure
1916 (substitute* "autogen.sh"
1917 (("\\$srcdir/configure")
1921 (list autoconf automake))
1924 (synopsis "Console based live network and disk I/O bandwidth monitor")
1925 (description "Bandwidth Monitor NG is a small and simple console based
1926 live network and disk I/O bandwidth monitor.")
1927 (home-page "https://www.gropp.org/?id=projects&sub=bwm-ng")
1928 (license license:gpl2)))
1930 (define-public aircrack-ng
1932 (name "aircrack-ng")
1937 (uri (string-append "https://download.aircrack-ng.org/aircrack-ng-"
1940 (base32 "1hsq1gwmafka4bahs6rc8p98yi542h9a502h64bjlygpr3ih99q5"))))
1941 (build-system gnu-build-system)
1943 (list autoconf automake libtool pkg-config which
1947 (list `(,hwloc "lib") ; speed boost on SMP machines
1957 (list "CFLAGS=-fcommon"
1958 "--with-experimental=yes" ; build wesside-ng, etc.
1959 "--with-gcrypt") ; openssl's the default
1960 #:phases (modify-phases %standard-phases
1961 (add-before 'bootstrap 'patch-evalrev
1963 ;; Called by ./autogen.sh below, before the default
1964 ;; ‘patch-shebangs’ phase has had a chance to run.
1965 (substitute* "evalrev"
1968 (add-after 'build 'absolutize-tools
1969 (lambda* (#:key inputs #:allow-other-keys)
1970 (let ((ethtool (search-input-file inputs
1972 (substitute* "scripts/airmon-ng"
1974 (string-append ethtool " ")))))))))
1975 (home-page "https://www.aircrack-ng.org")
1976 (synopsis "Assess WiFi network security")
1978 "Aircrack-ng is a complete suite of tools to assess WiFi network
1979 security. It focuses on different areas of WiFi security: monitoring,
1980 attacking, testing, and cracking. All tools are command-line driven, which
1981 allows for heavy scripting.")
1982 (license (list license:gpl2+ license:bsd-3))))
1984 (define-public pixiewps
1991 "https://github.com/wiire-a/pixiewps/releases/"
1992 "download/v" version "/" name "-" version ".tar.xz"))
1995 "07nym6bqml0k9v29vnj003nrgnwrywgjvnljb7cdpsvnwilhbp64"))))
1996 (build-system gnu-build-system)
1999 (list ,(string-append "CC=" (cc-for-target))
2000 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2002 (modify-phases %standard-phases
2003 (delete 'configure)) ; no configure script
2004 #:tests? #f)) ; there are no tests
2005 (home-page "https://github.com/wiire-a/pixiewps/")
2006 (synopsis "Offline brute-force tool for Wi-Fi Protected Setup")
2007 (description "Pixiewps implements the pixie-dust attack to brute
2008 force the Wi-Fi Protected Setup (WPS) PIN by exploiting the low or
2009 non-existing entropy of some access points.")
2010 (license license:gpl3+)))
2012 (define-public reaver
2019 "https://github.com/t6x/reaver-wps-fork-t6x/releases/"
2020 "download/v" version "/reaver-" version ".tar.xz"))
2023 "00k7mc81ifv0wma7k4v18mj498badbw5yls6c28qin3d1gda0ag3"))))
2024 (build-system gnu-build-system)
2027 ;; Save session files to current directory instead of /var.
2028 (list "--enable-savetocurrent"
2029 "--localstatedir=/tmp/dummy") ; prevent creating /var during install
2031 (modify-phases %standard-phases
2032 (add-before 'configure 'change-directory
2036 (add-after 'install 'install-doc
2037 (lambda* (#:key outputs #:allow-other-keys)
2039 (let* ((out (assoc-ref outputs "out"))
2040 (doc (string-append out "/share/doc/" ,name "-" ,version))
2041 (man1 (string-append out "/share/man/man1")))
2042 (for-each (lambda (file) (install-file file doc))
2043 (find-files "." "README.*"))
2044 (install-file "reaver.1" man1)
2046 #:tests? #f)) ; there are no tests
2050 (list aircrack-ng pixiewps))
2051 (home-page "https://github.com/t6x/reaver-wps-fork-t6x/")
2052 (synopsis "Attack tool for Wi-Fi Protected Setup")
2053 (description "Reaver performs a brute force attack against an access
2054 point's Wi-Fi Protected Setup (WPS) PIN. Once the PIN is found, the WPA
2055 passphrase can be recovered and the AP's wireless settings can be
2057 (license license:gpl2+)))
2059 (define-public perl-danga-socket
2061 (name "perl-danga-socket")
2066 (uri (string-append "mirror://cpan/authors/id/N/NM/NML/"
2067 "Danga-Socket-" version ".tar.gz"))
2069 (base32 "0x4bvirmf0kphks19jwgva00zz73zx344218dfaiv8gigrw3yg4m"))))
2070 (build-system perl-build-system)
2072 (list perl-test-tcp))
2074 (list perl-sys-syscall))
2075 (home-page "https://metacpan.org/release/Danga-Socket")
2076 (synopsis "Event loop and event-driven async socket base class")
2078 "Danga::Socket is an abstract base class for objects backed by a socket
2079 which provides the basic framework for event-driven asynchronous IO, designed
2080 to be fast. Danga::Socket is both a base class for objects, and an event
2082 (license license:perl-license)))
2084 (define-public perl-data-validate-ip
2086 (name "perl-data-validate-ip")
2092 "mirror://cpan/authors/id/D/DR/DROLSKY/Data-Validate-IP-"
2095 (base32 "074adrlvkiahj1fdc9nvb95dpfyjzm2jzhi90m8xaw4bw5ipcbzy"))))
2096 (build-system perl-build-system)
2098 (list perl-test-requires))
2100 (list perl-netaddr-ip))
2101 (home-page "https://metacpan.org/release/Data-Validate-IP")
2102 (synopsis "IPv4 and IPv6 validation methods")
2104 "This module provides several IP address validation subroutines that both
2105 validate and untaint their input. This includes both basic validation
2106 (@code{is_ipv4()} and @code{is_ipv6()}) and special cases like checking whether
2107 an address belongs to a specific network or whether an address is public or
2108 private (reserved).")
2109 (license license:perl-license)))
2111 (define-public perl-net-dns
2113 (name "perl-net-dns")
2120 (string-append "https://www.net-dns.org/download/Net-DNS-"
2122 (string-append "mirror://cpan/authors/id/N/NL/NLNETLABS/Net-DNS-"
2123 version ".tar.gz")))
2125 (base32 "05f6rzvvmm6xd0p100k5y9kczdzqgala09ra8bccc18n6y74l0h0"))))
2126 (build-system perl-build-system)
2128 (list perl-digest-hmac))
2129 (home-page "https://www.net-dns.org/")
2131 "Perl Interface to the Domain Name System")
2132 (description "Net::DNS is the Perl Interface to the Domain Name System.")
2133 (license license:x11)))
2135 (define-public perl-socket6
2137 (name "perl-socket6")
2143 "mirror://cpan/authors/id/U/UM/UMEMOTO/Socket6-"
2148 "054izici8klfxs8hr5rljib28plijpsfymy99xbzdp047bx1b2a6"))))
2149 (build-system perl-build-system)
2152 (modify-phases %standard-phases
2154 (lambda* (#:key outputs #:allow-other-keys)
2155 (let* ((out (assoc-ref outputs "out"))
2156 (args `("Makefile.PL"
2157 ,(string-append "PREFIX=" out)
2158 "INSTALLDIRS=site")))
2159 (setenv "CONFIG_SHELL" (which "sh"))
2160 (apply invoke "perl" args)))))))
2161 (home-page "https://metacpan.org/release/Socket6")
2163 "IPv6 related part of the C socket.h defines and structure manipulators for Perl")
2164 (description "Socket6 binds the IPv6 related part of the C socket header
2165 definitions and structure manipulators for Perl.")
2166 (license license:bsd-3)))
2168 (define-public perl-net-dns-resolver-programmable
2170 (name "perl-net-dns-resolver-programmable")
2176 "mirror://cpan/authors/id/J/JM/JMEHNLE/net-dns-resolver-programmable/"
2177 "Net-DNS-Resolver-Programmable-v" version ".tar.gz"))
2180 "1v3nl2kaj4fs55n1617n53q8sa3mir06898vpy1rq98zjih24h4d"))
2182 (search-patches "perl-net-dns-resolver-programmable-fix.patch"))))
2183 (build-system perl-build-system)
2185 (list perl-module-build))
2186 (inputs (list perl-net-dns))
2188 "https://metacpan.org/release/Net-DNS-Resolver-Programmable")
2190 "Programmable DNS resolver class for offline emulation of DNS")
2191 (description "Net::DNS::Resolver::Programmable is a programmable DNS resolver for
2192 offline emulation of DNS.")
2193 (license license:perl-license)))
2195 (define-public perl-net-dns-resolver-mock
2197 (name "perl-net-dns-resolver-mock")
2198 (version "1.20171219")
2202 "mirror://cpan/authors/id/M/MB/MBRADSHAW/"
2203 "Net-DNS-Resolver-Mock-" version ".tar.gz"))
2206 "0m3rxpkv1b9121srvbqkrgzg4m8mnydiydqv34in1i1ixwrl6jn9"))))
2207 (build-system perl-build-system)
2209 (list perl-net-dns))
2210 (home-page "https://metacpan.org/release/Net-DNS-Resolver-Mock")
2211 (synopsis "Mock DNS Resolver object for testing")
2213 "Net::DNS::Resolver::Mock is a subclass of Net::DNS::Resolver, but returns
2214 static data from any provided DNS zone file instead of querying the network.
2215 It is intended primarily for use in testing.")
2216 (license license:perl-license)))
2218 (define-public perl-netaddr-ip
2220 (name "perl-netaddr-ip")
2226 "mirror://cpan/authors/id/M/MI/MIKER/NetAddr-IP-"
2231 "1rx0dinrz9fk9qcg4rwqq5n1dm3xv2arymixpclcv2q2nzgq4npc"))))
2232 (build-system perl-build-system)
2235 (modify-phases %standard-phases
2237 (lambda* (#:key outputs #:allow-other-keys)
2238 (let* ((out (assoc-ref outputs "out"))
2239 (args `("Makefile.PL"
2240 ,(string-append "PREFIX=" out)
2241 "INSTALLDIRS=site")))
2242 (setenv "CONFIG_SHELL" (which "sh"))
2243 (apply invoke "perl" args)))))))
2245 "https://metacpan.org/release/NetAddr-IP")
2247 "Manages IPv4 and IPv6 addresses and subnets")
2248 (description "NetAddr::IP manages IPv4 and IPv6 addresses and subsets.")
2249 (license license:perl-license)))
2251 (define-public perl-net-patricia
2253 (name "perl-net-patricia")
2259 "mirror://cpan/authors/id/G/GR/GRUBER/Net-Patricia-"
2264 "0ln5f57vc8388kyh9vhx2infrdzfhbpgyby74h1qsnhwds95m0vh"))))
2265 (build-system perl-build-system)
2268 (modify-phases %standard-phases
2269 (add-after 'unpack 'dont-link-with-nsl ; Borrowed from Debian.
2271 (substitute* "Makefile.PL"
2275 (list perl-net-cidr-lite perl-socket6))
2277 "https://metacpan.org/release/Net-Patricia")
2279 "Patricia Trie Perl module for fast IP address lookups")
2281 "Net::Patricia does IP address lookups quickly in Perl.")
2282 ;; The bindings are licensed under GPL2 or later.
2283 ;; libpatricia is licensed under 2-clause BSD.
2284 (license (list license:gpl2+ license:bsd-2))))
2286 (define-public perl-net-cidr-lite
2288 (name "perl-net-cidr-lite")
2294 "mirror://cpan/authors/id/S/ST/STIGTSP/Net-CIDR-Lite-"
2298 (base32 "05w57db2lx4djb4vixzdr6qgrzyzkk047nl812g7nq8s6k5xh5s3"))))
2299 (build-system perl-build-system)
2300 (home-page "https://metacpan.org/release/Net-CIDR-Lite")
2301 (synopsis "Perl extension for merging IPv4 or IPv6 CIDR addresses")
2302 (description "Net::CIDR::Lite merges IPv4 or IPv6 CIDR addresses.")
2303 (license license:gpl1+)))
2305 (define-public perl-io-socket-inet6
2307 (name "perl-io-socket-inet6")
2313 "mirror://cpan/authors/id/S/SH/SHLOMIF/IO-Socket-INET6-"
2318 "1fqypz6qa5rw2d5y2zq7f49frwra0aln13nhq5gi514j2zx21q45"))))
2319 (build-system perl-build-system)
2321 (list perl-module-build perl-test-pod perl-test-pod-coverage))
2322 (propagated-inputs (list perl-socket6))
2323 (arguments `(;; Need network socket API
2326 "https://metacpan.org/release/IO-Socket-INET6")
2328 "Perl object interface for AF_INET/AF_INET6 domain sockets")
2329 (description "IO::Socket::INET6 is an interface for AF_INET/AF_INET6 domain
2331 (license license:perl-license)))
2333 (define-public libproxy
2339 (uri (string-append "https://github.com/libproxy/libproxy/"
2340 "releases/download/" version "/libproxy-"
2344 "01cbgz6lc3v59sldqk96l1281kp2qxnsa2qwlf2ikvjlyr1gi2dw"))))
2345 (build-system cmake-build-system)
2352 (modify-phases %standard-phases
2354 (lambda* (#:key tests? #:allow-other-keys)
2356 (invoke "ctest" "-E" "url-test")))))))
2357 (synopsis "Library providing automatic proxy configuration management")
2358 (description "Libproxy handles the details of HTTP/HTTPS proxy
2359 configuration for applications across all scenarios. Applications using
2360 libproxy only have to specify which proxy to use.")
2361 (home-page "https://libproxy.github.io/libproxy")
2362 (license license:lgpl2.1+)))
2364 (define-public proxychains-ng
2366 (name "proxychains-ng")
2371 (uri (string-append "http://ftp.barfooze.de/pub/sabotage/tarballs/"
2372 "proxychains-ng-" version ".tar.xz"))
2374 (base32 "04k80jbv1wcr7ccsa0qyly33syw275kvkvzyihwwqmsqk4yria9p"))))
2375 (build-system gnu-build-system)
2377 `(#:tests? #f ; there are no tests
2379 (modify-phases %standard-phases
2380 (add-after 'unpack 'fix-configure-script
2382 ;; The configure script is very intolerant to unknown arguments,
2383 ;; such as "CONFIG_SHELL".
2384 (substitute* "configure"
2385 (("\\*\\) break ;;" line)
2386 (string-append "[A-Z]*) shift ;;\n"
2388 (add-before 'configure 'set-up-environment
2390 (setenv "CC" ,(cc-for-target)))))))
2391 (synopsis "Redirect any TCP connection through a proxy or proxy chain")
2392 (description "Proxychains-ng is a preloader which hooks calls to sockets
2393 in dynamically linked programs and redirects them through one or more SOCKS or
2395 (home-page "https://github.com/rofl0r/proxychains-ng")
2396 (license license:gpl2+)))
2405 (uri (string-append "http://enet.bespin.org/download/"
2406 "enet-" version ".tar.gz"))
2408 (base32 "1p6f9mby86af6cs7pv6h48032ip9g32c05cb7d9mimam8lchz3x3"))))
2409 (build-system gnu-build-system)
2412 (synopsis "Network communication layer on top of UDP")
2414 "ENet's purpose is to provide a relatively thin, simple and robust network
2415 communication layer on top of UDP. The primary feature it provides is optional
2416 reliable, in-order delivery of packets. ENet omits certain higher level
2417 networking features such as authentication, server discovery, encryption, or
2418 other similar tasks that are particularly application specific so that the
2419 library remains flexible, portable, and easily embeddable.")
2420 (home-page "http://enet.bespin.org")
2421 (license license:expat)))
2431 (url "https://github.com/yrutschle/sslh")
2432 (commit (string-append "v" version))))
2433 (file-name (git-file-name name version))
2435 (base32 "19h32dn0076p3s7dn35qi5yp2xvnxw9sqphppmn72vyb8caxvw1z"))))
2436 (build-system gnu-build-system)
2438 (list ;; Test dependencies.
2442 perl-io-socket-inet6
2444 psmisc)) ; for ‘killall’
2446 (list libcap libconfig pcre tcp-wrappers))
2449 (modify-phases %standard-phases
2450 (delete 'configure) ; no configure script
2451 (add-before 'check 'fix-tests
2454 (("\"/tmp") "$ENV{\"TMPDIR\"} . \"")
2455 ;; The Guix build environment lacks ‘ip6-localhost’.
2456 (("ip6-localhost") "localhost"))
2458 ;; Many of these files are mentioned in the man page. Install them.
2459 (add-after 'install 'install-documentation
2460 (lambda* (#:key outputs #:allow-other-keys)
2461 (let* ((out (assoc-ref outputs "out"))
2462 (doc (string-append out "/share/doc/sslh")))
2463 (install-file "README.md" doc)
2466 (install-file file (string-append doc "/examples")))
2467 (append (find-files "." "\\.cfg")
2468 (find-files "scripts"))))
2470 #:make-flags (list ,(string-append "CC=" (cc-for-target))
2473 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2474 #:test-target "test"))
2475 (home-page "https://www.rutschle.net/tech/sslh/README.html")
2476 (synopsis "Applicative network protocol demultiplexer")
2478 "sslh is a network protocol demultiplexer. It acts like a switchboard,
2479 accepting connections from clients on one port and forwarding them to different
2480 servers based on the contents of the first received data packet. Detection of
2481 common protocols like HTTP(S), SSL, SSH, OpenVPN, tinc, and XMPP is already
2482 implemented, but any other protocol that matches a regular expression can be
2483 added. sslh's name comes from its original application of serving both SSH and
2484 HTTPS on port 443, allowing SSH connections from inside corporate firewalls
2485 that block port 22.")
2486 (license (list license:bsd-2 ; tls.[ch]
2487 license:gpl2+)))) ; everything else
2489 (define-public iperf
2497 (url "https://github.com/esnet/iperf")
2499 (file-name (git-file-name name version))
2501 (base32 "064sb8f9jxi5ii43swd73c0mm50lvk51v7awhgbj6p129c1a4nn5"))))
2502 (build-system gnu-build-system)
2505 (list "--disable-static")))
2506 (synopsis "TCP, UDP and SCTP bandwidth measurement tool")
2508 "iPerf is a tool to measure achievable bandwidth on IP networks. It
2509 supports tuning of various parameters related to timing, buffers and
2510 protocols (TCP, UDP, SCTP with IPv4 and IPv6). For each test it reports
2511 the bandwidth, loss, and other parameters.")
2512 (home-page "https://software.es.net/iperf/")
2513 (license (list license:bsd-3 ; Main distribution.
2514 license:ncsa ; src/{units,iperf_locale,tcp_window_size}.c
2515 license:expat ; src/{cjson,net}.[ch]
2516 license:public-domain)))) ; src/portable_endian.h
2518 (define-public nethogs
2526 (url "https://github.com/raboof/nethogs")
2527 (commit (string-append "v" version))))
2530 (base32 "10shdwvfj90lp2fxz9260342a1c2n1jbw058qy5pyq5kh3xwr9b8")
2532 (file-name (git-file-name name version))))
2533 (build-system gnu-build-system)
2535 (list libpcap ncurses))
2537 `(#:make-flags `(,,(string-append "CC=" (cc-for-target))
2538 ,(string-append "PREFIX=" %output)
2539 ,(string-append "VERSION=" ,version))
2541 (modify-phases %standard-phases
2542 (delete 'configure)))) ; no ./configure script.
2543 (home-page "https://github.com/raboof/nethogs")
2544 (synopsis "Per-process bandwidth monitor")
2545 (description "NetHogs is a small 'net top' tool for Linux. Instead of
2546 breaking the traffic down per protocol or per subnet, like most tools do, it
2547 groups bandwidth by process.
2549 NetHogs does not rely on a special kernel module to be loaded. If there's
2550 suddenly a lot of network traffic, you can fire up NetHogs and immediately see
2551 which PID is causing this. This makes it easy to identify programs that have
2552 gone wild and are suddenly taking up your bandwidth.")
2553 (license license:gpl2+)))
2555 (define-public nzbget
2562 (uri (string-append "https://github.com/nzbget/nzbget/releases"
2563 "/download/v" version
2564 "/nzbget-" version "-src.tar.gz"))
2566 (base32 "09900x1k0yf4yi2cc0k093advvadyhrkm8rnd8nszhhdp2zc33sf"))))
2570 (string-append "--with-libcurses-includes="
2571 (assoc-ref %build-inputs "ncurses") "/include")
2572 (string-append "--with-libcurses-libraries="
2573 (assoc-ref %build-inputs "ncurses") "/lib")
2574 (string-append "--with-tlslib=GnuTLS"))))
2575 (build-system gnu-build-system)
2576 (inputs (list gnutls libxml2 ncurses zlib))
2577 (native-inputs (list pkg-config))
2578 (home-page "https://github.com/nzbget/nzbget")
2579 (synopsis "Usenet binary file downloader")
2581 "NZBGet is a binary newsgrabber, which downloads files from Usenet based
2582 on information given in @code{nzb} files. NZBGet can be used in standalone
2583 and in server/client modes. In standalone mode, you pass NZBGet @command{nzb}
2584 files as command-line parameters and it downloads them and exits. NZBGet also
2585 contains a Web interface. Its server can be controlled through remote
2586 procedure calls (RPCs).")
2587 (license license:gpl2+)))
2589 (define-public openvswitch
2591 (name "openvswitch")
2596 "https://www.openvswitch.org/releases/openvswitch-"
2600 "1x0k0pw6jykrfgb8rq56bp2ghxd433d55pmr8mxy9gbzw1nc1vbi"))))
2601 (build-system gnu-build-system)
2605 "--disable-static" ; XXX still installs libopenvswitchavx512.a
2606 "--localstatedir=/var"
2607 "--with-dbdir=/var/lib/openvswitch")
2609 (modify-phases %standard-phases
2610 (add-after 'unpack 'use-absolute-/bin/sh
2611 (lambda* (#:key inputs #:allow-other-keys)
2612 (let* ((bash (assoc-ref inputs "bash-minimal")))
2613 (substitute* "ovsdb/ovsdb-server.c"
2614 (("/bin/sh") (string-append bash "/bin/sh"))))))
2615 (add-before 'check 'adjust-tests
2616 (lambda* (#:key inputs #:allow-other-keys)
2617 (let* ((bash (assoc-ref inputs "bash-minimal"))
2618 (/bin/sh (string-append bash "/bin/sh")))
2619 (with-fluids ((%default-port-encoding "ISO-8859-1"))
2620 (substitute* (find-files "tests" ".*(run|testsuite)$")
2622 (string-append "#! " /bin/sh))
2624 ;; The tests use 'kill -0' to check whether a test has
2625 ;; completed, but it does not work in the build container
2626 ;; because zombies are not reaped automatically (PID 1 is
2627 ;; the builder script). Change to something that handles
2628 ;; undead processes.
2632 (call-with-output-file "/tmp/bin/kill-0"
2635 ps --no-header -p $1 -o state= | grep -qv '^Z$'"
2637 (chmod "/tmp/bin/kill-0" #o755)
2639 (string-append "/tmp/bin:" (getenv "PATH"))))))
2643 ;; Don't try to create directories under /var.
2651 ("pkg-config" ,pkg-config)
2652 ("python" ,python-wrapper)
2654 ("bash" ,bash) ;for 'compgen'
2656 ("util-linux" ,util-linux)))
2658 (list bash-minimal libcap-ng openssl))
2659 (synopsis "Virtual network switch")
2660 (home-page "https://www.openvswitch.org/")
2662 "Open vSwitch is a multilayer virtual switch. It is designed to enable
2663 massive network automation through programmatic extension, while still
2664 supporting standard management interfaces and protocols (e.g. NetFlow, sFlow,
2665 IPFIX, RSPAN, CLI, LACP, 802.1ag).")
2666 (license ; see debian/copyright for detail
2667 (list license:lgpl2.1 ; xenserver and utilities/bugtool
2668 license:gpl2 ; datapath
2669 license:bsd-2 license:bsd-3
2670 license:asl2.0)))) ; all other
2672 (define-public python-ipy
2678 (uri (pypi-uri "IPy" version))
2681 "08d6kcacj67mvh0b6y765ipccy6gi4w2ndd4v1l3im2qm1cgcarg"))))
2682 (build-system python-build-system)
2683 (home-page "https://github.com/autocracy/python-ipy/")
2684 (synopsis "Python class and tools for handling IP addresses and networks")
2685 (description "The @code{IP} class allows a comfortable parsing and
2686 handling for most notations in use for IPv4 and IPv6 addresses and
2688 (license license:bsd-3)))
2690 (define-public speedtest-cli
2692 (name "speedtest-cli")
2698 (url "https://github.com/sivel/speedtest-cli")
2699 (commit (string-append "v" version))))
2700 (file-name (git-file-name name version))
2702 (base32 "10fazl4kwf41mk7pnwpfms16n0ii0kg9pf8r3mz9xwnl9y04mv9x"))))
2703 (build-system python-build-system)
2704 (home-page "https://github.com/sivel/speedtest-cli")
2705 (synopsis "Internet bandwidth tester")
2707 "Command line interface for testing internet bandwidth using
2709 (license license:asl2.0)))
2711 (define-public tftp-hpa
2717 (uri (string-append "mirror://kernel.org/software/"
2718 "network/tftp/tftp-hpa/tftp-hpa-" version
2722 "12vidchglhyc20znq5wdsbhi9mqg90jnl7qr9qs8hbvaz4fkdvmg"))))
2723 (build-system gnu-build-system)
2725 (list #:tests? #f ; no test target
2727 #~(list "CFLAGS=-fcommon"))) ; XXX fix 5.2 build with GCC 10
2728 (synopsis "HPA's tftp client")
2730 "This is a tftp client derived from OpenBSD tftp with some extra options
2731 added and bugs fixed. The source includes readline support but it is not
2732 enabled due to license conflicts between the BSD advertising clause and the GPL.")
2733 (home-page "https://git.kernel.org/cgit/network/tftp/tftp-hpa.git/about/")
2734 ;; Some source files are distributed under a 3-clause BSD license, and
2735 ;; others under a 4-clause BSD license. Refer to the files in the source
2736 ;; distribution for clarification.
2737 (license (list license:bsd-3 license:bsd-4))))
2739 (define-public spiped
2745 (uri (string-append "https://www.tarsnap.com/spiped/spiped-"
2749 "04rpnc53whfky7pp2m9h35gwzwn6788pnl6c1qd576mpknbqjw4d"))))
2750 (build-system gnu-build-system)
2752 `(#:test-target "test"
2753 #:make-flags (let* ((out (assoc-ref %outputs "out"))
2754 (bindir (string-append out "/bin"))
2755 (man1dir (string-append out "/share/man/man1")))
2756 (list ,(string-append "CC=" (cc-for-target)) ; It tries to invoke `c99`.
2757 (string-append "BINDIR=" bindir)
2758 (string-append "MAN1DIR=" man1dir)))
2760 (modify-phases %standard-phases
2761 (add-after 'unpack 'patch-command-invocations
2763 (substitute* '("Makefile"
2764 "libcperciva/cpusupport/Build/cpusupport.sh"
2765 "libcperciva/POSIX/posix-cflags.sh"
2766 "libcperciva/POSIX/posix-l.sh")
2767 (("command -p") ""))
2769 (delete 'configure) ; No ./configure script.
2770 (add-after 'install 'install-more-docs
2771 (lambda* (#:key outputs #:allow-other-keys)
2772 (let* ((out (assoc-ref %outputs "out"))
2773 (misc (string-append out "/share/doc/spiped")))
2774 (install-file "DESIGN.md" misc)
2777 (list procps)) ; `ps` is used by the test suite.
2780 (home-page "https://www.tarsnap.com/spiped.html")
2781 (synopsis "Create secure pipes between sockets")
2782 (description "Spiped (pronounced \"ess-pipe-dee\") is a utility for creating
2783 symmetrically encrypted and authenticated pipes between socket addresses, so
2784 that one may connect to one address (e.g., a UNIX socket on localhost) and
2785 transparently have a connection established to another address (e.g., a UNIX
2786 socket on a different system). This is similar to 'ssh -L' functionality, but
2787 does not use SSH and requires a pre-shared symmetric key.")
2788 (license license:bsd-2)))
2790 (define-public quagga
2796 ;; Use archived sources; see <http://issues.guix.gnu.org/47123>.
2797 (uri (string-append "https://fossies.org/linux/misc/"
2798 "quagga-" version ".tar.gz"))
2801 "1lsksqxij5f1llqn86pkygrf5672kvrqn1kvxghi169hqf1c0r73"))
2803 (search-patches "quagga-reproducible-build.patch"))))
2804 (build-system gnu-build-system)
2805 (native-inputs (list pkg-config perl dejagnu))
2806 (inputs (list readline c-ares))
2807 (synopsis "Routing Software Suite")
2808 (description "Quagga is a routing software suite, providing implementations
2809 of OSPFv2, OSPFv3, RIP v1 and v2, RIPng and BGP-4 for Unix platforms.
2811 The Quagga architecture consists of a core daemon, @command{zebra}, which
2812 acts as an abstraction layer to the underlying Unix kernel and presents the
2813 Zserv API over a Unix or TCP stream to Quagga clients. It is these Zserv
2814 clients which typically implement a routing protocol and communicate routing
2815 updates to the zebra daemon.")
2816 (home-page "https://www.nongnu.org/quagga/")
2817 (license license:gpl2+)))
2819 (define-public thc-ipv6
2820 (let ((revision "0")
2821 (commit "4bb72573e0950ce6f8ca2800a10748477020029e"))
2824 (version (git-version "3.4" revision commit))
2828 (url "https://github.com/vanhauser-thc/thc-ipv6")
2830 (file-name (git-file-name name version))
2833 "1x5i6vbsddqc2yks7r1a2fw2fk16qxvd6hpzh1lykjfpkal8fdir"))))
2834 (build-system gnu-build-system)
2836 `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2837 #:tests? #f ; No test suite.
2839 (modify-phases %standard-phases
2840 (add-after 'unpack 'use-source-date-epoch-in-manpages
2841 ;; For reproducible builds
2843 (substitute* "Makefile"
2844 (("date --iso-8601")
2845 "date --iso-8601 --utc --date=@$(SOURCE_DATE_EPOCH)"))))
2846 (delete 'configure) ; No ./configure script.
2847 (add-before 'build 'patch-paths
2849 (substitute* "Makefile"
2850 (("/bin/echo") "echo"))
2852 (add-after 'install 'install-more-docs
2853 (lambda* (#:key outputs #:allow-other-keys)
2854 (let* ((out (assoc-ref outputs "out"))
2855 (doc (string-append out "/share/thc-ipv6/doc")))
2856 (install-file "README" doc)
2857 (install-file "HOWTO-INJECT" doc)
2859 ;; TODO Add libnetfilter-queue once packaged.
2861 (list libpcap openssl perl))
2862 (home-page "https://github.com/vanhauser-thc/thc-ipv6")
2863 (synopsis "IPv6 security research toolkit")
2864 (description "The THC IPv6 Toolkit provides command-line tools and a library
2865 for researching IPv6 implementations and deployments. It requires Linux 2.6 or
2866 newer and only works on Ethernet network interfaces.")
2867 ;; AGPL 3 with exception for linking with OpenSSL. See the 'LICENSE' file in
2868 ;; the source distribution for more information.
2869 (license license:agpl3))))
2878 (uri (string-append "https://github.com/tgraf/bmon/releases/download/v"
2879 version "/bmon-" version ".tar.gz"))
2882 "0ylzriv4pwh76344abzl1w219x188gshbycbna35gsyfp09c7z82"))))
2883 (build-system gnu-build-system)
2885 (list libconfuse libnl ncurses))
2888 (synopsis "Bandwidth monitor")
2889 (description "bmon is a monitoring and debugging tool to capture
2890 networking-related statistics and prepare them visually in a human-friendly
2891 way. It features various output methods including an interactive curses user
2892 interface and a programmable text output for scripting.")
2893 (home-page "https://github.com/tgraf/bmon")
2894 ;; README.md mentions both the 2-clause BSD and expat licenses, but all
2895 ;; the source files only have expat license headers. Upstream has been
2896 ;; contacted for clarification: https://github.com/tgraf/bmon/issues/59
2897 ;; Update the license field when upstream responds.
2898 (license (list license:bsd-2
2901 (define-public libnet
2908 (uri (string-append "https://github.com/libnet/libnet/releases/download"
2909 "/v" version "/libnet-" version ".tar.gz"))
2912 "19ys9vxk6fg70yzzdxsphfr0rwzgxxhr9b3ykhpg7rfray0qd96a"))))
2913 (build-system gnu-build-system)
2916 (modify-phases %standard-phases
2917 (add-before 'build 'build-doc
2918 (lambda* (#:key make-flags #:allow-other-keys)
2919 (apply invoke "make" "-C" "doc" "doc"
2922 (list ;; To build the documentation, Doxygen and Perl is required.
2924 (home-page "https://github.com/libnet/libnet")
2925 (synopsis "Framework for low-level network packet construction")
2927 "Libnet provides a fairly portable framework for network packet
2928 construction and injection. It features portable packet creation interfaces
2929 at the IP layer and link layer, as well as a host of supplementary
2930 functionality. Using libnet, quick and simple packet assembly applications
2931 can be whipped up with little effort.")
2932 (license license:bsd-2)))
2941 (uri (string-append "ftp://ftp.bitwizard.nl/mtr/"
2942 "mtr-" version ".tar.gz"))
2944 (base32 "0haanralbvd12pvkyihgkmx9ld74dnzm1s7mzparfandl416ibff"))))
2945 (build-system gnu-build-system)
2947 (list libcap ncurses))
2949 `(#:tests? #f)) ; tests require network access
2950 (home-page "https://www.bitwizard.nl/mtr/")
2951 (synopsis "Network diagnostic tool")
2953 "@acronym{mtr, My TraceRoute} combines the functionality of the
2954 @command{traceroute} and @command{ping} programs in a single network diagnostic
2955 tool. @command{mtr} can use several network protocols to detect intermediate
2956 routers (or @dfn{hops}) between the local host and a user-specified destination.
2957 It then continually measures the response time and packet loss at each hop, and
2958 displays the results in real time.")
2959 (license license:gpl2+)))
2961 (define-public amule
2968 (url "https://github.com/amule-project/amule")
2970 (file-name (git-file-name name version))
2973 "1nm4vxgmisn1b6l3drmz0q04x067j2i8lw5rnf0acaapwlp8qwvi"))))
2974 (build-system gnu-build-system)
2977 (modify-phases %standard-phases
2978 (delete 'bootstrap) ; bootstrap phase runs too early.
2979 (add-after 'patch-source-shebangs 'autogen
2981 (invoke "sh" "autogen.sh")
2995 "--enable-amule-gui"
2996 "--enable-amule-daemon"
2997 "--enable-webserver"
2998 "--with-denoise-level=0")))
3000 (list autoconf automake gettext-minimal perl))
3002 (list zlib crypto++ libpng wxwidgets-gtk2))
3003 (home-page "https://amule.org/")
3004 (synopsis "Peer-to-peer client for the eD2K and Kademlia networks")
3006 "aMule is an eMule-like client for the eD2k and Kademlia peer-to-peer
3007 file sharing networks. It includes a graphical user interface (GUI), a daemon
3008 allowing you to run a client with no graphical interface, and a Web GUI for
3009 remote access. The @command{amulecmd} command allows you to control aMule
3011 (license license:gpl2+)))
3020 (string-append "https://github.com/zeromq/zyre/releases/download/v"
3021 version "/" name "-" version ".tar.gz"))
3024 "13596507ma1474cjqzxym5jlvcshvw7sjhw80rdz788gyz6kz90b"))))
3025 (build-system gnu-build-system)
3026 (inputs (list zeromq czmq libsodium))
3027 (synopsis "Framework for proximity-based peer-to-peer applications")
3028 (description "Zyre provides reliable group messaging over local area
3029 networks using zeromq. It has these key characteristics:
3032 @item Zyre needs no administration or configuration.
3033 @item Peers may join and leave the network at any time.
3034 @item Peers talk to each other without any central brokers or servers.
3035 @item Peers can talk directly to each other.
3036 @item Peers can join groups, and then talk to groups.
3037 @item Zyre is reliable, and loses no messages even when the network is heavily loaded.
3038 @item Zyre is fast and has low latency, requiring no consensus protocols.
3039 @item Zyre is designed for WiFi networks, yet also works well on Ethernet networks.
3041 (home-page "https://github.com/zeromq/zyre")
3042 (license license:mpl2.0)))
3044 (define-public libsocketcan
3046 (name "libsocketcan")
3051 (url "https://git.pengutronix.de/cgit/tools/libsocketcan")
3052 (commit (string-append "v" version))))
3053 (file-name (git-file-name name version))
3056 "0nrav2yqxgb7jwnhrwirnxs9ycqqh90sqgv5a8lns837jf385jvq"))))
3057 (build-system gnu-build-system)
3060 #~(modify-phases %standard-phases
3061 ;; Upstream already puts (more) files in share/doc/libsocketcan.
3062 (delete 'install-license-files))))
3064 (list autoconf automake libtool))
3065 (home-page "https://git.pengutronix.de/cgit/tools/libsocketcan")
3066 (synopsis "SocketCAN user-space library")
3067 (description "This library allows controlling basic functions in SocketCAN
3068 from user-space. It requires a kernel built with SocketCAN support.")
3069 (license license:lgpl2.1+)))
3071 (define-public can-utils
3074 (version "2020.02.04")
3078 (url "https://github.com/linux-can/can-utils")
3079 (commit (string-append "v" version))))
3080 (file-name (git-file-name name version))
3083 "1a3j1mmnb7pvgc8r7zzp6sdp7903in2hna6bmpraxln7cwlzn4l6"))))
3084 (build-system gnu-build-system)
3086 `(#:tests? #f ; No tests exist.
3087 #:make-flags (list ,(string-append "CC=" (cc-for-target))
3088 (string-append "PREFIX="
3089 (assoc-ref %outputs "out")))
3091 (modify-phases %standard-phases
3093 (delete 'configure))))
3094 (home-page "https://github.com/linux-can/can-utils")
3095 (synopsis "CAN utilities")
3096 (description "This package provides CAN utilities in the following areas:
3099 @item Basic tools to display, record, generate and replay CAN traffic
3100 @item CAN access via IP sockets
3101 @item CAN in-kernel gateway configuration
3102 @item CAN bus measurement and testing
3103 @item ISO-TP (ISO15765-2:2016 - this means messages with a body larger than
3105 @item Log file converters
3106 @item Serial Line Discipline configuration for slcan driver
3108 ;; Either BSD-3 or GPL-2 can be used.
3109 (license (list license:bsd-3 license:gpl2))))
3118 (uri (string-append "mirror://sourceforge/asio/asio/"
3119 version " (Stable)/asio-" version ".tar.bz2"))
3121 (base32 "0v5w9j4a02j2rkc7mrdj3ms0kfpqbgq2ipkixlz2l0p8xs0vfsvp"))))
3122 (build-system gnu-build-system)
3124 (list boost openssl))
3128 (string-append "--with-boost=" (assoc-ref %build-inputs "boost"))
3129 (string-append "--with-openssl=" (assoc-ref %build-inputs "openssl")))))
3130 (home-page "https://think-async.com/Asio")
3131 (synopsis "C++ library for ASynchronous network I/O")
3132 (description "Asio is a cross-platform C++ library for network and
3133 low-level I/O programming that provides developers with a consistent
3134 asynchronous model using a modern C++ approach.")
3135 (license license:boost1.0)))
3137 (define-public shadowsocks
3139 (name "shadowsocks")
3145 (url "https://github.com/shadowsocks/shadowsocks")
3148 (base32 "02mp5905nz02d7amb4zc77rcrkxmvy8mf5rci7mvy58g24lvbw25"))
3149 (file-name (git-file-name name version))))
3154 (modify-phases %standard-phases
3155 (add-after 'unpack 'patch-crypto-paths
3156 (lambda* (#:key inputs #:allow-other-keys)
3157 (substitute* "shadowsocks/shell.py"
3158 (("config\\.get\\('libopenssl', None\\)")
3159 (format #f "config.get('libopenssl', ~s)"
3161 (assoc-ref inputs "openssl")
3162 "/lib/libssl.so")))))))))
3163 (build-system python-build-system)
3164 (home-page "https://github.com/shadowsocks/shadowsocks")
3165 (synopsis "Fast tunnel proxy that helps you bypass firewalls")
3167 "This package is a fast tunnel proxy that helps you bypass firewalls.
3171 @item TCP & UDP support
3172 @item User management API
3174 @item Workers and graceful restart
3175 @item Destination IP blacklist
3177 (license license:asl2.0)))
3179 (define-public net-snmp
3185 (uri (string-append "mirror://sourceforge/net-snmp/net-snmp/"
3186 version "/net-snmp-" version ".tar.gz"))
3189 "02pgl89s8qll5zhdp61rbn6vpl084gx55bjb1cqg3wqvgsdz55r0"))
3190 (modules '((guix build utils)))
3193 ;; Drop bundled libraries.
3194 (delete-file-recursively "snmplib/openssl")))))
3195 (build-system gnu-build-system)
3197 `(#:test-target "test"
3198 ;; XXX: With parallel build enabled, Perl modules may not get linked with
3199 ;; libnetsnmp. See e.g. <https://bugzilla.novell.com/show_bug.cgi?id=819497>.
3200 #:parallel-build? #f
3202 (list (string-append "LDFLAGS=-Wl,-rpath="
3203 (assoc-ref %outputs "out")
3206 "--with-logfile=/var/log/snmpd.log"
3207 (string-append "--with-openssl="
3208 (assoc-ref %build-inputs "openssl")))
3210 (modify-phases %standard-phases
3211 (add-after 'unpack 'patch-tests
3212 (lambda* (#:key inputs #:allow-other-keys)
3213 (substitute* "testing/fulltests/support/simple_TESTCONF.sh"
3215 (string-append "NETSTAT=\"" (which "netstat") "\"")))
3216 (substitute* '("testing/fulltests/default/T065agentextend_simple"
3217 "testing/fulltests/default/T115agentxperl_simple")
3218 (("/usr/bin/env") (which "env")))
3219 (substitute* "testing/fulltests/default/T065agentextend_sh_simple"
3220 (("/bin/sh") (which "sh")))
3221 ;; These tests require network access.
3222 (for-each delete-file
3223 '("testing/fulltests/default/T070com2sec_simple"
3224 "testing/fulltests/default/T071com2sec6_simple"))))
3225 (add-after 'unpack 'patch-Makefile.PL
3226 (lambda* (#:key outputs #:allow-other-keys)
3227 (substitute* "Makefile.in"
3228 (("Makefile.PL -NET")
3229 (string-append "Makefile.PL PREFIX="
3230 (assoc-ref outputs "out")
3231 " INSTALLDIRS=site" " NO_PERLLOCAL=1"
3234 (list libnl ncurses ; for the ‘apps’
3239 net-tools coreutils grep))
3240 (home-page "http://www.net-snmp.org/")
3241 (synopsis "Simple Network Management Protocol library and tools")
3242 (description "The @dfn{Simple Network Management Protocol} (SNMP) is a
3243 widely used protocol for monitoring the health and welfare of network
3244 equipment (e.g. routers), computer equipment and even devices like UPSs.
3245 Net-SNMP is a suite of applications used to implement SNMP v1, SNMP v2c and
3246 SNMP v3 using both IPv4 and IPv6.")
3247 ;; This only affects OpenBSD
3248 ;; https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-8100
3249 (properties `((lint-hidden-cve . ("CVE-2015-8100"))))
3250 (license (list license:bsd-3
3251 (license:non-copyleft
3252 "http://www.net-snmp.org/about/license.html"
3253 "CMU/UCD copyright notice")))))
3255 (define-public ubridge
3263 (url "https://github.com/GNS3/ubridge")
3264 (commit (string-append "v" version))))
3265 (file-name (git-file-name name version))
3267 (base32 "0jg66jhhpv4c9340fsdp64hf9h253i8r81fknxa0gq241ripp3jn"))))
3268 (build-system gnu-build-system)
3270 `(#:tests? #f ; no tests
3272 (list ,(string-append "CC=" (cc-for-target)))
3274 (modify-phases %standard-phases
3275 (delete 'configure) ; no configure script
3276 (add-before 'install 'set-bindir
3277 (lambda* (#:key inputs outputs #:allow-other-keys)
3278 (let ((bin (string-append (assoc-ref outputs "out")
3281 (substitute* "Makefile"
3282 (("\\$\\(BINDIR\\)") bin)
3283 (("\tsetcap cap_net.*$") "")))
3287 (home-page "https://github.com/GNS3/ubridge/")
3288 (synopsis "Bridge for UDP tunnels, Ethernet, TAP and VMnet interfaces")
3289 (description "uBridge is a simple program to create user-land bridges
3290 between various technologies. Currently, bridging between UDP tunnels,
3291 Ethernet and TAP interfaces is supported. Packet capture is also supported.")
3292 (license license:gpl3+)))
3294 (define-public hcxtools
3302 (url "https://github.com/ZerBea/hcxtools")
3305 (base32 "0460dxbc04w60l3g06rk007yyb6qprgyii59y2zdki0vy7q63m8b"))
3306 (file-name (git-file-name name version))))
3307 (build-system gnu-build-system)
3308 (native-inputs (list pkg-config))
3309 (inputs (list curl libpcap openssl zlib))
3312 #~(list (string-append "CC="
3313 #$(cc-for-target)) "LDFLAGS+=-lcrypto"
3314 "LDFLAGS+=-lcurl" "LDFLAGS+=-lz"
3315 (string-append "PREFIX="
3317 #:tests? #f ;no test suite
3319 #~(modify-phases %standard-phases
3320 (delete 'configure))))
3321 (home-page "https://github.com/ZerBea/hcxtools")
3322 (synopsis "Capture wlan traffic to hashcat and John the Ripper")
3324 "This package contains a small set of tools to capture and convert
3325 packets from wireless devices for use with hashcat or John the Ripper.")
3326 (license license:expat)))
3328 (define-public hcxdumptool
3330 (name "hcxdumptool")
3336 (url "https://github.com/ZerBea/hcxdumptool")
3339 (base32 "1b4d543y64ib92w9gcmiyjn5hz2vyjqmxk3f3yr1zk04fhw16gmf"))
3340 (file-name (git-file-name name version))))
3341 (build-system gnu-build-system)
3344 (list ,(string-append "CC=" (cc-for-target))
3345 (string-append "INSTALLDIR=" (assoc-ref %outputs "out") "/bin"))
3346 #:tests? #f ; no test suite
3348 (modify-phases %standard-phases
3349 (delete 'configure))))
3352 (home-page "https://github.com/ZerBea/hcxdumptool")
3353 (synopsis "Small tool to capture packets from wlan devices")
3355 "Small tool to capture packets from WLAN devices. After capturing,
3356 upload the \"uncleaned\" cap to @url{https://wpa-sec.stanev.org/?submit} to
3357 see if the access point or the client is vulnerable to a dictionary attack.
3358 Convert the cap file to hccapx format and/or to WPA-PMKID-PBKDF2
3359 hashline (16800) with @command{hcxpcaptool} from the @code{hcxtools} package
3360 and check if the WLAN key or the master key was transmitted unencrypted.")
3361 (license license:expat)))
3363 (define-public dante
3370 (uri (string-append "https://www.inet.no/dante/files/dante-"
3373 (base32 "0pbahkj43rx7rmv2x40mf5p3g3x9d6i2sz7pzglarf54w5ghd2j1"))))
3374 (build-system gnu-build-system)
3376 ;; XXX: The dynamic socks library doesn't work with 'libc.so' (GNU ld
3377 ;; script). When preloading is enabled, 'sockd' failed with:
3378 ;; … Failed to open library "libc.so": …: invalid ELF header
3379 '(#:configure-flags '("--disable-preload")))
3380 (home-page "https://www.inet.no/dante/")
3381 (synopsis "SOCKS server and client")
3382 (description "Dante is a SOCKS client and server implementation. It can
3383 be installed on a machine with access to an external TCP/IP network and will
3384 allow all other machines, without direct access to that network, to be relayed
3385 through the machine the Dante server is running on. The external network will
3386 never see any machines other than the one Dante is running on.")
3387 (license (license:non-copyleft "file://LICENSE"))))
3389 (define-public restbed
3397 (url "https://github.com/Corvusoft/restbed/")
3399 (file-name (git-file-name name version))
3401 (base32 "15j09x36i6zj6innl0w1mfzlc56qmjwrs82my8dsagqa2ikd08ya"))))
3402 (build-system cmake-build-system)
3404 (list asio catch-framework openssl))
3409 (modify-phases %standard-phases
3410 (add-after 'unpack 'apply-patches-and-fix-paths
3411 (lambda* (#:key inputs #:allow-other-keys)
3412 (let ((asio (assoc-ref inputs "asio"))
3413 (catch (assoc-ref inputs "catch"))
3414 (openssl (assoc-ref inputs "openssl")))
3415 (substitute* "cmake/Findasio.cmake"
3416 (("(find_path\\( asio_INCLUDE asio\\.hpp HINTS ).*$" all begin)
3417 (string-append begin " \"" asio "/include\" )")))
3418 (substitute* "cmake/Findcatch.cmake"
3419 (("(find_path\\( catch_INCLUDE catch\\.hpp HINTS ).*$" all begin)
3420 (string-append begin " \"" catch "/include\" )")))
3421 (substitute* "cmake/Findopenssl.cmake"
3422 (("(find_library\\( ssl_LIBRARY ssl ssleay32 HINTS ).*$" all begin)
3423 (string-append begin " \"" openssl "/lib\" )"))
3424 (("(find_library\\( crypto_LIBRARY crypto libeay32 HINTS ).*$" all begin)
3425 (string-append begin " \"" openssl "/lib\" )"))
3426 (("(find_path\\( ssl_INCLUDE openssl/ssl\\.h HINTS ).*$" all begin)
3427 (string-append begin " \"" openssl "/include\" )")))))))))
3428 (synopsis "Asynchronous RESTful functionality to C++11 applications")
3429 (description "Restbed is a comprehensive and consistent programming
3430 model for building applications that require seamless and secure
3431 communication over HTTP.")
3432 (home-page "https://github.com/Corvusoft/restbed")
3433 (license license:agpl3+)))
3435 (define-public restinio
3442 (url "https://github.com/Stiffstream/restinio")
3443 (commit (string-append "v." version))))
3444 (file-name (git-file-name name version))
3447 "1f8d5nfm8jqhspzsslwb1b7j4glipz31i9vszrcnkx3clc39nj2n"))))
3448 (build-system cmake-build-system)
3449 (inputs ; TODO: Need to force-keep references on some inputs, e.g. boost.
3458 (list asio fmt http-parser))
3460 `(#:configure-flags '("-DRESTINIO_INSTALL=on")
3461 #:tests? #f ; TODO: The tests are called from the root CMakelist, need RESTINIO_TEST=on.
3463 (modify-phases %standard-phases
3464 (add-after 'unpack 'change-directory
3466 (chdir "dev/restinio"))))))
3467 (home-page "https://stiffstream.com/en/products/restinio.html")
3468 (synopsis "C++14 library that gives you an embedded HTTP/Websocket server")
3469 (description "RESTinio is a header-only C++14 library that gives you an embedded
3470 HTTP/Websocket server. It is based on standalone version of ASIO
3471 and targeted primarily for asynchronous processing of HTTP-requests.")
3472 (license license:bsd-3)))
3474 (define-public opendht
3481 (url "https://github.com/savoirfairelinux/opendht")
3482 (commit (string-append "v" version))))
3483 (file-name (git-file-name name version))
3486 "150yxlhn8ykhck7gr1i2bppbqpfyhk0cscn5z7vyn94y5fnqkxsb"))))
3487 (outputs '("out" "tools" "debug"))
3488 (build-system gnu-build-system)
3491 #:imported-modules `((guix build python-build-system) ;for site-packages
3492 ,@%gnu-build-system-modules)
3493 #:modules '(((guix build python-build-system) #:prefix python:)
3494 (guix build gnu-build-system)
3497 #~(list "--enable-tests"
3498 "--enable-proxy-server"
3499 "--enable-push-notifications"
3500 "--enable-proxy-server-identity"
3501 "--enable-proxy-client")
3503 #~(modify-phases %standard-phases
3504 (add-after 'unpack 'disable-problematic-tests
3506 ;; The dhtrunnertester test suite includes 'testListen', which
3507 ;; is sensitive to the performance/load of the machine it runs
3508 ;; on, introducing nondeterminism (see:
3509 ;; https://github.com/savoirfairelinux/opendht/issues/626).
3510 (substitute* "tests/Makefile.am"
3511 (("\\bdhtrunnertester\\.(h|cpp)\\b")
3513 (add-after 'unpack 'fix-python-installation-prefix
3514 ;; Specify the installation prefix for the compiled Python module
3515 ;; that would otherwise attempt to installs itself to Python's own
3516 ;; site-packages directory.
3518 (substitute* "python/Makefile.am"
3519 (("--root=\\$\\(DESTDIR)/")
3520 (string-append "--root=/ --single-version-externally-managed "
3521 "--prefix=" #$output)))))
3522 (add-after 'unpack 'specify-runpath-for-python-module
3524 (substitute* "python/setup.py.in"
3525 (("extra_link_args=\\[(.*)\\]" _ args)
3526 (string-append "extra_link_args=[" args
3527 ", '-Wl,-rpath=" #$output "/lib']")))))
3529 (lambda* (#:key tests? #:allow-other-keys)
3531 (invoke "tests/opendht_unit_tests"))))
3532 (add-after 'install 'move-and-wrap-tools
3533 (lambda* (#:key inputs outputs #:allow-other-keys)
3534 (let* ((tools (assoc-ref outputs "tools"))
3535 (dhtcluster (string-append tools "/bin/dhtcluster"))
3536 (site-packages (python:site-packages inputs outputs)))
3538 (rename-file (string-append #$output "/bin")
3539 (string-append tools "/bin"))
3540 ;; TODO: Contribute a patch to python/Makefile.am to
3542 (copy-file "python/tools/dhtcluster.py" dhtcluster)
3543 (chmod dhtcluster #o555)
3544 (wrap-program dhtcluster
3545 `("GUIX_PYTHONPATH" prefix (,site-packages)))))))))
3546 (inputs (list bash-minimal fmt readline))
3548 (list msgpack ;included in several installed headers
3549 restinio ;included in opendht/http.h
3550 ;; The following are listed in the 'Requires.private' field of
3556 openssl)) ;required for the DHT proxy
3565 (home-page "https://github.com/savoirfairelinux/opendht/")
3566 (synopsis "Lightweight Distributed Hash Table (DHT) library")
3567 (description "OpenDHT provides an easy to use distributed in-memory data
3568 store. Every node in the network can read and write values to the store.
3569 Values are distributed over the network, with redundancy. It includes the
3572 @item Lightweight and scalable, designed for large networks and small devices;
3573 @item High resilience to network disruption;
3574 @item Public key cryptography layer providing optional data signature and
3575 encryption (using GnuTLS);
3576 @item IPv4 and IPv6 support;
3577 @item Clean and powerful C++14 map API;
3578 @item Bindings for C, Rust & Python 3;
3579 @item REST API with an optional HTTP client and server with push notification
3582 The following tools are also included:
3585 A command line tool to run a DHT node and perform operations supported by the
3586 library (get, put, etc.) with text values.
3588 A very simple IM client working over the DHT.
3590 (license license:gpl3+)))
3592 (define-public frrouting
3598 (uri (string-append "https://github.com/FRRouting/frr/releases/"
3599 "download/frr-" version "/frr-" version
3603 "1r7gh5h27ii7d1d0z0x48wx7hs8vvympv3gqvy3cwzg05q5vk9xs"))))
3604 (build-system gnu-build-system)
3606 (list c-ares json-c libcap libyang readline))
3608 (list perl pkg-config python-wrapper python-pytest))
3609 (home-page "https://frrouting.org/")
3610 (synopsis "IP routing protocol suite")
3611 (description "FRRouting (FRR) is an IP routing protocol suite which includes
3612 protocol daemons for BGP, IS-IS, LDP, OSPF, PIM, and RIP.")
3613 (license license:gpl2+)))
3621 (uri (string-append "ftp://bird.network.cz/pub/bird/bird-"
3625 "1xp7f0im1v8pqqx3xqyfkd1nsxk8vnbqgrdrwnwhg8r5xs1xxlhr"))))
3627 (list libssh readline))
3631 `(#:configure-flags '("--localstatedir=/var" "--enable-ipv6")
3633 (modify-phases %standard-phases
3634 (add-before 'configure 'dont-create-sysconfdir
3635 (lambda* (#:key outputs #:allow-other-keys)
3636 (substitute* "Makefile.in"
3637 ((" \\$\\(DESTDIR)/\\$\\(runstatedir)") "")))))))
3638 (build-system gnu-build-system)
3639 (home-page "http://bird.network.cz")
3640 (synopsis "Internet Routing Daemon")
3641 (description "BIRD is an Internet routing daemon with full support for all
3642 the major routing protocols. It allows redistribution between protocols with a
3643 powerful route filtering syntax and an easy-to-use configuration interface.")
3644 (license license:gpl2+)))
3653 (url "https://git.kernel.org/pub/scm/network/wireless/iwd.git")
3655 (file-name (git-file-name name version))
3658 "1sdi7008j5jhlg2rqpczh1pzb8zay6mc9dpnjjsmdnsmrcr3v7wi"))))
3659 (build-system gnu-build-system)
3661 (list dbus ell (package-source ell) readline))
3672 ,#~(list "--disable-systemd-service"
3673 "--enable-external-ell"
3677 "--localstatedir=/var"
3678 (string-append "--with-dbus-datadir=" #$output "/share/")
3679 (string-append "--with-dbus-busdir="
3680 #$output "/share/dbus-1/system-services"))
3682 (modify-phases %standard-phases
3683 (add-after 'unpack 'copy-ell-header-files
3684 ;; Copy into the source tree two of ell's private header files that
3685 ;; it shares with iwd, as is required to build with the
3686 ;; "--enable-external-ell" configure option.
3687 ;; See the definition of "ell_shared" in iwd's Makefile.am.
3688 (lambda* (#:key inputs #:allow-other-keys)
3689 (let ((ell-header-dir (search-input-directory inputs "/ell"))
3694 (copy-file (string-append ell-header-dir "/" file-name)
3695 (string-append target-dir "/" file-name)))
3696 '("asn1-private.h" "useful.h")))))
3697 (add-after 'configure 'patch-Makefile
3699 (substitute* "Makefile"
3700 ;; Don't try to 'mkdir /var'.
3701 (("\\$\\(MKDIR_P\\) -m 700") "true")))))))
3702 (home-page "https://git.kernel.org/pub/scm/network/wireless/iwd.git/")
3703 (synopsis "Internet Wireless Daemon")
3704 (description "iwd is a wireless daemon for Linux that aims to replace WPA
3705 Supplicant. It optimizes resource utilization by not depending on any external
3706 libraries and instead utilizing features provided by the Linux kernel to the
3707 maximum extent possible.")
3708 (license license:lgpl2.1+)))
3710 (define-public libyang
3717 (url "https://github.com/CESNET/libyang")
3718 (commit (string-append "v" version))))
3719 (file-name (git-file-name name version))
3722 "0mrs2ppmq77z8sbqgm2w0rl9bfgybd6bcxanakfww4chih6cy0dw"))))
3723 (build-system cmake-build-system)
3726 (list "-DENABLE_BUILD_TESTS=ON" "-DENABLE_LYD_PRIV=ON")))
3727 (propagated-inputs (list pcre))
3728 (native-inputs (list cmocka pkg-config))
3729 (home-page "https://github.com/CESNET/libyang")
3730 (synopsis "YANG data modelling language library")
3731 (description "libyang is a YANG data modelling language parser and toolkit
3732 written (and providing API) in C. Current implementation covers YANG 1.0 (RFC
3733 6020) as well as YANG 1.1 (RFC 7950).")
3734 (license license:bsd-3)))
3736 (define-public batctl
3743 (uri (string-append "https://downloads.open-mesh.org/batman/releases/batman-adv-"
3744 version "/batctl-" version ".tar.gz"))
3746 (base32 "1ryqz90av2p5pgmmpi1afmycd18zhpwz1i4f7r0s359jis86xndn"))))
3751 (build-system gnu-build-system)
3754 ;; Batctl only has a makefile. Thus we disable tests and
3755 ;; configuration, passing in a few make-flags.
3756 #:phases (modify-phases %standard-phases (delete 'configure))
3758 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3759 (string-append "PKG_CONFIG="
3760 (search-input-file %build-inputs
3762 ,(string-append "CC=" (cc-for-target)))))
3763 (home-page "https://www.open-mesh.org/projects/batman-adv/wiki/Wiki")
3764 (synopsis "Management tool for the mesh networking BATMAN protocol")
3765 (description "This package provides a control tool for the
3766 B.A.T.M.A.N. mesh networking routing protocol provided by the Linux kernel
3767 module @code{batman-adv}, for Layer 2.")
3768 (license license:gpl2+)))
3770 (define-public pagekite
3773 (version "1.5.2.200725")
3778 (url "https://github.com/pagekite/PyPagekite")
3779 (commit (string-append "v" version))))
3780 (file-name (git-file-name name version))
3782 (base32 "0lig1i42bn9isw848vnml5qhcaa04x1dr2hb075bm0a3439kv3rr"))))
3783 (build-system python-build-system)
3786 (modify-phases %standard-phases
3787 (add-after 'install 'install-man-page
3788 (lambda* (#:key inputs outputs #:allow-other-keys)
3789 (let* ((out (assoc-ref outputs "out"))
3790 (man (string-append out "/share/man")))
3791 (invoke "make" "doc/pagekite.1")
3792 (install-file "doc/pagekite.1" (string-append man "/man1"))))))))
3794 (list python-six python-socksipychain))
3795 (home-page "https://pagekite.net/")
3796 (synopsis "Make localhost servers publicly visible")
3798 "PageKite implements a tunneled reverse proxy which makes it easy to make
3799 a service (such as an HTTP or SSH server) on localhost visible to the wider
3800 Internet, even behind NAT or restrictive firewalls. A managed front-end relay
3801 service is available at @url{https://pagekite.net/}, or you can run your own.")
3802 (license license:agpl3+)))
3804 (define-public ipcalc
3812 ;; This is the IPv6-capable continuation of the unmaintained
3813 ;; <https://jodies.de/ipcalc-archive/>.
3814 (url "https://github.com/kjokjo/ipcalc")
3816 (file-name (git-file-name name version))
3818 (base32 "0cnygb69vjmp3by75jcd2z4y3ybp1s7x4nl3d32xa49h8lkhdbfv"))))
3819 (inputs `(("perl" ,perl)))
3820 (build-system trivial-build-system) ;no Makefile.PL
3822 `(#:modules ((guix build utils))
3825 (use-modules (guix build utils))
3826 (use-modules (srfi srfi-1))
3827 (let* ((source (assoc-ref %build-inputs "source"))
3828 (perl (string-append (assoc-ref %build-inputs "perl")
3830 (out (assoc-ref %outputs "out"))
3831 (bin (string-append out "/bin"))
3832 (doc (string-append out "/share/doc/ipcalc")))
3833 (copy-recursively source "source")
3836 (install-file "ipcalc" bin)
3837 (patch-shebang (string-append bin "/ipcalc") (list perl))))))
3838 (synopsis "Simple IP network calculator")
3839 (description "ipcalc takes an IP address and netmask and calculates the
3840 resulting broadcast, network, Cisco wildcard mask, and host range. By giving
3841 a second netmask, you can design subnets and supernets. It is also intended
3842 to be a teaching tool and presents the subnetting results as
3843 easy-to-understand binary values.")
3844 (home-page "https://github.com/kjokjo/ipcalc")
3845 (license license:gpl2+)))
3847 (define-public tunctl
3854 (uri (string-append "mirror://sourceforge/tunctl/tunctl/" version "/"
3855 "tunctl-" version ".tar.gz"))
3857 (base32 "1zsgn7w6l2zh2q0j6qaw8wsx981qcr536qlz1lgb3b5zqr66qama"))))
3858 (build-system gnu-build-system)
3861 (modify-phases %standard-phases
3862 (delete 'bootstrap) ;there is no configure.ac file
3863 (delete 'configure) ;there is no configure script
3864 (delete 'check) ;there are no tests
3868 (invoke "make" "tunctl")))
3869 ;; TODO: Requires docbook2x to generate man page from SGML.
3871 (lambda* (#:key outputs #:allow-other-keys)
3872 (let* ((out (assoc-ref outputs "out"))
3873 (bin (string-append out "/bin")))
3874 (install-file "tunctl" bin))
3876 (home-page "http://tunctl.sourceforge.net")
3877 (synopsis "Utility to set up and maintain TUN/TAP network interfaces")
3878 (description "Tunctl is used to set up and maintain persistent TUN/TAP
3879 network interfaces, enabling user applications to simulate network traffic.
3880 Such interfaces are useful for VPN software, virtualization, emulation,
3881 simulation, and a number of other applications.")
3882 (license license:gpl2)))
3891 (uri (string-append "mirror://sourceforge/wake-on-lan/wol/"
3892 version "/wol-" version ".tar.gz"))
3894 (base32 "08i6l5lr14mh4n3qbmx6kyx7vjqvzdnh3j9yfvgjppqik2dnq270"))))
3895 (build-system gnu-build-system)
3896 (home-page "https://sourceforge.net/projects/wake-on-lan/")
3897 (synopsis "Implements Wake On LAN functionality in a small program")
3898 (description "Tool to send a magic packet to wake another host on the
3899 network. This must be enabled on the target host, usually in the BIOS.")
3900 (license license:gpl2)))
3902 (define-public traceroute
3909 (uri (string-append "mirror://sourceforge/traceroute/traceroute/"
3910 "traceroute-" version "/traceroute-"
3913 (base32 "1dh32vcfawkl1p9g4ral1p0camds4paqr8db1kaqxwyk6hmd4s9n"))))
3914 (build-system gnu-build-system)
3916 `(#:tests? #f ;no test suite
3918 (list (string-append "LIBRARY_PATH="
3919 (assoc-ref %build-inputs "libc") "/lib")
3920 (string-append "CFLAGS=-I"
3921 (assoc-ref %build-inputs "kernel-headers")
3923 "LDFLAGS=-lm -L../libsupp"
3924 (string-append "prefix=" (assoc-ref %outputs "out")))
3926 (modify-phases %standard-phases
3927 (add-after 'unpack 'patch-make
3929 (substitute* "default.rules"
3930 ((" \\$\\(LIBDEPS\\)") "$(filter-out -l%,$(LIBDEPS))"))))
3931 (delete 'bootstrap) ;no configure.ac file
3932 (delete 'configure)))) ;no configure script
3933 (home-page "http://traceroute.sourceforge.net/")
3934 (synopsis "Tracks the route taken by packets over an IP network")
3935 (description "This package provides a modern, but Linux-specific
3936 implementation of the @command{traceroute} command that can be used to follow
3937 the route taken by packets on an IP network on their way to a given host. It
3938 utilizes the IP protocol's time to live (TTL) field and attempts to elicit an
3939 ICMP TIME_EXCEEDED response from each gateway along the path to the host.
3940 Compared to other implementations, this @command{traceroute} command allows
3941 some traces for unprivileged users.")
3942 (license (list license:gpl2+
3943 license:lgpl2.1+)))) ;for the libsupp subdirectory
3946 (let ((commit "8c65ebc464b2f986d5f1f4e6ae829ef4480c9d5a")
3950 (version (git-version "2.3.2" revision commit))
3955 (url "https://github.com/virtualsquare/vde-2")
3957 (file-name (git-file-name name version))
3959 (base32 "0l5xf71sv9zm5zw0wg8xgip58c0wh8zck2bazyc2a8gb67gc3s8y"))))
3960 (build-system gnu-build-system)
3962 `(#:parallel-build? #f)) ; Build fails if #t.
3964 (list autoconf automake libtool))
3966 (list python libpcap wolfssl))
3967 (home-page "https://github.com/virtualsquare/vde-2")
3968 (synopsis "Virtual Distributed Ethernet")
3969 (description "VDE is a set of programs to provide virtual software-defined
3970 Ethernet network interface controllers across multiple virtual or
3971 physical, local or remote devices. The VDE architecture provides
3972 virtual counterparts to hardware components such as switches and
3974 (license (list license:gpl2
3975 license:lgpl2.1 ; libvdeplug
3976 (license:non-copyleft ; slirpvde
3977 "file://COPYING.slirpvde"
3978 "See COPYING.slirpvde in the distribution."))))))
3980 (define-public haproxy
3986 (uri (string-append "https://www.haproxy.org/download/"
3987 (version-major+minor version)
3988 "/src/haproxy-" version ".tar.gz"))
3991 "0fd3c1znid5a9w3gcf77b85hm2a2558w9s02c4b7xzkmivqnqbir"))))
3992 (build-system gnu-build-system)
3995 (let* ((out (assoc-ref %outputs "out")))
3996 (list (string-append "PREFIX=" out)
3997 (string-append "DOCDIR=" out "/share/" ,name)
3998 "TARGET=linux-glibc"
4003 #:tests? #f ; there are only regression tests, using varnishtest
4005 (modify-phases %standard-phases
4006 (delete 'configure))))
4008 (list lua openssl pcre2 zlib))
4009 (home-page "https://www.haproxy.org/")
4010 (synopsis "Reliable, high performance TCP/HTTP load balancer")
4011 (description "HAProxy is a free, very fast and reliable solution offering
4012 high availability, load balancing, and proxying for TCP and HTTP-based
4013 applications. It is particularly suited for web sites crawling under very
4014 high loads while needing persistence or Layer7 processing. Supporting tens of
4015 thousands of connections is clearly realistic with today's hardware.")
4016 (license (list license:gpl2+
4018 license:lgpl2.1+))))
4020 (define-public lldpd
4027 (uri (string-append "https://media.luffy.cx/files/lldpd/lldpd-"
4030 (base32 "1s0j5p0mjh1pda1aq5wm4hd41fh1m864jgbs82y5sshi9whijj57"))
4031 (modules '((guix build utils)))
4034 ;; Drop bundled library.
4035 (delete-file-recursively "libevent")))))
4037 (list #:configure-flags
4039 "--with-privsep-user=nobody"
4040 "--with-privsep-group=nogroup"
4041 "--localstatedir=/var"
4044 "--without-embedded-libevent"
4045 (string-append "--with-systemdsystemunitdir="
4046 #$output "/lib/systemd/system"))))
4047 (build-system gnu-build-system)
4049 (list libevent libxml2 openssl readline))
4052 (home-page "https://vincentbernat.github.io/lldpd/")
4053 (synopsis "Locate neighbors of your network equipment")
4055 "The @dfn{Link Layer Discovery Protocol} (LLDP) is an industry standard
4056 protocol designed to supplant proprietary Link-Layer protocols such as EDP or
4057 CDP. The goal of LLDP is to provide an inter-vendor compatible mechanism to
4058 deliver Link-Layer notifications to adjacent network devices. @code{lldpd} is
4059 an implementation of LLDP. It also supports some proprietary protocols.")
4060 (license license:isc)))
4062 (define-public hashcash
4069 (uri (string-append "http://www.hashcash.org/source/hashcash-"
4073 "15kqaimwb2y8wvzpn73021bvay9mz1gqqfc40gk4hj6f84nz34h1"))))
4074 (build-system gnu-build-system)
4076 `(#:make-flags (list (string-append "CC=" ,(cc-for-target)))
4078 (modify-phases %standard-phases
4080 ;; No tests available.
4083 (lambda* (#:key outputs #:allow-other-keys)
4084 (let* ((outdir (assoc-ref outputs "out"))
4085 (bindir (string-append outdir "/bin"))
4086 (mandir (string-append outdir "/share/man/man1"))
4087 (docdir (string-append outdir "/share/doc/hashcash-" ,version)))
4088 ;; Install manually, as we don't need the `sha1' binary
4089 (install-file "hashcash" bindir)
4090 (install-file "hashcash.1" mandir)
4091 (install-file "README" docdir)
4092 (install-file "LICENSE" docdir)
4093 (install-file "CHANGELOG" docdir)
4095 (home-page "https://www.hashcash.org/")
4096 (synopsis "Denial-of-service countermeasure")
4097 (description "Hashcash is a proof-of-work algorithm, which has been used
4098 as a denial-of-service countermeasure technique in a number of systems.
4100 A hashcash stamp constitutes a proof-of-work which takes a parametrizable
4101 amount of work to compute for the sender. The recipient can verify received
4102 hashcash stamps efficiently.
4104 This package contains a command-line tool for computing and verifying hashcash
4106 (license license:public-domain)))
4115 (uri (string-append "mirror://sourceforge/nbd/nbd/" version
4116 "/nbd-" version ".tar.xz"))
4118 (base32 "036ib2d5722sx9nn7jydqfpl5ici5if2z7g8xrskzcx74dniaxv8"))))
4119 (build-system gnu-build-system)
4123 (list bison pkg-config which))
4124 (home-page "https://nbd.sourceforge.io/")
4125 (synopsis "NBD client and server")
4126 (description "This package provides the NBD (Network Block Devices)
4127 client and server. It allows you to use remote block devices over a TCP/IP
4129 (license license:gpl2)))
4131 (define-public yggdrasil
4140 (url "https://github.com/yggdrasil-network/yggdrasil-go")
4141 (commit (string-append "v" version))
4143 (file-name (git-file-name name version))
4145 (base32 "0jp6998a45xi8pbi8p84chvpm1mhhcvcxm1avi1c1gjjp4jqm3vl"))
4146 (patches (search-patches "yggdrasil-extra-config.patch"))))
4147 (build-system go-build-system)
4149 '(#:import-path "github.com/yggdrasil-network/yggdrasil-go"
4150 ;; TODO: figure out how tests are run
4152 #:install-source? #f
4154 (modify-phases %standard-phases
4156 (lambda* (#:key import-path build-flags #:allow-other-keys)
4159 ((assoc-ref %standard-phases 'build)
4160 #:build-flags build-flags
4161 #:import-path directory))
4162 (list "github.com/yggdrasil-network/yggdrasil-go/cmd/yggdrasil"
4163 "github.com/yggdrasil-network/yggdrasil-go/cmd/yggdrasilctl"
4164 "github.com/yggdrasil-network/yggdrasil-go/cmd/genkeys"))
4166 ;; https://github.com/kardianos/minwinsvc is windows only
4168 (list ;;("go-golang-zx2c4-com-wireguard-windows"
4169 ;; ,go-golang-zx2c4-com-wireguard-windows)
4170 go-golang-zx2c4-com-wireguard
4171 go-golang-org-x-text
4174 go-golang-org-x-crypto
4177 go-github-com-mitchellh-mapstructure
4178 go-github-com-mattn-go-runewidth
4179 go-github-com-mattn-go-isatty
4180 go-github-com-kardianos-minwinsvc
4181 go-github-com-hjson-hjson-go
4182 go-github-com-hashicorp-go-syslog
4183 go-github-com-gologme-log
4184 go-github-com-fatih-color
4185 go-github-com-cheggaaa-pb-v3
4186 go-github-com-vividcortex-ewma
4187 go-github-com-arceliar-phony
4188 go-github-com-arceliar-ironwood))
4189 (home-page "https://yggdrasil-network.github.io/blog.html")
4191 "Experiment in scalable routing as an encrypted IPv6 overlay network")
4193 "Yggdrasil is an early-stage implementation of a fully end-to-end encrypted
4194 IPv6 network. It is lightweight, self-arranging, supported on multiple
4195 platforms and allows pretty much any IPv6-capable application to communicate
4196 securely with other Yggdrasil nodes. Yggdrasil does not require you to have
4197 IPv6 Internet connectivity - it also works over IPv4.")
4199 ;; As a special exception to the GNU Lesser General Public License
4200 ;; version 3 ("LGPL3"), the copyright holders of this Library give you
4201 ;; permission to convey to a third party a Combined Work that links
4202 ;; statically or dynamically to this Library without providing any Minimal
4203 ;; Corresponding Source or Minimal Application Code as set out in 4d or
4204 ;; providing the installation information set out in section 4e, provided
4205 ;; that you comply with the other provisions of LGPL3 and provided that you
4206 ;; meet, for the Application the terms and conditions of the license(s)
4207 ;; which apply to the Application. Except as stated in this special
4208 ;; exception, the provisions of LGPL3 will continue to comply in full to
4209 ;; this Library. If you modify this Library, you may apply this exception
4210 ;; to your version of this Library, but you are not obliged to do so. If
4211 ;; you do not wish to do so, delete this exception statement from your
4212 ;; version. This exception does not (and cannot) modify any license terms
4213 ;; which apply to the Application, with which you must still comply
4216 (define-public netdiscover
4218 (name "netdiscover")
4224 (url "https://github.com/netdiscover-scanner/netdiscover")
4227 (base32 "0g8w8rlg16dsibxi4dnyn7v7r8wwi5ypd51c4w59j0ps2id0w8yj"))
4228 (file-name (string-append "netdiscover-" version))))
4230 `(#:tests? #f)) ;; no tests
4231 (build-system gnu-build-system)
4233 (list libnet libpcap))
4235 (list autoconf automake))
4236 (synopsis "Network address discovery tool")
4237 (description "Netdiscover is a network address discovery tool developed
4238 mainly for wireless networks without a @acronym{DHCP} server. It also works
4239 on hub/switched networks. It is based on @acronym{ARP} packets, it will send
4240 @acronym{ARP} requests and sniff for replies.")
4241 (home-page "https://github.com/netdiscover-scanner/netdiscover")
4242 (license license:gpl3+)))
4244 (define-public putty
4251 (uri (list (string-append "https://the.earth.li/~sgtatham/putty/"
4252 version "/putty-" version ".tar.gz")
4253 (string-append "http://www.putty.be/" version
4254 "/putty-" version ".tar.gz")))
4256 (base32 "1rgabc447a5aa9h16krpg3x78vh5jf4l6hkbqzr4bz9qabs7d6j1"))))
4257 (build-system cmake-build-system)
4260 (modify-phases %standard-phases
4262 ;; As ‘documented’ in ./Buildscr and the 0.76 Makefile.in.
4263 (lambda* (#:key tests? #:allow-other-keys)
4265 (setenv "PUTTY_TESTCRYPT" "./testcrypt")
4266 (invoke (string-append "../putty-" ,version
4267 "/test/cryptsuite.py"))))))))
4276 (synopsis "Graphical @acronym{SSH, Secure SHell} and telnet client")
4277 (description "PuTTY is a graphical text terminal client. It supports
4278 @acronym{SSH, Secure SHell}, telnet, and raw socket connections with good
4279 terminal emulation. It can authenticate with public keys and Kerberos
4280 single-sign-on. It also includes command-line @acronym{SFTP, Secure File
4281 Transfer Protocol} and older @acronym{SCP, Secure Copy Protocol}
4283 (home-page "https://www.chiark.greenend.org.uk/~sgtatham/putty/")
4284 (license license:expat)))