1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014, 2017, 2018 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2015, 2016, 2017, 2018, 2020 Ricardo Wurmus <rekado@elephly.net>
4 ;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
5 ;;; Copyright © 2015, 2016, 2017 Stefan Reichör <stefan@xsteve.at>
6 ;;; Copyright © 2016 Raimon Grau <raimonster@gmail.com>
7 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
8 ;;; Copyright © 2016 John Darrington <jmd@gnu.org>
9 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 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 Leo Famulari <leo@famulari.name>
17 ;;; Copyright © 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
18 ;;; Copyright © 2017, 2018, 2019 Rutger Helling <rhelling@mykolab.com>
19 ;;; Copyright © 2017, 2019 Gábor Boskovits <boskovits@gmail.com>
20 ;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
21 ;;; Copyright © 2018 Adam Van Ymeren <adam@vany.ca>
22 ;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com>
23 ;;; Copyright © 2018 Tonton <tonton@riseup.net>
24 ;;; Copyright © 2018 Clément Lassieur <clement@lassieur.org>
25 ;;; Copyright © 2018 Theodoros Foradis <theodoros@foradis.org>
26 ;;; Copyright © 2018, 2020 Marius Bakke <mbakke@fastmail.com>
27 ;;; Copyright © 2018, 2020 Oleg Pykhalov <go.wigust@gmail.com>
28 ;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz>
29 ;;; Copyright © 2019, 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
30 ;;; Copyright © 2019 Vasile Dumitrascu <va511e@yahoo.com>
31 ;;; Copyright © 2019 Julien Lepiller <julien@lepiller.eu>
32 ;;; Copyright © 2019 Timotej Lazar <timotej.lazar@araneo.si>
33 ;;; Copyright © 2019 Brice Waegeneire <brice@waegenei.re>
34 ;;; Copyright © 2019 Tonton <tonton@riseup.net>
35 ;;; Copyright © 2019, 2020 Alex Griffin <a@ajgrf.com>
36 ;;; Copyright © 2019, 2020 Jan Wielkiewicz <tona_kosmicznego_smiecia@interia.pl>
37 ;;; Copyright © 2019 Daniel Schaefer <git@danielschaefer.me>
38 ;;; Copyright © 2019 Diego N. Barbato <dnbarbato@posteo.de>
39 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
40 ;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
41 ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
43 ;;; This file is part of GNU Guix.
45 ;;; GNU Guix is free software; you can redistribute it and/or modify it
46 ;;; under the terms of the GNU General Public License as published by
47 ;;; the Free Software Foundation; either version 3 of the License, or (at
48 ;;; your option) any later version.
50 ;;; GNU Guix is distributed in the hope that it will be useful, but
51 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
52 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
53 ;;; GNU General Public License for more details.
55 ;;; You should have received a copy of the GNU General Public License
56 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
58 (define-module (gnu packages networking)
59 #:use-module ((guix licenses) #:prefix license:)
60 #:use-module (guix packages)
61 #:use-module (guix download)
62 #:use-module (guix git-download)
63 #:use-module (guix build-system cmake)
64 #:use-module (guix build-system glib-or-gtk)
65 #:use-module (guix build-system gnu)
66 #:use-module (guix build-system go)
67 #:use-module (guix build-system meson)
68 #:use-module (guix build-system perl)
69 #:use-module (guix build-system python)
70 #:use-module (guix build-system trivial)
71 #:use-module (guix utils)
72 #:use-module (gnu packages)
73 #:use-module (gnu packages admin)
74 #:use-module (gnu packages adns)
75 #:use-module (gnu packages algebra)
76 #:use-module (gnu packages audio)
77 #:use-module (gnu packages autogen)
78 #:use-module (gnu packages autotools)
79 #:use-module (gnu packages base)
80 #:use-module (gnu packages bison)
81 #:use-module (gnu packages boost)
82 #:use-module (gnu packages check)
83 #:use-module (gnu packages code)
84 #:use-module (gnu packages compression)
85 #:use-module (gnu packages cpp)
86 #:use-module (gnu packages crypto)
87 #:use-module (gnu packages curl)
88 #:use-module (gnu packages cyrus-sasl)
89 #:use-module (gnu packages dejagnu)
90 #:use-module (gnu packages docbook)
91 #:use-module (gnu packages documentation)
92 #:use-module (gnu packages flex)
93 #:use-module (gnu packages freedesktop)
94 #:use-module (gnu packages gettext)
95 #:use-module (gnu packages glib)
96 #:use-module (gnu packages gnome)
97 #:use-module (gnu packages gnupg)
98 #:use-module (gnu packages gtk)
99 #:use-module (gnu packages image)
100 #:use-module (gnu packages libevent)
101 #:use-module (gnu packages libidn)
102 #:use-module (gnu packages linux)
103 #:use-module (gnu packages lua)
104 #:use-module (gnu packages multiprecision)
105 #:use-module (gnu packages kerberos)
106 #:use-module (gnu packages ncurses)
107 #:use-module (gnu packages nettle)
108 #:use-module (gnu packages openldap)
109 #:use-module (gnu packages password-utils)
110 #:use-module (gnu packages pcre)
111 #:use-module (gnu packages perl)
112 #:use-module (gnu packages perl-check)
113 #:use-module (gnu packages pkg-config)
114 #:use-module (gnu packages polkit)
115 #:use-module (gnu packages pretty-print)
116 #:use-module (gnu packages pulseaudio)
117 #:use-module (gnu packages python)
118 #:use-module (gnu packages python-web)
119 #:use-module (gnu packages python-xyz)
120 #:use-module (gnu packages qt)
121 #:use-module (gnu packages readline)
122 #:use-module (gnu packages ruby)
123 #:use-module (gnu packages samba)
124 #:use-module (gnu packages serialization)
125 #:use-module (gnu packages shells)
126 #:use-module (gnu packages sqlite)
127 #:use-module (gnu packages ssh)
128 #:use-module (gnu packages textutils)
129 #:use-module (gnu packages tls)
130 #:use-module (gnu packages valgrind)
131 #:use-module (gnu packages web)
132 #:use-module (gnu packages wxwidgets)
133 #:use-module (gnu packages xml)
134 #:use-module (ice-9 match))
145 (url "https://github.com/nanomsg/nng.git")
146 (commit (string-append "v" version))))
147 (file-name (git-file-name name version))
149 (base32 "042kmqzvdhv8fqmjr9kyi7rirm6akmpidfav6j14zhrab221n06j"))))
150 (build-system cmake-build-system)
154 "-DNNG_ENABLE_COVERAGE=ON"
155 "-DNNG_ENABLE_TLS=ON")
157 (modify-phases %standard-phases
158 (add-after 'unpack 'disable-failing-tests
160 ;; These tests require network access.
161 (substitute* "tests/CMakeLists.txt"
162 (("add_nng_test1\\(httpclient 60 NNG_SUPP_HTTP\\)") "")
163 (("add_nng_test1\\(resolv 10 NNG_STATIC_LIB\\)") "")
164 (("add_nng_test\\(tls 60\\)") ""))
169 `(("mbedtls" ,mbedtls-apache)))
170 (synopsis "Lightweight messaging library")
171 (description "NNG project is a rewrite of the scalability protocols library
172 known as libnanomsg, and adds significant new capabilities, while retaining
173 compatibility with the original. It is a lightweight, broker-less library,
174 offering a simple API to solve common recurring messaging problems, such as
175 publish/subscribe, RPC-style request/reply, or service discovery.")
176 (home-page "https://nng.nanomsg.org/")
177 (license license:expat)))
179 (define-public nanomsg
188 (url "https://github.com/nanomsg/nanomsg.git")
190 (file-name (git-file-name name version))
192 (base32 "01ddfzjlkf2dgijrmm3j3j8irccsnbgfvjcnwslsfaxnrmrq5s64"))))
193 (build-system cmake-build-system)
194 (outputs '("out" "doc"))
198 "-DNN_ENABLE_COVERAGE=ON")
200 (modify-phases %standard-phases
201 (add-after 'install 'move-docs
202 (lambda* (#:key outputs #:allow-other-keys)
203 (let* ((out (assoc-ref outputs "out"))
204 (doc (assoc-ref outputs "doc")))
205 (mkdir-p (string-append doc "/share/doc"))
207 (string-append out "/share/doc/nanomsg")
208 (string-append doc "/share/doc/nanomsg"))
211 `(("asciidoctor" ,ruby-asciidoctor)
212 ("pkg-config" ,pkg-config)))
213 (synopsis "Scalable socket library")
214 (description "Nanomsg is a socket library that provides several common
215 communication patterns. It aims to make the networking layer fast, scalable,
216 and easy to use. Implemented in C, it works on a wide range of operating
217 systems with no further dependencies.")
218 (home-page "https://nanomsg.org/")
219 (license (license:non-copyleft "file:///COPYING"))))
221 (define-public blueman
228 (uri (string-append "https://github.com/blueman-project/blueman/releases"
229 "/download/" version "/blueman-" version ".tar.xz"))
231 (base32 "1pngqbwapbvywhkmflapqvs0wa0af7d1a87wy56l5hg2r462xl1v"))))
232 (build-system glib-or-gtk-build-system)
234 `(#:configure-flags (list "--enable-polkit"
235 "--without-systemdsystemunitdir" ; Not required
236 "--without-systemduserunitdir") ; Not required
238 (modify-phases %standard-phases
239 ;; Python references are not being patched in patch-phase of build,
240 ;; despite using python-wrapper as input. So we patch them manually.
241 (add-after 'unpack 'patch-python-references
242 (lambda* (#:key inputs #:allow-other-keys)
243 (with-directory-excursion "apps"
244 (substitute* '("blueman-adapters.in" "blueman-applet.in"
245 "blueman-assistant.in" "blueman-manager.in"
246 "blueman-mechanism.in" "blueman-report.in"
247 "blueman-rfcomm-watcher.in" "blueman-sendto.in"
248 "blueman-services.in" "blueman-tray.in")
249 (("@PYTHON@") (string-append (assoc-ref inputs "python")
251 ,(version-major+minor
252 (package-version python))))))
254 ;; Fix loading of external programs.
255 (add-after 'unpack 'patch-external-programs
256 (lambda* (#:key inputs #:allow-other-keys)
257 (substitute* '("apps/blueman-report.in" "blueman/main/NetConf.py"
258 "blueman/main/PPPConnection.py")
259 (("/usr/sbin/bluetoothd")
260 (string-append (assoc-ref inputs "bluez")
261 "/libexec/bluetooth/bluetoothd"))
263 (string-append (assoc-ref inputs "iptables")
266 (string-append (assoc-ref inputs "ppp")
269 ;; Fix loading of pulseaudio libraries.
270 (add-after 'unpack 'patch-pulseaudio-libraries
271 (lambda* (#:key inputs #:allow-other-keys)
272 (let* ((pulseaudio (assoc-ref inputs "pulseaudio"))
273 (pulse (string-append pulseaudio "/lib/libpulse.so.0"))
274 (pulse-glib (string-append pulseaudio
275 "/lib/libpulse-mainloop-glib.so.0")))
276 (with-directory-excursion "blueman/main"
277 (substitute* "PulseAudioUtils.py"
278 (("libpulse.so.0") pulse)
279 (("libpulse-mainloop-glib.so.0") pulse-glib)))
281 ;; Fix running of blueman programs.
282 (add-after 'glib-or-gtk-wrap 'wrap-blueman-progs
283 (lambda* (#:key outputs #:allow-other-keys)
284 (let* ((out (assoc-ref outputs "out"))
285 (bin (string-append out "/bin/blueman-"))
286 (libexec (string-append out "/libexec/blueman-"))
287 (lib (string-append out "/lib/python"
288 ,(version-major+minor
289 (package-version python))
293 (wrap-program program
294 `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,lib))
295 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))))
297 (map (lambda (prog) (string-append bin prog))
298 '("adapters" "applet" "assistant" "manager" "report"
299 "sendto" "services" "tray"))
300 (map (lambda (prog) (string-append libexec prog))
301 '("mechanism" "rfcomm-watcher"))))
304 `(("cython" ,python-cython)
305 ("glib:bin" ,glib "bin")
306 ("gobject-introspection" ,gobject-introspection)
307 ("gtk+:bin" ,gtk+ "bin")
308 ("intltool" ,intltool)
309 ("pkg-config" ,pkg-config)))
313 ("gdkpixbuf" ,gdk-pixbuf+svg)
316 ("iproute2" ,iproute)
317 ("iptables" ,iptables)
318 ("net-tools" ,net-tools)
322 ("pulseaudio" ,pulseaudio)
323 ("pycairo" ,python-pycairo)
324 ("pygobject" ,python-pygobject)
325 ("python" ,python-wrapper)
326 ("libappindicator" ,libappindicator)
327 ("libnm" ,network-manager)))
328 (synopsis "GTK+ Bluetooth manager")
329 (description "Blueman is a Bluetooth management utility using the Bluez
330 D-Bus backend. It is designed to be easy to use for most common Bluetooth
332 (home-page "https://github.com/blueman-project/blueman")
333 (license license:gpl3+)))
335 ;; The gnu.org ‘home’ for this GNU project is a directory listing with 1.6.0 as
336 ;; the latest version. The author's git repository, mentioned in the 1.6.0
337 ;; README and otherwise legit-looking, contains a proper 1.7.0 release tarball
338 ;; with many OUI updates. Use it, even though it's also several years old now.
339 (define-public macchanger
346 (uri (string-append "https://github.com/alobbs/macchanger/"
347 "releases/download/" version "/"
348 name "-" version ".tar.gz"))
350 (base32 "1gs5m0jxyprdp00w2qkbnaqm3ilkjz0q1gqdg4nzdm8g4xy73qns"))))
351 (build-system gnu-build-system)
352 (home-page "https://www.gnu.org/software/macchanger/")
353 (synopsis "Viewing and manipulating MAC addresses of network interfaces")
354 (description "GNU MAC Changer is a utility for viewing and changing MAC
355 addresses of networking devices. New addresses may be set explicitly or
356 randomly. They can include MAC addresses of the same or other hardware vendors
357 or, more generally, MAC addresses of the same category of hardware.")
358 (license license:gpl2+)))
360 (define-public miredo
366 (uri (string-append "http://www.remlab.net/files/miredo/miredo-"
370 "0j9ilig570snbmj48230hf7ms8kvcwi2wblycqrmhh85lksd49ps"))))
371 (build-system gnu-build-system)
374 (modify-phases %standard-phases
375 ;; The checkconf test in src/ requires network access.
377 'check 'disable-checkconf-test
379 (substitute* "src/Makefile"
380 (("^TESTS = .*") "TESTS = \n"))
382 (home-page "https://www.remlab.net/miredo/")
383 (synopsis "Teredo IPv6 tunneling software")
385 "Miredo is an implementation (client, relay, server) of the Teredo
386 specification, which provides IPv6 Internet connectivity to IPv6 enabled hosts
387 residing in IPv4-only networks, even when they are behind a NAT device.")
388 (license license:gpl2+)))
390 (define-public ndisc6
396 (uri (string-append "https://www.remlab.net/files/ndisc6/ndisc6-"
400 "07swyar1hl83zxmd7fqwb2q0c0slvrswkcfp3nz5lknrk15dmcdb"))))
401 (build-system gnu-build-system)
402 (home-page "https://www.remlab.net/ndisc6/")
403 (synopsis "IPv6 diagnostic tools")
405 "NDisc6 is a collection of tools for IPv6 networking diagnostics.
406 It includes the following programs:
409 @item @command{ndisc6}: ICMPv6 Neighbor Discovery tool.
410 @item @command{rdisc6}: ICMPv6 Router Discovery tool.
411 @item @command{tcptraceroute6}: IPv6 traceroute over TCP.
412 @item @command{traceroute6}: IPv6 traceroute over UDP.
413 @item @command{rdnssd}: Recursive DNS Servers discovery daemon.
415 ;; The user can choose version 2 or 3 of the GPL, not later versions.
416 (license (list license:gpl2 license:gpl3))))
418 (define-public parprouted
424 (uri (string-append "https://www.hazard.maks.net/parprouted/"
425 "parprouted-" version ".tar.gz"))
428 "1z6yg28i0pv20jivyy82pxb38hsryj95inhj27bs6ja1bp4l6dnn"))))
429 (build-system gnu-build-system)
431 `(#:tests? #f ;no tests
432 #:phases (modify-phases %standard-phases
433 (add-after 'unpack 'insert-absolute-iproute-reference
434 (lambda* (#:key inputs #:allow-other-keys)
435 (let* ((iproute (assoc-ref inputs "iproute"))
436 (ip (string-append iproute "/sbin/ip")))
437 (substitute* "parprouted.c"
441 (lambda* (#:key outputs #:allow-other-keys)
442 (let* ((out (assoc-ref outputs "out"))
443 (sbin (string-append out "/sbin"))
444 (man8 (string-append out "/share/man/man8")))
445 ;; No configure script; hijack the phase to make
446 ;; the necessary arrangements.
447 (setenv "CC" ,(cc-for-target))
448 (for-each mkdir-p (list sbin man8))
449 (substitute* "Makefile"
450 (("/usr/local/sbin") sbin)
451 (("/usr/local/man/man8") man8))
454 `(("iproute" ,iproute)))
455 (home-page "https://www.hazard.maks.net/parprouted/")
456 (synopsis "Proxy ARP requests to other interfaces")
458 "@command{parprouted} is a daemon for transparent IP (Layer@tie{}3)
459 proxy ARP bridging. Unlike standard bridging, proxy ARP bridging can bridge
460 Ethernet networks behind wireless nodes. Normal layer@tie{}2 bridging does
461 not work between wireless nodes because wireless does not know about MAC
462 addresses used in the wired Ethernet networks. This daemon can also be
463 useful for making transparent firewalls.")
464 (license license:gpl2)))
473 "http://www.dest-unreach.org/socat/download/socat-"
477 "1z7xgnwiqpcv1j6aghhj9nqbx7cg3gpc4n9j7vi9hm7nhv5788wp"))))
478 (build-system gnu-build-system)
479 (arguments '(#:tests? #f)) ; no test suite
480 (inputs `(("openssl" ,openssl)))
481 (home-page "http://www.dest-unreach.org/socat/")
483 "Open bidirectional communication channels from the command line")
485 "socat is a relay for bidirectional data transfer between two independent
486 data channels---files, pipes, devices, sockets, etc. It can create
487 \"listening\" sockets, named pipes, and pseudo terminals.
489 socat can be used, for instance, as TCP port forwarder, as a shell interface
490 to UNIX sockets, IPv6 relay, for redirecting TCP oriented programs to a serial
491 line, to logically connect serial lines on different computers, or to
492 establish a relatively secure environment (su and chroot) for running client
493 or server shell scripts with network connections.")
494 (license license:gpl2)))
496 (define-public tcp-wrappers
498 (name "tcp-wrappers")
503 "ftp://ftp.porcupine.org/pub/security/tcp_wrappers_"
507 "0p9ilj4v96q32klavx0phw9va21fjp8vpk11nbh6v2ppxnnxfhwm"))))
508 (build-system gnu-build-system)
511 (modify-phases %standard-phases
512 (delete 'configure) ; there is no configure script
513 (delete 'check) ; there are no tests
517 ;; Upstream doesn't generate a shared library. So we have to do it.
518 (setenv "CC" "gcc -fno-builtin -fPIC")
519 (substitute* "Makefile"
520 (("^(all[^\n]*)" line) (string-append line " libwrap.so\n
521 libwrap.so: $(LIB_OBJ)\n
522 \tgcc -shared $^ -o $@\n")))
523 ;; Deal with some gcc breakage.
524 (substitute* "percent_m.c"
525 (("extern char .sys_errlist.*;") ""))
526 (substitute* "scaffold.c"
527 (("extern char .malloc.*;") ""))
528 ;; This, believe it or not, is the recommended way to build!
529 (invoke "make" "REAL_DAEMON_DIR=/etc" "linux")))
530 ;; There is no make install stage, so we have to do it ourselves.
533 (let ((out (assoc-ref %outputs "out"))
534 (man-pages `("hosts_access.3"
542 (headers `("tcpd.h"))
543 (bins `("safe_finger"
550 (install-file x (string-append out "/include")))
554 (install-file x (string-append out "/share/man/man"
555 (string-take-right x 1))))
559 (install-file x (string-append out "/lib/")))
563 (install-file x (string-append out "/bin/")))
566 (home-page "http://www.porcupine.org")
567 (synopsis "Monitor and filter incoming requests for network services")
568 (description "With this package you can monitor and filter incoming requests for
569 network services. It includes a library which may be used by daemons to
570 transparently check connection attempts against an access control list.")
571 (license (license:non-copyleft "file://DISCLAIMER"
572 "See the file DISCLAIMER in the distribution."))))
575 (define-public zeromq
581 (uri (string-append "https://github.com/zeromq/libzmq/releases"
582 "/download/v" version "/zeromq-" version ".tar.gz"))
585 "0qzp80ky4y2k7k1ya09v9gkivvfbz2km813snrb8jhnn634bbmzb"))))
586 (build-system gnu-build-system)
587 (home-page "https://zeromq.org")
588 (synopsis "Library for message-based applications")
590 "The 0MQ lightweight messaging kernel is a library which extends the
591 standard socket interfaces with features traditionally provided by specialized
592 messaging middle-ware products. 0MQ sockets provide an abstraction of
593 asynchronous message queues, multiple messaging patterns, message
594 filtering (subscriptions), seamless access to multiple transport protocols and
596 (license license:lgpl3+)))
605 "https://github.com/zeromq/" name
606 "/releases/download/v" version
607 "/" name "-" version ".tar.gz"))
610 "1szciz62sk3fm4ga9qjpxz0n0lazvphm32km95bq92ncng12kayg"))))
611 (build-system gnu-build-system)
613 '(#:configure-flags '("--enable-drafts")
614 #:phases (modify-phases %standard-phases
615 (add-before 'check 'patch-tests
617 ;; XXX FIXME: Disable the zproc test, which fails on some
618 ;; hardware: <https://github.com/zeromq/czmq/issues/2007>.
619 (substitute* "src/czmq_selftest.c"
620 (("\\{ \"zproc\", zproc_test.*")
624 `(("zeromq" ,zeromq)))
625 (home-page "https://zeromq.org")
626 (synopsis "High-level C bindings for ØMQ")
628 "czmq provides bindings for the ØMQ core API that hides the differences
629 between different versions of ØMQ.")
630 (license license:mpl2.0)))
632 (define-public cppzmq
639 (url "https://github.com/zeromq/cppzmq")
640 (commit (string-append "v" version))))
643 "19acx2bzi4n6fdnfgkja1nds7m1bwg8lw5vfcijrx9fv75pa7m8h"))
644 (file-name (git-file-name name version))))
645 (build-system cmake-build-system)
647 '(;; FIXME: The test suite requires downloading Catch and custom
648 ;; CMake targets, and refuses to use the system version.
649 ;; See <https://github.com/zeromq/cppzmq/issues/334>.
651 #:configure-flags '("-DCPPZMQ_BUILD_TESTS=OFF")))
653 `(("pkg-config" ,pkg-config)))
655 `(("zeromq" ,zeromq)))
656 (home-page "https://zeromq.org")
657 (synopsis "C++ bindings for the ØMQ messaging library")
659 "This package provides header-only C++ bindings for ØMQ. The header
660 files contain direct mappings of the abstractions provided by the ØMQ C API.")
661 (license license:expat)))
663 (define-public libnatpmp
670 "http://miniupnp.free.fr/files/"
671 name "-" version ".tar.gz"))
674 "1c1n8n7mp0amsd6vkz32n8zj3vnsckv308bb7na0dg0r8969rap1"))))
675 (build-system gnu-build-system)
678 (modify-phases %standard-phases
680 (delete 'check)) ; no tests
682 (let* ((target ,(%current-target-system))
684 (string-append target "-gcc")
687 (string-append "CC=" gcc)
688 (string-append "INSTALLPREFIX=" (assoc-ref %outputs "out"))
689 (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib")))))
690 (home-page "http://miniupnp.free.fr/libnatpmp.html")
691 (synopsis "C library implementing NAT-PMP")
693 "@code{libnatpmp} is a portable and asynchronous implementation of
694 the Network Address Translation - Port Mapping Protocol (NAT-PMP)
695 written in the C programming language.")
696 (license license:bsd-3)))
698 (define-public librdkafka
705 (url "https://github.com/edenhill/librdkafka")
706 (commit (string-append "v" version))))
707 (file-name (git-file-name name version))
710 "05mgrdzacn9kdpr68r5j0cvsvl54s52glnsc1ww9rcxx6p7hq1ly"))))
711 (build-system gnu-build-system)
714 (modify-phases %standard-phases
716 ;; its custom configure script doesn't understand 'CONFIG_SHELL'.
717 (lambda* (#:key outputs #:allow-other-keys)
718 (let ((out (assoc-ref outputs "out")))
719 ;; librdkafka++.so lacks RUNPATH for librdkafka.so
721 (string-append "-Wl,-rpath=" out "/lib"))
722 (invoke "./configure"
723 (string-append "--prefix=" out))))))))
725 `(("python" ,python-wrapper)))
727 `(("zlib" ,zlib))) ; in the Libs.private field of rdkafka.pc
728 (home-page "https://github.com/edenhill/librdkafka")
729 (synopsis "Apache Kafka C/C++ client library")
731 "librdkafka is a C library implementation of the Apache Kafka protocol,
732 containing both Producer and Consumer support.")
733 (license license:bsd-2)))
735 (define-public libndp
741 (uri (string-append "https://libndp.org/files/"
742 "libndp-" version ".tar.gz"))
745 "1dlinhl39va00v55qygjc9ap77yqf7xvn4rwmvdr49xhzzxhlj1c"))))
746 (build-system gnu-build-system)
747 (home-page "https://libndp.org/")
748 (synopsis "Library for Neighbor Discovery Protocol")
750 "libndp contains a library which provides a wrapper for IPv6 Neighbor
751 Discovery Protocol. It also provides a tool named ndptool for sending and
752 receiving NDP messages.")
753 (license license:lgpl2.1+)))
755 (define-public ethtool
761 (uri (string-append "mirror://kernel.org/software/network/"
762 "ethtool/ethtool-" version ".tar.xz"))
765 "0ikmz36bdfwxscsfcgjmyzg70hwr8i3wpdhcp1vmk3q4ip858frg"))))
766 (build-system gnu-build-system)
768 `(("pkg-config" ,pkg-config)))
770 `(("libmnl" ,libmnl)))
771 (home-page "https://www.kernel.org/pub/software/network/ethtool/")
772 (synopsis "Display or change Ethernet device settings")
774 "ethtool can be used to query and change settings such as speed,
775 auto-negotiation and checksum offload on many network devices, especially
777 (license license:gpl2)))
779 (define-public ifstatus
785 (uri (string-append "mirror://sourceforge/ifstatus/ifstatus/"
786 "ifstatus%20v" version "/ifstatus-v"
790 "045cbsq9ps32j24v8y5hpyqxnqn9mpaf3mgvirlhgpqyb9jsia0c"))
791 (modules '((guix build utils)))
794 (substitute* "Main.h"
795 (("#include <stdio.h>")
796 "#include <stdio.h>\n#include <stdlib.h>"))
798 (build-system gnu-build-system)
800 '(#:tests? #f ; no "check" target
802 (modify-phases %standard-phases
803 (delete 'configure) ; no configure script
805 (lambda* (#:key outputs #:allow-other-keys)
806 (let* ((out (assoc-ref outputs "out"))
807 (bin (string-append out "/bin")))
809 (copy-file "ifstatus"
810 (string-append bin "/ifstatus")))
812 (inputs `(("ncurses" ,ncurses)))
813 (home-page "http://ifstatus.sourceforge.net/graphic/index.html")
814 (synopsis "Text based network interface status monitor")
816 "IFStatus is a simple, easy-to-use program for displaying commonly
817 needed/wanted real-time traffic statistics of multiple network
818 interfaces, with a simple and efficient view on the command line. It is
819 intended as a substitute for the PPPStatus and EthStatus projects.")
820 (license license:gpl2+)))
822 (define-public iputils
826 (home-page "https://github.com/iputils/iputils")
829 (uri (git-reference (url home-page)
830 (commit (string-append "s" version))))
831 (file-name (git-file-name name version))
832 (patches (search-patches "iputils-libcap-compat.patch"))
835 "04bp4af15adp79ipxmiakfp0ij6hx5qam266flzbr94pr8z8l693"))))
836 (build-system meson-build-system)
838 `(#:configure-flags '("-DBUILD_RARPD=true")
840 (modify-phases %standard-phases
841 (add-after 'unpack 'fix-docbook-url
842 (lambda* (#:key inputs #:allow-other-keys)
843 (let* ((docbook-xsl (assoc-ref inputs "docbook-xsl"))
844 (uri (string-append docbook-xsl "/xml/xsl/docbook-xsl-"
845 ,(package-version docbook-xsl))))
849 (("http://docbook\\.sourceforge\\.net/release/xsl-ns/current")
851 (cons "doc/meson.build"
852 (find-files "doc" "\\.xsl$")))
855 `(("gettext" ,gettext-minimal)
856 ("pkg-config" ,pkg-config)
857 ("docbook-xsl" ,docbook-xsl)
858 ("docbook-xml" ,docbook-xml-5)
859 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
860 ("xsltproc" ,libxslt)))
864 ("openssl" ,openssl)))
865 (synopsis "Collection of network utilities")
867 "This package contains a variety of tools for dealing with network
868 configuration, troubleshooting, or servers. Utilities included are:
871 @item @command{arping}: Ping hosts using the @dfn{Address Resolution Protocol}.
872 @item @command{clockdiff}: Compute time difference between network hosts
873 using ICMP TSTAMP messages.
874 @item @command{ninfod}: Daemon that responds to IPv6 Node Information Queries.
875 @item @command{ping}: Use ICMP ECHO messages to measure round-trip delays
876 and packet loss across network paths.
877 @item @command{rarpd}: Answer RARP requests from clients.
878 @item @command{rdisc}: Populate network routing tables with information from
879 the ICMP router discovery protocol.
880 @item @command{tftpd}: Trivial file transfer protocol server.
881 @item @command{tracepath}: Trace network path to an IPv4 or IPv6 address and
882 discover MTU along the way.
884 ;; The various utilities are covered by different licenses, see LICENSE
886 (license (list license:gpl2+ ;arping, rarpd, tracepath
887 license:bsd-3 ;clockdiff, ninfod, ping, tftpd
888 (license:non-copyleft
889 "https://spdx.org/licenses/Rdisc.html"
890 "Sun Microsystems license, see rdisc.c for details")))))
898 (uri (string-append "mirror://sourceforge/nload/nload/" version
899 "/nload-" version ".tar.gz"))
902 "1rb9skch2kgqzigf19x8bzk211jdfjfdkrcvaqyj89jy2pkm3h61"))))
903 (build-system gnu-build-system)
904 (inputs `(("ncurses" ,ncurses)))
905 (home-page "http://www.roland-riegel.de/nload/")
906 (synopsis "Realtime console network usage monitor")
908 "Nload is a console application which monitors network traffic and
909 bandwidth usage in real time. It visualizes the in- and outgoing traffic using
910 two graphs, and provides additional info like total amount of transferred data
911 and min/max network usage.")
912 (license license:gpl2+)))
914 (define-public iodine
920 (uri (string-append "http://code.kryo.se/" name "/"
921 name "-" version ".tar.gz"))
924 "0gh17kcxxi37k65zm4gqsvbk3aw7yphcs3c02pn1c4s2y6n40axd"))))
925 (build-system gnu-build-system)
928 (modify-phases %standard-phases
930 (add-before 'build 'fix-ifconfig-path
931 ;; This package works only with the net-tools version of ifconfig.
932 (lambda* (#:key inputs #:allow-other-keys)
933 (substitute* "src/tun.c"
935 (string-append (assoc-ref inputs "net-tools") "/bin/")))
937 (add-before 'check 'delete-failing-tests
938 ;; Avoid https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802105.
940 (substitute* "tests/common.c"
941 (("tcase_add_test\\(tc, \
942 test_parse_format_ipv(4(|_listen_all|_mapped_ipv6)|6)\\);")
945 #:make-flags (list "CC=gcc"
946 (string-append "prefix=" (assoc-ref %outputs "out")))
947 #:test-target "test"))
948 (inputs `(("net-tools" ,net-tools)
950 (native-inputs `(("check" ,check)
951 ("pkg-config" ,pkg-config)))
952 (home-page "https://code.kryo.se/iodine/")
953 (synopsis "Tunnel IPv4 data through a DNS server")
954 (description "Iodine tunnels IPv4 data through a DNS server. This
955 can be useful in different situations where internet access is firewalled, but
956 DNS queries are allowed. The bandwidth is asymmetrical, with limited upstream
957 and up to 1 Mbit/s downstream.")
958 ;; src/md5.[ch] is released under the zlib license
959 (license (list license:isc license:zlib))))
968 (uri (string-append "mirror://debian/pool/main/w/whois/"
969 "whois_" version ".tar.xz"))
971 (base32 "0kpi981zjczvdcxfcq455c529vlaxa73x8kbm530z5b01h0fk8fb"))))
972 (build-system gnu-build-system)
974 `(#:tests? #f ; no test suite
975 #:make-flags (list "CC=gcc"
976 (string-append "prefix=" (assoc-ref %outputs "out")))
978 (modify-phases %standard-phases
979 (delete 'configure) ; no configure script
980 (add-before 'build 'setenv
982 (setenv "HAVE_ICONV" "1")
985 `(("libidn2" ,libidn2)))
987 `(("gettext" ,gettext-minimal)
989 ("pkg-config" ,pkg-config)))
990 (synopsis "Intelligent client for the WHOIS directory service")
992 "whois searches for an object in a @dfn{WHOIS} (RFC 3912) database.
993 It is commonly used to look up the registered users or assignees of an Internet
994 resource, such as a domain name, an IP address block, or an autonomous system.
995 It can automatically select the appropriate server for most queries.
997 For historical reasons, this package also includes @command{mkpasswd}, which
998 encrypts passwords using @code{crypt(3)} and is unrelated to the Expect command
1000 (home-page "https://github.com/rfc1036/whois")
1001 (license license:gpl2+)))
1003 (define-public wireshark
1010 (uri (string-append "https://www.wireshark.org/download/src/wireshark-"
1013 (base32 "0h69m9maq6w5gik4gamv4kfqrr37hmi4kpwh225y1k36awm0b2dx"))))
1014 (build-system cmake-build-system)
1017 (modify-phases %standard-phases
1018 (add-after 'unpack 'remove-failing-test
1019 ;; Test 31/32 fails with errors like "Program reassemble_test is
1020 ;; not available". Skipping it for now.
1022 (substitute* "CMakeLists.txt"
1023 (("suite_unittests" all) (string-append "# " all)))
1025 ;; Build process chokes during `validate-runpath' phase.
1027 ;; Errors are like the following:
1028 ;; "/gnu/store/...wireshark-3.0.0/lib/wireshark/plugins/3.0/epan/ethercat.so:
1029 ;; error: depends on 'libwireshark.so.12', which cannot be found in
1030 ;; RUNPATH". That is, "/gnu/store/...wireshark-3.0.0./lib" doesn't
1031 ;; belong to RUNPATH.
1033 ;; That’s not a problem in practice because "ethercat.so" is a plugin,
1034 ;; so it’s dlopen’d by a process that already provides "libwireshark".
1035 ;; For now, we disable this phase.
1036 #:validate-runpath? #f))
1038 `(("c-ares" ,c-ares)
1042 ("libgcrypt" ,libgcrypt)
1044 ("libpcap" ,libpcap)
1046 ("libxml2" ,libxml2)
1048 ("lua" ,lua-5.2) ;Lua 5.3 unsupported
1051 ("qtmultimedia" ,qtmultimedia)
1058 ("doxygen" ,doxygen)
1060 ("gettext" ,gettext-minimal)
1062 ("pkg-config" ,pkg-config)
1063 ("python" ,python-wrapper)
1064 ("qttools" ,qttools)))
1065 (synopsis "Network traffic analyzer")
1066 (description "Wireshark is a network protocol analyzer, or @dfn{packet
1067 sniffer}, that lets you capture and interactively browse the contents of
1069 (home-page "https://www.wireshark.org/")
1070 (license license:gpl2+)))
1072 (define-public fping
1079 (uri (string-append "https://fping.org/dist/fping-"
1082 (base32 "1f2prmii4fyl44cfykp40hp4jjhicrhddh9v3dfs11j6nsww0f7d"))))
1083 (build-system gnu-build-system)
1084 (home-page "https://fping.org/")
1085 (synopsis "Send ICMP ECHO_REQUEST packets to network hosts")
1087 "fping is a ping-like program which uses @acronym{ICMP, Internet Control
1088 Message Protocol} echo requests to determine if a target host is responding.
1090 @command{fping} differs from @command{ping} in that you can specify any number
1091 of targets on the command line, or specify a file containing the lists of
1092 targets to ping. Instead of sending to one target until it times out or
1093 replies, fping will send out a ping packet and move on to the next target in a
1094 round-robin fashion.")
1095 (license license:expat)))
1097 (define-public gandi.cli
1104 (uri (pypi-uri name version))
1106 (base32 "110wc9zgxsrvw4yzp21p0ian5lcf7vhcpxhnmsc4fg9pzl2bwxd5"))))
1107 (build-system python-build-system)
1110 (modify-phases %standard-phases
1111 (add-after 'unpack 'embed-store-file-names
1113 (substitute* (list "gandi/cli/modules/cert.py"
1114 "gandi/cli/tests/commands/test_certificate.py")
1115 (("openssl") (which "openssl")))
1117 (add-after 'install 'install-documentation
1118 ;; The included man page may be outdated but we install it anyway,
1119 ;; since it's mentioned in 'gandi --help' and better than nothing.
1120 (lambda* (#:key outputs #:allow-other-keys)
1121 (let* ((out (assoc-ref outputs "out"))
1122 (man1 (string-append out "/share/man/man1")))
1124 (with-output-to-file (string-append man1 "/gandi.1")
1126 (invoke "rst2man.py" "gandicli.man.rst")))
1129 `(("python-docutils" ,python-docutils) ; for rst2man.py
1130 ("python-pytest-cov" ,python-pytest-cov)
1131 ("python-tox" ,python-tox)))
1133 `(("openssl" ,openssl)
1134 ("python-click" ,python-click)
1135 ("python-ipy" ,python-ipy)
1136 ("python-pyyaml" ,python-pyyaml)
1137 ("python-requests" ,python-requests)))
1138 (home-page "https://cli.gandi.net")
1139 (synopsis "Command-line interface to the Gandi.net Web API")
1141 "This package provides a command-line client (@command{gandi}) to buy,
1142 manage, and delete Internet resources from Gandi.net such as domain names,
1143 virtual machines, and certificates.")
1144 (license license:gpl3+)))
1146 (define-public go-netns
1147 (let ((commit "13995c7128ccc8e51e9a6bd2b551020a27180abd")
1151 (version (git-version "0.0.0" revision commit))
1155 (url "https://github.com/vishvananda/netns")
1157 (file-name (git-file-name name version))
1160 "1zk6w8158qi4niva5rijchbv9ixgmijsgqshh54wdaav4xrhjshn"))))
1161 (build-system go-build-system)
1163 `(#:import-path "github.com/vishvananda/netns"
1164 #:tests? #f)) ;tests require root privileges
1165 (home-page "https://github.com/vishvananda/netns")
1166 (synopsis "Simple network namespace handling for Go")
1167 (description "The netns package provides a simple interface for
1168 handling network namespaces in Go.")
1169 (license license:asl2.0))))
1171 (define-public go-sctp
1172 ;; docker-libnetwork-cmd-proxy requires this exact commit.
1173 (let ((commit "07191f837fedd2f13d1ec7b5f885f0f3ec54b1cb")
1177 (version (git-version "0.0.0" revision commit))
1181 (url "https://github.com/ishidawataru/sctp")
1183 (file-name (git-file-name name version))
1186 "1mk9ncm10gwi5pn5wcw4skbyf4qg7n5qdf1mim4gf3mrckvi6g6h"))))
1187 (build-system go-build-system)
1189 `(#:import-path "github.com/ishidawataru/sctp"))
1190 (home-page "https://github.com/ishidawataru/sctp")
1191 (synopsis "SCTP library for the Go programming language")
1192 (description "This library provides methods for using the stream control
1193 transmission protocol (SCTP) in a Go application.")
1194 (license license:asl2.0))))
1196 (define-public httping
1203 (uri (string-append "https://www.vanheusden.com/httping/httping-"
1207 "1y7sbgkhgadmd93x1zafqc4yp26ssiv16ni5bbi9vmvvdl55m29y"))))
1208 (build-system gnu-build-system)
1210 `(("gettext" ,gettext-minimal)))
1213 ("ncurses" ,ncurses)
1214 ("openssl" ,openssl)))
1216 `(#:make-flags (list "CC=gcc"
1217 (string-append "DESTDIR=" (assoc-ref %outputs "out"))
1219 #:tests? #f)) ; no tests
1220 (home-page "https://www.vanheusden.com/httping/")
1221 (synopsis "Web server latency and throughput monitor")
1223 "httping measures how long it takes to connect to a web server, send an
1224 HTTP(S) request, and receive the reply headers. It is somewhat similar to
1225 @command{ping}, but can be used even in cases where ICMP traffic is blocked
1226 by firewalls or when you want to monitor the response time of the actual web
1227 application stack itself.")
1228 (license license:gpl2))) ; with permission to link with OpenSSL
1230 (define-public httpstat
1237 (uri (pypi-uri "httpstat" version))
1240 "1chw2nk56vaq87aba012a270k9na06hfx1pfbsrc3jfvlc2kb9hb"))))
1241 (build-system python-build-system)
1242 (inputs `(("curl" ,curl)))
1245 (modify-phases %standard-phases
1246 (add-before 'build 'fix-curl-path
1247 (lambda* (#:key inputs #:allow-other-keys)
1248 (substitute* "httpstat.py"
1249 (("ENV_CURL_BIN.get\\('curl'\\)")
1250 (string-append "ENV_CURL_BIN.get('"
1251 (assoc-ref inputs "curl")
1254 (home-page "https://github.com/reorx/httpstat")
1255 (synopsis "Visualize curl statistics")
1257 "@command{httpstat} is a tool to visualize statistics from the
1258 @command{curl} HTTP client. It acts as a wrapper for @command{curl} and
1259 prints timing information for each step of the HTTP request (DNS lookup,
1260 TCP connection, TLS handshake and so on) in the terminal.")
1261 (license license:expat)))
1263 (define-public squid
1270 (uri (string-append "http://www.squid-cache.org/Versions/v4/squid-"
1273 (base32 "05z34ysy2zn7as11vd365xxhh36bm1ysiwcbr0i0f0nwng406apl"))))
1274 (build-system gnu-build-system)
1277 (modify-phases %standard-phases
1278 (add-before 'build 'fix-true-path
1279 (lambda* (#:key inputs #:allow-other-keys)
1280 (substitute* "test-suite/testheaders.sh"
1282 (string-append (assoc-ref inputs "coreutils")
1287 ("openldap" ,openldap)
1288 ("linux-pam" ,linux-pam)
1290 ("cyrus-sasl" ,cyrus-sasl)
1292 ("libxml2" ,libxml2)
1293 ("openssl" ,openssl)))
1295 `(("cppunit" ,cppunit)
1296 ("pkg-config" ,pkg-config)))
1297 (synopsis "Web caching proxy")
1298 (description "Squid is a caching proxy for the Web supporting HTTP, HTTPS,
1299 FTP, and more. It reduces bandwidth and improves response times by caching and
1300 reusing frequently-requested web pages.")
1301 (home-page "http://www.squid-cache.org/")
1302 (license license:gpl2+)))
1304 (define-public bwm-ng
1312 (url "https://github.com/vgropp/bwm-ng")
1313 (commit (string-append "v" version))))
1314 (file-name (git-file-name name version))
1316 (base32 "0k906wb4pw3dcqpcwnni78lahzi3bva483f8c17sjykic7as4y5n"))))
1317 (build-system gnu-build-system)
1320 (modify-phases %standard-phases
1321 (add-after 'unpack 'disable-premature-./configure
1323 (substitute* "autogen.sh"
1324 (("\\$srcdir/configure")
1328 `(("autoconf" ,autoconf)
1329 ("automake" ,automake)))
1331 `(("ncurses" ,ncurses)))
1332 (synopsis "Console based live network and disk I/O bandwidth monitor")
1333 (description "Bandwidth Monitor NG is a small and simple console based
1334 live network and disk I/O bandwidth monitor.")
1335 (home-page "https://www.gropp.org/?id=projects&sub=bwm-ng")
1336 (license license:gpl2)))
1338 (define-public aircrack-ng
1340 (name "aircrack-ng")
1345 (uri (string-append "https://download.aircrack-ng.org/aircrack-ng-"
1348 (base32 "0ix2k64qg7x3w0bzdsbk1m50kcpq1ws59g3zkwiafvpwdr4gs2sg"))))
1349 (build-system gnu-build-system)
1351 `(("autoconf" ,autoconf)
1352 ("automake" ,automake)
1353 ("libtool" ,libtool)
1354 ("pkg-config" ,pkg-config)
1357 `(("libgcrypt" ,libgcrypt)
1359 ("libpcap" ,libpcap)
1360 ("ethtool" ,ethtool)
1366 (list "--with-experimental=yes" ; build wesside-ng, etc.
1367 "--with-gcrypt") ; openssl's the default
1368 #:phases (modify-phases %standard-phases
1369 (add-before 'bootstrap 'patch-evalrev
1371 ;; Called by ./autogen.sh below, before the default
1372 ;; ‘patch-shebangs’ phase has had a chance to run.
1373 (substitute* "evalrev"
1377 (add-after 'build 'absolutize-tools
1378 (lambda* (#:key inputs #:allow-other-keys)
1379 (let ((ethtool (string-append (assoc-ref inputs "ethtool")
1381 (substitute* "scripts/airmon-ng"
1383 (string-append ethtool " ")))
1385 (home-page "https://www.aircrack-ng.org")
1386 (synopsis "Assess WiFi network security")
1388 "Aircrack-ng is a complete suite of tools to assess WiFi network
1389 security. It focuses on different areas of WiFi security: monitoring,
1390 attacking, testing, and cracking. All tools are command-line driven, which
1391 allows for heavy scripting.")
1392 (license (list license:gpl2+ license:bsd-3))))
1394 (define-public pixiewps
1401 "https://github.com/wiire-a/pixiewps/releases/"
1402 "download/v" version "/" name "-" version ".tar.xz"))
1405 "07nym6bqml0k9v29vnj003nrgnwrywgjvnljb7cdpsvnwilhbp64"))))
1406 (build-system gnu-build-system)
1410 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1412 (modify-phases %standard-phases
1413 (delete 'configure)) ; no configure script
1414 #:tests? #f)) ; there are no tests
1415 (home-page "https://github.com/wiire-a/pixiewps/")
1416 (synopsis "Offline brute-force tool for Wi-Fi Protected Setup")
1417 (description "Pixiewps implements the pixie-dust attack to brute
1418 force the Wi-Fi Protected Setup (WPS) PIN by exploiting the low or
1419 non-existing entropy of some access points.")
1420 (license license:gpl3+)))
1422 (define-public reaver
1429 "https://github.com/t6x/reaver-wps-fork-t6x/releases/"
1430 "download/v" version "/reaver-" version ".tar.xz"))
1433 "00k7mc81ifv0wma7k4v18mj498badbw5yls6c28qin3d1gda0ag3"))))
1434 (build-system gnu-build-system)
1437 ;; Save session files to current directory instead of /var.
1438 (list "--enable-savetocurrent"
1439 "--localstatedir=/tmp/dummy") ; prevent creating /var during install
1441 (modify-phases %standard-phases
1442 (add-before 'configure 'change-directory
1446 (add-after 'install 'install-doc
1447 (lambda* (#:key outputs #:allow-other-keys)
1449 (let* ((out (assoc-ref outputs "out"))
1450 (doc (string-append out "/share/doc/" ,name "-" ,version))
1451 (man1 (string-append out "/share/man/man1")))
1452 (for-each (lambda (file) (install-file file doc))
1453 (find-files "." "README.*"))
1454 (install-file "reaver.1" man1)
1456 #:tests? #f)) ; there are no tests
1458 `(("libpcap" ,libpcap)))
1460 `(("aircrack-ng" ,aircrack-ng)
1461 ("pixiewps" ,pixiewps)))
1462 (home-page "https://github.com/t6x/reaver-wps-fork-t6x/")
1463 (synopsis "Attack tool for Wi-Fi Protected Setup")
1464 (description "Reaver performs a brute force attack against an access
1465 point's Wi-Fi Protected Setup (WPS) PIN. Once the PIN is found, the WPA
1466 passphrase can be recovered and the AP's wireless settings can be
1468 (license license:gpl2+)))
1470 (define-public perl-danga-socket
1472 (name "perl-danga-socket")
1477 (uri (string-append "mirror://cpan/authors/id/N/NM/NML/"
1478 "Danga-Socket-" version ".tar.gz"))
1480 (base32 "0x4bvirmf0kphks19jwgva00zz73zx344218dfaiv8gigrw3yg4m"))))
1481 (build-system perl-build-system)
1483 `(("perl-test-tcp" ,perl-test-tcp)))
1485 `(("perl-sys-syscall" ,perl-sys-syscall)))
1486 (home-page "https://metacpan.org/release/Danga-Socket")
1487 (synopsis "Event loop and event-driven async socket base class")
1489 "Danga::Socket is an abstract base class for objects backed by a socket
1490 which provides the basic framework for event-driven asynchronous IO, designed
1491 to be fast. Danga::Socket is both a base class for objects, and an event
1493 (license license:perl-license)))
1495 (define-public perl-data-validate-ip
1497 (name "perl-data-validate-ip")
1503 "mirror://cpan/authors/id/D/DR/DROLSKY/Data-Validate-IP-"
1506 (base32 "1mmppyzsh1w2z2h86kvzqxy56wxgs62a3kf8nvcnz76bblir5ap1"))))
1507 (build-system perl-build-system)
1509 `(("perl-test-requires" ,perl-test-requires)))
1511 `(("perl-netaddr-ip" ,perl-netaddr-ip)))
1512 (home-page "https://metacpan.org/release/Data-Validate-IP")
1513 (synopsis "IPv4 and IPv6 validation methods")
1515 "This module provides several IP address validation subroutines that both
1516 validate and untaint their input. This includes both basic validation
1517 (@code{is_ipv4()} and @code{is_ipv6()}) and special cases like checking whether
1518 an address belongs to a specific network or whether an address is public or
1519 private (reserved).")
1520 (license license:perl-license)))
1522 (define-public perl-net-dns
1524 (name "perl-net-dns")
1531 (string-append "https://www.net-dns.org/download/Net-DNS-"
1533 (string-append "mirror://cpan/authors/id/N/NL/NLNETLABS/Net-DNS-"
1534 version ".tar.gz")))
1536 (base32 "0qyy5k4k0llqjjmkkfg96919gqybdc1z5fy9047n9imidjxc59hi"))))
1537 (build-system perl-build-system)
1539 `(("perl-digest-hmac" ,perl-digest-hmac)))
1540 (home-page "https://www.net-dns.org/")
1542 "Perl Interface to the Domain Name System")
1543 (description "Net::DNS is the Perl Interface to the Domain Name System.")
1544 (license license:x11)))
1546 (define-public perl-socket6
1548 (name "perl-socket6")
1554 "mirror://cpan/authors/id/U/UM/UMEMOTO/Socket6-"
1559 "054izici8klfxs8hr5rljib28plijpsfymy99xbzdp047bx1b2a6"))))
1560 (build-system perl-build-system)
1563 (modify-phases %standard-phases
1565 (lambda* (#:key outputs #:allow-other-keys)
1566 (let* ((out (assoc-ref outputs "out"))
1567 (args `("Makefile.PL"
1568 ,(string-append "PREFIX=" out)
1569 "INSTALLDIRS=site")))
1570 (setenv "CONFIG_SHELL" (which "sh"))
1571 (apply invoke "perl" args)))))))
1572 (home-page "https://metacpan.org/release/Socket6")
1574 "IPv6 related part of the C socket.h defines and structure manipulators for Perl")
1575 (description "Socket6 binds the IPv6 related part of the C socket header
1576 definitions and structure manipulators for Perl.")
1577 (license license:bsd-3)))
1579 (define-public perl-net-dns-resolver-programmable
1581 (name "perl-net-dns-resolver-programmable")
1587 "mirror://cpan/authors/id/J/JM/JMEHNLE/net-dns-resolver-programmable/"
1588 "Net-DNS-Resolver-Programmable-v" version ".tar.gz"))
1591 "1v3nl2kaj4fs55n1617n53q8sa3mir06898vpy1rq98zjih24h4d"))
1593 (search-patches "perl-net-dns-resolver-programmable-fix.patch"))))
1594 (build-system perl-build-system)
1596 `(("perl-module-build" ,perl-module-build)))
1597 (inputs `(("perl-net-dns" ,perl-net-dns)))
1599 "https://metacpan.org/release/Net-DNS-Resolver-Programmable")
1601 "Programmable DNS resolver class for offline emulation of DNS")
1602 (description "Net::DNS::Resolver::Programmable is a programmable DNS resolver for
1603 offline emulation of DNS.")
1604 (license license:perl-license)))
1606 (define-public perl-net-dns-resolver-mock
1608 (name "perl-net-dns-resolver-mock")
1609 (version "1.20171219")
1613 "mirror://cpan/authors/id/M/MB/MBRADSHAW/"
1614 "Net-DNS-Resolver-Mock-" version ".tar.gz"))
1617 "0m3rxpkv1b9121srvbqkrgzg4m8mnydiydqv34in1i1ixwrl6jn9"))))
1618 (build-system perl-build-system)
1620 `(("perl-net-dns" ,perl-net-dns)))
1621 (home-page "https://metacpan.org/release/Net-DNS-Resolver-Mock")
1622 (synopsis "Mock DNS Resolver object for testing")
1624 "Net::DNS::Resolver::Mock is a subclass of Net::DNS::Resolver, but returns
1625 static data from any provided DNS zone file instead of querying the network.
1626 It is intended primarily for use in testing.")
1627 (license license:perl-license)))
1629 (define-public perl-netaddr-ip
1631 (name "perl-netaddr-ip")
1637 "mirror://cpan/authors/id/M/MI/MIKER/NetAddr-IP-"
1642 "1rx0dinrz9fk9qcg4rwqq5n1dm3xv2arymixpclcv2q2nzgq4npc"))))
1643 (build-system perl-build-system)
1646 (modify-phases %standard-phases
1648 (lambda* (#:key outputs #:allow-other-keys)
1649 (let* ((out (assoc-ref outputs "out"))
1650 (args `("Makefile.PL"
1651 ,(string-append "PREFIX=" out)
1652 "INSTALLDIRS=site")))
1653 (setenv "CONFIG_SHELL" (which "sh"))
1654 (apply invoke "perl" args)))))))
1656 "https://metacpan.org/release/NetAddr-IP")
1658 "Manages IPv4 and IPv6 addresses and subnets")
1659 (description "NetAddr::IP manages IPv4 and IPv6 addresses and subsets.")
1660 (license license:perl-license)))
1662 (define-public perl-net-patricia
1664 (name "perl-net-patricia")
1670 "mirror://cpan/authors/id/G/GR/GRUBER/Net-Patricia-"
1675 "0ln5f57vc8388kyh9vhx2infrdzfhbpgyby74h1qsnhwds95m0vh"))))
1676 (build-system perl-build-system)
1679 (modify-phases %standard-phases
1680 (add-after 'unpack 'dont-link-with-nsl ; Borrowed from Debian.
1682 (substitute* "Makefile.PL"
1686 `(("perl-net-cidr-lite" ,perl-net-cidr-lite)
1687 ("perl-socket6" ,perl-socket6)))
1689 "https://metacpan.org/release/Net-Patricia")
1691 "Patricia Trie Perl module for fast IP address lookups")
1693 "Net::Patricia does IP address lookups quickly in Perl.")
1694 ;; The bindings are licensed under GPL2 or later.
1695 ;; libpatricia is licensed under 2-clause BSD.
1696 (license (list license:gpl2+ license:bsd-2))))
1698 (define-public perl-net-cidr-lite
1700 (name "perl-net-cidr-lite")
1706 "mirror://cpan/authors/id/D/DO/DOUGW/Net-CIDR-Lite-"
1711 "14shj73zbqmfjbp0qz1fs9j4p2dpvz5hfkm4qfdjbydflbl2b8fg"))))
1712 (build-system perl-build-system)
1714 "https://metacpan.org/release/Net-CIDR-Lite")
1716 "Perl extension for merging IPv4 or IPv6 CIDR addresses")
1717 (description "Net::CIDR::Lite merges IPv4 or IPv6 CIDR addresses.")
1718 (license license:gpl1+)))
1720 ;; TODO: Use the geolite-mirror-simple.pl script from the example
1721 ;; directory to stay current with the databases. How?
1722 (define-public perl-geo-ip
1724 (name "perl-geo-ip")
1730 "mirror://cpan/authors/id/M/MA/MAXMIND/Geo-IP-"
1735 "1fka8fr7fw6sh3xa9glhs1zjg3s2gfkhi7n7da1l2m2wblqj0c0n"))))
1736 (build-system perl-build-system)
1737 (home-page "https://metacpan.org/release/Geo-IP")
1739 "Look up location and network information by IP Address in Perl")
1740 (description "The Perl module @code{Geo::IP}. It looks up location and
1741 network information by IP Address.")
1742 (license license:perl-license)))
1744 (define-public perl-io-socket-inet6
1746 (name "perl-io-socket-inet6")
1752 "mirror://cpan/authors/id/S/SH/SHLOMIF/IO-Socket-INET6-"
1757 "1fqypz6qa5rw2d5y2zq7f49frwra0aln13nhq5gi514j2zx21q45"))))
1758 (build-system perl-build-system)
1760 `(("perl-module-build" ,perl-module-build)
1761 ("perl-test-pod" ,perl-test-pod)
1762 ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
1763 (inputs `(("perl-socket6" ,perl-socket6)))
1764 (arguments `(;; Need network socket API
1767 "https://metacpan.org/release/IO-Socket-INET6")
1769 "Perl object interface for AF_INET/AF_INET6 domain sockets")
1770 (description "IO::Socket::INET6 is an interface for AF_INET/AF_INET6 domain
1772 (license license:perl-license)))
1774 (define-public libproxy
1780 (uri (string-append "https://github.com/libproxy/libproxy/"
1781 "releases/download/" version "/libproxy-"
1785 "0kvdrazlzwia876w988cmlypp253gwy6idlh8mjk958c29jb8kb5"))))
1786 (build-system cmake-build-system)
1788 `(("pkg-config" ,pkg-config)))
1794 (modify-phases %standard-phases
1797 (invoke "ctest" "-E" "url-test"))))))
1798 (synopsis "Library providing automatic proxy configuration management")
1799 (description "Libproxy handles the details of HTTP/HTTPS proxy
1800 configuration for applications across all scenarios. Applications using
1801 libproxy only have to specify which proxy to use.")
1802 (home-page "https://libproxy.github.io/libproxy")
1803 (license license:lgpl2.1+)))
1805 (define-public proxychains-ng
1807 (name "proxychains-ng")
1812 (uri (string-append "http://ftp.barfooze.de/pub/sabotage/tarballs/"
1813 "proxychains-ng-" version ".tar.xz"))
1815 (base32 "1bmhfbl1bzc87vl0xwr1wh5xvslfyc41nl2hqzhbj258p0sy004x"))))
1816 (build-system gnu-build-system)
1818 `(#:tests? #f ; there are no tests
1820 (modify-phases %standard-phases
1821 (add-after 'unpack 'fix-configure-script
1823 ;; The configure script is very intolerant to unknown arguments,
1824 ;; such as "CONFIG_SHELL".
1825 (substitute* "configure"
1826 (("\\*\\) break ;;" line)
1827 (string-append "[A-Z]*) shift ;;\n"
1830 (add-before 'configure 'set-up-environment
1834 (synopsis "Redirect any TCP connection through a proxy or proxy chain")
1835 (description "Proxychains-ng is a preloader which hooks calls to sockets
1836 in dynamically linked programs and redirects them through one or more SOCKS or
1838 (home-page "https://github.com/rofl0r/proxychains-ng")
1839 (license license:gpl2+)))
1847 (uri (string-append "http://enet.bespin.org/download/"
1848 "enet-" version ".tar.gz"))
1851 "1yxxf9bkx6dx3j8j70fj17c05likyfibb1419ls74hp58qrzdgas"))))
1852 (build-system gnu-build-system)
1854 `(("pkg-config" ,pkg-config)))
1855 (synopsis "Network communication layer on top of UDP")
1857 "ENet's purpose is to provide a relatively thin, simple and robust network
1858 communication layer on top of UDP. The primary feature it provides is optional
1859 reliable, in-order delivery of packets. ENet omits certain higher level
1860 networking features such as authentication, server discovery, encryption, or
1861 other similar tasks that are particularly application specific so that the
1862 library remains flexible, portable, and easily embeddable.")
1863 (home-page "http://enet.bespin.org")
1864 (license license:expat)))
1874 (url "https://github.com/yrutschle/sslh")
1875 (commit (string-append "v" version))))
1876 (file-name (git-file-name name version))
1878 (base32 "19h32dn0076p3s7dn35qi5yp2xvnxw9sqphppmn72vyb8caxvw1z"))))
1879 (build-system gnu-build-system)
1881 `(;; Test dependencies.
1884 ("perl-conf-libconfig" ,perl-conf-libconfig)
1885 ("perl-io-socket-inet6" ,perl-io-socket-inet6)
1886 ("perl-socket6" ,perl-socket6)
1887 ("psmisc" ,psmisc))) ; for ‘killall’
1889 `(("libcap" ,libcap)
1890 ("libconfig" ,libconfig)
1892 ("tcp-wrappers" ,tcp-wrappers)))
1895 (modify-phases %standard-phases
1896 (delete 'configure) ; no configure script
1897 (add-before 'check 'fix-tests
1900 (("\"/tmp") "$ENV{\"TMPDIR\"} . \"")
1901 ;; The Guix build environment lacks ‘ip6-localhost’.
1902 (("ip6-localhost") "localhost"))
1904 ;; Many of these files are mentioned in the man page. Install them.
1905 (add-after 'install 'install-documentation
1906 (lambda* (#:key outputs #:allow-other-keys)
1907 (let* ((out (assoc-ref outputs "out"))
1908 (doc (string-append out "/share/doc/sslh")))
1909 (install-file "README.md" doc)
1912 (install-file file (string-append doc "/examples")))
1913 (append (find-files "." "\\.cfg")
1914 (find-files "scripts"))))
1916 #:make-flags (list "CC=gcc"
1919 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1920 #:test-target "test"))
1921 (home-page "https://www.rutschle.net/tech/sslh/README.html")
1922 (synopsis "Applicative network protocol demultiplexer")
1924 "sslh is a network protocol demultiplexer. It acts like a switchboard,
1925 accepting connections from clients on one port and forwarding them to different
1926 servers based on the contents of the first received data packet. Detection of
1927 common protocols like HTTP(S), SSL, SSH, OpenVPN, tinc, and XMPP is already
1928 implemented, but any other protocol that matches a regular expression can be
1929 added. sslh's name comes from its original application of serving both SSH and
1930 HTTPS on port 443, allowing SSH connections from inside corporate firewalls
1931 that block port 22.")
1932 (license (list license:bsd-2 ; tls.[ch]
1933 license:gpl2+)))) ; everything else
1935 (define-public iperf
1941 (uri (string-append "http://downloads.es.net/pub/iperf"
1942 "/iperf-" version ".tar.gz"))
1945 "033is7b5grfbiil98jxlz4ixp9shm44x6hy8flpsyz1i4h108inq"))))
1946 (build-system gnu-build-system)
1947 (synopsis "TCP, UDP and SCTP bandwidth measurement tool")
1949 "iPerf is a tool to measure achievable bandwidth on IP networks. It
1950 supports tuning of various parameters related to timing, buffers and
1951 protocols (TCP, UDP, SCTP with IPv4 and IPv6). For each test it reports
1952 the bandwidth, loss, and other parameters.")
1953 (home-page "https://software.es.net/iperf/")
1954 (license (list license:bsd-3 ; Main distribution.
1955 license:ncsa ; src/{units,iperf_locale,tcp_window_size}.c
1956 license:expat ; src/{cjson,net}.[ch]
1957 license:public-domain)))) ; src/portable_endian.h
1959 (define-public nethogs
1967 (url "https://github.com/raboof/nethogs")
1968 (commit (string-append "v" version))))
1971 (base32 "0sn1sdp86akwlm4r1vmkxjjl50c0xaisk91bbz57z7kcsaphxna9")
1973 (file-name (git-file-name name version))))
1974 (build-system gnu-build-system)
1976 `(("libpcap" ,libpcap)
1977 ("ncurses" ,ncurses)))
1979 `(#:make-flags `("CC=gcc"
1980 ,(string-append "PREFIX=" %output)
1981 ,(string-append "VERSION=" ,version))
1983 (modify-phases %standard-phases
1984 (delete 'configure)))) ; no ./configure script.
1985 (home-page "https://github.com/raboof/nethogs")
1986 (synopsis "Per-process bandwidth monitor")
1987 (description "NetHogs is a small 'net top' tool for Linux. Instead of
1988 breaking the traffic down per protocol or per subnet, like most tools do, it
1989 groups bandwidth by process.
1991 NetHogs does not rely on a special kernel module to be loaded. If there's
1992 suddenly a lot of network traffic, you can fire up NetHogs and immediately see
1993 which PID is causing this. This makes it easy to identify programs that have
1994 gone wild and are suddenly taking up your bandwidth.")
1995 (license license:gpl2+)))
1997 (define-public nzbget
2004 (uri (string-append "https://github.com/nzbget/nzbget/releases"
2005 "/download/v" version
2006 "/nzbget-" version "-src.tar.gz"))
2009 "0lwd0pfrs4a5ms193hgz2qiyf7grrc925dw6y0nfc0gkp27db9b5"))
2010 (modules '((guix build utils)))
2012 ;; Reported upstream as <https://github.com/nzbget/nzbget/pull/414>.
2014 (substitute* "daemon/connect/TlsSocket.cpp"
2015 (("gnutls_certificate-verification_status_print")
2016 "gnutls_certificate_verification_status_print"))
2021 (string-append "--with-libcurses-includes="
2022 (assoc-ref %build-inputs "ncurses") "/include")
2023 (string-append "--with-libcurses-libraries="
2024 (assoc-ref %build-inputs "ncurses") "/lib")
2025 (string-append "--with-tlslib=GnuTLS"))))
2026 (build-system gnu-build-system)
2027 (inputs `(("gnutls" ,gnutls)
2028 ("libxml2" ,libxml2)
2029 ("ncurses" ,ncurses)
2031 (native-inputs `(("pkg-config" ,pkg-config)))
2032 (home-page "https://github.com/nzbget/nzbget")
2033 (synopsis "Usenet binary file downloader")
2035 "NZBGet is a binary newsgrabber, which downloads files from Usenet based
2036 on information given in @code{nzb} files. NZBGet can be used in standalone
2037 and in server/client modes. In standalone mode, you pass NZBGet @command{nzb}
2038 files as command-line parameters and it downloads them and exits. NZBGet also
2039 contains a Web interface. Its server can be controlled through remote
2040 procedure calls (RPCs).")
2041 (license license:gpl2+)))
2043 (define-public openvswitch
2045 (name "openvswitch")
2050 "https://www.openvswitch.org/releases/openvswitch-"
2054 "0cd5vmfr6zwgcnkwys6rag6cmz68v0librpaplianv734xs74pyx"))))
2055 (build-system gnu-build-system)
2057 '(;; FIXME: many tests fail with:
2059 ;; test -e $OVS_RUNDIR/ovs-vswitchd.pid
2060 ;; ovs-appctl -t ovs-vswitchd exit
2065 "--localstatedir=/var"
2066 "--with-dbdir=/var/lib/openvswitch")
2068 (modify-phases %standard-phases
2072 ;; Don't try to create directories under /var.
2080 ("pkg-config" ,pkg-config)
2081 ("python" ,python-wrapper)
2083 ("util-linux" ,util-linux)))
2085 `(("libcap-ng" ,libcap-ng)
2086 ("openssl" ,openssl)))
2087 (synopsis "Virtual network switch")
2088 (home-page "https://www.openvswitch.org/")
2090 "Open vSwitch is a multilayer virtual switch. It is designed to enable
2091 massive network automation through programmatic extension, while still
2092 supporting standard management interfaces and protocols (e.g. NetFlow, sFlow,
2093 IPFIX, RSPAN, CLI, LACP, 802.1ag).")
2094 (license ; see debian/copyright for detail
2095 (list license:lgpl2.1 ; xenserver and utilities/bugtool
2096 license:gpl2 ; datapath
2097 license:bsd-2 license:bsd-3
2098 license:asl2.0)))) ; all other
2100 (define-public python-ipy
2106 (uri (pypi-uri "IPy" version))
2109 "08d6kcacj67mvh0b6y765ipccy6gi4w2ndd4v1l3im2qm1cgcarg"))))
2110 (build-system python-build-system)
2111 (home-page "https://github.com/autocracy/python-ipy/")
2112 (synopsis "Python class and tools for handling IP addresses and networks")
2113 (description "The @code{IP} class allows a comfortable parsing and
2114 handling for most notations in use for IPv4 and IPv6 addresses and
2116 (license license:bsd-3)))
2118 (define-public python2-ipy
2119 (package-with-python2 python-ipy))
2121 (define-public speedtest-cli
2123 (name "speedtest-cli")
2129 (url "https://github.com/sivel/speedtest-cli")
2130 (commit (string-append "v" version))))
2131 (file-name (git-file-name name version))
2133 (base32 "1456yly6iym2c9bl6pi4sz8xbw34bm2dxm1vzpydsd6jazwpmy26"))))
2134 (build-system python-build-system)
2135 (home-page "https://github.com/sivel/speedtest-cli")
2136 (synopsis "Internet bandwidth tester")
2138 "Command line interface for testing internet bandwidth using
2140 (license license:asl2.0)))
2142 (define-public tftp-hpa
2148 (uri (string-append "mirror://kernel.org/software/"
2149 "network/tftp/tftp-hpa/tftp-hpa-" version
2153 "12vidchglhyc20znq5wdsbhi9mqg90jnl7qr9qs8hbvaz4fkdvmg"))))
2154 (build-system gnu-build-system)
2155 (arguments `(#:tests? #f)) ; no test target
2156 (synopsis "HPA's tftp client")
2158 "This is a tftp client derived from OpenBSD tftp with some extra options
2159 added and bugs fixed. The source includes readline support but it is not
2160 enabled due to license conflicts between the BSD advertising clause and the GPL.")
2161 (home-page "https://git.kernel.org/cgit/network/tftp/tftp-hpa.git/about/")
2162 ;; Some source files are distributed under a 3-clause BSD license, and
2163 ;; others under a 4-clause BSD license. Refer to the files in the source
2164 ;; distribution for clarification.
2165 (license (list license:bsd-3 license:bsd-4))))
2167 (define-public pidentd
2175 (url "https://github.com/ptrrkssn/pidentd")
2176 (commit (string-append "v" version))))
2177 (file-name (git-file-name name version))
2180 "1k4rr0b4ygxssbnsykzjvz4hjhazzz4j5arlilyc1iq7b1wzsk7i"))))
2181 (build-system gnu-build-system)
2183 `(#:tests? #f)) ; No tests are included
2185 `(("openssl" ,openssl-1.0))) ;for the DES library
2186 (home-page "https://www.lysator.liu.se/~pen/pidentd/")
2187 (synopsis "Small Ident Daemon")
2189 "@dfn{Pidentd} (Peter's Ident Daemon) is an identd, which implements a
2190 identification server. Pidentd looks up specific TCP/IP connections and
2191 returns the user name and other information about the connection.")
2192 (license license:public-domain)))
2194 (define-public spiped
2200 (uri (string-append "https://www.tarsnap.com/spiped/spiped-"
2204 "04rpnc53whfky7pp2m9h35gwzwn6788pnl6c1qd576mpknbqjw4d"))))
2205 (build-system gnu-build-system)
2207 '(#:test-target "test"
2208 #:make-flags (let* ((out (assoc-ref %outputs "out"))
2209 (bindir (string-append out "/bin"))
2210 (man1dir (string-append out "/share/man/man1")))
2211 (list "CC=gcc" ; It tries to invoke `c99`.
2212 (string-append "BINDIR=" bindir)
2213 (string-append "MAN1DIR=" man1dir)))
2215 (modify-phases %standard-phases
2216 (add-after 'unpack 'patch-command-invocations
2218 (substitute* '("Makefile"
2219 "libcperciva/cpusupport/Build/cpusupport.sh"
2220 "libcperciva/POSIX/posix-cflags.sh"
2221 "libcperciva/POSIX/posix-l.sh")
2222 (("command -p") ""))
2224 (delete 'configure) ; No ./configure script.
2225 (add-after 'install 'install-more-docs
2226 (lambda* (#:key outputs #:allow-other-keys)
2227 (let* ((out (assoc-ref %outputs "out"))
2228 (misc (string-append out "/share/doc/spiped")))
2229 (install-file "DESIGN.md" misc)
2232 `(("procps" ,procps))) ; `ps` is used by the test suite.
2234 `(("openssl" ,openssl)))
2235 (home-page "https://www.tarsnap.com/spiped.html")
2236 (synopsis "Create secure pipes between sockets")
2237 (description "Spiped (pronounced \"ess-pipe-dee\") is a utility for creating
2238 symmetrically encrypted and authenticated pipes between socket addresses, so
2239 that one may connect to one address (e.g., a UNIX socket on localhost) and
2240 transparently have a connection established to another address (e.g., a UNIX
2241 socket on a different system). This is similar to 'ssh -L' functionality, but
2242 does not use SSH and requires a pre-shared symmetric key.")
2243 (license license:bsd-2)))
2245 (define-public quagga
2251 (uri (string-append "mirror://savannah/quagga/quagga-"
2255 "1lsksqxij5f1llqn86pkygrf5672kvrqn1kvxghi169hqf1c0r73"))
2257 (search-patches "quagga-reproducible-build.patch"))))
2258 (build-system gnu-build-system)
2259 (native-inputs `(("pkg-config" ,pkg-config)
2261 ("dejagnu" ,dejagnu)))
2262 (inputs `(("readline" ,readline)
2263 ("c-ares" ,c-ares)))
2264 (synopsis "Routing Software Suite")
2265 (description "Quagga is a routing software suite, providing implementations
2266 of OSPFv2, OSPFv3, RIP v1 and v2, RIPng and BGP-4 for Unix platforms.
2268 The Quagga architecture consists of a core daemon, @command{zebra}, which
2269 acts as an abstraction layer to the underlying Unix kernel and presents the
2270 Zserv API over a Unix or TCP stream to Quagga clients. It is these Zserv
2271 clients which typically implement a routing protocol and communicate routing
2272 updates to the zebra daemon.")
2273 (home-page "https://www.nongnu.org/quagga/")
2274 (license license:gpl2+)))
2276 (define-public thc-ipv6
2277 (let ((revision "0")
2278 (commit "4bb72573e0950ce6f8ca2800a10748477020029e"))
2281 (version (git-version "3.4" revision commit))
2285 (url "https://github.com/vanhauser-thc/thc-ipv6")
2287 (file-name (git-file-name name version))
2290 "1x5i6vbsddqc2yks7r1a2fw2fk16qxvd6hpzh1lykjfpkal8fdir"))))
2291 (build-system gnu-build-system)
2293 `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2294 #:tests? #f ; No test suite.
2296 (modify-phases %standard-phases
2297 (delete 'configure) ; No ./configure script.
2298 (add-before 'build 'patch-paths
2300 (substitute* "Makefile"
2301 (("/bin/echo") "echo"))
2303 (add-after 'install 'install-more-docs
2304 (lambda* (#:key outputs #:allow-other-keys)
2305 (let* ((out (assoc-ref outputs "out"))
2306 (doc (string-append out "/share/thc-ipv6/doc")))
2307 (install-file "README" doc)
2308 (install-file "HOWTO-INJECT" doc)
2310 ;; TODO Add libnetfilter-queue once packaged.
2312 `(("libpcap" ,libpcap)
2313 ("openssl" ,openssl)
2315 (home-page "https://github.com/vanhauser-thc/thc-ipv6")
2316 (synopsis "IPv6 security research toolkit")
2317 (description "The THC IPv6 Toolkit provides command-line tools and a library
2318 for researching IPv6 implementations and deployments. It requires Linux 2.6 or
2319 newer and only works on Ethernet network interfaces.")
2320 ;; AGPL 3 with exception for linking with OpenSSL. See the 'LICENSE' file in
2321 ;; the source distribution for more information.
2322 (license license:agpl3))))
2331 (uri (string-append "https://github.com/tgraf/bmon/releases/download/v"
2332 version "/bmon-" version ".tar.gz"))
2335 "0ylzriv4pwh76344abzl1w219x188gshbycbna35gsyfp09c7z82"))))
2336 (build-system gnu-build-system)
2338 `(("libconfuse" ,libconfuse)
2340 ("ncurses" ,ncurses)))
2342 `(("pkg-config" ,pkg-config)))
2343 (synopsis "Bandwidth monitor")
2344 (description "bmon is a monitoring and debugging tool to capture
2345 networking-related statistics and prepare them visually in a human-friendly
2346 way. It features various output methods including an interactive curses user
2347 interface and a programmable text output for scripting.")
2348 (home-page "https://github.com/tgraf/bmon")
2349 ;; README.md mentions both the 2-clause BSD and expat licenses, but all
2350 ;; the source files only have expat license headers. Upstream has been
2351 ;; contacted for clarification: https://github.com/tgraf/bmon/issues/59
2352 ;; Update the license field when upstream responds.
2353 (license (list license:bsd-2
2356 (define-public libnet
2363 (uri (string-append "https://github.com/libnet/libnet/releases/download"
2364 "/v" version "/libnet-" version ".tar.gz"))
2367 "19ys9vxk6fg70yzzdxsphfr0rwzgxxhr9b3ykhpg7rfray0qd96a"))))
2368 (build-system gnu-build-system)
2371 (modify-phases %standard-phases
2372 (add-before 'build 'build-doc
2373 (lambda* (#:key make-flags #:allow-other-keys)
2374 (apply invoke "make" "-C" "doc" "doc"
2377 `(;; To build the documentation, Doxygen and Perl is required.
2378 ("doxygen" ,doxygen)
2380 (home-page "https://github.com/libnet/libnet")
2381 (synopsis "Framework for low-level network packet construction")
2383 "Libnet provides a fairly portable framework for network packet
2384 construction and injection. It features portable packet creation interfaces
2385 at the IP layer and link layer, as well as a host of supplementary
2386 functionality. Using libnet, quick and simple packet assembly applications
2387 can be whipped up with little effort.")
2388 (license license:bsd-2)))
2397 (uri (string-append "ftp://ftp.bitwizard.nl/mtr/"
2398 "mtr-" version ".tar.gz"))
2400 (base32 "03gid8g4r6a9r40855s4345xm1bylj2kfqkicjwxpmvvccyng712"))))
2401 (build-system gnu-build-system)
2403 `(("libcap" ,libcap)
2404 ("ncurses" ,ncurses)))
2406 `(#:tests? #f)) ; tests require network access
2407 (home-page "https://www.bitwizard.nl/mtr/")
2408 (synopsis "Network diagnostic tool")
2410 "@acronym{mtr, My TraceRoute} combines the functionality of the
2411 @command{traceroute} and @command{ping} programs in a single network diagnostic
2412 tool. @command{mtr} can use several network protocols to detect intermediate
2413 routers (or @dfn{hops}) between the local host and a user-specified destination.
2414 It then continually measures the response time and packet loss at each hop, and
2415 displays the results in real time.")
2416 (license license:gpl2+)))
2418 (define-public strongswan
2425 (uri (string-append "https://download.strongswan.org/strongswan-"
2426 version ".tar.bz2"))
2428 (base32 "0g2m08gmgdi3qvvqz6zy7n16np53sp232xd0rdc2vdhk73img6id"))))
2429 (build-system gnu-build-system)
2432 (modify-phases %standard-phases
2433 (add-before 'build 'patch-command-file-names
2434 (lambda* (#:key inputs #:allow-other-keys)
2435 (substitute* "src/libstrongswan/utils/process.c"
2437 (string-append (assoc-ref inputs "bash") "/bin/sh")))
2439 (substitute* "src/libstrongswan/tests/suites/test_process.c"
2440 (("/bin/sh") (which "sh"))
2441 (("/bin/echo") (which "echo"))
2442 (("cat") (which "cat")))
2444 (add-before 'check 'set-up-test-environment
2445 (lambda* (#:key inputs #:allow-other-keys)
2446 (setenv "TZDIR" (string-append (assoc-ref inputs "tzdata")
2451 ;; Disable bsd-4 licensed plugins.
2453 "--disable-blowfish")))
2457 ("libgcrypt" ,libgcrypt)
2458 ("openssl" ,openssl)))
2460 `(("coreutils" ,coreutils)
2461 ("tzdata" ,tzdata-for-tests)))
2462 (synopsis "IKEv1/v2 keying daemon")
2463 (description "StrongSwan is an IPsec implementation originally based upon
2464 the FreeS/WAN project. It contains support for IKEv1, IKEv2, MOBIKE, IPv6,
2466 (home-page "https://strongswan.org/")
2470 ;; src/libcharon/plugins/dnscert/*
2471 ;; src/libcharon/plugins/ext_auth/*
2472 ;; src/libcharon/plugins/vici/ruby/*
2473 ;; src/libcharon/plugins/xauth_pam/xauth_pam_listener.[ch]
2477 ;; src/libstrongswan/plugins/sha3/sha3_keccak.c
2478 license:public-domain
2479 ;; src/libstrongswan/plugins/pkcs11/pkcs11.h
2480 (license:non-copyleft
2481 "file://src/libstrongswan/plugins/pkcs11/pkcs11.h"
2482 "pkcs11 contains a unknown permissive license. View the specific
2483 file for more details.")
2484 ;; These files are not included in the
2485 ;; build, they are disabled through
2486 ;; options to ./configure
2488 ;; src/libstrongswan/plugins/blowfish/bf_enc.c
2489 ;; src/libstrongswan/plugins/blowfish/bf_locl.h
2490 ;; src/libstrongswan/plugins/blowfish/bf_pi.h
2491 ;; src/libstrongswan/plugins/blowfish/bf_skey.c
2492 ;; src/libstrongswan/plugins/blowfish/blowfish_crypter.c
2493 ;; src/libstrongswan/plugins/des/des_crypter.c
2496 (define-public amule
2503 (url "https://github.com/amule-project/amule")
2505 (file-name (git-file-name name version))
2508 "010wxm6g9f92x6fympj501zbnjka32rzbx0sk3a2y4zpih5d2nsn"))
2509 ;; Patch for adopting crypto++ >= 6.0.
2510 (patches (search-patches "amule-crypto-6.patch"))))
2511 (build-system gnu-build-system)
2514 (modify-phases %standard-phases
2515 (delete 'bootstrap) ; bootstrap phase runs too early.
2516 (add-after 'patch-source-shebangs 'autogen
2518 (invoke "sh" "autogen.sh")
2532 "--enable-amule-gui"
2533 "--enable-amule-daemon"
2534 "--enable-webserver"
2535 "--with-denoise-level=0")))
2537 `(("autoconf" ,autoconf)
2538 ("automake" ,automake)
2539 ("gettext-minimal" ,gettext-minimal)
2543 ("crypto++" ,crypto++)
2545 ("wxwidgets-gtk2" ,wxwidgets-gtk2)))
2546 (home-page "http://amule.org/")
2547 (synopsis "Peer-to-peer client for the eD2K and Kademlia networks")
2549 "aMule is an eMule-like client for the eD2k and Kademlia peer-to-peer
2550 file sharing networks. It includes a graphical user interface (GUI), a daemon
2551 allowing you to run a client with no graphical interface, and a Web GUI for
2552 remote access. The @command{amulecmd} command allows you to control aMule
2554 (license license:gpl2+)))
2563 (string-append "https://github.com/zeromq/zyre/releases/download/v"
2564 version "/" name "-" version ".tar.gz"))
2567 "0qz2730bng1gs9xbqxhkw88qbsmszgmmrl2g9k6xrg6r3bqvsdc7"))))
2568 (build-system gnu-build-system)
2569 (inputs `(("zeromq" ,zeromq)
2571 ("libsodium" ,libsodium)))
2572 (synopsis "Framework for proximity-based peer-to-peer applications")
2573 (description "Zyre provides reliable group messaging over local area
2574 networks using zeromq. It has these key characteristics:
2577 @item Zyre needs no administration or configuration.
2578 @item Peers may join and leave the network at any time.
2579 @item Peers talk to each other without any central brokers or servers.
2580 @item Peers can talk directly to each other.
2581 @item Peers can join groups, and then talk to groups.
2582 @item Zyre is reliable, and loses no messages even when the network is heavily loaded.
2583 @item Zyre is fast and has low latency, requiring no consensus protocols.
2584 @item Zyre is designed for WiFi networks, yet also works well on Ethernet networks.
2586 (home-page "https://github.com/zeromq/zyre")
2587 (license license:mpl2.0)))
2589 (define-public libsocketcan
2591 (name "libsocketcan")
2596 (url "https://git.pengutronix.de/cgit/tools/libsocketcan")
2597 (commit (string-append "v" version))))
2598 (file-name (git-file-name name version))
2601 "17z2y2r9xkixhr9bxr50m77fh710afl30s7jdhbxrvf56vmal2jr"))))
2602 (build-system gnu-build-system)
2604 `(("autoconf" ,autoconf)
2605 ("automake" ,automake)
2606 ("libtool" ,libtool)))
2607 (home-page "https://git.pengutronix.de/cgit/tools/libsocketcan")
2608 (synopsis "SocketCAN user-space library")
2609 (description "This library allows controlling basic functions in SocketCAN
2610 from user-space. It requires a kernel built with SocketCAN support.")
2611 (license license:lgpl2.1+)))
2613 (define-public can-utils
2616 (version "2020.02.04")
2620 (url "https://github.com/linux-can/can-utils")
2621 (commit (string-append "v" version))))
2622 (file-name (git-file-name name version))
2625 "1a3j1mmnb7pvgc8r7zzp6sdp7903in2hna6bmpraxln7cwlzn4l6"))))
2626 (build-system gnu-build-system)
2628 `(#:tests? #f ; No tests exist.
2629 #:make-flags (list "CC=gcc"
2630 (string-append "PREFIX="
2631 (assoc-ref %outputs "out")))
2633 (modify-phases %standard-phases
2635 (delete 'configure))))
2636 (home-page "https://github.com/linux-can/can-utils")
2637 (synopsis "CAN utilities")
2638 (description "This package provides CAN utilities in the following areas:
2641 @item Basic tools to display, record, generate and replay CAN traffic
2642 @item CAN access via IP sockets
2643 @item CAN in-kernel gateway configuration
2644 @item CAN bus measurement and testing
2645 @item ISO-TP (ISO15765-2:2016 - this means messages with a body larger than
2647 @item Log file converters
2648 @item Serial Line Discipline configuration for slcan driver
2650 ;; Either BSD-3 or GPL-2 can be used.
2651 (license (list license:bsd-3 license:gpl2))))
2660 (uri (string-append "mirror://sourceforge/asio/asio/"
2661 version " (Stable)/asio-" version ".tar.bz2"))
2663 (base32 "1akray4l3hgahmb92sbvsqg128c7g7s92jrkf1sp1fjnfjrxq9sf"))))
2664 (build-system gnu-build-system)
2667 ("openssl" ,openssl)))
2671 (string-append "--with-boost=" (assoc-ref %build-inputs "boost"))
2672 (string-append "--with-openssl=" (assoc-ref %build-inputs "openssl")))))
2673 (home-page "https://think-async.com/Asio")
2674 (synopsis "C++ library for ASynchronous network I/O")
2675 (description "Asio is a cross-platform C++ library for network and
2676 low-level I/O programming that provides developers with a consistent
2677 asynchronous model using a modern C++ approach.")
2678 (license license:boost1.0)))
2680 (define-public shadowsocks
2681 ;; There are some security fixes after the last release.
2682 (let* ((commit "e332ec93e9c90f1cbee676b022bf2c5d5b7b1239")
2684 (version (git-version "2.8.2" revision commit)))
2686 (name "shadowsocks")
2688 (home-page "https://github.com/shadowsocks/shadowsocks")
2696 "1idd9b4f2pnhcpk1bh030hqg5zq25gkwxd53xi3c0cj242w7sp2j"))
2697 (file-name (git-file-name name version))))
2698 (build-system python-build-system)
2699 (synopsis "Fast tunnel proxy that helps you bypass firewalls")
2701 "This package is a fast tunnel proxy that helps you bypass firewalls.
2705 @item TCP & UDP support
2706 @item User management API
2708 @item Workers and graceful restart
2709 @item Destination IP blacklist
2711 (license license:asl2.0))))
2713 (define-public net-snmp
2719 (uri (string-append "mirror://sourceforge/net-snmp/net-snmp/"
2720 version "/net-snmp-" version ".tar.gz"))
2723 "1pvajzj9gmj56dmwix0ywmkmy2pglh6nny646hkm7ghfhh03bz5j"))
2724 (modules '((guix build utils)))
2727 ;; Drop bundled libraries.
2728 (delete-file-recursively "snmplib/openssl")
2730 (build-system gnu-build-system)
2732 `(#:test-target "test"
2733 ;; XXX: With parallel build enabled, Perl modules may not get linked with
2734 ;; libnetsnmp. See e.g. <https://bugzilla.novell.com/show_bug.cgi?id=819497>.
2735 #:parallel-build? #f
2737 (list (string-append "LDFLAGS=-Wl,-rpath="
2738 (assoc-ref %outputs "out")
2740 "--with-logfile=/var/log/snmpd.log"
2741 (string-append "--with-openssl="
2742 (assoc-ref %build-inputs "openssl")))
2744 (modify-phases %standard-phases
2745 (add-after 'unpack 'patch-tests
2746 (lambda* (#:key inputs #:allow-other-keys)
2747 (substitute* "testing/fulltests/support/simple_TESTCONF.sh"
2749 (string-append "NETSTAT=\"" (which "netstat") "\"")))
2750 (substitute* '("testing/fulltests/default/T065agentextend_simple"
2751 "testing/fulltests/default/T115agentxperl_simple")
2752 (("/usr/bin/env") (which "env")))
2753 (substitute* "testing/fulltests/default/T065agentextend_sh_simple"
2754 (("/bin/sh") (which "sh")))
2755 ;; These tests require network access.
2756 (for-each delete-file
2757 '("testing/fulltests/default/T070com2sec_simple"
2758 "testing/fulltests/default/T071com2sec6_simple"))
2760 (add-after 'unpack 'patch-Makefile.PL
2761 (lambda* (#:key outputs #:allow-other-keys)
2762 (substitute* "Makefile.in"
2763 (("Makefile.PL -NET")
2764 (string-append "Makefile.PL PREFIX="
2765 (assoc-ref outputs "out")
2766 " INSTALLDIRS=site" " NO_PERLLOCAL=1"
2771 ("openssl" ,openssl)
2773 ;; These inputs are only needed for tests.
2775 `(("net-tools" ,net-tools)
2776 ("coreutils" ,coreutils)
2778 (home-page "http://www.net-snmp.org/")
2779 (synopsis "Simple Network Management Protocol library and tools")
2780 (description "The @dfn{Simple Network Management Protocol} (SNMP) is a
2781 widely used protocol for monitoring the health and welfare of network
2782 equipment (e.g. routers), computer equipment and even devices like UPSs.
2783 Net-SNMP is a suite of applications used to implement SNMP v1, SNMP v2c and
2784 SNMP v3 using both IPv4 and IPv6.")
2785 ;; This only affects OpenBSD
2786 ;; https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-8100
2787 (properties `((lint-hidden-cve . ("CVE-2015-8100"))))
2788 (license (list license:bsd-3
2789 (license:non-copyleft
2790 "http://www.net-snmp.org/about/license.html"
2791 "CMU/UCD copyright notice")))))
2793 (define-public ubridge
2801 (url "https://github.com/GNS3/ubridge")
2802 (commit (string-append "v" version))))
2803 (file-name (git-file-name name version))
2805 (base32 "0jg66jhhpv4c9340fsdp64hf9h253i8r81fknxa0gq241ripp3jn"))))
2806 (build-system gnu-build-system)
2808 `(#:tests? #f ; no tests
2810 (list ,(string-append "CC=" (cc-for-target)))
2812 (modify-phases %standard-phases
2813 (delete 'configure) ; no configure script
2814 (add-before 'install 'set-bindir
2815 (lambda* (#:key inputs outputs #:allow-other-keys)
2816 (let ((bin (string-append (assoc-ref outputs "out")
2819 (substitute* "Makefile"
2820 (("\\$\\(BINDIR\\)") bin)
2821 (("\tsetcap cap_net.*$") "")))
2824 `(("libpcap" ,libpcap)))
2825 (home-page "https://github.com/GNS3/ubridge/")
2826 (synopsis "Bridge for UDP tunnels, Ethernet, TAP and VMnet interfaces")
2827 (description "uBridge is a simple program to create user-land bridges
2828 between various technologies. Currently, bridging between UDP tunnels,
2829 Ethernet and TAP interfaces is supported. Packet capture is also supported.")
2830 (license license:gpl3+)))
2832 (define-public hcxtools
2840 (url "https://github.com/ZerBea/hcxtools")
2843 (base32 "0k2qlq9hz5zc21nyc6yrnfqzga7hydn5mm0x3rpl2fhkwl81lxcn"))
2844 (file-name (git-file-name name version))))
2845 (build-system gnu-build-system)
2848 ("libpcap" ,libpcap)
2849 ("openssl" ,openssl)
2854 (string-append "INSTALLDIR=" (assoc-ref %outputs "out") "/bin"))
2855 #:tests? #f ; no test suite
2857 (modify-phases %standard-phases
2858 (delete 'configure))))
2859 (home-page "https://github.com/ZerBea/hcxtools")
2860 (synopsis "Capture wlan traffic to hashcat and John the Ripper")
2862 "This package contains a small set of tools to capture and convert
2863 packets from wireless devices for use with hashcat or John the Ripper.")
2864 (license license:expat)))
2866 (define-public hcxdumptool
2868 (name "hcxdumptool")
2874 (url "https://github.com/ZerBea/hcxdumptool")
2877 (base32 "1b4d543y64ib92w9gcmiyjn5hz2vyjqmxk3f3yr1zk04fhw16gmf"))
2878 (file-name (git-file-name name version))))
2879 (build-system gnu-build-system)
2882 (list ,(string-append "CC=" (cc-for-target))
2883 (string-append "INSTALLDIR=" (assoc-ref %outputs "out") "/bin"))
2884 #:tests? #f ; no test suite
2886 (modify-phases %standard-phases
2887 (delete 'configure))))
2889 `(("openssl" ,openssl)))
2890 (home-page "https://github.com/ZerBea/hcxdumptool")
2891 (synopsis "Small tool to capture packets from wlan devices")
2893 "Small tool to capture packets from WLAN devices. After capturing,
2894 upload the \"uncleaned\" cap to @url{https://wpa-sec.stanev.org/?submit} to
2895 see if the access point or the client is vulnerable to a dictionary attack.
2896 Convert the cap file to hccapx format and/or to WPA-PMKID-PBKDF2
2897 hashline (16800) with @command{hcxpcaptool} from the @code{hcxtools} package
2898 and check if the WLAN key or the master key was transmitted unencrypted.")
2899 (license license:expat)))
2901 (define-public dante
2908 (uri (string-append "https://www.inet.no/dante/files/dante-"
2912 "19rqzj167q73ag20zxpvswhkk0bj56r5maf83v5016sw7vrcz5sc"))))
2913 (build-system gnu-build-system)
2915 ;; XXX: The dynamic socks library doesn't work with 'libc.so' (GNU ld
2916 ;; script). When preloading is enabled, 'sockd' failed with:
2917 ;; … Failed to open library "libc.so": …: invalid ELF header
2918 '(#:configure-flags '("--disable-preload")))
2919 (home-page "https://www.inet.no/dante/")
2920 (synopsis "SOCKS server and client")
2921 (description "Dante is a SOCKS client and server implementation. It can
2922 be installed on a machine with access to an external TCP/IP network and will
2923 allow all other machines, without direct access to that network, to be relayed
2924 through the machine the Dante server is running on. The external network will
2925 never see any machines other than the one Dante is running on.")
2926 (license (license:non-copyleft "file://LICENSE"))))
2928 (define-public restbed
2929 (let ((commit "6eb385fa9051203f28bf96cc1844bbb5a9a6481f"))
2932 (version (git-version "4.6" "1" commit))
2937 (url "https://github.com/Corvusoft/restbed/")
2939 (file-name (string-append name "-" version ".tar.gz"))
2941 (base32 "0k60i5drklqqrb4khb25fzkgz9y0sncxf1sp6lh2bm1m0gh0661n"))))
2942 (build-system cmake-build-system)
2945 ("catch" ,catch-framework)
2946 ("openssl" ,openssl)))
2950 '("-DBUILD_TESTS=NO"
2951 "-DBUILD_EXAMPLES=NO"
2953 "-DBUILD_SHARED=NO")
2955 (modify-phases %standard-phases
2956 (add-after 'unpack 'apply-patches-and-fix-paths
2957 (lambda* (#:key inputs #:allow-other-keys)
2958 (let ((asio (assoc-ref inputs "asio"))
2959 (catch (assoc-ref inputs "catch"))
2960 (openssl (assoc-ref inputs "openssl")))
2961 (substitute* "cmake/Findasio.cmake"
2962 (("(find_path\\( asio_INCLUDE asio\\.hpp HINTS ).*$" all begin)
2963 (string-append begin " \"" asio "/include\" )")))
2964 (substitute* "cmake/Findcatch.cmake"
2965 (("(find_path\\( catch_INCLUDE catch\\.hpp HINTS ).*$" all begin)
2966 (string-append begin " \"" catch "/include\" )")))
2967 (substitute* "cmake/Findopenssl.cmake"
2968 (("(find_library\\( ssl_LIBRARY ssl ssleay32 HINTS ).*$" all begin)
2969 (string-append begin " \"" openssl "/lib\" )"))
2970 (("(find_library\\( crypto_LIBRARY crypto libeay32 HINTS ).*$" all begin)
2971 (string-append begin " \"" openssl "/lib\" )"))
2972 (("(find_path\\( ssl_INCLUDE openssl/ssl\\.h HINTS ).*$" all begin)
2973 (string-append begin " \"" openssl "/include\" )")))))))))
2974 (synopsis "Asynchronous RESTful functionality to C++11 applications")
2975 (description "Restbed is a comprehensive and consistent programming
2976 model for building applications that require seamless and secure
2977 communication over HTTP.")
2978 (home-page "https://github.com/Corvusoft/restbed")
2979 (license license:agpl3+))))
2981 (define-public restinio
2988 (url "https://github.com/Stiffstream/restinio")
2989 (commit (string-append "v." version))))
2990 (file-name (git-file-name name version))
2993 "141a96hx8zhcdv121g6cs91n46kb47y040v25pnvz5f54964z7f5"))))
2994 (build-system cmake-build-system)
2995 (inputs ; TODO: Need to force-keep references on some inputs, e.g. boost.
2997 ("catch2" ,catch-framework2)
2998 ("openssl" ,openssl)
3002 ("sobjectizer" ,sobjectizer)))
3006 ("http-parser", http-parser)))
3008 `(#:configure-flags '("-DRESTINIO_INSTALL=on")
3009 #:tests? #f ; TODO: The tests are called from the root CMakelist, need RESTINIO_TEST=on.
3011 (modify-phases %standard-phases
3012 (add-after 'unpack 'change-directory
3014 (chdir "dev/restinio")
3016 (home-page "https://stiffstream.com/en/products/restinio.html")
3017 (synopsis "C++14 library that gives you an embedded HTTP/Websocket server")
3018 (description "RESTinio is a header-only C++14 library that gives you an embedded
3019 HTTP/Websocket server. It is based on standalone version of ASIO
3020 and targeted primarily for asynchronous processing of HTTP-requests.")
3021 (license license:bsd-3)))
3023 (define-public opendht
3030 (url "https://github.com/savoirfairelinux/opendht")
3032 (file-name (git-file-name name version))
3033 (patches (search-patches "opendht-fix-jami.patch"))
3036 "1ax26ri1ifb6s8ppd28jmanka9yf8mw3np65q2h4djhhik0phhal"))))
3037 ;; Since 2.0, the gnu-build-system does not seem to work anymore, upstream bug?
3038 (build-system cmake-build-system)
3040 `(("argon2" ,argon2)
3042 ("readline" ,readline)
3043 ("jsoncpp" ,jsoncpp)
3044 ("openssl" ,openssl) ;required for the DHT proxy
3047 `(("gnutls" ,gnutls) ;included in opendht/crypto.h
3048 ("msgpack" ,msgpack))) ;included in several installed headers
3050 `(("autoconf" ,autoconf)
3051 ("automake" ,automake)
3052 ("pkg-config" ,pkg-config)
3053 ("restinio" ,restinio) ;headers only library
3054 ("libtool" ,libtool)
3055 ("cppunit" ,cppunit)))
3057 `(#:tests? #f ; Tests require network connection.
3059 '(;; "-DOPENDHT_TESTS=on"
3060 "-DOPENDHT_TOOLS=off"
3061 "-DOPENDHT_PYTHON=off"
3062 "-DOPENDHT_PROXY_SERVER=on"
3063 "-DOPENDHT_PUSH_NOTIFICATIONS=on"
3064 "-DOPENDHT_PROXY_SERVER_IDENTITY=on"
3065 "-DOPENDHT_PROXY_CLIENT=on")))
3066 (home-page "https://github.com/savoirfairelinux/opendht/")
3067 (synopsis "Distributed Hash Table (DHT) library")
3068 (description "OpenDHT is a Distributed Hash Table (DHT) library. It may
3069 be used to manage peer-to-peer network connections as needed for real time
3071 (license license:gpl3+)))
3073 (define-public frrouting
3079 (uri (string-append "https://github.com/FRRouting/frr/releases/"
3080 "download/frr-" version "/frr-" version
3084 "0xfrvi62w8qlh46f504ka0skb7pm0g0p8vmdng4w90gsbirlzpdd"))))
3085 (build-system gnu-build-system)
3087 `(("c-ares" ,c-ares)
3089 ("readline" ,readline)))
3092 ("pkg-config" ,pkg-config)
3093 ("python" ,python-wrapper)
3094 ("python-pytest" ,python-pytest)))
3095 (home-page "https://frrouting.org/")
3096 (synopsis "IP routing protocol suite")
3097 (description "FRRouting (FRR) is an IP routing protocol suite which includes
3098 protocol daemons for BGP, IS-IS, LDP, OSPF, PIM, and RIP. ")
3099 (license license:gpl2+)))
3108 (url "https://git.kernel.org/pub/scm/network/wireless/iwd.git")
3110 (file-name (git-file-name name version))
3113 "001dikinsa6kshwscjbvwipavzwpqnpvx9fpshcn63gbvbhyd393"))))
3114 (build-system gnu-build-system)
3118 ("readline" ,readline)))
3120 `(("asciidoc" ,asciidoc)
3121 ("autoconf" ,autoconf)
3122 ("automake" ,automake)
3123 ("libtool" ,libtool)
3124 ("pkgconfig" ,pkg-config)
3126 ("openssl" ,openssl)))
3129 (let ((dbus (assoc-ref %outputs "out")))
3130 (list "--disable-systemd-service"
3131 "--enable-external-ell"
3136 "--localstatedir=/var"
3137 (string-append "--with-dbus-datadir=" dbus "/share/")
3138 (string-append "--with-dbus-busdir="
3139 dbus "/share/dbus-1/system-services")))
3141 (modify-phases %standard-phases
3142 (add-before 'bootstrap 'pre-bootstrap
3144 (substitute* "Makefile.am"
3145 ;; Test disabled because it needs the kernel module
3146 ;; 'pkcs8_key_parser' loaded.
3147 (("unit\\/test-eapol.*? ") "")
3148 ;; Don't try to 'mkdir /var'.
3149 (("\\$\\(MKDIR_P\\) -m 700") "true"))
3151 (home-page "https://git.kernel.org/pub/scm/network/wireless/iwd.git/")
3152 (synopsis "Internet Wireless Daemon")
3153 (description "iwd is a wireless daemon for Linux that aims to replace WPA
3154 Supplicant. It optimizes resource utilization by not depending on any external
3155 libraries and instead utilizing features provided by the Linux kernel to the
3156 maximum extent possible.")
3157 (license license:lgpl2.1+)))
3159 (define-public batctl
3166 (uri (string-append "https://downloads.open-mesh.org/batman/releases/batman-adv-"
3167 version "/batctl-" version ".tar.gz"))
3169 (base32 "0fy252q1my3a57v6pfz8i97h6zv7v03di01dhwjkj47pqnx1rqm3"))))
3171 `(("libnl" ,libnl)))
3173 `(("pkg-config" ,pkg-config)))
3174 (build-system gnu-build-system)
3177 ;; Batctl only has a makefile. Thus we disable tests and
3178 ;; configuration, passing in a few make-flags.
3179 #:phases (modify-phases %standard-phases (delete 'configure))
3181 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3182 (string-append "PKG_CONFIG=" (assoc-ref %build-inputs "pkg-config")
3185 (home-page "https://www.open-mesh.org/projects/batman-adv/wiki/Wiki")
3186 (synopsis "Management tool for the mesh networking BATMAN protocol")
3187 (description "This package provides a control tool for the
3188 B.A.T.M.A.N. mesh networking routing protocol provided by the Linux kernel
3189 module @code{batman-adv}, for Layer 2.")
3190 (license license:gpl2+)))
3192 (define-public pagekite
3195 (version "1.5.2.200603")
3200 (url "https://github.com/pagekite/PyPagekite")
3201 (commit (string-append "v" version))))
3202 (file-name (git-file-name name version))
3204 (base32 "08rcyr54dssnpand6y26f8x9cjmd91hr44my08kxw70s5iqiwizv"))))
3205 (build-system python-build-system)
3208 (modify-phases %standard-phases
3209 (add-after 'install 'install-man-page
3210 (lambda* (#:key inputs outputs #:allow-other-keys)
3211 (let* ((out (assoc-ref outputs "out"))
3212 (man (string-append out "/share/man")))
3214 (string-append "PYTHONPATH=" (getenv "PYTHONPATH"))
3216 (install-file "doc/pagekite.1" (string-append man "/man1"))
3219 `(("python-six" ,python-six)
3220 ("python-socksipychain" ,python-socksipychain)))
3221 (home-page "https://pagekite.net/")
3222 (synopsis "Make localhost servers publicly visible")
3224 "PageKite implements a tunneled reverse proxy which makes it easy to make
3225 a service (such as an HTTP or SSH server) on localhost visible to the wider
3226 Internet, even behind NAT or restrictive firewalls. A managed front-end relay
3227 service is available at @url{https://pagekite.net/}, or you can run your own.")
3228 (license license:agpl3+)))
3230 (define-public ipcalc
3236 (uri (string-append "http://jodies.de/ipcalc-archive/"
3237 name "-" version ".tar.gz"))
3240 "12if9sm8h2ac0pgwkw835cgyqjxm6h27k4kfn2vfas9krrqwbafx"))))
3241 (inputs `(("perl" ,perl)
3244 ("tarball" ,source)))
3245 (build-system trivial-build-system) ;no Makefile.PL
3247 `(#:modules ((guix build utils))
3250 (use-modules (guix build utils))
3251 (use-modules (srfi srfi-1))
3252 (let* ((source (assoc-ref %build-inputs "source"))
3253 (perl (string-append (assoc-ref %build-inputs "perl")
3255 (tar (assoc-ref %build-inputs "tar"))
3256 (gz (assoc-ref %build-inputs "gzip"))
3257 (out (assoc-ref %outputs "out"))
3258 (bin (string-append out "/bin"))
3259 (doc (string-append out "/share/doc/ipcalc")))
3260 (setenv "PATH" (string-append gz "/bin"))
3261 (invoke (string-append tar "/bin/tar") "xvf" source)
3262 (chdir (string-append ,name "-" ,version))
3264 (install-file "ipcalc" bin)
3265 (patch-shebang (string-append bin "/ipcalc") (list perl))
3267 (synopsis "Simple IP network calculator")
3268 (description "ipcalc takes an IP address and netmask and calculates the
3269 resulting broadcast, network, Cisco wildcard mask, and host range. By giving
3270 a second netmask, you can design subnets and supernets. It is also intended
3271 to be a teaching tool and presents the subnetting results as
3272 easy-to-understand binary values.")
3273 (home-page "http://jodies.de/ipcalc")
3274 (license license:gpl2+)))
3276 (define-public tunctl
3283 (uri (string-append "mirror://sourceforge/tunctl/tunctl/" version "/"
3284 "tunctl-" version ".tar.gz"))
3286 (base32 "1zsgn7w6l2zh2q0j6qaw8wsx981qcr536qlz1lgb3b5zqr66qama"))))
3287 (build-system gnu-build-system)
3290 (modify-phases %standard-phases
3291 (delete 'bootstrap) ;there is no configure.ac file
3292 (delete 'configure) ;there is no configure script
3293 (delete 'check) ;there are no tests
3297 (invoke "make" "tunctl")))
3298 ;; TODO: Requires docbook2x to generate man page from SGML.
3300 (lambda* (#:key outputs #:allow-other-keys)
3301 (let* ((out (assoc-ref outputs "out"))
3302 (bin (string-append out "/bin")))
3303 (install-file "tunctl" bin))
3305 (home-page "http://tunctl.sourceforge.net")
3306 (synopsis "Utility to set up and maintain TUN/TAP network interfaces")
3307 (description "Tunctl is used to set up and maintain persistent TUN/TAP
3308 network interfaces, enabling user applications to simulate network traffic.
3309 Such interfaces are useful for VPN software, virtualization, emulation,
3310 simulation, and a number of other applications.")
3311 (license license:gpl2)))
3320 (uri (string-append "mirror://sourceforge/wake-on-lan/wol/"
3321 version "/wol-" version ".tar.gz"))
3323 (base32 "08i6l5lr14mh4n3qbmx6kyx7vjqvzdnh3j9yfvgjppqik2dnq270"))))
3324 (build-system gnu-build-system)
3325 (home-page "https://sourceforge.net/projects/wake-on-lan/")
3326 (synopsis "Implements Wake On LAN functionality in a small program")
3327 (description "Tool to send a magic packet to wake another host on the
3328 network. This must be enabled on the target host, usually in the BIOS.")
3329 (license license:gpl2)))
3338 (uri "mirror://sourceforge/vde/vde2/2.3.2/vde2-2.3.2.tar.gz")
3340 (base32 "14xga0ib6p1wrv3hkl4sa89yzjxv7f1vfqaxsch87j6scdm59pr2"))))
3341 (build-system gnu-build-system)
3343 `(#:parallel-build? #f)) ; Build fails if #t.
3345 `(("python" ,python)
3346 ("libpcap" ,libpcap)
3347 ("openssl" ,openssl-1.0))) ; Build fails with 1.1.
3348 (home-page "https://github.com/virtualsquare/vde-2")
3349 (synopsis "Virtual Distributed Ethernet")
3350 (description "VDE is a set of programs to provide virtual software-defined
3351 Ethernet network interface controllers across multiple virtual or
3352 physical, local or remote devices. The VDE architecture provides
3353 virtual counterparts to hardware components such as switches and
3355 (license (list license:gpl2
3356 license:lgpl2.1 ; libvdeplug
3357 (license:non-copyleft ; slirpvde
3358 "file://COPYING.slirpvde"
3359 "See COPYING.slirpvde in the distribution.")))))
3361 (define-public haproxy
3367 (uri (string-append "https://www.haproxy.org/download/"
3368 (version-major+minor version)
3369 "/src/haproxy-" version ".tar.gz"))
3372 "0fd3c1znid5a9w3gcf77b85hm2a2558w9s02c4b7xzkmivqnqbir"))))
3373 (build-system gnu-build-system)
3376 (let* ((out (assoc-ref %outputs "out")))
3377 (list (string-append "PREFIX=" out)
3378 (string-append "DOCDIR=" out "/share/" ,name)
3379 "TARGET=linux-glibc"
3384 #:tests? #f ; there are only regression tests, using varnishtest
3386 (modify-phases %standard-phases
3387 (delete 'configure))))
3390 ("openssl" ,openssl)
3393 (home-page "https://www.haproxy.org/")
3394 (synopsis "Reliable, high performance TCP/HTTP load balancer")
3395 (description "HAProxy is a free, very fast and reliable solution offering
3396 high availability, load balancing, and proxying for TCP and HTTP-based
3397 applications. It is particularly suited for web sites crawling under very
3398 high loads while needing persistence or Layer7 processing. Supporting tens of
3399 thousands of connections is clearly realistic with today's hardware.")
3400 (license (list license:gpl2+
3402 license:lgpl2.1+))))
3404 (define-public lldpd
3411 (uri (string-append "https://media.luffy.cx/files/lldpd/lldpd-"
3415 "16fbqrs3l976gdslx647nds8x7sz4h5h3h4l4yxzrayvyh9b5lrd"))
3416 (modules '((guix build utils)))
3419 ;; Drop bundled library.
3420 (delete-file-recursively "libevent")
3425 "--with-privsep-user=nobody"
3426 "--with-privsep-group=nogroup"
3427 "--localstatedir=/var"
3429 "--without-embedded-libevent"
3430 (string-append "--with-systemdsystemunitdir="
3431 (assoc-ref %outputs "out")
3432 "/lib/systemd/system"))))
3433 (build-system gnu-build-system)
3435 `(("libevent" ,libevent)
3436 ("libxml2" ,libxml2)
3437 ("openssl" ,openssl)
3438 ("readline" ,readline)))
3440 `(("pkg-config" ,pkg-config)))
3441 (home-page "https://vincentbernat.github.io/lldpd/")
3442 (synopsis "Locate neighbors of your network equipment")
3444 "The @dfn{Link Layer Discovery Protocol} (LLDP) is an industry standard
3445 protocol designed to supplant proprietary Link-Layer protocols such as EDP or
3446 CDP. The goal of LLDP is to provide an inter-vendor compatible mechanism to
3447 deliver Link-Layer notifications to adjacent network devices. @code{lldpd} is
3448 an implementation of LLDP. It also supports some proprietary protocols.")
3449 (license license:isc)))
3451 (define-public hashcash
3458 (uri (string-append "http://www.hashcash.org/source/hashcash-"
3462 "15kqaimwb2y8wvzpn73021bvay9mz1gqqfc40gk4hj6f84nz34h1"))))
3463 (build-system gnu-build-system)
3465 `(#:make-flags (list (string-append "CC=" ,(cc-for-target)))
3467 (modify-phases %standard-phases
3469 ;; No tests available.
3472 (lambda* (#:key outputs #:allow-other-keys)
3473 (let* ((outdir (assoc-ref outputs "out"))
3474 (bindir (string-append outdir "/bin"))
3475 (mandir (string-append outdir "/share/man/man1"))
3476 (docdir (string-append outdir "/share/doc/hashcash-" ,version)))
3477 ;; Install manually, as we don't need the `sha1' binary
3478 (install-file "hashcash" bindir)
3479 (install-file "hashcash.1" mandir)
3480 (install-file "README" docdir)
3481 (install-file "LICENSE" docdir)
3482 (install-file "CHANGELOG" docdir)
3484 (home-page "https://www.hashcash.org/")
3485 (synopsis "Denial-of-service countermeasure")
3486 (description "Hashcash is a proof-of-work algorithm, which has been used
3487 as a denial-of-service countermeasure technique in a number of systems.
3489 A hashcash stamp constitutes a proof-of-work which takes a parametrizable
3490 amount of work to compute for the sender. The recipient can verify received
3491 hashcash stamps efficiently.
3493 This package contains a command-line tool for computing and verifying hashcash
3495 (license license:public-domain)))