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 graphviz)
99 #:use-module (gnu packages gstreamer)
100 #:use-module (gnu packages gtk)
101 #:use-module (gnu packages image)
102 #:use-module (gnu packages libevent)
103 #:use-module (gnu packages libidn)
104 #:use-module (gnu packages linux)
105 #:use-module (gnu packages lua)
106 #:use-module (gnu packages multiprecision)
107 #:use-module (gnu packages kerberos)
108 #:use-module (gnu packages ncurses)
109 #:use-module (gnu packages nettle)
110 #:use-module (gnu packages openldap)
111 #:use-module (gnu packages onc-rpc)
112 #:use-module (gnu packages password-utils)
113 #:use-module (gnu packages pcre)
114 #:use-module (gnu packages perl)
115 #:use-module (gnu packages perl-check)
116 #:use-module (gnu packages pkg-config)
117 #:use-module (gnu packages polkit)
118 #:use-module (gnu packages pretty-print)
119 #:use-module (gnu packages pulseaudio)
120 #:use-module (gnu packages python)
121 #:use-module (gnu packages python-web)
122 #:use-module (gnu packages python-xyz)
123 #:use-module (gnu packages qt)
124 #:use-module (gnu packages readline)
125 #:use-module (gnu packages ruby)
126 #:use-module (gnu packages samba)
127 #:use-module (gnu packages serialization)
128 #:use-module (gnu packages shells)
129 #:use-module (gnu packages sphinx)
130 #:use-module (gnu packages sqlite)
131 #:use-module (gnu packages ssh)
132 #:use-module (gnu packages tcl)
133 #:use-module (gnu packages textutils)
134 #:use-module (gnu packages tls)
135 #:use-module (gnu packages valgrind)
136 #:use-module (gnu packages version-control)
137 #:use-module (gnu packages web)
138 #:use-module (gnu packages wxwidgets)
139 #:use-module (gnu packages xml)
140 #:use-module (ice-9 match))
142 ;; This package does not have a release yet.
143 ;; But this is required to provide a feature in PipeWire.
144 (define-public libcamera
153 (url "git://linuxtv.org/libcamera.git")
154 (commit "74c8b508338ccdd0780aa1e067a1e8fcb9ee326b")))
156 (git-file-name name version))
158 (base32 "0d9lp8b9gyxh4jwfh55kp8zl1xyyg32z684v3y29378zpksncss1"))))
159 (build-system meson-build-system)
160 (outputs '("out" "doc"))
162 `(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
167 (modify-phases %standard-phases
168 (add-after 'unpack 'disable-failing-tests
170 (substitute* "test/meson.build"
171 (("\\['list-cameras', 'list-cameras.cpp'\\],")
174 (add-after 'install 'move-doc
175 (lambda* (#:key outputs #:allow-other-keys)
176 (let* ((out (assoc-ref outputs "out"))
177 (doc (assoc-ref outputs "doc")))
178 (mkdir-p (string-append doc "/share"))
180 (string-append out "/share/doc")
181 (string-append doc "/share/doc"))
186 ("pkg-config" ,pkg-config)
187 ("python" ,python-wrapper)
188 ("sphinx" ,python-sphinx)
189 ("yaml" ,python-pyyaml)))
193 ("gstreamer" ,gst-plugins-base)
199 (synopsis "Camera stack and framework")
200 (description "LibCamera is a complex camera support library for GNU+Linux,
201 Android, and ChromeOS.")
202 (home-page "https://libcamera.org/")
203 (license license:lgpl2.1+)))
205 (define-public libnice
213 (string-append "https://libnice.freedesktop.org/releases/"
214 name "-" version ".tar.gz"))
216 (base32 "09lm0rxwvbr53svi3inaharlq96iwbs3s6957z69qp4bqpga0lhr"))))
217 (build-system meson-build-system)
218 (outputs '("out" "doc"))
220 `(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
225 (modify-phases %standard-phases
226 (add-after 'install 'move-docs
227 (lambda* (#:key outputs #:allow-other-keys)
228 (let* ((out (assoc-ref outputs "out"))
229 (doc (assoc-ref outputs "doc")))
230 (mkdir-p (string-append doc "/share"))
232 (string-append out "/share/gtk-doc")
233 (string-append doc "/share/gtk-doc"))
236 `(("glib:bin" ,glib "bin")
237 ("gobject-introspection" ,gobject-introspection)
239 ("pkg-config" ,pkg-config)))
242 ("gstreamer" ,gstreamer)
243 ("gst-plugins-base" ,gst-plugins-base)
247 ("glib-networking" ,glib-networking)))
248 (synopsis "GLib ICE implementation")
249 (description "LibNice is a library that implements the Interactive
250 Connectivity Establishment (ICE) standard (RFC 5245 & RFC 8445). It provides a
251 GLib-based library, libnice, as well as GStreamer elements to use it.")
252 (home-page "https://libnice.freedesktop.org/")
254 ;; This project is dual-licensed.
259 (define-public rtmpdump
267 (url "https://git.ffmpeg.org/rtmpdump")
268 (commit "c28f1bab7822de97353849e7787b59e50bbb1428")))
269 (file-name (git-file-name name version))
271 (base32 "1n3kdip83nvvs4sin30zpcdr5q711mqhq2lxrv5vgbc6lskpwzlj"))))
272 (build-system gnu-build-system)
274 `(#:tests? #f ; no tests
277 ;; The ‘validate-runpath’ phase fails to find librtmp.so.0.
278 (string-append "LDFLAGS=-Wl,-rpath="
279 (assoc-ref %outputs "out") "/lib")
280 (string-append "prefix=" (assoc-ref %outputs "out")))
282 (modify-phases %standard-phases
283 (add-after 'unpack 'omit-static-library
285 (substitute* "librtmp/Makefile"
286 (("cp librtmp\\.a .*") ; don't install it
288 (("librtmp\\.a ") ; don't build it
291 (delete 'configure))))
293 `(("openssl" ,openssl-1.0)
295 (synopsis "Tools and library for handling RTMP streams")
296 (description "RTMPdump is a toolkit for RTMP streams. All forms of RTMP are
297 supported, including rtmp://, rtmpt://, rtmpe://, rtmpte://, and rtmps://.")
298 (home-page "https://rtmpdump.mplayerhq.hu/")
315 (url "https://github.com/Haivision/srt.git")
316 (commit (string-append "v" version))))
317 (file-name (git-file-name name version))
319 (base32 "01xaq44j95kbgqfl41pnybvqy0yq6wd4wdw88ckylzf0nzp977xz"))))
320 (build-system cmake-build-system)
324 (string-append "-DCMAKE_INSTALL_BINDIR="
325 (assoc-ref %outputs "out") "/bin")
326 (string-append "-DCMAKE_INSTALL_LIBDIR="
327 (assoc-ref %outputs "out") "/lib")
328 (string-append "-DINSTALL_SHARED_DIR="
329 (assoc-ref %outputs "out") "/lib")
330 (string-append "-DCMAKE_INSTALL_INCLUDEDIR="
331 (assoc-ref %outputs "out") "/include")
332 "-DENABLE_UNITTESTS=ON"
333 "-DENABLE_CODE_COVERAGE=ON")))
335 `(("git" ,git-minimal)
336 ("gtest" ,googletest)
337 ("pkg-config" ,pkg-config)
340 `(("openssl" ,openssl)))
341 (synopsis "Secure Reliable Transport")
342 (description "SRT is a transport technology that optimizes streaming
343 performance across unpredictable networks, such as the Internet.")
344 (home-page "https://www.srtalliance.org/")
345 (license license:mpl2.0)))
347 (define-public lksctp-tools
349 (name "lksctp-tools")
356 (url "https://github.com/sctp/lksctp-tools.git")
357 (commit (string-append "v" version))))
358 (file-name (git-file-name name version))
360 (base32 "1x4fwzrlzvfa3vcpja97m8w5g9ir2zrh4zs7zksminrnmdrs0dsr"))))
361 (build-system gnu-build-system)
363 `(("autoconf" ,autoconf)
364 ("automake" ,automake)
366 ("pkg-config" ,pkg-config)))
368 `(("linux-headers" ,linux-libre-headers)))
369 (synopsis "Linux SCTP helper library")
370 (description "Lksctp-tools project provides a user space library for SCTP
371 (libsctp) including C language header files (netinet/sctp.h) for accessing SCTP
372 specific application programming interfaces not provided by the standard
373 sockets, and also some helper utilities around SCTP.")
374 (home-page "http://lksctp.sourceforge.net/")
382 (define-public knockd
388 (uri (string-append "https://www.zeroflux.org/proj/knock/files/knock-"
392 "193qcpsy7v51c6awhg9652l5blyz8vp6n7y6fi7l4rhh6af4ff4r"))))
393 (build-system gnu-build-system)
395 `(("libpcap" ,libpcap)))
396 (home-page "https://www.zeroflux.org/projects/knock")
397 (synopsis "Small port-knock daemon")
398 (description "@command{knockd} is a port-knock daemon. It listens to all traffic on
399 an ethernet or PPP interface, looking for special \"knock\" sequences of @dfn{port-hits}
400 (UDP/TCP packets sent to a server port). This port need not be open, since knockd listens
401 at the link-layer level.")
402 (license license:gpl2+)))
412 (url "https://github.com/nanomsg/nng.git")
413 (commit (string-append "v" version))))
414 (file-name (git-file-name name version))
416 (base32 "0a4jg8alh2h0rw6fb4dqpvk4hgl2a7h76mq7g34fy89qh9sgg1a4"))))
417 (build-system cmake-build-system)
420 (list "-DNNG_ENABLE_COVERAGE=ON"
421 "-DNNG_ENABLE_TLS=ON")
423 (modify-phases %standard-phases
424 (add-after 'unpack 'disable-failing-tests
426 ;; These tests require network access.
427 (substitute* "tests/CMakeLists.txt"
428 (("add_nng_test1\\(httpclient 60 NNG_SUPP_HTTP\\)") "")
429 (("add_nng_test1\\(resolv 10 NNG_STATIC_LIB\\)") "")
430 (("add_nng_test\\(tls 60\\)") ""))
435 `(("mbedtls" ,mbedtls-apache)))
436 (synopsis "Lightweight messaging library")
437 (description "NNG project is a rewrite of the scalability protocols library
438 known as libnanomsg, and adds significant new capabilities, while retaining
439 compatibility with the original. It is a lightweight, broker-less library,
440 offering a simple API to solve common recurring messaging problems, such as
441 publish/subscribe, RPC-style request/reply, or service discovery.")
442 (home-page "https://nng.nanomsg.org/")
443 (license license:expat)))
445 (define-public nanomsg
454 (url "https://github.com/nanomsg/nanomsg.git")
456 (file-name (git-file-name name version))
458 (base32 "01ddfzjlkf2dgijrmm3j3j8irccsnbgfvjcnwslsfaxnrmrq5s64"))))
459 (build-system cmake-build-system)
460 (outputs '("out" "doc"))
464 "-DNN_ENABLE_COVERAGE=ON")
466 (modify-phases %standard-phases
467 (add-after 'install 'move-docs
468 (lambda* (#:key outputs #:allow-other-keys)
469 (let* ((out (assoc-ref outputs "out"))
470 (doc (assoc-ref outputs "doc")))
471 (mkdir-p (string-append doc "/share/doc"))
473 (string-append out "/share/doc/nanomsg")
474 (string-append doc "/share/doc/nanomsg"))
477 `(("asciidoctor" ,ruby-asciidoctor)
478 ("pkg-config" ,pkg-config)))
479 (synopsis "Scalable socket library")
480 (description "Nanomsg is a socket library that provides several common
481 communication patterns. It aims to make the networking layer fast, scalable,
482 and easy to use. Implemented in C, it works on a wide range of operating
483 systems with no further dependencies.")
484 (home-page "https://nanomsg.org/")
485 (license (license:non-copyleft "file:///COPYING"))))
487 (define-public blueman
494 (uri (string-append "https://github.com/blueman-project/blueman/releases"
495 "/download/" version "/blueman-" version ".tar.xz"))
497 (base32 "1pngqbwapbvywhkmflapqvs0wa0af7d1a87wy56l5hg2r462xl1v"))))
498 (build-system glib-or-gtk-build-system)
500 `(#:configure-flags (list "--enable-polkit"
501 "--without-systemdsystemunitdir" ; Not required
502 "--without-systemduserunitdir") ; Not required
504 (modify-phases %standard-phases
505 ;; Python references are not being patched in patch-phase of build,
506 ;; despite using python-wrapper as input. So we patch them manually.
507 (add-after 'unpack 'patch-python-references
508 (lambda* (#:key inputs #:allow-other-keys)
509 (with-directory-excursion "apps"
510 (substitute* '("blueman-adapters.in" "blueman-applet.in"
511 "blueman-assistant.in" "blueman-manager.in"
512 "blueman-mechanism.in" "blueman-report.in"
513 "blueman-rfcomm-watcher.in" "blueman-sendto.in"
514 "blueman-services.in" "blueman-tray.in")
515 (("@PYTHON@") (string-append (assoc-ref inputs "python")
517 ,(version-major+minor
518 (package-version python))))))
520 ;; Fix loading of external programs.
521 (add-after 'unpack 'patch-external-programs
522 (lambda* (#:key inputs #:allow-other-keys)
523 (substitute* '("apps/blueman-report.in" "blueman/main/NetConf.py"
524 "blueman/main/PPPConnection.py")
525 (("/usr/sbin/bluetoothd")
526 (string-append (assoc-ref inputs "bluez")
527 "/libexec/bluetooth/bluetoothd"))
529 (string-append (assoc-ref inputs "iptables")
532 (string-append (assoc-ref inputs "ppp")
535 ;; Fix loading of pulseaudio libraries.
536 (add-after 'unpack 'patch-pulseaudio-libraries
537 (lambda* (#:key inputs #:allow-other-keys)
538 (let* ((pulseaudio (assoc-ref inputs "pulseaudio"))
539 (pulse (string-append pulseaudio "/lib/libpulse.so.0"))
540 (pulse-glib (string-append pulseaudio
541 "/lib/libpulse-mainloop-glib.so.0")))
542 (with-directory-excursion "blueman/main"
543 (substitute* "PulseAudioUtils.py"
544 (("libpulse.so.0") pulse)
545 (("libpulse-mainloop-glib.so.0") pulse-glib)))
547 ;; Fix running of blueman programs.
548 (add-after 'glib-or-gtk-wrap 'wrap-blueman-progs
549 (lambda* (#:key outputs #:allow-other-keys)
550 (let* ((out (assoc-ref outputs "out"))
551 (bin (string-append out "/bin/blueman-"))
552 (libexec (string-append out "/libexec/blueman-"))
553 (lib (string-append out "/lib/python"
554 ,(version-major+minor
555 (package-version python))
559 (wrap-program program
560 `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,lib))
561 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))))
563 (map (lambda (prog) (string-append bin prog))
564 '("adapters" "applet" "assistant" "manager" "report"
565 "sendto" "services" "tray"))
566 (map (lambda (prog) (string-append libexec prog))
567 '("mechanism" "rfcomm-watcher"))))
570 `(("cython" ,python-cython)
571 ("glib:bin" ,glib "bin")
572 ("gobject-introspection" ,gobject-introspection)
573 ("gtk+:bin" ,gtk+ "bin")
574 ("intltool" ,intltool)
575 ("pkg-config" ,pkg-config)))
579 ("gdkpixbuf" ,gdk-pixbuf+svg)
582 ("iproute2" ,iproute)
583 ("iptables" ,iptables)
584 ("net-tools" ,net-tools)
588 ("pulseaudio" ,pulseaudio)
589 ("pycairo" ,python-pycairo)
590 ("pygobject" ,python-pygobject)
591 ("python" ,python-wrapper)
592 ("libappindicator" ,libappindicator)
593 ("libnm" ,network-manager)))
594 (synopsis "GTK+ Bluetooth manager")
595 (description "Blueman is a Bluetooth management utility using the Bluez
596 D-Bus backend. It is designed to be easy to use for most common Bluetooth
598 (home-page "https://github.com/blueman-project/blueman")
599 (license license:gpl3+)))
601 ;; The gnu.org ‘home’ for this GNU project is a directory listing with 1.6.0 as
602 ;; the latest version. The author's git repository, mentioned in the 1.6.0
603 ;; README and otherwise legit-looking, contains a proper 1.7.0 release tarball
604 ;; with many OUI updates. Use it, even though it's also several years old now.
605 (define-public macchanger
612 (uri (string-append "https://github.com/alobbs/macchanger/"
613 "releases/download/" version "/"
614 name "-" version ".tar.gz"))
616 (base32 "1gs5m0jxyprdp00w2qkbnaqm3ilkjz0q1gqdg4nzdm8g4xy73qns"))))
617 (build-system gnu-build-system)
618 (home-page "https://www.gnu.org/software/macchanger/")
619 (synopsis "Viewing and manipulating MAC addresses of network interfaces")
620 (description "GNU MAC Changer is a utility for viewing and changing MAC
621 addresses of networking devices. New addresses may be set explicitly or
622 randomly. They can include MAC addresses of the same or other hardware vendors
623 or, more generally, MAC addresses of the same category of hardware.")
624 (license license:gpl2+)))
626 (define-public miredo
632 (uri (string-append "http://www.remlab.net/files/miredo/miredo-"
636 "0j9ilig570snbmj48230hf7ms8kvcwi2wblycqrmhh85lksd49ps"))))
637 (build-system gnu-build-system)
640 (modify-phases %standard-phases
641 ;; The checkconf test in src/ requires network access.
643 'check 'disable-checkconf-test
645 (substitute* "src/Makefile"
646 (("^TESTS = .*") "TESTS = \n"))
648 (home-page "https://www.remlab.net/miredo/")
649 (synopsis "Teredo IPv6 tunneling software")
651 "Miredo is an implementation (client, relay, server) of the Teredo
652 specification, which provides IPv6 Internet connectivity to IPv6 enabled hosts
653 residing in IPv4-only networks, even when they are behind a NAT device.")
654 (license license:gpl2+)))
656 (define-public ndisc6
662 (uri (string-append "https://www.remlab.net/files/ndisc6/ndisc6-"
666 "07swyar1hl83zxmd7fqwb2q0c0slvrswkcfp3nz5lknrk15dmcdb"))))
667 (build-system gnu-build-system)
668 (home-page "https://www.remlab.net/ndisc6/")
669 (synopsis "IPv6 diagnostic tools")
671 "NDisc6 is a collection of tools for IPv6 networking diagnostics.
672 It includes the following programs:
675 @item @command{ndisc6}: ICMPv6 Neighbor Discovery tool.
676 @item @command{rdisc6}: ICMPv6 Router Discovery tool.
677 @item @command{tcptraceroute6}: IPv6 traceroute over TCP.
678 @item @command{traceroute6}: IPv6 traceroute over UDP.
679 @item @command{rdnssd}: Recursive DNS Servers discovery daemon.
681 ;; The user can choose version 2 or 3 of the GPL, not later versions.
682 (license (list license:gpl2 license:gpl3))))
684 (define-public parprouted
690 (uri (string-append "https://www.hazard.maks.net/parprouted/"
691 "parprouted-" version ".tar.gz"))
694 "1z6yg28i0pv20jivyy82pxb38hsryj95inhj27bs6ja1bp4l6dnn"))))
695 (build-system gnu-build-system)
697 `(#:tests? #f ;no tests
698 #:phases (modify-phases %standard-phases
699 (add-after 'unpack 'insert-absolute-iproute-reference
700 (lambda* (#:key inputs #:allow-other-keys)
701 (let* ((iproute (assoc-ref inputs "iproute"))
702 (ip (string-append iproute "/sbin/ip")))
703 (substitute* "parprouted.c"
707 (lambda* (#:key outputs #:allow-other-keys)
708 (let* ((out (assoc-ref outputs "out"))
709 (sbin (string-append out "/sbin"))
710 (man8 (string-append out "/share/man/man8")))
711 ;; No configure script; hijack the phase to make
712 ;; the necessary arrangements.
713 (setenv "CC" ,(cc-for-target))
714 (for-each mkdir-p (list sbin man8))
715 (substitute* "Makefile"
716 (("/usr/local/sbin") sbin)
717 (("/usr/local/man/man8") man8))
720 `(("iproute" ,iproute)))
721 (home-page "https://www.hazard.maks.net/parprouted/")
722 (synopsis "Proxy ARP requests to other interfaces")
724 "@command{parprouted} is a daemon for transparent IP (Layer@tie{}3)
725 proxy ARP bridging. Unlike standard bridging, proxy ARP bridging can bridge
726 Ethernet networks behind wireless nodes. Normal layer@tie{}2 bridging does
727 not work between wireless nodes because wireless does not know about MAC
728 addresses used in the wired Ethernet networks. This daemon can also be
729 useful for making transparent firewalls.")
730 (license license:gpl2)))
739 "http://www.dest-unreach.org/socat/download/socat-"
743 "1z7xgnwiqpcv1j6aghhj9nqbx7cg3gpc4n9j7vi9hm7nhv5788wp"))))
744 (build-system gnu-build-system)
745 (arguments '(#:tests? #f)) ; no test suite
746 (inputs `(("openssl" ,openssl)))
747 (home-page "http://www.dest-unreach.org/socat/")
749 "Open bidirectional communication channels from the command line")
751 "socat is a relay for bidirectional data transfer between two independent
752 data channels---files, pipes, devices, sockets, etc. It can create
753 \"listening\" sockets, named pipes, and pseudo terminals.
755 socat can be used, for instance, as TCP port forwarder, as a shell interface
756 to UNIX sockets, IPv6 relay, for redirecting TCP oriented programs to a serial
757 line, to logically connect serial lines on different computers, or to
758 establish a relatively secure environment (su and chroot) for running client
759 or server shell scripts with network connections.")
760 (license license:gpl2)))
762 (define-public tcp-wrappers
764 (name "tcp-wrappers")
769 "ftp://ftp.porcupine.org/pub/security/tcp_wrappers_"
773 "0p9ilj4v96q32klavx0phw9va21fjp8vpk11nbh6v2ppxnnxfhwm"))))
774 (build-system gnu-build-system)
777 (modify-phases %standard-phases
778 (delete 'configure) ; there is no configure script
779 (delete 'check) ; there are no tests
783 ;; Upstream doesn't generate a shared library. So we have to do it.
784 (setenv "CC" "gcc -fno-builtin -fPIC")
785 (substitute* "Makefile"
786 (("^(all[^\n]*)" line) (string-append line " libwrap.so\n
787 libwrap.so: $(LIB_OBJ)\n
788 \tgcc -shared $^ -o $@\n")))
789 ;; Deal with some gcc breakage.
790 (substitute* "percent_m.c"
791 (("extern char .sys_errlist.*;") ""))
792 (substitute* "scaffold.c"
793 (("extern char .malloc.*;") ""))
794 ;; This, believe it or not, is the recommended way to build!
795 (invoke "make" "REAL_DAEMON_DIR=/etc" "linux")))
796 ;; There is no make install stage, so we have to do it ourselves.
799 (let ((out (assoc-ref %outputs "out"))
800 (man-pages `("hosts_access.3"
808 (headers `("tcpd.h"))
809 (bins `("safe_finger"
816 (install-file x (string-append out "/include")))
820 (install-file x (string-append out "/share/man/man"
821 (string-take-right x 1))))
825 (install-file x (string-append out "/lib/")))
829 (install-file x (string-append out "/bin/")))
832 (home-page "http://www.porcupine.org")
833 (synopsis "Monitor and filter incoming requests for network services")
834 (description "With this package you can monitor and filter incoming requests for
835 network services. It includes a library which may be used by daemons to
836 transparently check connection attempts against an access control list.")
837 (license (license:non-copyleft "file://DISCLAIMER"
838 "See the file DISCLAIMER in the distribution."))))
841 (define-public zeromq
847 (uri (string-append "https://github.com/zeromq/libzmq/releases"
848 "/download/v" version "/zeromq-" version ".tar.gz"))
851 "0qzp80ky4y2k7k1ya09v9gkivvfbz2km813snrb8jhnn634bbmzb"))))
852 (build-system gnu-build-system)
853 (home-page "https://zeromq.org")
854 (synopsis "Library for message-based applications")
856 "The 0MQ lightweight messaging kernel is a library which extends the
857 standard socket interfaces with features traditionally provided by specialized
858 messaging middle-ware products. 0MQ sockets provide an abstraction of
859 asynchronous message queues, multiple messaging patterns, message
860 filtering (subscriptions), seamless access to multiple transport protocols and
862 (license license:lgpl3+)))
871 "https://github.com/zeromq/" name
872 "/releases/download/v" version
873 "/" name "-" version ".tar.gz"))
876 "1szciz62sk3fm4ga9qjpxz0n0lazvphm32km95bq92ncng12kayg"))))
877 (build-system gnu-build-system)
879 '(#:configure-flags '("--enable-drafts")
880 #:phases (modify-phases %standard-phases
881 (add-before 'check 'patch-tests
883 ;; XXX FIXME: Disable the zproc test, which fails on some
884 ;; hardware: <https://github.com/zeromq/czmq/issues/2007>.
885 (substitute* "src/czmq_selftest.c"
886 (("\\{ \"zproc\", zproc_test.*")
890 `(("zeromq" ,zeromq)))
891 (home-page "https://zeromq.org")
892 (synopsis "High-level C bindings for ØMQ")
894 "czmq provides bindings for the ØMQ core API that hides the differences
895 between different versions of ØMQ.")
896 (license license:mpl2.0)))
898 (define-public cppzmq
905 (url "https://github.com/zeromq/cppzmq")
906 (commit (string-append "v" version))))
909 "19acx2bzi4n6fdnfgkja1nds7m1bwg8lw5vfcijrx9fv75pa7m8h"))
910 (file-name (git-file-name name version))))
911 (build-system cmake-build-system)
913 '(;; FIXME: The test suite requires downloading Catch and custom
914 ;; CMake targets, and refuses to use the system version.
915 ;; See <https://github.com/zeromq/cppzmq/issues/334>.
917 #:configure-flags '("-DCPPZMQ_BUILD_TESTS=OFF")))
919 `(("pkg-config" ,pkg-config)))
921 `(("zeromq" ,zeromq)))
922 (home-page "https://zeromq.org")
923 (synopsis "C++ bindings for the ØMQ messaging library")
925 "This package provides header-only C++ bindings for ØMQ. The header
926 files contain direct mappings of the abstractions provided by the ØMQ C API.")
927 (license license:expat)))
929 (define-public libnatpmp
936 "http://miniupnp.free.fr/files/"
937 name "-" version ".tar.gz"))
940 "1c1n8n7mp0amsd6vkz32n8zj3vnsckv308bb7na0dg0r8969rap1"))))
941 (build-system gnu-build-system)
944 (modify-phases %standard-phases
946 (delete 'check)) ; no tests
948 (let* ((target ,(%current-target-system))
950 (string-append target "-gcc")
953 (string-append "CC=" gcc)
954 (string-append "INSTALLPREFIX=" (assoc-ref %outputs "out"))
955 (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib")))))
956 (home-page "http://miniupnp.free.fr/libnatpmp.html")
957 (synopsis "C library implementing NAT-PMP")
959 "@code{libnatpmp} is a portable and asynchronous implementation of
960 the Network Address Translation - Port Mapping Protocol (NAT-PMP)
961 written in the C programming language.")
962 (license license:bsd-3)))
964 (define-public librdkafka
971 (url "https://github.com/edenhill/librdkafka")
972 (commit (string-append "v" version))))
973 (file-name (git-file-name name version))
976 "05mgrdzacn9kdpr68r5j0cvsvl54s52glnsc1ww9rcxx6p7hq1ly"))))
977 (build-system gnu-build-system)
980 (modify-phases %standard-phases
982 ;; its custom configure script doesn't understand 'CONFIG_SHELL'.
983 (lambda* (#:key outputs #:allow-other-keys)
984 (let ((out (assoc-ref outputs "out")))
985 ;; librdkafka++.so lacks RUNPATH for librdkafka.so
987 (string-append "-Wl,-rpath=" out "/lib"))
988 (invoke "./configure"
989 (string-append "--prefix=" out))))))))
991 `(("python" ,python-wrapper)))
993 `(("zlib" ,zlib))) ; in the Libs.private field of rdkafka.pc
994 (home-page "https://github.com/edenhill/librdkafka")
995 (synopsis "Apache Kafka C/C++ client library")
997 "librdkafka is a C library implementation of the Apache Kafka protocol,
998 containing both Producer and Consumer support.")
999 (license license:bsd-2)))
1001 (define-public libndp
1007 (uri (string-append "https://libndp.org/files/"
1008 "libndp-" version ".tar.gz"))
1011 "1dlinhl39va00v55qygjc9ap77yqf7xvn4rwmvdr49xhzzxhlj1c"))))
1012 (build-system gnu-build-system)
1013 (home-page "https://libndp.org/")
1014 (synopsis "Library for Neighbor Discovery Protocol")
1016 "libndp contains a library which provides a wrapper for IPv6 Neighbor
1017 Discovery Protocol. It also provides a tool named ndptool for sending and
1018 receiving NDP messages.")
1019 (license license:lgpl2.1+)))
1021 (define-public ethtool
1027 (uri (string-append "mirror://kernel.org/software/network/"
1028 "ethtool/ethtool-" version ".tar.xz"))
1031 "0ikmz36bdfwxscsfcgjmyzg70hwr8i3wpdhcp1vmk3q4ip858frg"))))
1032 (build-system gnu-build-system)
1034 `(("pkg-config" ,pkg-config)))
1036 `(("libmnl" ,libmnl)))
1037 (home-page "https://www.kernel.org/pub/software/network/ethtool/")
1038 (synopsis "Display or change Ethernet device settings")
1040 "ethtool can be used to query and change settings such as speed,
1041 auto-negotiation and checksum offload on many network devices, especially
1043 (license license:gpl2)))
1045 (define-public ifstatus
1051 (uri (string-append "mirror://sourceforge/ifstatus/ifstatus/"
1052 "ifstatus%20v" version "/ifstatus-v"
1056 "045cbsq9ps32j24v8y5hpyqxnqn9mpaf3mgvirlhgpqyb9jsia0c"))
1057 (modules '((guix build utils)))
1060 (substitute* "Main.h"
1061 (("#include <stdio.h>")
1062 "#include <stdio.h>\n#include <stdlib.h>"))
1064 (build-system gnu-build-system)
1066 '(#:tests? #f ; no "check" target
1068 (modify-phases %standard-phases
1069 (delete 'configure) ; no configure script
1071 (lambda* (#:key outputs #:allow-other-keys)
1072 (let* ((out (assoc-ref outputs "out"))
1073 (bin (string-append out "/bin")))
1075 (copy-file "ifstatus"
1076 (string-append bin "/ifstatus")))
1078 (inputs `(("ncurses" ,ncurses)))
1079 (home-page "http://ifstatus.sourceforge.net/graphic/index.html")
1080 (synopsis "Text based network interface status monitor")
1082 "IFStatus is a simple, easy-to-use program for displaying commonly
1083 needed/wanted real-time traffic statistics of multiple network
1084 interfaces, with a simple and efficient view on the command line. It is
1085 intended as a substitute for the PPPStatus and EthStatus projects.")
1086 (license license:gpl2+)))
1088 (define-public iputils
1091 (version "20190709")
1092 (home-page "https://github.com/iputils/iputils")
1095 (uri (git-reference (url home-page)
1096 (commit (string-append "s" version))))
1097 (file-name (git-file-name name version))
1098 (patches (search-patches "iputils-libcap-compat.patch"))
1101 "04bp4af15adp79ipxmiakfp0ij6hx5qam266flzbr94pr8z8l693"))))
1102 (build-system meson-build-system)
1104 `(#:configure-flags '("-DBUILD_RARPD=true")
1106 (modify-phases %standard-phases
1107 (add-after 'unpack 'fix-docbook-url
1108 (lambda* (#:key inputs #:allow-other-keys)
1109 (let* ((docbook-xsl (assoc-ref inputs "docbook-xsl"))
1110 (uri (string-append docbook-xsl "/xml/xsl/docbook-xsl-"
1111 ,(package-version docbook-xsl))))
1115 (("http://docbook\\.sourceforge\\.net/release/xsl-ns/current")
1117 (cons "doc/meson.build"
1118 (find-files "doc" "\\.xsl$")))
1121 `(("gettext" ,gettext-minimal)
1122 ("pkg-config" ,pkg-config)
1123 ("docbook-xsl" ,docbook-xsl)
1124 ("docbook-xml" ,docbook-xml-5)
1125 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
1126 ("xsltproc" ,libxslt)))
1128 `(("libcap" ,libcap)
1129 ("libidn2" ,libidn2)
1130 ("openssl" ,openssl)))
1131 (synopsis "Collection of network utilities")
1133 "This package contains a variety of tools for dealing with network
1134 configuration, troubleshooting, or servers. Utilities included are:
1137 @item @command{arping}: Ping hosts using the @dfn{Address Resolution Protocol}.
1138 @item @command{clockdiff}: Compute time difference between network hosts
1139 using ICMP TSTAMP messages.
1140 @item @command{ninfod}: Daemon that responds to IPv6 Node Information Queries.
1141 @item @command{ping}: Use ICMP ECHO messages to measure round-trip delays
1142 and packet loss across network paths.
1143 @item @command{rarpd}: Answer RARP requests from clients.
1144 @item @command{rdisc}: Populate network routing tables with information from
1145 the ICMP router discovery protocol.
1146 @item @command{tftpd}: Trivial file transfer protocol server.
1147 @item @command{tracepath}: Trace network path to an IPv4 or IPv6 address and
1148 discover MTU along the way.
1150 ;; The various utilities are covered by different licenses, see LICENSE
1152 (license (list license:gpl2+ ;arping, rarpd, tracepath
1153 license:bsd-3 ;clockdiff, ninfod, ping, tftpd
1154 (license:non-copyleft
1155 "https://spdx.org/licenses/Rdisc.html"
1156 "Sun Microsystems license, see rdisc.c for details")))))
1158 (define-public nload
1164 (uri (string-append "mirror://sourceforge/nload/nload/" version
1165 "/nload-" version ".tar.gz"))
1168 "1rb9skch2kgqzigf19x8bzk211jdfjfdkrcvaqyj89jy2pkm3h61"))))
1169 (build-system gnu-build-system)
1170 (inputs `(("ncurses" ,ncurses)))
1171 (home-page "http://www.roland-riegel.de/nload/")
1172 (synopsis "Realtime console network usage monitor")
1174 "Nload is a console application which monitors network traffic and
1175 bandwidth usage in real time. It visualizes the in- and outgoing traffic using
1176 two graphs, and provides additional info like total amount of transferred data
1177 and min/max network usage.")
1178 (license license:gpl2+)))
1180 (define-public iodine
1186 (uri (string-append "http://code.kryo.se/" name "/"
1187 name "-" version ".tar.gz"))
1190 "0gh17kcxxi37k65zm4gqsvbk3aw7yphcs3c02pn1c4s2y6n40axd"))))
1191 (build-system gnu-build-system)
1194 (modify-phases %standard-phases
1196 (add-before 'build 'fix-ifconfig-path
1197 ;; This package works only with the net-tools version of ifconfig.
1198 (lambda* (#:key inputs #:allow-other-keys)
1199 (substitute* "src/tun.c"
1201 (string-append (assoc-ref inputs "net-tools") "/bin/")))
1203 (add-before 'check 'delete-failing-tests
1204 ;; Avoid https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802105.
1206 (substitute* "tests/common.c"
1207 (("tcase_add_test\\(tc, \
1208 test_parse_format_ipv(4(|_listen_all|_mapped_ipv6)|6)\\);")
1211 #:make-flags (list "CC=gcc"
1212 (string-append "prefix=" (assoc-ref %outputs "out")))
1213 #:test-target "test"))
1214 (inputs `(("net-tools" ,net-tools)
1216 (native-inputs `(("check" ,check)
1217 ("pkg-config" ,pkg-config)))
1218 (home-page "https://code.kryo.se/iodine/")
1219 (synopsis "Tunnel IPv4 data through a DNS server")
1220 (description "Iodine tunnels IPv4 data through a DNS server. This
1221 can be useful in different situations where internet access is firewalled, but
1222 DNS queries are allowed. The bandwidth is asymmetrical, with limited upstream
1223 and up to 1 Mbit/s downstream.")
1224 ;; src/md5.[ch] is released under the zlib license
1225 (license (list license:isc license:zlib))))
1227 (define-public whois
1234 (uri (string-append "mirror://debian/pool/main/w/whois/"
1235 "whois_" version ".tar.xz"))
1237 (base32 "0kpi981zjczvdcxfcq455c529vlaxa73x8kbm530z5b01h0fk8fb"))))
1238 (build-system gnu-build-system)
1240 `(#:tests? #f ; no test suite
1241 #:make-flags (list "CC=gcc"
1242 (string-append "prefix=" (assoc-ref %outputs "out")))
1244 (modify-phases %standard-phases
1245 (delete 'configure) ; no configure script
1246 (add-before 'build 'setenv
1248 (setenv "HAVE_ICONV" "1")
1251 `(("libidn2" ,libidn2)))
1253 `(("gettext" ,gettext-minimal)
1255 ("pkg-config" ,pkg-config)))
1256 (synopsis "Intelligent client for the WHOIS directory service")
1258 "whois searches for an object in a @dfn{WHOIS} (RFC 3912) database.
1259 It is commonly used to look up the registered users or assignees of an Internet
1260 resource, such as a domain name, an IP address block, or an autonomous system.
1261 It can automatically select the appropriate server for most queries.
1263 For historical reasons, this package also includes @command{mkpasswd}, which
1264 encrypts passwords using @code{crypt(3)} and is unrelated to the Expect command
1266 (home-page "https://github.com/rfc1036/whois")
1267 (license license:gpl2+)))
1269 (define-public wireshark
1276 (uri (string-append "https://www.wireshark.org/download/src/wireshark-"
1279 (base32 "1wmlbrym6l5fkvic596yx74jz1pn4pfjihsx341fxv5w76zfxcgb"))))
1280 (build-system cmake-build-system)
1283 (modify-phases %standard-phases
1284 (add-after 'unpack 'remove-failing-test
1285 ;; Test 31/32 fails with errors like "Program reassemble_test is
1286 ;; not available". Skipping it for now.
1288 (substitute* "CMakeLists.txt"
1289 (("suite_unittests" all) (string-append "# " all)))
1291 ;; Build process chokes during `validate-runpath' phase.
1293 ;; Errors are like the following:
1294 ;; "/gnu/store/...wireshark-3.0.0/lib/wireshark/plugins/3.0/epan/ethercat.so:
1295 ;; error: depends on 'libwireshark.so.12', which cannot be found in
1296 ;; RUNPATH". That is, "/gnu/store/...wireshark-3.0.0./lib" doesn't
1297 ;; belong to RUNPATH.
1299 ;; That’s not a problem in practice because "ethercat.so" is a plugin,
1300 ;; so it’s dlopen’d by a process that already provides "libwireshark".
1301 ;; For now, we disable this phase.
1302 #:validate-runpath? #f))
1304 `(("c-ares" ,c-ares)
1308 ("libgcrypt" ,libgcrypt)
1310 ("libpcap" ,libpcap)
1312 ("libxml2" ,libxml2)
1314 ("lua" ,lua-5.2) ;Lua 5.3 unsupported
1317 ("qtmultimedia" ,qtmultimedia)
1324 ("doxygen" ,doxygen)
1326 ("gettext" ,gettext-minimal)
1328 ("pkg-config" ,pkg-config)
1329 ("python" ,python-wrapper)
1330 ("qttools" ,qttools)))
1331 (synopsis "Network traffic analyzer")
1332 (description "Wireshark is a network protocol analyzer, or @dfn{packet
1333 sniffer}, that lets you capture and interactively browse the contents of
1335 (home-page "https://www.wireshark.org/")
1336 (license license:gpl2+)))
1338 (define-public fping
1345 (uri (string-append "https://fping.org/dist/fping-"
1348 (base32 "1f2prmii4fyl44cfykp40hp4jjhicrhddh9v3dfs11j6nsww0f7d"))))
1349 (build-system gnu-build-system)
1350 (home-page "https://fping.org/")
1351 (synopsis "Send ICMP ECHO_REQUEST packets to network hosts")
1353 "fping is a ping-like program which uses @acronym{ICMP, Internet Control
1354 Message Protocol} echo requests to determine if a target host is responding.
1356 @command{fping} differs from @command{ping} in that you can specify any number
1357 of targets on the command line, or specify a file containing the lists of
1358 targets to ping. Instead of sending to one target until it times out or
1359 replies, fping will send out a ping packet and move on to the next target in a
1360 round-robin fashion.")
1361 (license license:expat)))
1363 (define-public gandi.cli
1370 (uri (pypi-uri name version))
1372 (base32 "110wc9zgxsrvw4yzp21p0ian5lcf7vhcpxhnmsc4fg9pzl2bwxd5"))))
1373 (build-system python-build-system)
1376 (modify-phases %standard-phases
1377 (add-after 'unpack 'embed-store-file-names
1379 (substitute* (list "gandi/cli/modules/cert.py"
1380 "gandi/cli/tests/commands/test_certificate.py")
1381 (("openssl") (which "openssl")))
1383 (add-after 'install 'install-documentation
1384 ;; The included man page may be outdated but we install it anyway,
1385 ;; since it's mentioned in 'gandi --help' and better than nothing.
1386 (lambda* (#:key outputs #:allow-other-keys)
1387 (let* ((out (assoc-ref outputs "out"))
1388 (man1 (string-append out "/share/man/man1")))
1390 (with-output-to-file (string-append man1 "/gandi.1")
1392 (invoke "rst2man.py" "gandicli.man.rst")))
1395 `(("python-docutils" ,python-docutils) ; for rst2man.py
1396 ("python-pytest-cov" ,python-pytest-cov)
1397 ("python-tox" ,python-tox)))
1399 `(("openssl" ,openssl)
1400 ("python-click" ,python-click)
1401 ("python-ipy" ,python-ipy)
1402 ("python-pyyaml" ,python-pyyaml)
1403 ("python-requests" ,python-requests)))
1404 (home-page "https://cli.gandi.net")
1405 (synopsis "Command-line interface to the Gandi.net Web API")
1407 "This package provides a command-line client (@command{gandi}) to buy,
1408 manage, and delete Internet resources from Gandi.net such as domain names,
1409 virtual machines, and certificates.")
1410 (license license:gpl3+)))
1412 (define-public go-netns
1413 (let ((commit "13995c7128ccc8e51e9a6bd2b551020a27180abd")
1417 (version (git-version "0.0.0" revision commit))
1421 (url "https://github.com/vishvananda/netns")
1423 (file-name (git-file-name name version))
1426 "1zk6w8158qi4niva5rijchbv9ixgmijsgqshh54wdaav4xrhjshn"))))
1427 (build-system go-build-system)
1429 `(#:import-path "github.com/vishvananda/netns"
1430 #:tests? #f)) ;tests require root privileges
1431 (home-page "https://github.com/vishvananda/netns")
1432 (synopsis "Simple network namespace handling for Go")
1433 (description "The netns package provides a simple interface for
1434 handling network namespaces in Go.")
1435 (license license:asl2.0))))
1437 (define-public go-sctp
1438 ;; docker-libnetwork-cmd-proxy requires this exact commit.
1439 (let ((commit "07191f837fedd2f13d1ec7b5f885f0f3ec54b1cb")
1443 (version (git-version "0.0.0" revision commit))
1447 (url "https://github.com/ishidawataru/sctp")
1449 (file-name (git-file-name name version))
1452 "1mk9ncm10gwi5pn5wcw4skbyf4qg7n5qdf1mim4gf3mrckvi6g6h"))))
1453 (build-system go-build-system)
1455 `(#:import-path "github.com/ishidawataru/sctp"))
1456 (home-page "https://github.com/ishidawataru/sctp")
1457 (synopsis "SCTP library for the Go programming language")
1458 (description "This library provides methods for using the stream control
1459 transmission protocol (SCTP) in a Go application.")
1460 (license license:asl2.0))))
1462 (define-public httping
1469 (uri (string-append "https://www.vanheusden.com/httping/httping-"
1473 "1y7sbgkhgadmd93x1zafqc4yp26ssiv16ni5bbi9vmvvdl55m29y"))))
1474 (build-system gnu-build-system)
1476 `(("gettext" ,gettext-minimal)))
1479 ("ncurses" ,ncurses)
1480 ("openssl" ,openssl)))
1482 `(#:make-flags (list "CC=gcc"
1483 (string-append "DESTDIR=" (assoc-ref %outputs "out"))
1485 #:tests? #f)) ; no tests
1486 (home-page "https://www.vanheusden.com/httping/")
1487 (synopsis "Web server latency and throughput monitor")
1489 "httping measures how long it takes to connect to a web server, send an
1490 HTTP(S) request, and receive the reply headers. It is somewhat similar to
1491 @command{ping}, but can be used even in cases where ICMP traffic is blocked
1492 by firewalls or when you want to monitor the response time of the actual web
1493 application stack itself.")
1494 (license license:gpl2))) ; with permission to link with OpenSSL
1496 (define-public httpstat
1503 (uri (pypi-uri "httpstat" version))
1506 "1chw2nk56vaq87aba012a270k9na06hfx1pfbsrc3jfvlc2kb9hb"))))
1507 (build-system python-build-system)
1508 (inputs `(("curl" ,curl)))
1511 (modify-phases %standard-phases
1512 (add-before 'build 'fix-curl-path
1513 (lambda* (#:key inputs #:allow-other-keys)
1514 (substitute* "httpstat.py"
1515 (("ENV_CURL_BIN.get\\('curl'\\)")
1516 (string-append "ENV_CURL_BIN.get('"
1517 (assoc-ref inputs "curl")
1520 (home-page "https://github.com/reorx/httpstat")
1521 (synopsis "Visualize curl statistics")
1523 "@command{httpstat} is a tool to visualize statistics from the
1524 @command{curl} HTTP client. It acts as a wrapper for @command{curl} and
1525 prints timing information for each step of the HTTP request (DNS lookup,
1526 TCP connection, TLS handshake and so on) in the terminal.")
1527 (license license:expat)))
1529 (define-public squid
1536 (uri (string-append "http://www.squid-cache.org/Versions/v4/squid-"
1539 (base32 "1q1ywpic6s7dfjj3cwzcfgscc4zq0aih462gyas7j1z683ss14b8"))))
1540 (build-system gnu-build-system)
1543 (modify-phases %standard-phases
1544 (add-before 'build 'fix-true-path
1545 (lambda* (#:key inputs #:allow-other-keys)
1546 (substitute* "test-suite/testheaders.sh"
1548 (string-append (assoc-ref inputs "coreutils")
1553 ("openldap" ,openldap)
1554 ("linux-pam" ,linux-pam)
1556 ("cyrus-sasl" ,cyrus-sasl)
1558 ("libxml2" ,libxml2)
1559 ("openssl" ,openssl)))
1561 `(("cppunit" ,cppunit)
1562 ("pkg-config" ,pkg-config)))
1563 (synopsis "Web caching proxy")
1564 (description "Squid is a caching proxy for the Web supporting HTTP, HTTPS,
1565 FTP, and more. It reduces bandwidth and improves response times by caching and
1566 reusing frequently-requested web pages.")
1567 (home-page "http://www.squid-cache.org/")
1568 (license license:gpl2+)))
1570 (define-public bwm-ng
1578 (url "https://github.com/vgropp/bwm-ng")
1579 (commit (string-append "v" version))))
1580 (file-name (git-file-name name version))
1582 (base32 "0k906wb4pw3dcqpcwnni78lahzi3bva483f8c17sjykic7as4y5n"))))
1583 (build-system gnu-build-system)
1586 (modify-phases %standard-phases
1587 (add-after 'unpack 'disable-premature-./configure
1589 (substitute* "autogen.sh"
1590 (("\\$srcdir/configure")
1594 `(("autoconf" ,autoconf)
1595 ("automake" ,automake)))
1597 `(("ncurses" ,ncurses)))
1598 (synopsis "Console based live network and disk I/O bandwidth monitor")
1599 (description "Bandwidth Monitor NG is a small and simple console based
1600 live network and disk I/O bandwidth monitor.")
1601 (home-page "https://www.gropp.org/?id=projects&sub=bwm-ng")
1602 (license license:gpl2)))
1604 (define-public aircrack-ng
1606 (name "aircrack-ng")
1611 (uri (string-append "https://download.aircrack-ng.org/aircrack-ng-"
1614 (base32 "0ix2k64qg7x3w0bzdsbk1m50kcpq1ws59g3zkwiafvpwdr4gs2sg"))))
1615 (build-system gnu-build-system)
1617 `(("autoconf" ,autoconf)
1618 ("automake" ,automake)
1619 ("libtool" ,libtool)
1620 ("pkg-config" ,pkg-config)
1623 `(("libgcrypt" ,libgcrypt)
1625 ("libpcap" ,libpcap)
1626 ("ethtool" ,ethtool)
1632 (list "--with-experimental=yes" ; build wesside-ng, etc.
1633 "--with-gcrypt") ; openssl's the default
1634 #:phases (modify-phases %standard-phases
1635 (add-before 'bootstrap 'patch-evalrev
1637 ;; Called by ./autogen.sh below, before the default
1638 ;; ‘patch-shebangs’ phase has had a chance to run.
1639 (substitute* "evalrev"
1643 (add-after 'build 'absolutize-tools
1644 (lambda* (#:key inputs #:allow-other-keys)
1645 (let ((ethtool (string-append (assoc-ref inputs "ethtool")
1647 (substitute* "scripts/airmon-ng"
1649 (string-append ethtool " ")))
1651 (home-page "https://www.aircrack-ng.org")
1652 (synopsis "Assess WiFi network security")
1654 "Aircrack-ng is a complete suite of tools to assess WiFi network
1655 security. It focuses on different areas of WiFi security: monitoring,
1656 attacking, testing, and cracking. All tools are command-line driven, which
1657 allows for heavy scripting.")
1658 (license (list license:gpl2+ license:bsd-3))))
1660 (define-public pixiewps
1667 "https://github.com/wiire-a/pixiewps/releases/"
1668 "download/v" version "/" name "-" version ".tar.xz"))
1671 "07nym6bqml0k9v29vnj003nrgnwrywgjvnljb7cdpsvnwilhbp64"))))
1672 (build-system gnu-build-system)
1676 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1678 (modify-phases %standard-phases
1679 (delete 'configure)) ; no configure script
1680 #:tests? #f)) ; there are no tests
1681 (home-page "https://github.com/wiire-a/pixiewps/")
1682 (synopsis "Offline brute-force tool for Wi-Fi Protected Setup")
1683 (description "Pixiewps implements the pixie-dust attack to brute
1684 force the Wi-Fi Protected Setup (WPS) PIN by exploiting the low or
1685 non-existing entropy of some access points.")
1686 (license license:gpl3+)))
1688 (define-public reaver
1695 "https://github.com/t6x/reaver-wps-fork-t6x/releases/"
1696 "download/v" version "/reaver-" version ".tar.xz"))
1699 "00k7mc81ifv0wma7k4v18mj498badbw5yls6c28qin3d1gda0ag3"))))
1700 (build-system gnu-build-system)
1703 ;; Save session files to current directory instead of /var.
1704 (list "--enable-savetocurrent"
1705 "--localstatedir=/tmp/dummy") ; prevent creating /var during install
1707 (modify-phases %standard-phases
1708 (add-before 'configure 'change-directory
1712 (add-after 'install 'install-doc
1713 (lambda* (#:key outputs #:allow-other-keys)
1715 (let* ((out (assoc-ref outputs "out"))
1716 (doc (string-append out "/share/doc/" ,name "-" ,version))
1717 (man1 (string-append out "/share/man/man1")))
1718 (for-each (lambda (file) (install-file file doc))
1719 (find-files "." "README.*"))
1720 (install-file "reaver.1" man1)
1722 #:tests? #f)) ; there are no tests
1724 `(("libpcap" ,libpcap)))
1726 `(("aircrack-ng" ,aircrack-ng)
1727 ("pixiewps" ,pixiewps)))
1728 (home-page "https://github.com/t6x/reaver-wps-fork-t6x/")
1729 (synopsis "Attack tool for Wi-Fi Protected Setup")
1730 (description "Reaver performs a brute force attack against an access
1731 point's Wi-Fi Protected Setup (WPS) PIN. Once the PIN is found, the WPA
1732 passphrase can be recovered and the AP's wireless settings can be
1734 (license license:gpl2+)))
1736 (define-public perl-danga-socket
1738 (name "perl-danga-socket")
1743 (uri (string-append "mirror://cpan/authors/id/N/NM/NML/"
1744 "Danga-Socket-" version ".tar.gz"))
1746 (base32 "0x4bvirmf0kphks19jwgva00zz73zx344218dfaiv8gigrw3yg4m"))))
1747 (build-system perl-build-system)
1749 `(("perl-test-tcp" ,perl-test-tcp)))
1751 `(("perl-sys-syscall" ,perl-sys-syscall)))
1752 (home-page "https://metacpan.org/release/Danga-Socket")
1753 (synopsis "Event loop and event-driven async socket base class")
1755 "Danga::Socket is an abstract base class for objects backed by a socket
1756 which provides the basic framework for event-driven asynchronous IO, designed
1757 to be fast. Danga::Socket is both a base class for objects, and an event
1759 (license license:perl-license)))
1761 (define-public perl-data-validate-ip
1763 (name "perl-data-validate-ip")
1769 "mirror://cpan/authors/id/D/DR/DROLSKY/Data-Validate-IP-"
1772 (base32 "1mmppyzsh1w2z2h86kvzqxy56wxgs62a3kf8nvcnz76bblir5ap1"))))
1773 (build-system perl-build-system)
1775 `(("perl-test-requires" ,perl-test-requires)))
1777 `(("perl-netaddr-ip" ,perl-netaddr-ip)))
1778 (home-page "https://metacpan.org/release/Data-Validate-IP")
1779 (synopsis "IPv4 and IPv6 validation methods")
1781 "This module provides several IP address validation subroutines that both
1782 validate and untaint their input. This includes both basic validation
1783 (@code{is_ipv4()} and @code{is_ipv6()}) and special cases like checking whether
1784 an address belongs to a specific network or whether an address is public or
1785 private (reserved).")
1786 (license license:perl-license)))
1788 (define-public perl-net-dns
1790 (name "perl-net-dns")
1797 (string-append "https://www.net-dns.org/download/Net-DNS-"
1799 (string-append "mirror://cpan/authors/id/N/NL/NLNETLABS/Net-DNS-"
1800 version ".tar.gz")))
1802 (base32 "0qyy5k4k0llqjjmkkfg96919gqybdc1z5fy9047n9imidjxc59hi"))))
1803 (build-system perl-build-system)
1805 `(("perl-digest-hmac" ,perl-digest-hmac)))
1806 (home-page "https://www.net-dns.org/")
1808 "Perl Interface to the Domain Name System")
1809 (description "Net::DNS is the Perl Interface to the Domain Name System.")
1810 (license license:x11)))
1812 (define-public perl-socket6
1814 (name "perl-socket6")
1820 "mirror://cpan/authors/id/U/UM/UMEMOTO/Socket6-"
1825 "054izici8klfxs8hr5rljib28plijpsfymy99xbzdp047bx1b2a6"))))
1826 (build-system perl-build-system)
1829 (modify-phases %standard-phases
1831 (lambda* (#:key outputs #:allow-other-keys)
1832 (let* ((out (assoc-ref outputs "out"))
1833 (args `("Makefile.PL"
1834 ,(string-append "PREFIX=" out)
1835 "INSTALLDIRS=site")))
1836 (setenv "CONFIG_SHELL" (which "sh"))
1837 (apply invoke "perl" args)))))))
1838 (home-page "https://metacpan.org/release/Socket6")
1840 "IPv6 related part of the C socket.h defines and structure manipulators for Perl")
1841 (description "Socket6 binds the IPv6 related part of the C socket header
1842 definitions and structure manipulators for Perl.")
1843 (license license:bsd-3)))
1845 (define-public perl-net-dns-resolver-programmable
1847 (name "perl-net-dns-resolver-programmable")
1853 "mirror://cpan/authors/id/J/JM/JMEHNLE/net-dns-resolver-programmable/"
1854 "Net-DNS-Resolver-Programmable-v" version ".tar.gz"))
1857 "1v3nl2kaj4fs55n1617n53q8sa3mir06898vpy1rq98zjih24h4d"))
1859 (search-patches "perl-net-dns-resolver-programmable-fix.patch"))))
1860 (build-system perl-build-system)
1862 `(("perl-module-build" ,perl-module-build)))
1863 (inputs `(("perl-net-dns" ,perl-net-dns)))
1865 "https://metacpan.org/release/Net-DNS-Resolver-Programmable")
1867 "Programmable DNS resolver class for offline emulation of DNS")
1868 (description "Net::DNS::Resolver::Programmable is a programmable DNS resolver for
1869 offline emulation of DNS.")
1870 (license license:perl-license)))
1872 (define-public perl-net-dns-resolver-mock
1874 (name "perl-net-dns-resolver-mock")
1875 (version "1.20171219")
1879 "mirror://cpan/authors/id/M/MB/MBRADSHAW/"
1880 "Net-DNS-Resolver-Mock-" version ".tar.gz"))
1883 "0m3rxpkv1b9121srvbqkrgzg4m8mnydiydqv34in1i1ixwrl6jn9"))))
1884 (build-system perl-build-system)
1886 `(("perl-net-dns" ,perl-net-dns)))
1887 (home-page "https://metacpan.org/release/Net-DNS-Resolver-Mock")
1888 (synopsis "Mock DNS Resolver object for testing")
1890 "Net::DNS::Resolver::Mock is a subclass of Net::DNS::Resolver, but returns
1891 static data from any provided DNS zone file instead of querying the network.
1892 It is intended primarily for use in testing.")
1893 (license license:perl-license)))
1895 (define-public perl-netaddr-ip
1897 (name "perl-netaddr-ip")
1903 "mirror://cpan/authors/id/M/MI/MIKER/NetAddr-IP-"
1908 "1rx0dinrz9fk9qcg4rwqq5n1dm3xv2arymixpclcv2q2nzgq4npc"))))
1909 (build-system perl-build-system)
1912 (modify-phases %standard-phases
1914 (lambda* (#:key outputs #:allow-other-keys)
1915 (let* ((out (assoc-ref outputs "out"))
1916 (args `("Makefile.PL"
1917 ,(string-append "PREFIX=" out)
1918 "INSTALLDIRS=site")))
1919 (setenv "CONFIG_SHELL" (which "sh"))
1920 (apply invoke "perl" args)))))))
1922 "https://metacpan.org/release/NetAddr-IP")
1924 "Manages IPv4 and IPv6 addresses and subnets")
1925 (description "NetAddr::IP manages IPv4 and IPv6 addresses and subsets.")
1926 (license license:perl-license)))
1928 (define-public perl-net-patricia
1930 (name "perl-net-patricia")
1936 "mirror://cpan/authors/id/G/GR/GRUBER/Net-Patricia-"
1941 "0ln5f57vc8388kyh9vhx2infrdzfhbpgyby74h1qsnhwds95m0vh"))))
1942 (build-system perl-build-system)
1945 (modify-phases %standard-phases
1946 (add-after 'unpack 'dont-link-with-nsl ; Borrowed from Debian.
1948 (substitute* "Makefile.PL"
1952 `(("perl-net-cidr-lite" ,perl-net-cidr-lite)
1953 ("perl-socket6" ,perl-socket6)))
1955 "https://metacpan.org/release/Net-Patricia")
1957 "Patricia Trie Perl module for fast IP address lookups")
1959 "Net::Patricia does IP address lookups quickly in Perl.")
1960 ;; The bindings are licensed under GPL2 or later.
1961 ;; libpatricia is licensed under 2-clause BSD.
1962 (license (list license:gpl2+ license:bsd-2))))
1964 (define-public perl-net-cidr-lite
1966 (name "perl-net-cidr-lite")
1972 "mirror://cpan/authors/id/D/DO/DOUGW/Net-CIDR-Lite-"
1977 "14shj73zbqmfjbp0qz1fs9j4p2dpvz5hfkm4qfdjbydflbl2b8fg"))))
1978 (build-system perl-build-system)
1980 "https://metacpan.org/release/Net-CIDR-Lite")
1982 "Perl extension for merging IPv4 or IPv6 CIDR addresses")
1983 (description "Net::CIDR::Lite merges IPv4 or IPv6 CIDR addresses.")
1984 (license license:gpl1+)))
1986 ;; TODO: Use the geolite-mirror-simple.pl script from the example
1987 ;; directory to stay current with the databases. How?
1988 (define-public perl-geo-ip
1990 (name "perl-geo-ip")
1996 "mirror://cpan/authors/id/M/MA/MAXMIND/Geo-IP-"
2001 "1fka8fr7fw6sh3xa9glhs1zjg3s2gfkhi7n7da1l2m2wblqj0c0n"))))
2002 (build-system perl-build-system)
2003 (home-page "https://metacpan.org/release/Geo-IP")
2005 "Look up location and network information by IP Address in Perl")
2006 (description "The Perl module @code{Geo::IP}. It looks up location and
2007 network information by IP Address.")
2008 (license license:perl-license)))
2010 (define-public perl-io-socket-inet6
2012 (name "perl-io-socket-inet6")
2018 "mirror://cpan/authors/id/S/SH/SHLOMIF/IO-Socket-INET6-"
2023 "1fqypz6qa5rw2d5y2zq7f49frwra0aln13nhq5gi514j2zx21q45"))))
2024 (build-system perl-build-system)
2026 `(("perl-module-build" ,perl-module-build)
2027 ("perl-test-pod" ,perl-test-pod)
2028 ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
2029 (inputs `(("perl-socket6" ,perl-socket6)))
2030 (arguments `(;; Need network socket API
2033 "https://metacpan.org/release/IO-Socket-INET6")
2035 "Perl object interface for AF_INET/AF_INET6 domain sockets")
2036 (description "IO::Socket::INET6 is an interface for AF_INET/AF_INET6 domain
2038 (license license:perl-license)))
2040 (define-public libproxy
2046 (uri (string-append "https://github.com/libproxy/libproxy/"
2047 "releases/download/" version "/libproxy-"
2051 "0kvdrazlzwia876w988cmlypp253gwy6idlh8mjk958c29jb8kb5"))))
2052 (build-system cmake-build-system)
2054 `(("pkg-config" ,pkg-config)))
2060 (modify-phases %standard-phases
2063 (invoke "ctest" "-E" "url-test"))))))
2064 (synopsis "Library providing automatic proxy configuration management")
2065 (description "Libproxy handles the details of HTTP/HTTPS proxy
2066 configuration for applications across all scenarios. Applications using
2067 libproxy only have to specify which proxy to use.")
2068 (home-page "https://libproxy.github.io/libproxy")
2069 (license license:lgpl2.1+)))
2071 (define-public proxychains-ng
2073 (name "proxychains-ng")
2078 (uri (string-append "http://ftp.barfooze.de/pub/sabotage/tarballs/"
2079 "proxychains-ng-" version ".tar.xz"))
2081 (base32 "1bmhfbl1bzc87vl0xwr1wh5xvslfyc41nl2hqzhbj258p0sy004x"))))
2082 (build-system gnu-build-system)
2084 `(#:tests? #f ; there are no tests
2086 (modify-phases %standard-phases
2087 (add-after 'unpack 'fix-configure-script
2089 ;; The configure script is very intolerant to unknown arguments,
2090 ;; such as "CONFIG_SHELL".
2091 (substitute* "configure"
2092 (("\\*\\) break ;;" line)
2093 (string-append "[A-Z]*) shift ;;\n"
2096 (add-before 'configure 'set-up-environment
2100 (synopsis "Redirect any TCP connection through a proxy or proxy chain")
2101 (description "Proxychains-ng is a preloader which hooks calls to sockets
2102 in dynamically linked programs and redirects them through one or more SOCKS or
2104 (home-page "https://github.com/rofl0r/proxychains-ng")
2105 (license license:gpl2+)))
2114 (uri (string-append "http://enet.bespin.org/download/"
2115 "enet-" version ".tar.gz"))
2117 (base32 "1lggc82rbzscci057dqqyhkbq4j6mr5k01hbrvn06jkzc2xpxdxv"))))
2118 (build-system gnu-build-system)
2120 `(("pkg-config" ,pkg-config)))
2121 (synopsis "Network communication layer on top of UDP")
2123 "ENet's purpose is to provide a relatively thin, simple and robust network
2124 communication layer on top of UDP. The primary feature it provides is optional
2125 reliable, in-order delivery of packets. ENet omits certain higher level
2126 networking features such as authentication, server discovery, encryption, or
2127 other similar tasks that are particularly application specific so that the
2128 library remains flexible, portable, and easily embeddable.")
2129 (home-page "http://enet.bespin.org")
2130 (license license:expat)))
2140 (url "https://github.com/yrutschle/sslh")
2141 (commit (string-append "v" version))))
2142 (file-name (git-file-name name version))
2144 (base32 "19h32dn0076p3s7dn35qi5yp2xvnxw9sqphppmn72vyb8caxvw1z"))))
2145 (build-system gnu-build-system)
2147 `(;; Test dependencies.
2150 ("perl-conf-libconfig" ,perl-conf-libconfig)
2151 ("perl-io-socket-inet6" ,perl-io-socket-inet6)
2152 ("perl-socket6" ,perl-socket6)
2153 ("psmisc" ,psmisc))) ; for ‘killall’
2155 `(("libcap" ,libcap)
2156 ("libconfig" ,libconfig)
2158 ("tcp-wrappers" ,tcp-wrappers)))
2161 (modify-phases %standard-phases
2162 (delete 'configure) ; no configure script
2163 (add-before 'check 'fix-tests
2166 (("\"/tmp") "$ENV{\"TMPDIR\"} . \"")
2167 ;; The Guix build environment lacks ‘ip6-localhost’.
2168 (("ip6-localhost") "localhost"))
2170 ;; Many of these files are mentioned in the man page. Install them.
2171 (add-after 'install 'install-documentation
2172 (lambda* (#:key outputs #:allow-other-keys)
2173 (let* ((out (assoc-ref outputs "out"))
2174 (doc (string-append out "/share/doc/sslh")))
2175 (install-file "README.md" doc)
2178 (install-file file (string-append doc "/examples")))
2179 (append (find-files "." "\\.cfg")
2180 (find-files "scripts"))))
2182 #:make-flags (list "CC=gcc"
2185 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2186 #:test-target "test"))
2187 (home-page "https://www.rutschle.net/tech/sslh/README.html")
2188 (synopsis "Applicative network protocol demultiplexer")
2190 "sslh is a network protocol demultiplexer. It acts like a switchboard,
2191 accepting connections from clients on one port and forwarding them to different
2192 servers based on the contents of the first received data packet. Detection of
2193 common protocols like HTTP(S), SSL, SSH, OpenVPN, tinc, and XMPP is already
2194 implemented, but any other protocol that matches a regular expression can be
2195 added. sslh's name comes from its original application of serving both SSH and
2196 HTTPS on port 443, allowing SSH connections from inside corporate firewalls
2197 that block port 22.")
2198 (license (list license:bsd-2 ; tls.[ch]
2199 license:gpl2+)))) ; everything else
2201 (define-public iperf
2207 (uri (string-append "http://downloads.es.net/pub/iperf"
2208 "/iperf-" version ".tar.gz"))
2211 "0f601avdmzpwsa3lbi0ppjhkrdipm5wifhhxy5czf99370k3mdi4"))))
2212 (build-system gnu-build-system)
2213 (synopsis "TCP, UDP and SCTP bandwidth measurement tool")
2215 "iPerf is a tool to measure achievable bandwidth on IP networks. It
2216 supports tuning of various parameters related to timing, buffers and
2217 protocols (TCP, UDP, SCTP with IPv4 and IPv6). For each test it reports
2218 the bandwidth, loss, and other parameters.")
2219 (home-page "https://software.es.net/iperf/")
2220 (license (list license:bsd-3 ; Main distribution.
2221 license:ncsa ; src/{units,iperf_locale,tcp_window_size}.c
2222 license:expat ; src/{cjson,net}.[ch]
2223 license:public-domain)))) ; src/portable_endian.h
2225 (define-public nethogs
2233 (url "https://github.com/raboof/nethogs")
2234 (commit (string-append "v" version))))
2237 (base32 "0sn1sdp86akwlm4r1vmkxjjl50c0xaisk91bbz57z7kcsaphxna9")
2239 (file-name (git-file-name name version))))
2240 (build-system gnu-build-system)
2242 `(("libpcap" ,libpcap)
2243 ("ncurses" ,ncurses)))
2245 `(#:make-flags `("CC=gcc"
2246 ,(string-append "PREFIX=" %output)
2247 ,(string-append "VERSION=" ,version))
2249 (modify-phases %standard-phases
2250 (delete 'configure)))) ; no ./configure script.
2251 (home-page "https://github.com/raboof/nethogs")
2252 (synopsis "Per-process bandwidth monitor")
2253 (description "NetHogs is a small 'net top' tool for Linux. Instead of
2254 breaking the traffic down per protocol or per subnet, like most tools do, it
2255 groups bandwidth by process.
2257 NetHogs does not rely on a special kernel module to be loaded. If there's
2258 suddenly a lot of network traffic, you can fire up NetHogs and immediately see
2259 which PID is causing this. This makes it easy to identify programs that have
2260 gone wild and are suddenly taking up your bandwidth.")
2261 (license license:gpl2+)))
2263 (define-public nzbget
2270 (uri (string-append "https://github.com/nzbget/nzbget/releases"
2271 "/download/v" version
2272 "/nzbget-" version "-src.tar.gz"))
2275 "0lwd0pfrs4a5ms193hgz2qiyf7grrc925dw6y0nfc0gkp27db9b5"))
2276 (modules '((guix build utils)))
2278 ;; Reported upstream as <https://github.com/nzbget/nzbget/pull/414>.
2280 (substitute* "daemon/connect/TlsSocket.cpp"
2281 (("gnutls_certificate-verification_status_print")
2282 "gnutls_certificate_verification_status_print"))
2287 (string-append "--with-libcurses-includes="
2288 (assoc-ref %build-inputs "ncurses") "/include")
2289 (string-append "--with-libcurses-libraries="
2290 (assoc-ref %build-inputs "ncurses") "/lib")
2291 (string-append "--with-tlslib=GnuTLS"))))
2292 (build-system gnu-build-system)
2293 (inputs `(("gnutls" ,gnutls)
2294 ("libxml2" ,libxml2)
2295 ("ncurses" ,ncurses)
2297 (native-inputs `(("pkg-config" ,pkg-config)))
2298 (home-page "https://github.com/nzbget/nzbget")
2299 (synopsis "Usenet binary file downloader")
2301 "NZBGet is a binary newsgrabber, which downloads files from Usenet based
2302 on information given in @code{nzb} files. NZBGet can be used in standalone
2303 and in server/client modes. In standalone mode, you pass NZBGet @command{nzb}
2304 files as command-line parameters and it downloads them and exits. NZBGet also
2305 contains a Web interface. Its server can be controlled through remote
2306 procedure calls (RPCs).")
2307 (license license:gpl2+)))
2309 (define-public openvswitch
2311 (name "openvswitch")
2316 "https://www.openvswitch.org/releases/openvswitch-"
2320 "0cd5vmfr6zwgcnkwys6rag6cmz68v0librpaplianv734xs74pyx"))))
2321 (build-system gnu-build-system)
2323 '(;; FIXME: many tests fail with:
2325 ;; test -e $OVS_RUNDIR/ovs-vswitchd.pid
2326 ;; ovs-appctl -t ovs-vswitchd exit
2331 "--localstatedir=/var"
2332 "--with-dbdir=/var/lib/openvswitch")
2334 (modify-phases %standard-phases
2338 ;; Don't try to create directories under /var.
2346 ("pkg-config" ,pkg-config)
2347 ("python" ,python-wrapper)
2349 ("util-linux" ,util-linux)))
2351 `(("libcap-ng" ,libcap-ng)
2352 ("openssl" ,openssl)))
2353 (synopsis "Virtual network switch")
2354 (home-page "https://www.openvswitch.org/")
2356 "Open vSwitch is a multilayer virtual switch. It is designed to enable
2357 massive network automation through programmatic extension, while still
2358 supporting standard management interfaces and protocols (e.g. NetFlow, sFlow,
2359 IPFIX, RSPAN, CLI, LACP, 802.1ag).")
2360 (license ; see debian/copyright for detail
2361 (list license:lgpl2.1 ; xenserver and utilities/bugtool
2362 license:gpl2 ; datapath
2363 license:bsd-2 license:bsd-3
2364 license:asl2.0)))) ; all other
2366 (define-public python-ipy
2372 (uri (pypi-uri "IPy" version))
2375 "08d6kcacj67mvh0b6y765ipccy6gi4w2ndd4v1l3im2qm1cgcarg"))))
2376 (build-system python-build-system)
2377 (home-page "https://github.com/autocracy/python-ipy/")
2378 (synopsis "Python class and tools for handling IP addresses and networks")
2379 (description "The @code{IP} class allows a comfortable parsing and
2380 handling for most notations in use for IPv4 and IPv6 addresses and
2382 (license license:bsd-3)))
2384 (define-public python2-ipy
2385 (package-with-python2 python-ipy))
2387 (define-public speedtest-cli
2389 (name "speedtest-cli")
2395 (url "https://github.com/sivel/speedtest-cli")
2396 (commit (string-append "v" version))))
2397 (file-name (git-file-name name version))
2399 (base32 "1456yly6iym2c9bl6pi4sz8xbw34bm2dxm1vzpydsd6jazwpmy26"))))
2400 (build-system python-build-system)
2401 (home-page "https://github.com/sivel/speedtest-cli")
2402 (synopsis "Internet bandwidth tester")
2404 "Command line interface for testing internet bandwidth using
2406 (license license:asl2.0)))
2408 (define-public tftp-hpa
2414 (uri (string-append "mirror://kernel.org/software/"
2415 "network/tftp/tftp-hpa/tftp-hpa-" version
2419 "12vidchglhyc20znq5wdsbhi9mqg90jnl7qr9qs8hbvaz4fkdvmg"))))
2420 (build-system gnu-build-system)
2421 (arguments `(#:tests? #f)) ; no test target
2422 (synopsis "HPA's tftp client")
2424 "This is a tftp client derived from OpenBSD tftp with some extra options
2425 added and bugs fixed. The source includes readline support but it is not
2426 enabled due to license conflicts between the BSD advertising clause and the GPL.")
2427 (home-page "https://git.kernel.org/cgit/network/tftp/tftp-hpa.git/about/")
2428 ;; Some source files are distributed under a 3-clause BSD license, and
2429 ;; others under a 4-clause BSD license. Refer to the files in the source
2430 ;; distribution for clarification.
2431 (license (list license:bsd-3 license:bsd-4))))
2433 (define-public pidentd
2441 (url "https://github.com/ptrrkssn/pidentd")
2442 (commit (string-append "v" version))))
2443 (file-name (git-file-name name version))
2446 "1k4rr0b4ygxssbnsykzjvz4hjhazzz4j5arlilyc1iq7b1wzsk7i"))))
2447 (build-system gnu-build-system)
2449 `(#:tests? #f)) ; No tests are included
2451 `(("openssl" ,openssl-1.0))) ;for the DES library
2452 (home-page "https://www.lysator.liu.se/~pen/pidentd/")
2453 (synopsis "Small Ident Daemon")
2455 "@dfn{Pidentd} (Peter's Ident Daemon) is an identd, which implements a
2456 identification server. Pidentd looks up specific TCP/IP connections and
2457 returns the user name and other information about the connection.")
2458 (license license:public-domain)))
2460 (define-public spiped
2466 (uri (string-append "https://www.tarsnap.com/spiped/spiped-"
2470 "04rpnc53whfky7pp2m9h35gwzwn6788pnl6c1qd576mpknbqjw4d"))))
2471 (build-system gnu-build-system)
2473 '(#:test-target "test"
2474 #:make-flags (let* ((out (assoc-ref %outputs "out"))
2475 (bindir (string-append out "/bin"))
2476 (man1dir (string-append out "/share/man/man1")))
2477 (list "CC=gcc" ; It tries to invoke `c99`.
2478 (string-append "BINDIR=" bindir)
2479 (string-append "MAN1DIR=" man1dir)))
2481 (modify-phases %standard-phases
2482 (add-after 'unpack 'patch-command-invocations
2484 (substitute* '("Makefile"
2485 "libcperciva/cpusupport/Build/cpusupport.sh"
2486 "libcperciva/POSIX/posix-cflags.sh"
2487 "libcperciva/POSIX/posix-l.sh")
2488 (("command -p") ""))
2490 (delete 'configure) ; No ./configure script.
2491 (add-after 'install 'install-more-docs
2492 (lambda* (#:key outputs #:allow-other-keys)
2493 (let* ((out (assoc-ref %outputs "out"))
2494 (misc (string-append out "/share/doc/spiped")))
2495 (install-file "DESIGN.md" misc)
2498 `(("procps" ,procps))) ; `ps` is used by the test suite.
2500 `(("openssl" ,openssl)))
2501 (home-page "https://www.tarsnap.com/spiped.html")
2502 (synopsis "Create secure pipes between sockets")
2503 (description "Spiped (pronounced \"ess-pipe-dee\") is a utility for creating
2504 symmetrically encrypted and authenticated pipes between socket addresses, so
2505 that one may connect to one address (e.g., a UNIX socket on localhost) and
2506 transparently have a connection established to another address (e.g., a UNIX
2507 socket on a different system). This is similar to 'ssh -L' functionality, but
2508 does not use SSH and requires a pre-shared symmetric key.")
2509 (license license:bsd-2)))
2511 (define-public quagga
2517 (uri (string-append "mirror://savannah/quagga/quagga-"
2521 "1lsksqxij5f1llqn86pkygrf5672kvrqn1kvxghi169hqf1c0r73"))
2523 (search-patches "quagga-reproducible-build.patch"))))
2524 (build-system gnu-build-system)
2525 (native-inputs `(("pkg-config" ,pkg-config)
2527 ("dejagnu" ,dejagnu)))
2528 (inputs `(("readline" ,readline)
2529 ("c-ares" ,c-ares)))
2530 (synopsis "Routing Software Suite")
2531 (description "Quagga is a routing software suite, providing implementations
2532 of OSPFv2, OSPFv3, RIP v1 and v2, RIPng and BGP-4 for Unix platforms.
2534 The Quagga architecture consists of a core daemon, @command{zebra}, which
2535 acts as an abstraction layer to the underlying Unix kernel and presents the
2536 Zserv API over a Unix or TCP stream to Quagga clients. It is these Zserv
2537 clients which typically implement a routing protocol and communicate routing
2538 updates to the zebra daemon.")
2539 (home-page "https://www.nongnu.org/quagga/")
2540 (license license:gpl2+)))
2542 (define-public thc-ipv6
2543 (let ((revision "0")
2544 (commit "4bb72573e0950ce6f8ca2800a10748477020029e"))
2547 (version (git-version "3.4" revision commit))
2551 (url "https://github.com/vanhauser-thc/thc-ipv6")
2553 (file-name (git-file-name name version))
2556 "1x5i6vbsddqc2yks7r1a2fw2fk16qxvd6hpzh1lykjfpkal8fdir"))))
2557 (build-system gnu-build-system)
2559 `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2560 #:tests? #f ; No test suite.
2562 (modify-phases %standard-phases
2563 (delete 'configure) ; No ./configure script.
2564 (add-before 'build 'patch-paths
2566 (substitute* "Makefile"
2567 (("/bin/echo") "echo"))
2569 (add-after 'install 'install-more-docs
2570 (lambda* (#:key outputs #:allow-other-keys)
2571 (let* ((out (assoc-ref outputs "out"))
2572 (doc (string-append out "/share/thc-ipv6/doc")))
2573 (install-file "README" doc)
2574 (install-file "HOWTO-INJECT" doc)
2576 ;; TODO Add libnetfilter-queue once packaged.
2578 `(("libpcap" ,libpcap)
2579 ("openssl" ,openssl)
2581 (home-page "https://github.com/vanhauser-thc/thc-ipv6")
2582 (synopsis "IPv6 security research toolkit")
2583 (description "The THC IPv6 Toolkit provides command-line tools and a library
2584 for researching IPv6 implementations and deployments. It requires Linux 2.6 or
2585 newer and only works on Ethernet network interfaces.")
2586 ;; AGPL 3 with exception for linking with OpenSSL. See the 'LICENSE' file in
2587 ;; the source distribution for more information.
2588 (license license:agpl3))))
2597 (uri (string-append "https://github.com/tgraf/bmon/releases/download/v"
2598 version "/bmon-" version ".tar.gz"))
2601 "0ylzriv4pwh76344abzl1w219x188gshbycbna35gsyfp09c7z82"))))
2602 (build-system gnu-build-system)
2604 `(("libconfuse" ,libconfuse)
2606 ("ncurses" ,ncurses)))
2608 `(("pkg-config" ,pkg-config)))
2609 (synopsis "Bandwidth monitor")
2610 (description "bmon is a monitoring and debugging tool to capture
2611 networking-related statistics and prepare them visually in a human-friendly
2612 way. It features various output methods including an interactive curses user
2613 interface and a programmable text output for scripting.")
2614 (home-page "https://github.com/tgraf/bmon")
2615 ;; README.md mentions both the 2-clause BSD and expat licenses, but all
2616 ;; the source files only have expat license headers. Upstream has been
2617 ;; contacted for clarification: https://github.com/tgraf/bmon/issues/59
2618 ;; Update the license field when upstream responds.
2619 (license (list license:bsd-2
2622 (define-public libnet
2629 (uri (string-append "https://github.com/libnet/libnet/releases/download"
2630 "/v" version "/libnet-" version ".tar.gz"))
2633 "19ys9vxk6fg70yzzdxsphfr0rwzgxxhr9b3ykhpg7rfray0qd96a"))))
2634 (build-system gnu-build-system)
2637 (modify-phases %standard-phases
2638 (add-before 'build 'build-doc
2639 (lambda* (#:key make-flags #:allow-other-keys)
2640 (apply invoke "make" "-C" "doc" "doc"
2643 `(;; To build the documentation, Doxygen and Perl is required.
2644 ("doxygen" ,doxygen)
2646 (home-page "https://github.com/libnet/libnet")
2647 (synopsis "Framework for low-level network packet construction")
2649 "Libnet provides a fairly portable framework for network packet
2650 construction and injection. It features portable packet creation interfaces
2651 at the IP layer and link layer, as well as a host of supplementary
2652 functionality. Using libnet, quick and simple packet assembly applications
2653 can be whipped up with little effort.")
2654 (license license:bsd-2)))
2663 (uri (string-append "ftp://ftp.bitwizard.nl/mtr/"
2664 "mtr-" version ".tar.gz"))
2666 (base32 "03gid8g4r6a9r40855s4345xm1bylj2kfqkicjwxpmvvccyng712"))))
2667 (build-system gnu-build-system)
2669 `(("libcap" ,libcap)
2670 ("ncurses" ,ncurses)))
2672 `(#:tests? #f)) ; tests require network access
2673 (home-page "https://www.bitwizard.nl/mtr/")
2674 (synopsis "Network diagnostic tool")
2676 "@acronym{mtr, My TraceRoute} combines the functionality of the
2677 @command{traceroute} and @command{ping} programs in a single network diagnostic
2678 tool. @command{mtr} can use several network protocols to detect intermediate
2679 routers (or @dfn{hops}) between the local host and a user-specified destination.
2680 It then continually measures the response time and packet loss at each hop, and
2681 displays the results in real time.")
2682 (license license:gpl2+)))
2684 (define-public strongswan
2691 (uri (string-append "https://download.strongswan.org/strongswan-"
2692 version ".tar.bz2"))
2694 (base32 "0g2m08gmgdi3qvvqz6zy7n16np53sp232xd0rdc2vdhk73img6id"))))
2695 (build-system gnu-build-system)
2698 (modify-phases %standard-phases
2699 (add-before 'build 'patch-command-file-names
2700 (lambda* (#:key inputs #:allow-other-keys)
2701 (substitute* "src/libstrongswan/utils/process.c"
2703 (string-append (assoc-ref inputs "bash") "/bin/sh")))
2705 (substitute* "src/libstrongswan/tests/suites/test_process.c"
2706 (("/bin/sh") (which "sh"))
2707 (("/bin/echo") (which "echo"))
2708 (("cat") (which "cat")))
2710 (add-before 'check 'set-up-test-environment
2711 (lambda* (#:key inputs #:allow-other-keys)
2712 (setenv "TZDIR" (string-append (assoc-ref inputs "tzdata")
2717 ;; Disable bsd-4 licensed plugins.
2719 "--disable-blowfish")))
2723 ("libgcrypt" ,libgcrypt)
2724 ("openssl" ,openssl)))
2726 `(("coreutils" ,coreutils)
2727 ("tzdata" ,tzdata-for-tests)))
2728 (synopsis "IKEv1/v2 keying daemon")
2729 (description "StrongSwan is an IPsec implementation originally based upon
2730 the FreeS/WAN project. It contains support for IKEv1, IKEv2, MOBIKE, IPv6,
2732 (home-page "https://strongswan.org/")
2736 ;; src/libcharon/plugins/dnscert/*
2737 ;; src/libcharon/plugins/ext_auth/*
2738 ;; src/libcharon/plugins/vici/ruby/*
2739 ;; src/libcharon/plugins/xauth_pam/xauth_pam_listener.[ch]
2743 ;; src/libstrongswan/plugins/sha3/sha3_keccak.c
2744 license:public-domain
2745 ;; src/libstrongswan/plugins/pkcs11/pkcs11.h
2746 (license:non-copyleft
2747 "file://src/libstrongswan/plugins/pkcs11/pkcs11.h"
2748 "pkcs11 contains a unknown permissive license. View the specific
2749 file for more details.")
2750 ;; These files are not included in the
2751 ;; build, they are disabled through
2752 ;; options to ./configure
2754 ;; src/libstrongswan/plugins/blowfish/bf_enc.c
2755 ;; src/libstrongswan/plugins/blowfish/bf_locl.h
2756 ;; src/libstrongswan/plugins/blowfish/bf_pi.h
2757 ;; src/libstrongswan/plugins/blowfish/bf_skey.c
2758 ;; src/libstrongswan/plugins/blowfish/blowfish_crypter.c
2759 ;; src/libstrongswan/plugins/des/des_crypter.c
2762 (define-public amule
2769 (url "https://github.com/amule-project/amule")
2771 (file-name (git-file-name name version))
2774 "010wxm6g9f92x6fympj501zbnjka32rzbx0sk3a2y4zpih5d2nsn"))
2775 ;; Patch for adopting crypto++ >= 6.0.
2776 (patches (search-patches "amule-crypto-6.patch"))))
2777 (build-system gnu-build-system)
2780 (modify-phases %standard-phases
2781 (delete 'bootstrap) ; bootstrap phase runs too early.
2782 (add-after 'patch-source-shebangs 'autogen
2784 (invoke "sh" "autogen.sh")
2798 "--enable-amule-gui"
2799 "--enable-amule-daemon"
2800 "--enable-webserver"
2801 "--with-denoise-level=0")))
2803 `(("autoconf" ,autoconf)
2804 ("automake" ,automake)
2805 ("gettext-minimal" ,gettext-minimal)
2809 ("crypto++" ,crypto++)
2811 ("wxwidgets-gtk2" ,wxwidgets-gtk2)))
2812 (home-page "http://amule.org/")
2813 (synopsis "Peer-to-peer client for the eD2K and Kademlia networks")
2815 "aMule is an eMule-like client for the eD2k and Kademlia peer-to-peer
2816 file sharing networks. It includes a graphical user interface (GUI), a daemon
2817 allowing you to run a client with no graphical interface, and a Web GUI for
2818 remote access. The @command{amulecmd} command allows you to control aMule
2820 (license license:gpl2+)))
2829 (string-append "https://github.com/zeromq/zyre/releases/download/v"
2830 version "/" name "-" version ".tar.gz"))
2833 "0qz2730bng1gs9xbqxhkw88qbsmszgmmrl2g9k6xrg6r3bqvsdc7"))))
2834 (build-system gnu-build-system)
2835 (inputs `(("zeromq" ,zeromq)
2837 ("libsodium" ,libsodium)))
2838 (synopsis "Framework for proximity-based peer-to-peer applications")
2839 (description "Zyre provides reliable group messaging over local area
2840 networks using zeromq. It has these key characteristics:
2843 @item Zyre needs no administration or configuration.
2844 @item Peers may join and leave the network at any time.
2845 @item Peers talk to each other without any central brokers or servers.
2846 @item Peers can talk directly to each other.
2847 @item Peers can join groups, and then talk to groups.
2848 @item Zyre is reliable, and loses no messages even when the network is heavily loaded.
2849 @item Zyre is fast and has low latency, requiring no consensus protocols.
2850 @item Zyre is designed for WiFi networks, yet also works well on Ethernet networks.
2852 (home-page "https://github.com/zeromq/zyre")
2853 (license license:mpl2.0)))
2855 (define-public libsocketcan
2857 (name "libsocketcan")
2862 (url "https://git.pengutronix.de/cgit/tools/libsocketcan")
2863 (commit (string-append "v" version))))
2864 (file-name (git-file-name name version))
2867 "17z2y2r9xkixhr9bxr50m77fh710afl30s7jdhbxrvf56vmal2jr"))))
2868 (build-system gnu-build-system)
2870 `(("autoconf" ,autoconf)
2871 ("automake" ,automake)
2872 ("libtool" ,libtool)))
2873 (home-page "https://git.pengutronix.de/cgit/tools/libsocketcan")
2874 (synopsis "SocketCAN user-space library")
2875 (description "This library allows controlling basic functions in SocketCAN
2876 from user-space. It requires a kernel built with SocketCAN support.")
2877 (license license:lgpl2.1+)))
2879 (define-public can-utils
2882 (version "2020.02.04")
2886 (url "https://github.com/linux-can/can-utils")
2887 (commit (string-append "v" version))))
2888 (file-name (git-file-name name version))
2891 "1a3j1mmnb7pvgc8r7zzp6sdp7903in2hna6bmpraxln7cwlzn4l6"))))
2892 (build-system gnu-build-system)
2894 `(#:tests? #f ; No tests exist.
2895 #:make-flags (list "CC=gcc"
2896 (string-append "PREFIX="
2897 (assoc-ref %outputs "out")))
2899 (modify-phases %standard-phases
2901 (delete 'configure))))
2902 (home-page "https://github.com/linux-can/can-utils")
2903 (synopsis "CAN utilities")
2904 (description "This package provides CAN utilities in the following areas:
2907 @item Basic tools to display, record, generate and replay CAN traffic
2908 @item CAN access via IP sockets
2909 @item CAN in-kernel gateway configuration
2910 @item CAN bus measurement and testing
2911 @item ISO-TP (ISO15765-2:2016 - this means messages with a body larger than
2913 @item Log file converters
2914 @item Serial Line Discipline configuration for slcan driver
2916 ;; Either BSD-3 or GPL-2 can be used.
2917 (license (list license:bsd-3 license:gpl2))))
2926 (uri (string-append "mirror://sourceforge/asio/asio/"
2927 version " (Stable)/asio-" version ".tar.bz2"))
2929 (base32 "1akray4l3hgahmb92sbvsqg128c7g7s92jrkf1sp1fjnfjrxq9sf"))))
2930 (build-system gnu-build-system)
2933 ("openssl" ,openssl)))
2937 (string-append "--with-boost=" (assoc-ref %build-inputs "boost"))
2938 (string-append "--with-openssl=" (assoc-ref %build-inputs "openssl")))))
2939 (home-page "https://think-async.com/Asio")
2940 (synopsis "C++ library for ASynchronous network I/O")
2941 (description "Asio is a cross-platform C++ library for network and
2942 low-level I/O programming that provides developers with a consistent
2943 asynchronous model using a modern C++ approach.")
2944 (license license:boost1.0)))
2946 (define-public shadowsocks
2947 ;; There are some security fixes after the last release.
2948 (let* ((commit "e332ec93e9c90f1cbee676b022bf2c5d5b7b1239")
2950 (version (git-version "2.8.2" revision commit)))
2952 (name "shadowsocks")
2954 (home-page "https://github.com/shadowsocks/shadowsocks")
2962 "1idd9b4f2pnhcpk1bh030hqg5zq25gkwxd53xi3c0cj242w7sp2j"))
2963 (file-name (git-file-name name version))))
2964 (build-system python-build-system)
2965 (synopsis "Fast tunnel proxy that helps you bypass firewalls")
2967 "This package is a fast tunnel proxy that helps you bypass firewalls.
2971 @item TCP & UDP support
2972 @item User management API
2974 @item Workers and graceful restart
2975 @item Destination IP blacklist
2977 (license license:asl2.0))))
2979 (define-public net-snmp
2985 (uri (string-append "mirror://sourceforge/net-snmp/net-snmp/"
2986 version "/net-snmp-" version ".tar.gz"))
2989 "0wb0vyafpspw3mcifkjjmf17r1r80kjvslycscb8nvaxz1k3lc04"))
2990 (modules '((guix build utils)))
2993 ;; Drop bundled libraries.
2994 (delete-file-recursively "snmplib/openssl")
2996 (build-system gnu-build-system)
2998 `(#:test-target "test"
2999 ;; XXX: With parallel build enabled, Perl modules may not get linked with
3000 ;; libnetsnmp. See e.g. <https://bugzilla.novell.com/show_bug.cgi?id=819497>.
3001 #:parallel-build? #f
3003 (list (string-append "LDFLAGS=-Wl,-rpath="
3004 (assoc-ref %outputs "out")
3006 "--with-logfile=/var/log/snmpd.log"
3007 (string-append "--with-openssl="
3008 (assoc-ref %build-inputs "openssl")))
3010 (modify-phases %standard-phases
3011 (add-after 'unpack 'patch-tests
3012 (lambda* (#:key inputs #:allow-other-keys)
3013 (substitute* "testing/fulltests/support/simple_TESTCONF.sh"
3015 (string-append "NETSTAT=\"" (which "netstat") "\"")))
3016 (substitute* '("testing/fulltests/default/T065agentextend_simple"
3017 "testing/fulltests/default/T115agentxperl_simple")
3018 (("/usr/bin/env") (which "env")))
3019 (substitute* "testing/fulltests/default/T065agentextend_sh_simple"
3020 (("/bin/sh") (which "sh")))
3021 ;; These tests require network access.
3022 (for-each delete-file
3023 '("testing/fulltests/default/T070com2sec_simple"
3024 "testing/fulltests/default/T071com2sec6_simple"))
3026 (add-after 'unpack 'patch-Makefile.PL
3027 (lambda* (#:key outputs #:allow-other-keys)
3028 (substitute* "Makefile.in"
3029 (("Makefile.PL -NET")
3030 (string-append "Makefile.PL PREFIX="
3031 (assoc-ref outputs "out")
3032 " INSTALLDIRS=site" " NO_PERLLOCAL=1"
3037 ("ncurses" ,ncurses) ; for the ‘apps’
3038 ("openssl" ,openssl)
3041 `(("pkg-config" ,pkg-config)
3044 ("net-tools" ,net-tools)
3045 ("coreutils" ,coreutils)
3047 (home-page "http://www.net-snmp.org/")
3048 (synopsis "Simple Network Management Protocol library and tools")
3049 (description "The @dfn{Simple Network Management Protocol} (SNMP) is a
3050 widely used protocol for monitoring the health and welfare of network
3051 equipment (e.g. routers), computer equipment and even devices like UPSs.
3052 Net-SNMP is a suite of applications used to implement SNMP v1, SNMP v2c and
3053 SNMP v3 using both IPv4 and IPv6.")
3054 ;; This only affects OpenBSD
3055 ;; https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-8100
3056 (properties `((lint-hidden-cve . ("CVE-2015-8100"))))
3057 (license (list license:bsd-3
3058 (license:non-copyleft
3059 "http://www.net-snmp.org/about/license.html"
3060 "CMU/UCD copyright notice")))))
3062 (define-public ubridge
3070 (url "https://github.com/GNS3/ubridge")
3071 (commit (string-append "v" version))))
3072 (file-name (git-file-name name version))
3074 (base32 "0jg66jhhpv4c9340fsdp64hf9h253i8r81fknxa0gq241ripp3jn"))))
3075 (build-system gnu-build-system)
3077 `(#:tests? #f ; no tests
3079 (list ,(string-append "CC=" (cc-for-target)))
3081 (modify-phases %standard-phases
3082 (delete 'configure) ; no configure script
3083 (add-before 'install 'set-bindir
3084 (lambda* (#:key inputs outputs #:allow-other-keys)
3085 (let ((bin (string-append (assoc-ref outputs "out")
3088 (substitute* "Makefile"
3089 (("\\$\\(BINDIR\\)") bin)
3090 (("\tsetcap cap_net.*$") "")))
3093 `(("libpcap" ,libpcap)))
3094 (home-page "https://github.com/GNS3/ubridge/")
3095 (synopsis "Bridge for UDP tunnels, Ethernet, TAP and VMnet interfaces")
3096 (description "uBridge is a simple program to create user-land bridges
3097 between various technologies. Currently, bridging between UDP tunnels,
3098 Ethernet and TAP interfaces is supported. Packet capture is also supported.")
3099 (license license:gpl3+)))
3101 (define-public hcxtools
3109 (url "https://github.com/ZerBea/hcxtools")
3112 (base32 "0k2qlq9hz5zc21nyc6yrnfqzga7hydn5mm0x3rpl2fhkwl81lxcn"))
3113 (file-name (git-file-name name version))))
3114 (build-system gnu-build-system)
3117 ("libpcap" ,libpcap)
3118 ("openssl" ,openssl)
3123 (string-append "INSTALLDIR=" (assoc-ref %outputs "out") "/bin"))
3124 #:tests? #f ; no test suite
3126 (modify-phases %standard-phases
3127 (delete 'configure))))
3128 (home-page "https://github.com/ZerBea/hcxtools")
3129 (synopsis "Capture wlan traffic to hashcat and John the Ripper")
3131 "This package contains a small set of tools to capture and convert
3132 packets from wireless devices for use with hashcat or John the Ripper.")
3133 (license license:expat)))
3135 (define-public hcxdumptool
3137 (name "hcxdumptool")
3143 (url "https://github.com/ZerBea/hcxdumptool")
3146 (base32 "1b4d543y64ib92w9gcmiyjn5hz2vyjqmxk3f3yr1zk04fhw16gmf"))
3147 (file-name (git-file-name name version))))
3148 (build-system gnu-build-system)
3151 (list ,(string-append "CC=" (cc-for-target))
3152 (string-append "INSTALLDIR=" (assoc-ref %outputs "out") "/bin"))
3153 #:tests? #f ; no test suite
3155 (modify-phases %standard-phases
3156 (delete 'configure))))
3158 `(("openssl" ,openssl)))
3159 (home-page "https://github.com/ZerBea/hcxdumptool")
3160 (synopsis "Small tool to capture packets from wlan devices")
3162 "Small tool to capture packets from WLAN devices. After capturing,
3163 upload the \"uncleaned\" cap to @url{https://wpa-sec.stanev.org/?submit} to
3164 see if the access point or the client is vulnerable to a dictionary attack.
3165 Convert the cap file to hccapx format and/or to WPA-PMKID-PBKDF2
3166 hashline (16800) with @command{hcxpcaptool} from the @code{hcxtools} package
3167 and check if the WLAN key or the master key was transmitted unencrypted.")
3168 (license license:expat)))
3170 (define-public dante
3177 (uri (string-append "https://www.inet.no/dante/files/dante-"
3181 "19rqzj167q73ag20zxpvswhkk0bj56r5maf83v5016sw7vrcz5sc"))))
3182 (build-system gnu-build-system)
3184 ;; XXX: The dynamic socks library doesn't work with 'libc.so' (GNU ld
3185 ;; script). When preloading is enabled, 'sockd' failed with:
3186 ;; … Failed to open library "libc.so": …: invalid ELF header
3187 '(#:configure-flags '("--disable-preload")))
3188 (home-page "https://www.inet.no/dante/")
3189 (synopsis "SOCKS server and client")
3190 (description "Dante is a SOCKS client and server implementation. It can
3191 be installed on a machine with access to an external TCP/IP network and will
3192 allow all other machines, without direct access to that network, to be relayed
3193 through the machine the Dante server is running on. The external network will
3194 never see any machines other than the one Dante is running on.")
3195 (license (license:non-copyleft "file://LICENSE"))))
3197 (define-public restbed
3198 (let ((commit "6eb385fa9051203f28bf96cc1844bbb5a9a6481f"))
3201 (version (git-version "4.6" "1" commit))
3206 (url "https://github.com/Corvusoft/restbed/")
3208 (file-name (string-append name "-" version ".tar.gz"))
3210 (base32 "0k60i5drklqqrb4khb25fzkgz9y0sncxf1sp6lh2bm1m0gh0661n"))))
3211 (build-system cmake-build-system)
3214 ("catch" ,catch-framework)
3215 ("openssl" ,openssl)))
3219 '("-DBUILD_TESTS=NO"
3220 "-DBUILD_EXAMPLES=NO"
3222 "-DBUILD_SHARED=NO")
3224 (modify-phases %standard-phases
3225 (add-after 'unpack 'apply-patches-and-fix-paths
3226 (lambda* (#:key inputs #:allow-other-keys)
3227 (let ((asio (assoc-ref inputs "asio"))
3228 (catch (assoc-ref inputs "catch"))
3229 (openssl (assoc-ref inputs "openssl")))
3230 (substitute* "cmake/Findasio.cmake"
3231 (("(find_path\\( asio_INCLUDE asio\\.hpp HINTS ).*$" all begin)
3232 (string-append begin " \"" asio "/include\" )")))
3233 (substitute* "cmake/Findcatch.cmake"
3234 (("(find_path\\( catch_INCLUDE catch\\.hpp HINTS ).*$" all begin)
3235 (string-append begin " \"" catch "/include\" )")))
3236 (substitute* "cmake/Findopenssl.cmake"
3237 (("(find_library\\( ssl_LIBRARY ssl ssleay32 HINTS ).*$" all begin)
3238 (string-append begin " \"" openssl "/lib\" )"))
3239 (("(find_library\\( crypto_LIBRARY crypto libeay32 HINTS ).*$" all begin)
3240 (string-append begin " \"" openssl "/lib\" )"))
3241 (("(find_path\\( ssl_INCLUDE openssl/ssl\\.h HINTS ).*$" all begin)
3242 (string-append begin " \"" openssl "/include\" )")))))))))
3243 (synopsis "Asynchronous RESTful functionality to C++11 applications")
3244 (description "Restbed is a comprehensive and consistent programming
3245 model for building applications that require seamless and secure
3246 communication over HTTP.")
3247 (home-page "https://github.com/Corvusoft/restbed")
3248 (license license:agpl3+))))
3250 (define-public restinio
3257 (url "https://github.com/Stiffstream/restinio")
3258 (commit (string-append "v." version))))
3259 (file-name (git-file-name name version))
3262 "141a96hx8zhcdv121g6cs91n46kb47y040v25pnvz5f54964z7f5"))))
3263 (build-system cmake-build-system)
3264 (inputs ; TODO: Need to force-keep references on some inputs, e.g. boost.
3266 ("catch2" ,catch-framework2)
3267 ("openssl" ,openssl)
3271 ("sobjectizer" ,sobjectizer)))
3275 ("http-parser", http-parser)))
3277 `(#:configure-flags '("-DRESTINIO_INSTALL=on")
3278 #:tests? #f ; TODO: The tests are called from the root CMakelist, need RESTINIO_TEST=on.
3280 (modify-phases %standard-phases
3281 (add-after 'unpack 'change-directory
3283 (chdir "dev/restinio")
3285 (home-page "https://stiffstream.com/en/products/restinio.html")
3286 (synopsis "C++14 library that gives you an embedded HTTP/Websocket server")
3287 (description "RESTinio is a header-only C++14 library that gives you an embedded
3288 HTTP/Websocket server. It is based on standalone version of ASIO
3289 and targeted primarily for asynchronous processing of HTTP-requests.")
3290 (license license:bsd-3)))
3292 (define-public opendht
3299 (url "https://github.com/savoirfairelinux/opendht")
3301 (file-name (git-file-name name version))
3302 (patches (search-patches "opendht-fix-jami.patch"))
3305 "1ax26ri1ifb6s8ppd28jmanka9yf8mw3np65q2h4djhhik0phhal"))))
3306 ;; Since 2.0, the gnu-build-system does not seem to work anymore, upstream bug?
3307 (build-system cmake-build-system)
3309 `(("argon2" ,argon2)
3311 ("readline" ,readline)
3312 ("jsoncpp" ,jsoncpp)
3313 ("openssl" ,openssl) ;required for the DHT proxy
3316 `(("gnutls" ,gnutls) ;included in opendht/crypto.h
3317 ("msgpack" ,msgpack))) ;included in several installed headers
3319 `(("autoconf" ,autoconf)
3320 ("automake" ,automake)
3321 ("pkg-config" ,pkg-config)
3322 ("restinio" ,restinio) ;headers only library
3323 ("libtool" ,libtool)
3324 ("cppunit" ,cppunit)))
3326 `(#:tests? #f ; Tests require network connection.
3328 '(;; "-DOPENDHT_TESTS=on"
3329 "-DOPENDHT_TOOLS=off"
3330 "-DOPENDHT_PYTHON=off"
3331 "-DOPENDHT_PROXY_SERVER=on"
3332 "-DOPENDHT_PUSH_NOTIFICATIONS=on"
3333 "-DOPENDHT_PROXY_SERVER_IDENTITY=on"
3334 "-DOPENDHT_PROXY_CLIENT=on")))
3335 (home-page "https://github.com/savoirfairelinux/opendht/")
3336 (synopsis "Distributed Hash Table (DHT) library")
3337 (description "OpenDHT is a Distributed Hash Table (DHT) library. It may
3338 be used to manage peer-to-peer network connections as needed for real time
3340 (license license:gpl3+)))
3342 (define-public frrouting
3348 (uri (string-append "https://github.com/FRRouting/frr/releases/"
3349 "download/frr-" version "/frr-" version
3353 "0xfrvi62w8qlh46f504ka0skb7pm0g0p8vmdng4w90gsbirlzpdd"))))
3354 (build-system gnu-build-system)
3356 `(("c-ares" ,c-ares)
3358 ("readline" ,readline)))
3361 ("pkg-config" ,pkg-config)
3362 ("python" ,python-wrapper)
3363 ("python-pytest" ,python-pytest)))
3364 (home-page "https://frrouting.org/")
3365 (synopsis "IP routing protocol suite")
3366 (description "FRRouting (FRR) is an IP routing protocol suite which includes
3367 protocol daemons for BGP, IS-IS, LDP, OSPF, PIM, and RIP. ")
3368 (license license:gpl2+)))
3377 (url "https://git.kernel.org/pub/scm/network/wireless/iwd.git")
3379 (file-name (git-file-name name version))
3382 "001dikinsa6kshwscjbvwipavzwpqnpvx9fpshcn63gbvbhyd393"))))
3383 (build-system gnu-build-system)
3387 ("readline" ,readline)))
3389 `(("asciidoc" ,asciidoc)
3390 ("autoconf" ,autoconf)
3391 ("automake" ,automake)
3392 ("libtool" ,libtool)
3393 ("pkgconfig" ,pkg-config)
3395 ("openssl" ,openssl)))
3398 (let ((dbus (assoc-ref %outputs "out")))
3399 (list "--disable-systemd-service"
3400 "--enable-external-ell"
3405 "--localstatedir=/var"
3406 (string-append "--with-dbus-datadir=" dbus "/share/")
3407 (string-append "--with-dbus-busdir="
3408 dbus "/share/dbus-1/system-services")))
3410 (modify-phases %standard-phases
3411 (add-before 'bootstrap 'pre-bootstrap
3413 (substitute* "Makefile.am"
3414 ;; Test disabled because it needs the kernel module
3415 ;; 'pkcs8_key_parser' loaded.
3416 (("unit\\/test-eapol.*? ") "")
3417 ;; Don't try to 'mkdir /var'.
3418 (("\\$\\(MKDIR_P\\) -m 700") "true"))
3420 (home-page "https://git.kernel.org/pub/scm/network/wireless/iwd.git/")
3421 (synopsis "Internet Wireless Daemon")
3422 (description "iwd is a wireless daemon for Linux that aims to replace WPA
3423 Supplicant. It optimizes resource utilization by not depending on any external
3424 libraries and instead utilizing features provided by the Linux kernel to the
3425 maximum extent possible.")
3426 (license license:lgpl2.1+)))
3428 (define-public batctl
3435 (uri (string-append "https://downloads.open-mesh.org/batman/releases/batman-adv-"
3436 version "/batctl-" version ".tar.gz"))
3438 (base32 "0r2w2v4sy6wgr7mp9lc7yj9k4ldsbsm3425rjil7p0b17zmzf4rm"))))
3440 `(("libnl" ,libnl)))
3442 `(("pkg-config" ,pkg-config)))
3443 (build-system gnu-build-system)
3446 ;; Batctl only has a makefile. Thus we disable tests and
3447 ;; configuration, passing in a few make-flags.
3448 #:phases (modify-phases %standard-phases (delete 'configure))
3450 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3451 (string-append "PKG_CONFIG=" (assoc-ref %build-inputs "pkg-config")
3454 (home-page "https://www.open-mesh.org/projects/batman-adv/wiki/Wiki")
3455 (synopsis "Management tool for the mesh networking BATMAN protocol")
3456 (description "This package provides a control tool for the
3457 B.A.T.M.A.N. mesh networking routing protocol provided by the Linux kernel
3458 module @code{batman-adv}, for Layer 2.")
3459 (license license:gpl2+)))
3461 (define-public pagekite
3464 (version "1.5.2.200725")
3469 (url "https://github.com/pagekite/PyPagekite")
3470 (commit (string-append "v" version))))
3471 (file-name (git-file-name name version))
3473 (base32 "0lig1i42bn9isw848vnml5qhcaa04x1dr2hb075bm0a3439kv3rr"))))
3474 (build-system python-build-system)
3477 (modify-phases %standard-phases
3478 (add-after 'install 'install-man-page
3479 (lambda* (#:key inputs outputs #:allow-other-keys)
3480 (let* ((out (assoc-ref outputs "out"))
3481 (man (string-append out "/share/man")))
3483 (string-append "PYTHONPATH=" (getenv "PYTHONPATH"))
3485 (install-file "doc/pagekite.1" (string-append man "/man1"))
3488 `(("python-six" ,python-six)
3489 ("python-socksipychain" ,python-socksipychain)))
3490 (home-page "https://pagekite.net/")
3491 (synopsis "Make localhost servers publicly visible")
3493 "PageKite implements a tunneled reverse proxy which makes it easy to make
3494 a service (such as an HTTP or SSH server) on localhost visible to the wider
3495 Internet, even behind NAT or restrictive firewalls. A managed front-end relay
3496 service is available at @url{https://pagekite.net/}, or you can run your own.")
3497 (license license:agpl3+)))
3499 (define-public ipcalc
3505 (uri (string-append "http://jodies.de/ipcalc-archive/"
3506 name "-" version ".tar.gz"))
3509 "12if9sm8h2ac0pgwkw835cgyqjxm6h27k4kfn2vfas9krrqwbafx"))))
3510 (inputs `(("perl" ,perl)
3513 ("tarball" ,source)))
3514 (build-system trivial-build-system) ;no Makefile.PL
3516 `(#:modules ((guix build utils))
3519 (use-modules (guix build utils))
3520 (use-modules (srfi srfi-1))
3521 (let* ((source (assoc-ref %build-inputs "source"))
3522 (perl (string-append (assoc-ref %build-inputs "perl")
3524 (tar (assoc-ref %build-inputs "tar"))
3525 (gz (assoc-ref %build-inputs "gzip"))
3526 (out (assoc-ref %outputs "out"))
3527 (bin (string-append out "/bin"))
3528 (doc (string-append out "/share/doc/ipcalc")))
3529 (setenv "PATH" (string-append gz "/bin"))
3530 (invoke (string-append tar "/bin/tar") "xvf" source)
3531 (chdir (string-append ,name "-" ,version))
3533 (install-file "ipcalc" bin)
3534 (patch-shebang (string-append bin "/ipcalc") (list perl))
3536 (synopsis "Simple IP network calculator")
3537 (description "ipcalc takes an IP address and netmask and calculates the
3538 resulting broadcast, network, Cisco wildcard mask, and host range. By giving
3539 a second netmask, you can design subnets and supernets. It is also intended
3540 to be a teaching tool and presents the subnetting results as
3541 easy-to-understand binary values.")
3542 (home-page "http://jodies.de/ipcalc")
3543 (license license:gpl2+)))
3545 (define-public tunctl
3552 (uri (string-append "mirror://sourceforge/tunctl/tunctl/" version "/"
3553 "tunctl-" version ".tar.gz"))
3555 (base32 "1zsgn7w6l2zh2q0j6qaw8wsx981qcr536qlz1lgb3b5zqr66qama"))))
3556 (build-system gnu-build-system)
3559 (modify-phases %standard-phases
3560 (delete 'bootstrap) ;there is no configure.ac file
3561 (delete 'configure) ;there is no configure script
3562 (delete 'check) ;there are no tests
3566 (invoke "make" "tunctl")))
3567 ;; TODO: Requires docbook2x to generate man page from SGML.
3569 (lambda* (#:key outputs #:allow-other-keys)
3570 (let* ((out (assoc-ref outputs "out"))
3571 (bin (string-append out "/bin")))
3572 (install-file "tunctl" bin))
3574 (home-page "http://tunctl.sourceforge.net")
3575 (synopsis "Utility to set up and maintain TUN/TAP network interfaces")
3576 (description "Tunctl is used to set up and maintain persistent TUN/TAP
3577 network interfaces, enabling user applications to simulate network traffic.
3578 Such interfaces are useful for VPN software, virtualization, emulation,
3579 simulation, and a number of other applications.")
3580 (license license:gpl2)))
3589 (uri (string-append "mirror://sourceforge/wake-on-lan/wol/"
3590 version "/wol-" version ".tar.gz"))
3592 (base32 "08i6l5lr14mh4n3qbmx6kyx7vjqvzdnh3j9yfvgjppqik2dnq270"))))
3593 (build-system gnu-build-system)
3594 (home-page "https://sourceforge.net/projects/wake-on-lan/")
3595 (synopsis "Implements Wake On LAN functionality in a small program")
3596 (description "Tool to send a magic packet to wake another host on the
3597 network. This must be enabled on the target host, usually in the BIOS.")
3598 (license license:gpl2)))
3607 (uri "mirror://sourceforge/vde/vde2/2.3.2/vde2-2.3.2.tar.gz")
3609 (base32 "14xga0ib6p1wrv3hkl4sa89yzjxv7f1vfqaxsch87j6scdm59pr2"))))
3610 (build-system gnu-build-system)
3612 `(#:parallel-build? #f)) ; Build fails if #t.
3614 `(("python" ,python)
3615 ("libpcap" ,libpcap)
3616 ("openssl" ,openssl-1.0))) ; Build fails with 1.1.
3617 (home-page "https://github.com/virtualsquare/vde-2")
3618 (synopsis "Virtual Distributed Ethernet")
3619 (description "VDE is a set of programs to provide virtual software-defined
3620 Ethernet network interface controllers across multiple virtual or
3621 physical, local or remote devices. The VDE architecture provides
3622 virtual counterparts to hardware components such as switches and
3624 (license (list license:gpl2
3625 license:lgpl2.1 ; libvdeplug
3626 (license:non-copyleft ; slirpvde
3627 "file://COPYING.slirpvde"
3628 "See COPYING.slirpvde in the distribution.")))))
3630 (define-public haproxy
3636 (uri (string-append "https://www.haproxy.org/download/"
3637 (version-major+minor version)
3638 "/src/haproxy-" version ".tar.gz"))
3641 "0fd3c1znid5a9w3gcf77b85hm2a2558w9s02c4b7xzkmivqnqbir"))))
3642 (build-system gnu-build-system)
3645 (let* ((out (assoc-ref %outputs "out")))
3646 (list (string-append "PREFIX=" out)
3647 (string-append "DOCDIR=" out "/share/" ,name)
3648 "TARGET=linux-glibc"
3653 #:tests? #f ; there are only regression tests, using varnishtest
3655 (modify-phases %standard-phases
3656 (delete 'configure))))
3659 ("openssl" ,openssl)
3662 (home-page "https://www.haproxy.org/")
3663 (synopsis "Reliable, high performance TCP/HTTP load balancer")
3664 (description "HAProxy is a free, very fast and reliable solution offering
3665 high availability, load balancing, and proxying for TCP and HTTP-based
3666 applications. It is particularly suited for web sites crawling under very
3667 high loads while needing persistence or Layer7 processing. Supporting tens of
3668 thousands of connections is clearly realistic with today's hardware.")
3669 (license (list license:gpl2+
3671 license:lgpl2.1+))))
3673 (define-public lldpd
3680 (uri (string-append "https://media.luffy.cx/files/lldpd/lldpd-"
3683 (base32 "1v5fd8vwxracvzvgrsswvhppwyx5c4srj89g1cnvy73w831mpq95"))
3684 (modules '((guix build utils)))
3687 ;; Drop bundled library.
3688 (delete-file-recursively "libevent")
3693 "--with-privsep-user=nobody"
3694 "--with-privsep-group=nogroup"
3695 "--localstatedir=/var"
3697 "--without-embedded-libevent"
3698 (string-append "--with-systemdsystemunitdir="
3699 (assoc-ref %outputs "out")
3700 "/lib/systemd/system"))))
3701 (build-system gnu-build-system)
3703 `(("libevent" ,libevent)
3704 ("libxml2" ,libxml2)
3705 ("openssl" ,openssl)
3706 ("readline" ,readline)))
3708 `(("pkg-config" ,pkg-config)))
3709 (home-page "https://vincentbernat.github.io/lldpd/")
3710 (synopsis "Locate neighbors of your network equipment")
3712 "The @dfn{Link Layer Discovery Protocol} (LLDP) is an industry standard
3713 protocol designed to supplant proprietary Link-Layer protocols such as EDP or
3714 CDP. The goal of LLDP is to provide an inter-vendor compatible mechanism to
3715 deliver Link-Layer notifications to adjacent network devices. @code{lldpd} is
3716 an implementation of LLDP. It also supports some proprietary protocols.")
3717 (license license:isc)))
3719 (define-public hashcash
3726 (uri (string-append "http://www.hashcash.org/source/hashcash-"
3730 "15kqaimwb2y8wvzpn73021bvay9mz1gqqfc40gk4hj6f84nz34h1"))))
3731 (build-system gnu-build-system)
3733 `(#:make-flags (list (string-append "CC=" ,(cc-for-target)))
3735 (modify-phases %standard-phases
3737 ;; No tests available.
3740 (lambda* (#:key outputs #:allow-other-keys)
3741 (let* ((outdir (assoc-ref outputs "out"))
3742 (bindir (string-append outdir "/bin"))
3743 (mandir (string-append outdir "/share/man/man1"))
3744 (docdir (string-append outdir "/share/doc/hashcash-" ,version)))
3745 ;; Install manually, as we don't need the `sha1' binary
3746 (install-file "hashcash" bindir)
3747 (install-file "hashcash.1" mandir)
3748 (install-file "README" docdir)
3749 (install-file "LICENSE" docdir)
3750 (install-file "CHANGELOG" docdir)
3752 (home-page "https://www.hashcash.org/")
3753 (synopsis "Denial-of-service countermeasure")
3754 (description "Hashcash is a proof-of-work algorithm, which has been used
3755 as a denial-of-service countermeasure technique in a number of systems.
3757 A hashcash stamp constitutes a proof-of-work which takes a parametrizable
3758 amount of work to compute for the sender. The recipient can verify received
3759 hashcash stamps efficiently.
3761 This package contains a command-line tool for computing and verifying hashcash
3763 (license license:public-domain)))
3772 (uri (string-append "mirror://sourceforge/nbd/nbd/3.20/nbd-" version
3776 "1kfnyx52nna2mnw264njk1dl2zc8m78sz031yp65mbmpi99v7qg0"))))
3777 (build-system gnu-build-system)
3781 `(("pkg-config" ,pkg-config)
3783 (home-page "https://nbd.sourceforge.io/")
3784 (synopsis "NBD client and server")
3785 (description "This package provides the NBD (Network Block Devices)
3786 client and server. It allows you to use remote block devices over a TCP/IP
3788 (license license:gpl2)))