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>
42 ;;; Copyright © 2020 Jesse Dowell <jessedowell@gmail.com>
43 ;;; Copyright © 2020 Hamzeh Nasajpour <h.nasajpour@pantherx.org>
45 ;;; This file is part of GNU Guix.
47 ;;; GNU Guix is free software; you can redistribute it and/or modify it
48 ;;; under the terms of the GNU General Public License as published by
49 ;;; the Free Software Foundation; either version 3 of the License, or (at
50 ;;; your option) any later version.
52 ;;; GNU Guix is distributed in the hope that it will be useful, but
53 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
54 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
55 ;;; GNU General Public License for more details.
57 ;;; You should have received a copy of the GNU General Public License
58 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
60 (define-module (gnu packages networking)
61 #:use-module ((guix licenses) #:prefix license:)
62 #:use-module (guix packages)
63 #:use-module (guix download)
64 #:use-module (guix git-download)
65 #:use-module (guix build-system cmake)
66 #:use-module (guix build-system glib-or-gtk)
67 #:use-module (guix build-system gnu)
68 #:use-module (guix build-system go)
69 #:use-module (guix build-system meson)
70 #:use-module (guix build-system perl)
71 #:use-module (guix build-system python)
72 #:use-module (guix build-system trivial)
73 #:use-module (guix utils)
74 #:use-module (gnu packages)
75 #:use-module (gnu packages admin)
76 #:use-module (gnu packages adns)
77 #:use-module (gnu packages algebra)
78 #:use-module (gnu packages audio)
79 #:use-module (gnu packages autogen)
80 #:use-module (gnu packages autotools)
81 #:use-module (gnu packages base)
82 #:use-module (gnu packages bison)
83 #:use-module (gnu packages boost)
84 #:use-module (gnu packages check)
85 #:use-module (gnu packages code)
86 #:use-module (gnu packages compression)
87 #:use-module (gnu packages cpp)
88 #:use-module (gnu packages crypto)
89 #:use-module (gnu packages curl)
90 #:use-module (gnu packages cyrus-sasl)
91 #:use-module (gnu packages dejagnu)
92 #:use-module (gnu packages docbook)
93 #:use-module (gnu packages documentation)
94 #:use-module (gnu packages flex)
95 #:use-module (gnu packages freedesktop)
96 #:use-module (gnu packages gettext)
97 #:use-module (gnu packages glib)
98 #:use-module (gnu packages gnome)
99 #:use-module (gnu packages gnupg)
100 #:use-module (gnu packages graphviz)
101 #:use-module (gnu packages gstreamer)
102 #:use-module (gnu packages gtk)
103 #:use-module (gnu packages image)
104 #:use-module (gnu packages libevent)
105 #:use-module (gnu packages libidn)
106 #:use-module (gnu packages linux)
107 #:use-module (gnu packages lua)
108 #:use-module (gnu packages multiprecision)
109 #:use-module (gnu packages kerberos)
110 #:use-module (gnu packages ncurses)
111 #:use-module (gnu packages nettle)
112 #:use-module (gnu packages openldap)
113 #:use-module (gnu packages onc-rpc)
114 #:use-module (gnu packages password-utils)
115 #:use-module (gnu packages pcre)
116 #:use-module (gnu packages perl)
117 #:use-module (gnu packages perl-check)
118 #:use-module (gnu packages pkg-config)
119 #:use-module (gnu packages polkit)
120 #:use-module (gnu packages pretty-print)
121 #:use-module (gnu packages pulseaudio)
122 #:use-module (gnu packages python)
123 #:use-module (gnu packages python-web)
124 #:use-module (gnu packages python-xyz)
125 #:use-module (gnu packages qt)
126 #:use-module (gnu packages readline)
127 #:use-module (gnu packages ruby)
128 #:use-module (gnu packages samba)
129 #:use-module (gnu packages serialization)
130 #:use-module (gnu packages shells)
131 #:use-module (gnu packages sphinx)
132 #:use-module (gnu packages sqlite)
133 #:use-module (gnu packages ssh)
134 #:use-module (gnu packages tcl)
135 #:use-module (gnu packages textutils)
136 #:use-module (gnu packages tls)
137 #:use-module (gnu packages valgrind)
138 #:use-module (gnu packages version-control)
139 #:use-module (gnu packages web)
140 #:use-module (gnu packages wxwidgets)
141 #:use-module (gnu packages xml)
142 #:use-module (ice-9 match))
144 ;; This package does not have a release yet.
145 ;; But this is required to provide a feature in PipeWire.
146 (define-public libcamera
155 (url "git://linuxtv.org/libcamera.git")
156 (commit "74c8b508338ccdd0780aa1e067a1e8fcb9ee326b")))
158 (git-file-name name version))
160 (base32 "0d9lp8b9gyxh4jwfh55kp8zl1xyyg32z684v3y29378zpksncss1"))))
161 (build-system meson-build-system)
162 (outputs '("out" "doc"))
164 `(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
169 (modify-phases %standard-phases
170 (add-after 'unpack 'disable-failing-tests
172 (substitute* "test/meson.build"
173 (("\\['list-cameras', 'list-cameras.cpp'\\],")
176 (add-after 'install 'move-doc
177 (lambda* (#:key outputs #:allow-other-keys)
178 (let* ((out (assoc-ref outputs "out"))
179 (doc (assoc-ref outputs "doc")))
180 (mkdir-p (string-append doc "/share"))
182 (string-append out "/share/doc")
183 (string-append doc "/share/doc"))
188 ("pkg-config" ,pkg-config)
189 ("python" ,python-wrapper)
190 ("sphinx" ,python-sphinx)
191 ("yaml" ,python-pyyaml)))
195 ("gstreamer" ,gst-plugins-base)
201 (synopsis "Camera stack and framework")
202 (description "LibCamera is a complex camera support library for GNU+Linux,
203 Android, and ChromeOS.")
204 (home-page "https://libcamera.org/")
205 (license license:lgpl2.1+)))
207 (define-public libnice
215 (string-append "https://libnice.freedesktop.org/releases/"
216 name "-" version ".tar.gz"))
218 (base32 "09lm0rxwvbr53svi3inaharlq96iwbs3s6957z69qp4bqpga0lhr"))))
219 (build-system meson-build-system)
220 (outputs '("out" "doc"))
222 `(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
227 (modify-phases %standard-phases
228 (add-after 'install 'move-docs
229 (lambda* (#:key outputs #:allow-other-keys)
230 (let* ((out (assoc-ref outputs "out"))
231 (doc (assoc-ref outputs "doc")))
232 (mkdir-p (string-append doc "/share"))
234 (string-append out "/share/gtk-doc")
235 (string-append doc "/share/gtk-doc"))
238 `(("glib:bin" ,glib "bin")
239 ("gobject-introspection" ,gobject-introspection)
241 ("pkg-config" ,pkg-config)))
244 ("gstreamer" ,gstreamer)
245 ("gst-plugins-base" ,gst-plugins-base)
249 ("glib-networking" ,glib-networking)))
250 (synopsis "GLib ICE implementation")
251 (description "LibNice is a library that implements the Interactive
252 Connectivity Establishment (ICE) standard (RFC 5245 & RFC 8445). It provides a
253 GLib-based library, libnice, as well as GStreamer elements to use it.")
254 (home-page "https://libnice.freedesktop.org/")
256 ;; This project is dual-licensed.
261 (define-public rtmpdump
269 (url "https://git.ffmpeg.org/rtmpdump")
270 (commit "c28f1bab7822de97353849e7787b59e50bbb1428")))
271 (file-name (git-file-name name version))
273 (base32 "1n3kdip83nvvs4sin30zpcdr5q711mqhq2lxrv5vgbc6lskpwzlj"))))
274 (build-system gnu-build-system)
276 `(#:tests? #f ; no tests
279 ;; The ‘validate-runpath’ phase fails to find librtmp.so.0.
280 (string-append "LDFLAGS=-Wl,-rpath="
281 (assoc-ref %outputs "out") "/lib")
282 (string-append "prefix=" (assoc-ref %outputs "out")))
284 (modify-phases %standard-phases
285 (add-after 'unpack 'omit-static-library
287 (substitute* "librtmp/Makefile"
288 (("cp librtmp\\.a .*") ; don't install it
290 (("librtmp\\.a ") ; don't build it
293 (delete 'configure))))
295 `(("openssl" ,openssl-1.0)
297 (synopsis "Tools and library for handling RTMP streams")
298 (description "RTMPdump is a toolkit for RTMP streams. All forms of RTMP are
299 supported, including rtmp://, rtmpt://, rtmpe://, rtmpte://, and rtmps://.")
300 (home-page "https://rtmpdump.mplayerhq.hu/")
317 (url "https://github.com/Haivision/srt.git")
318 (commit (string-append "v" version))))
319 (file-name (git-file-name name version))
321 (base32 "01nx3a35hzq2x0dvp2n2b86phpdy1z83kdraag7aq3hmc7f8iagg"))))
322 (build-system cmake-build-system)
326 (string-append "-DCMAKE_INSTALL_BINDIR="
327 (assoc-ref %outputs "out") "/bin")
328 (string-append "-DCMAKE_INSTALL_LIBDIR="
329 (assoc-ref %outputs "out") "/lib")
330 (string-append "-DINSTALL_SHARED_DIR="
331 (assoc-ref %outputs "out") "/lib")
332 (string-append "-DCMAKE_INSTALL_INCLUDEDIR="
333 (assoc-ref %outputs "out") "/include")
334 "-DENABLE_UNITTESTS=ON"
335 "-DENABLE_CODE_COVERAGE=ON")))
337 `(("git" ,git-minimal)
338 ("gtest" ,googletest)
339 ("pkg-config" ,pkg-config)
342 `(("openssl" ,openssl)))
343 (synopsis "Secure Reliable Transport")
344 (description "SRT is a transport technology that optimizes streaming
345 performance across unpredictable networks, such as the Internet.")
346 (home-page "https://www.srtalliance.org/")
347 (license license:mpl2.0)))
349 (define-public lksctp-tools
351 (name "lksctp-tools")
358 (url "https://github.com/sctp/lksctp-tools.git")
359 (commit (string-append "v" version))))
360 (file-name (git-file-name name version))
362 (base32 "1x4fwzrlzvfa3vcpja97m8w5g9ir2zrh4zs7zksminrnmdrs0dsr"))))
363 (build-system gnu-build-system)
365 `(("autoconf" ,autoconf)
366 ("automake" ,automake)
368 ("pkg-config" ,pkg-config)))
370 `(("linux-headers" ,linux-libre-headers)))
371 (synopsis "Linux SCTP helper library")
372 (description "Lksctp-tools project provides a user space library for SCTP
373 (libsctp) including C language header files (netinet/sctp.h) for accessing SCTP
374 specific application programming interfaces not provided by the standard
375 sockets, and also some helper utilities around SCTP.")
376 (home-page "http://lksctp.sourceforge.net/")
384 (define-public knockd
390 (uri (string-append "https://www.zeroflux.org/proj/knock/files/knock-"
394 "193qcpsy7v51c6awhg9652l5blyz8vp6n7y6fi7l4rhh6af4ff4r"))))
395 (build-system gnu-build-system)
397 `(("libpcap" ,libpcap)))
398 (home-page "https://www.zeroflux.org/projects/knock")
399 (synopsis "Small port-knock daemon")
400 (description "@command{knockd} is a port-knock daemon. It listens to all traffic on
401 an ethernet or PPP interface, looking for special \"knock\" sequences of @dfn{port-hits}
402 (UDP/TCP packets sent to a server port). This port need not be open, since knockd listens
403 at the link-layer level.")
404 (license license:gpl2+)))
414 (url "https://github.com/nanomsg/nng.git")
415 (commit (string-append "v" version))))
416 (file-name (git-file-name name version))
418 (base32 "0a4jg8alh2h0rw6fb4dqpvk4hgl2a7h76mq7g34fy89qh9sgg1a4"))))
419 (build-system cmake-build-system)
422 (list "-DNNG_ENABLE_COVERAGE=ON"
423 "-DNNG_ENABLE_TLS=ON"
424 "-DBUILD_SHARED_LIBS=ON")
426 (modify-phases %standard-phases
427 (add-after 'unpack 'disable-failing-tests
429 ;; These tests require network access.
430 (substitute* "tests/CMakeLists.txt"
431 (("add_nng_test1\\(httpclient 60 NNG_SUPP_HTTP\\)") "")
432 (("add_nng_test1\\(resolv 10 NNG_STATIC_LIB\\)") "")
433 (("add_nng_test\\(tls 60\\)") ""))
438 `(("mbedtls" ,mbedtls-apache)))
439 (synopsis "Lightweight messaging library")
440 (description "NNG project is a rewrite of the scalability protocols library
441 known as libnanomsg, and adds significant new capabilities, while retaining
442 compatibility with the original. It is a lightweight, broker-less library,
443 offering a simple API to solve common recurring messaging problems, such as
444 publish/subscribe, RPC-style request/reply, or service discovery.")
445 (home-page "https://nng.nanomsg.org/")
446 (license license:expat)))
448 (define-public nanomsg
457 (url "https://github.com/nanomsg/nanomsg.git")
459 (file-name (git-file-name name version))
461 (base32 "01ddfzjlkf2dgijrmm3j3j8irccsnbgfvjcnwslsfaxnrmrq5s64"))))
462 (build-system cmake-build-system)
463 (outputs '("out" "doc"))
467 "-DNN_ENABLE_COVERAGE=ON")
469 (modify-phases %standard-phases
470 (add-after 'install 'move-docs
471 (lambda* (#:key outputs #:allow-other-keys)
472 (let* ((out (assoc-ref outputs "out"))
473 (doc (assoc-ref outputs "doc")))
474 (mkdir-p (string-append doc "/share/doc"))
476 (string-append out "/share/doc/nanomsg")
477 (string-append doc "/share/doc/nanomsg"))
480 `(("asciidoctor" ,ruby-asciidoctor)
481 ("pkg-config" ,pkg-config)))
482 (synopsis "Scalable socket library")
483 (description "Nanomsg is a socket library that provides several common
484 communication patterns. It aims to make the networking layer fast, scalable,
485 and easy to use. Implemented in C, it works on a wide range of operating
486 systems with no further dependencies.")
487 (home-page "https://nanomsg.org/")
488 (license (license:non-copyleft "file:///COPYING"))))
490 (define-public blueman
497 (uri (string-append "https://github.com/blueman-project/blueman/releases"
498 "/download/" version "/blueman-" version ".tar.xz"))
500 (base32 "1pngqbwapbvywhkmflapqvs0wa0af7d1a87wy56l5hg2r462xl1v"))))
501 (build-system glib-or-gtk-build-system)
503 `(#:configure-flags (list "--enable-polkit"
504 "--without-systemdsystemunitdir" ; Not required
505 "--without-systemduserunitdir") ; Not required
507 (modify-phases %standard-phases
508 ;; Python references are not being patched in patch-phase of build,
509 ;; despite using python-wrapper as input. So we patch them manually.
510 (add-after 'unpack 'patch-python-references
511 (lambda* (#:key inputs #:allow-other-keys)
512 (with-directory-excursion "apps"
513 (substitute* '("blueman-adapters.in" "blueman-applet.in"
514 "blueman-assistant.in" "blueman-manager.in"
515 "blueman-mechanism.in" "blueman-report.in"
516 "blueman-rfcomm-watcher.in" "blueman-sendto.in"
517 "blueman-services.in" "blueman-tray.in")
518 (("@PYTHON@") (string-append (assoc-ref inputs "python")
520 ,(version-major+minor
521 (package-version python))))))
523 ;; Fix loading of external programs.
524 (add-after 'unpack 'patch-external-programs
525 (lambda* (#:key inputs #:allow-other-keys)
526 (substitute* '("apps/blueman-report.in" "blueman/main/NetConf.py"
527 "blueman/main/PPPConnection.py")
528 (("/usr/sbin/bluetoothd")
529 (string-append (assoc-ref inputs "bluez")
530 "/libexec/bluetooth/bluetoothd"))
532 (string-append (assoc-ref inputs "iptables")
535 (string-append (assoc-ref inputs "ppp")
538 ;; Fix loading of pulseaudio libraries.
539 (add-after 'unpack 'patch-pulseaudio-libraries
540 (lambda* (#:key inputs #:allow-other-keys)
541 (let* ((pulseaudio (assoc-ref inputs "pulseaudio"))
542 (pulse (string-append pulseaudio "/lib/libpulse.so.0"))
543 (pulse-glib (string-append pulseaudio
544 "/lib/libpulse-mainloop-glib.so.0")))
545 (with-directory-excursion "blueman/main"
546 (substitute* "PulseAudioUtils.py"
547 (("libpulse.so.0") pulse)
548 (("libpulse-mainloop-glib.so.0") pulse-glib)))
550 ;; Fix running of blueman programs.
551 (add-after 'glib-or-gtk-wrap 'wrap-blueman-progs
552 (lambda* (#:key outputs #:allow-other-keys)
553 (let* ((out (assoc-ref outputs "out"))
554 (bin (string-append out "/bin/blueman-"))
555 (libexec (string-append out "/libexec/blueman-"))
556 (lib (string-append out "/lib/python"
557 ,(version-major+minor
558 (package-version python))
562 (wrap-program program
563 `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,lib))
564 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))))
566 (map (lambda (prog) (string-append bin prog))
567 '("adapters" "applet" "assistant" "manager" "report"
568 "sendto" "services" "tray"))
569 (map (lambda (prog) (string-append libexec prog))
570 '("mechanism" "rfcomm-watcher"))))
573 `(("cython" ,python-cython)
574 ("glib:bin" ,glib "bin")
575 ("gobject-introspection" ,gobject-introspection)
576 ("gtk+:bin" ,gtk+ "bin")
577 ("intltool" ,intltool)
578 ("pkg-config" ,pkg-config)))
582 ("gdkpixbuf" ,gdk-pixbuf+svg)
585 ("iproute2" ,iproute)
586 ("iptables" ,iptables)
587 ("net-tools" ,net-tools)
591 ("pulseaudio" ,pulseaudio)
592 ("pycairo" ,python-pycairo)
593 ("pygobject" ,python-pygobject)
594 ("python" ,python-wrapper)
595 ("libappindicator" ,libappindicator)
596 ("libnm" ,network-manager)))
597 (synopsis "GTK+ Bluetooth manager")
598 (description "Blueman is a Bluetooth management utility using the Bluez
599 D-Bus backend. It is designed to be easy to use for most common Bluetooth
601 (home-page "https://github.com/blueman-project/blueman")
602 (license license:gpl3+)))
604 ;; The gnu.org ‘home’ for this GNU project is a directory listing with 1.6.0 as
605 ;; the latest version. The author's git repository, mentioned in the 1.6.0
606 ;; README and otherwise legit-looking, contains a proper 1.7.0 release tarball
607 ;; with many OUI updates. Use it, even though it's also several years old now.
608 (define-public macchanger
615 (uri (string-append "https://github.com/alobbs/macchanger/"
616 "releases/download/" version "/"
617 name "-" version ".tar.gz"))
619 (base32 "1gs5m0jxyprdp00w2qkbnaqm3ilkjz0q1gqdg4nzdm8g4xy73qns"))))
620 (build-system gnu-build-system)
621 (home-page "https://www.gnu.org/software/macchanger/")
622 (synopsis "Viewing and manipulating MAC addresses of network interfaces")
623 (description "GNU MAC Changer is a utility for viewing and changing MAC
624 addresses of networking devices. New addresses may be set explicitly or
625 randomly. They can include MAC addresses of the same or other hardware vendors
626 or, more generally, MAC addresses of the same category of hardware.")
627 (license license:gpl2+)))
629 (define-public miredo
635 (uri (string-append "http://www.remlab.net/files/miredo/miredo-"
639 "0j9ilig570snbmj48230hf7ms8kvcwi2wblycqrmhh85lksd49ps"))))
640 (build-system gnu-build-system)
643 (modify-phases %standard-phases
644 ;; The checkconf test in src/ requires network access.
646 'check 'disable-checkconf-test
648 (substitute* "src/Makefile"
649 (("^TESTS = .*") "TESTS = \n"))
651 (home-page "https://www.remlab.net/miredo/")
652 (synopsis "Teredo IPv6 tunneling software")
654 "Miredo is an implementation (client, relay, server) of the Teredo
655 specification, which provides IPv6 Internet connectivity to IPv6 enabled hosts
656 residing in IPv4-only networks, even when they are behind a NAT device.")
657 (license license:gpl2+)))
659 (define-public ndisc6
665 (uri (string-append "https://www.remlab.net/files/ndisc6/ndisc6-"
669 "07swyar1hl83zxmd7fqwb2q0c0slvrswkcfp3nz5lknrk15dmcdb"))))
670 (build-system gnu-build-system)
671 (home-page "https://www.remlab.net/ndisc6/")
672 (synopsis "IPv6 diagnostic tools")
674 "NDisc6 is a collection of tools for IPv6 networking diagnostics.
675 It includes the following programs:
678 @item @command{ndisc6}: ICMPv6 Neighbor Discovery tool.
679 @item @command{rdisc6}: ICMPv6 Router Discovery tool.
680 @item @command{tcptraceroute6}: IPv6 traceroute over TCP.
681 @item @command{traceroute6}: IPv6 traceroute over UDP.
682 @item @command{rdnssd}: Recursive DNS Servers discovery daemon.
684 ;; The user can choose version 2 or 3 of the GPL, not later versions.
685 (license (list license:gpl2 license:gpl3))))
687 (define-public parprouted
693 (uri (string-append "https://www.hazard.maks.net/parprouted/"
694 "parprouted-" version ".tar.gz"))
697 "1z6yg28i0pv20jivyy82pxb38hsryj95inhj27bs6ja1bp4l6dnn"))))
698 (build-system gnu-build-system)
700 `(#:tests? #f ;no tests
701 #:phases (modify-phases %standard-phases
702 (add-after 'unpack 'insert-absolute-iproute-reference
703 (lambda* (#:key inputs #:allow-other-keys)
704 (let* ((iproute (assoc-ref inputs "iproute"))
705 (ip (string-append iproute "/sbin/ip")))
706 (substitute* "parprouted.c"
710 (lambda* (#:key outputs #:allow-other-keys)
711 (let* ((out (assoc-ref outputs "out"))
712 (sbin (string-append out "/sbin"))
713 (man8 (string-append out "/share/man/man8")))
714 ;; No configure script; hijack the phase to make
715 ;; the necessary arrangements.
716 (setenv "CC" ,(cc-for-target))
717 (for-each mkdir-p (list sbin man8))
718 (substitute* "Makefile"
719 (("/usr/local/sbin") sbin)
720 (("/usr/local/man/man8") man8))
723 `(("iproute" ,iproute)))
724 (home-page "https://www.hazard.maks.net/parprouted/")
725 (synopsis "Proxy ARP requests to other interfaces")
727 "@command{parprouted} is a daemon for transparent IP (Layer@tie{}3)
728 proxy ARP bridging. Unlike standard bridging, proxy ARP bridging can bridge
729 Ethernet networks behind wireless nodes. Normal layer@tie{}2 bridging does
730 not work between wireless nodes because wireless does not know about MAC
731 addresses used in the wired Ethernet networks. This daemon can also be
732 useful for making transparent firewalls.")
733 (license license:gpl2)))
742 "http://www.dest-unreach.org/socat/download/socat-"
746 "1z7xgnwiqpcv1j6aghhj9nqbx7cg3gpc4n9j7vi9hm7nhv5788wp"))))
747 (build-system gnu-build-system)
748 (arguments '(#:tests? #f)) ; no test suite
749 (inputs `(("openssl" ,openssl)))
750 (home-page "http://www.dest-unreach.org/socat/")
752 "Open bidirectional communication channels from the command line")
754 "socat is a relay for bidirectional data transfer between two independent
755 data channels---files, pipes, devices, sockets, etc. It can create
756 \"listening\" sockets, named pipes, and pseudo terminals.
758 socat can be used, for instance, as TCP port forwarder, as a shell interface
759 to UNIX sockets, IPv6 relay, for redirecting TCP oriented programs to a serial
760 line, to logically connect serial lines on different computers, or to
761 establish a relatively secure environment (su and chroot) for running client
762 or server shell scripts with network connections.")
763 (license license:gpl2)))
765 (define-public tcp-wrappers
767 (name "tcp-wrappers")
772 "ftp://ftp.porcupine.org/pub/security/tcp_wrappers_"
776 "0p9ilj4v96q32klavx0phw9va21fjp8vpk11nbh6v2ppxnnxfhwm"))))
777 (build-system gnu-build-system)
780 (modify-phases %standard-phases
781 (delete 'configure) ; there is no configure script
782 (delete 'check) ; there are no tests
786 ;; Upstream doesn't generate a shared library. So we have to do it.
787 (setenv "CC" "gcc -fno-builtin -fPIC")
788 (substitute* "Makefile"
789 (("^(all[^\n]*)" line) (string-append line " libwrap.so\n
790 libwrap.so: $(LIB_OBJ)\n
791 \tgcc -shared $^ -o $@\n")))
792 ;; Deal with some gcc breakage.
793 (substitute* "percent_m.c"
794 (("extern char .sys_errlist.*;") ""))
795 (substitute* "scaffold.c"
796 (("extern char .malloc.*;") ""))
797 ;; This, believe it or not, is the recommended way to build!
798 (invoke "make" "REAL_DAEMON_DIR=/etc" "linux")))
799 ;; There is no make install stage, so we have to do it ourselves.
802 (let ((out (assoc-ref %outputs "out"))
803 (man-pages `("hosts_access.3"
811 (headers `("tcpd.h"))
812 (bins `("safe_finger"
819 (install-file x (string-append out "/include")))
823 (install-file x (string-append out "/share/man/man"
824 (string-take-right x 1))))
828 (install-file x (string-append out "/lib/")))
832 (install-file x (string-append out "/bin/")))
835 (home-page "http://www.porcupine.org")
836 (synopsis "Monitor and filter incoming requests for network services")
837 (description "With this package you can monitor and filter incoming requests for
838 network services. It includes a library which may be used by daemons to
839 transparently check connection attempts against an access control list.")
840 (license (license:non-copyleft "file://DISCLAIMER"
841 "See the file DISCLAIMER in the distribution."))))
843 (define-public zeromq
849 (uri (string-append "https://github.com/zeromq/libzmq/releases"
850 "/download/v" version "/zeromq-" version ".tar.gz"))
853 "18km71p77jm1w7wly2a5mxvphjb0f2l6s08cg382x55f6zdqb4lx"))))
854 (build-system gnu-build-system)
855 (home-page "https://zeromq.org")
856 (synopsis "Library for message-based applications")
858 "The 0MQ lightweight messaging kernel is a library which extends the
859 standard socket interfaces with features traditionally provided by specialized
860 messaging middle-ware products. 0MQ sockets provide an abstraction of
861 asynchronous message queues, multiple messaging patterns, message
862 filtering (subscriptions), seamless access to multiple transport protocols and
864 (license license:lgpl3+)))
873 "https://github.com/zeromq/" name
874 "/releases/download/v" version
875 "/" name "-" version ".tar.gz"))
878 "1szciz62sk3fm4ga9qjpxz0n0lazvphm32km95bq92ncng12kayg"))))
879 (build-system gnu-build-system)
881 '(#:configure-flags '("--enable-drafts")
882 #:phases (modify-phases %standard-phases
883 (add-before 'check 'patch-tests
885 ;; XXX FIXME: Disable the zproc test, which fails on some
886 ;; hardware: <https://github.com/zeromq/czmq/issues/2007>.
887 (substitute* "src/czmq_selftest.c"
888 (("\\{ \"zproc\", zproc_test.*")
892 `(("zeromq" ,zeromq)))
893 (home-page "https://zeromq.org")
894 (synopsis "High-level C bindings for ØMQ")
896 "czmq provides bindings for the ØMQ core API that hides the differences
897 between different versions of ØMQ.")
898 (license license:mpl2.0)))
900 (define-public cppzmq
907 (url "https://github.com/zeromq/cppzmq")
908 (commit (string-append "v" version))))
911 "19acx2bzi4n6fdnfgkja1nds7m1bwg8lw5vfcijrx9fv75pa7m8h"))
912 (file-name (git-file-name name version))))
913 (build-system cmake-build-system)
915 '(;; FIXME: The test suite requires downloading Catch and custom
916 ;; CMake targets, and refuses to use the system version.
917 ;; See <https://github.com/zeromq/cppzmq/issues/334>.
919 #:configure-flags '("-DCPPZMQ_BUILD_TESTS=OFF")))
921 `(("pkg-config" ,pkg-config)))
923 `(("zeromq" ,zeromq)))
924 (home-page "https://zeromq.org")
925 (synopsis "C++ bindings for the ØMQ messaging library")
927 "This package provides header-only C++ bindings for ØMQ. The header
928 files contain direct mappings of the abstractions provided by the ØMQ C API.")
929 (license license:expat)))
931 (define-public libnatpmp
938 "http://miniupnp.free.fr/files/"
939 name "-" version ".tar.gz"))
942 "1c1n8n7mp0amsd6vkz32n8zj3vnsckv308bb7na0dg0r8969rap1"))))
943 (build-system gnu-build-system)
946 (modify-phases %standard-phases
948 (delete 'check)) ; no tests
950 (let* ((target ,(%current-target-system))
952 (string-append target "-gcc")
955 (string-append "CC=" gcc)
956 (string-append "INSTALLPREFIX=" (assoc-ref %outputs "out"))
957 (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib")))))
958 (home-page "http://miniupnp.free.fr/libnatpmp.html")
959 (synopsis "C library implementing NAT-PMP")
961 "@code{libnatpmp} is a portable and asynchronous implementation of
962 the Network Address Translation - Port Mapping Protocol (NAT-PMP)
963 written in the C programming language.")
964 (license license:bsd-3)))
966 (define-public librdkafka
973 (url "https://github.com/edenhill/librdkafka")
974 (commit (string-append "v" version))))
975 (file-name (git-file-name name version))
978 "05mgrdzacn9kdpr68r5j0cvsvl54s52glnsc1ww9rcxx6p7hq1ly"))))
979 (build-system gnu-build-system)
982 (modify-phases %standard-phases
984 ;; its custom configure script doesn't understand 'CONFIG_SHELL'.
985 (lambda* (#:key outputs #:allow-other-keys)
986 (let ((out (assoc-ref outputs "out")))
987 ;; librdkafka++.so lacks RUNPATH for librdkafka.so
989 (string-append "-Wl,-rpath=" out "/lib"))
990 (invoke "./configure"
991 (string-append "--prefix=" out))))))))
993 `(("python" ,python-wrapper)))
995 `(("zlib" ,zlib))) ; in the Libs.private field of rdkafka.pc
996 (home-page "https://github.com/edenhill/librdkafka")
997 (synopsis "Apache Kafka C/C++ client library")
999 "librdkafka is a C library implementation of the Apache Kafka protocol,
1000 containing both Producer and Consumer support.")
1001 (license license:bsd-2)))
1003 (define-public libndp
1009 (uri (string-append "https://libndp.org/files/"
1010 "libndp-" version ".tar.gz"))
1013 "1dlinhl39va00v55qygjc9ap77yqf7xvn4rwmvdr49xhzzxhlj1c"))))
1014 (build-system gnu-build-system)
1015 (home-page "https://libndp.org/")
1016 (synopsis "Library for Neighbor Discovery Protocol")
1018 "libndp contains a library which provides a wrapper for IPv6 Neighbor
1019 Discovery Protocol. It also provides a tool named ndptool for sending and
1020 receiving NDP messages.")
1021 (license license:lgpl2.1+)))
1023 (define-public ethtool
1029 (uri (string-append "mirror://kernel.org/software/network/"
1030 "ethtool/ethtool-" version ".tar.xz"))
1033 "0ikmz36bdfwxscsfcgjmyzg70hwr8i3wpdhcp1vmk3q4ip858frg"))))
1034 (build-system gnu-build-system)
1036 `(("pkg-config" ,pkg-config)))
1038 `(("libmnl" ,libmnl)))
1039 (home-page "https://www.kernel.org/pub/software/network/ethtool/")
1040 (synopsis "Display or change Ethernet device settings")
1042 "ethtool can be used to query and change settings such as speed,
1043 auto-negotiation and checksum offload on many network devices, especially
1045 (license license:gpl2)))
1047 (define-public ifstatus
1053 (uri (string-append "mirror://sourceforge/ifstatus/ifstatus/"
1054 "ifstatus%20v" version "/ifstatus-v"
1058 "045cbsq9ps32j24v8y5hpyqxnqn9mpaf3mgvirlhgpqyb9jsia0c"))
1059 (modules '((guix build utils)))
1062 (substitute* "Main.h"
1063 (("#include <stdio.h>")
1064 "#include <stdio.h>\n#include <stdlib.h>"))
1066 (build-system gnu-build-system)
1068 '(#:tests? #f ; no "check" target
1070 (modify-phases %standard-phases
1071 (delete 'configure) ; no configure script
1073 (lambda* (#:key outputs #:allow-other-keys)
1074 (let* ((out (assoc-ref outputs "out"))
1075 (bin (string-append out "/bin")))
1077 (copy-file "ifstatus"
1078 (string-append bin "/ifstatus")))
1080 (inputs `(("ncurses" ,ncurses)))
1081 (home-page "http://ifstatus.sourceforge.net/graphic/index.html")
1082 (synopsis "Text based network interface status monitor")
1084 "IFStatus is a simple, easy-to-use program for displaying commonly
1085 needed/wanted real-time traffic statistics of multiple network
1086 interfaces, with a simple and efficient view on the command line. It is
1087 intended as a substitute for the PPPStatus and EthStatus projects.")
1088 (license license:gpl2+)))
1090 (define-public iputils
1093 (version "20190709")
1094 (home-page "https://github.com/iputils/iputils")
1097 (uri (git-reference (url home-page)
1098 (commit (string-append "s" version))))
1099 (file-name (git-file-name name version))
1100 (patches (search-patches "iputils-libcap-compat.patch"))
1103 "04bp4af15adp79ipxmiakfp0ij6hx5qam266flzbr94pr8z8l693"))))
1104 (build-system meson-build-system)
1106 `(#:configure-flags '("-DBUILD_RARPD=true")
1108 (modify-phases %standard-phases
1109 (add-after 'unpack 'fix-docbook-url
1110 (lambda* (#:key inputs #:allow-other-keys)
1111 (let* ((docbook-xsl (assoc-ref inputs "docbook-xsl"))
1112 (uri (string-append docbook-xsl "/xml/xsl/docbook-xsl-"
1113 ,(package-version docbook-xsl))))
1117 (("http://docbook\\.sourceforge\\.net/release/xsl-ns/current")
1119 (cons "doc/meson.build"
1120 (find-files "doc" "\\.xsl$")))
1123 `(("gettext" ,gettext-minimal)
1124 ("pkg-config" ,pkg-config)
1125 ("docbook-xsl" ,docbook-xsl)
1126 ("docbook-xml" ,docbook-xml-5)
1127 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
1128 ("xsltproc" ,libxslt)))
1130 `(("libcap" ,libcap)
1131 ("libidn2" ,libidn2)
1132 ("openssl" ,openssl)))
1133 (synopsis "Collection of network utilities")
1135 "This package contains a variety of tools for dealing with network
1136 configuration, troubleshooting, or servers. Utilities included are:
1139 @item @command{arping}: Ping hosts using the @dfn{Address Resolution Protocol}.
1140 @item @command{clockdiff}: Compute time difference between network hosts
1141 using ICMP TSTAMP messages.
1142 @item @command{ninfod}: Daemon that responds to IPv6 Node Information Queries.
1143 @item @command{ping}: Use ICMP ECHO messages to measure round-trip delays
1144 and packet loss across network paths.
1145 @item @command{rarpd}: Answer RARP requests from clients.
1146 @item @command{rdisc}: Populate network routing tables with information from
1147 the ICMP router discovery protocol.
1148 @item @command{tftpd}: Trivial file transfer protocol server.
1149 @item @command{tracepath}: Trace network path to an IPv4 or IPv6 address and
1150 discover MTU along the way.
1152 ;; The various utilities are covered by different licenses, see LICENSE
1154 (license (list license:gpl2+ ;arping, rarpd, tracepath
1155 license:bsd-3 ;clockdiff, ninfod, ping, tftpd
1156 (license:non-copyleft
1157 "https://spdx.org/licenses/Rdisc.html"
1158 "Sun Microsystems license, see rdisc.c for details")))))
1160 (define-public nload
1166 (uri (string-append "mirror://sourceforge/nload/nload/" version
1167 "/nload-" version ".tar.gz"))
1170 "1rb9skch2kgqzigf19x8bzk211jdfjfdkrcvaqyj89jy2pkm3h61"))))
1171 (build-system gnu-build-system)
1172 (inputs `(("ncurses" ,ncurses)))
1173 (home-page "http://www.roland-riegel.de/nload/")
1174 (synopsis "Realtime console network usage monitor")
1176 "Nload is a console application which monitors network traffic and
1177 bandwidth usage in real time. It visualizes the in- and outgoing traffic using
1178 two graphs, and provides additional info like total amount of transferred data
1179 and min/max network usage.")
1180 (license license:gpl2+)))
1182 (define-public iodine
1188 (uri (string-append "http://code.kryo.se/" name "/"
1189 name "-" version ".tar.gz"))
1192 "0gh17kcxxi37k65zm4gqsvbk3aw7yphcs3c02pn1c4s2y6n40axd"))))
1193 (build-system gnu-build-system)
1196 (modify-phases %standard-phases
1198 (add-before 'build 'fix-ifconfig-path
1199 ;; This package works only with the net-tools version of ifconfig.
1200 (lambda* (#:key inputs #:allow-other-keys)
1201 (substitute* "src/tun.c"
1203 (string-append (assoc-ref inputs "net-tools") "/bin/")))
1205 (add-before 'check 'delete-failing-tests
1206 ;; Avoid https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802105.
1208 (substitute* "tests/common.c"
1209 (("tcase_add_test\\(tc, \
1210 test_parse_format_ipv(4(|_listen_all|_mapped_ipv6)|6)\\);")
1213 #:make-flags (list "CC=gcc"
1214 (string-append "prefix=" (assoc-ref %outputs "out")))
1215 #:test-target "test"))
1216 (inputs `(("net-tools" ,net-tools)
1218 (native-inputs `(("check" ,check)
1219 ("pkg-config" ,pkg-config)))
1220 (home-page "https://code.kryo.se/iodine/")
1221 (synopsis "Tunnel IPv4 data through a DNS server")
1222 (description "Iodine tunnels IPv4 data through a DNS server. This
1223 can be useful in different situations where internet access is firewalled, but
1224 DNS queries are allowed. The bandwidth is asymmetrical, with limited upstream
1225 and up to 1 Mbit/s downstream.")
1226 ;; src/md5.[ch] is released under the zlib license
1227 (license (list license:isc license:zlib))))
1229 (define-public whois
1236 (uri (string-append "mirror://debian/pool/main/w/whois/"
1237 "whois_" version ".tar.xz"))
1239 (base32 "0kpi981zjczvdcxfcq455c529vlaxa73x8kbm530z5b01h0fk8fb"))))
1240 (build-system gnu-build-system)
1242 `(#:tests? #f ; no test suite
1243 #:make-flags (list "CC=gcc"
1244 (string-append "prefix=" (assoc-ref %outputs "out")))
1246 (modify-phases %standard-phases
1247 (delete 'configure) ; no configure script
1248 (add-before 'build 'setenv
1250 (setenv "HAVE_ICONV" "1")
1253 `(("libidn2" ,libidn2)))
1255 `(("gettext" ,gettext-minimal)
1257 ("pkg-config" ,pkg-config)))
1258 (synopsis "Intelligent client for the WHOIS directory service")
1260 "whois searches for an object in a @dfn{WHOIS} (RFC 3912) database.
1261 It is commonly used to look up the registered users or assignees of an Internet
1262 resource, such as a domain name, an IP address block, or an autonomous system.
1263 It can automatically select the appropriate server for most queries.
1265 For historical reasons, this package also includes @command{mkpasswd}, which
1266 encrypts passwords using @code{crypt(3)} and is unrelated to the Expect command
1268 (home-page "https://github.com/rfc1036/whois")
1269 (license license:gpl2+)))
1271 (define-public wireshark
1278 (uri (string-append "https://www.wireshark.org/download/src/wireshark-"
1281 (base32 "1nkhglzxj05hwhgzrgan4glv0z67rmasf9djx1dmqicwdnw2z0xy"))))
1282 (build-system cmake-build-system)
1285 (modify-phases %standard-phases
1286 (add-after 'unpack 'remove-failing-test
1287 ;; Test 31/32 fails with errors like "Program reassemble_test is
1288 ;; not available". Skipping it for now.
1290 (substitute* "CMakeLists.txt"
1291 (("suite_unittests" all) (string-append "# " all)))
1293 ;; Build process chokes during `validate-runpath' phase.
1295 ;; Errors are like the following:
1296 ;; "/gnu/store/...wireshark-3.0.0/lib/wireshark/plugins/3.0/epan/ethercat.so:
1297 ;; error: depends on 'libwireshark.so.12', which cannot be found in
1298 ;; RUNPATH". That is, "/gnu/store/...wireshark-3.0.0./lib" doesn't
1299 ;; belong to RUNPATH.
1301 ;; That’s not a problem in practice because "ethercat.so" is a plugin,
1302 ;; so it’s dlopen’d by a process that already provides "libwireshark".
1303 ;; For now, we disable this phase.
1304 #:validate-runpath? #f))
1306 `(("c-ares" ,c-ares)
1310 ("libgcrypt" ,libgcrypt)
1312 ("libpcap" ,libpcap)
1314 ("libxml2" ,libxml2)
1316 ("lua" ,lua-5.2) ;Lua 5.3 unsupported
1319 ("qtmultimedia" ,qtmultimedia)
1326 ("doxygen" ,doxygen)
1328 ("gettext" ,gettext-minimal)
1330 ("pkg-config" ,pkg-config)
1331 ("python" ,python-wrapper)
1332 ("qttools" ,qttools)))
1333 (synopsis "Network traffic analyzer")
1334 (description "Wireshark is a network protocol analyzer, or @dfn{packet
1335 sniffer}, that lets you capture and interactively browse the contents of
1337 (home-page "https://www.wireshark.org/")
1338 (license license:gpl2+)))
1340 (define-public fping
1347 (uri (string-append "https://fping.org/dist/fping-"
1350 (base32 "1f2prmii4fyl44cfykp40hp4jjhicrhddh9v3dfs11j6nsww0f7d"))))
1351 (build-system gnu-build-system)
1352 (home-page "https://fping.org/")
1353 (synopsis "Send ICMP ECHO_REQUEST packets to network hosts")
1355 "fping is a ping-like program which uses @acronym{ICMP, Internet Control
1356 Message Protocol} echo requests to determine if a target host is responding.
1358 @command{fping} differs from @command{ping} in that you can specify any number
1359 of targets on the command line, or specify a file containing the lists of
1360 targets to ping. Instead of sending to one target until it times out or
1361 replies, fping will send out a ping packet and move on to the next target in a
1362 round-robin fashion.")
1363 (license license:expat)))
1365 (define-public gandi.cli
1372 (uri (pypi-uri name version))
1374 (base32 "110wc9zgxsrvw4yzp21p0ian5lcf7vhcpxhnmsc4fg9pzl2bwxd5"))))
1375 (build-system python-build-system)
1378 (modify-phases %standard-phases
1379 (add-after 'unpack 'embed-store-file-names
1381 (substitute* (list "gandi/cli/modules/cert.py"
1382 "gandi/cli/tests/commands/test_certificate.py")
1383 (("openssl") (which "openssl")))
1385 (add-after 'install 'install-documentation
1386 ;; The included man page may be outdated but we install it anyway,
1387 ;; since it's mentioned in 'gandi --help' and better than nothing.
1388 (lambda* (#:key outputs #:allow-other-keys)
1389 (let* ((out (assoc-ref outputs "out"))
1390 (man1 (string-append out "/share/man/man1")))
1392 (with-output-to-file (string-append man1 "/gandi.1")
1394 (invoke "rst2man.py" "gandicli.man.rst")))
1397 `(("python-docutils" ,python-docutils) ; for rst2man.py
1398 ("python-pytest-cov" ,python-pytest-cov)
1399 ("python-tox" ,python-tox)))
1401 `(("openssl" ,openssl)
1402 ("python-click" ,python-click)
1403 ("python-ipy" ,python-ipy)
1404 ("python-pyyaml" ,python-pyyaml)
1405 ("python-requests" ,python-requests)))
1406 (home-page "https://cli.gandi.net")
1407 (synopsis "Command-line interface to the Gandi.net Web API")
1409 "This package provides a command-line client (@command{gandi}) to buy,
1410 manage, and delete Internet resources from Gandi.net such as domain names,
1411 virtual machines, and certificates.")
1412 (license license:gpl3+)))
1414 (define-public go-netns
1415 (let ((commit "13995c7128ccc8e51e9a6bd2b551020a27180abd")
1419 (version (git-version "0.0.0" revision commit))
1423 (url "https://github.com/vishvananda/netns")
1425 (file-name (git-file-name name version))
1428 "1zk6w8158qi4niva5rijchbv9ixgmijsgqshh54wdaav4xrhjshn"))))
1429 (build-system go-build-system)
1431 `(#:import-path "github.com/vishvananda/netns"
1432 #:tests? #f)) ;tests require root privileges
1433 (home-page "https://github.com/vishvananda/netns")
1434 (synopsis "Simple network namespace handling for Go")
1435 (description "The netns package provides a simple interface for
1436 handling network namespaces in Go.")
1437 (license license:asl2.0))))
1439 (define-public go-sctp
1440 ;; docker-libnetwork-cmd-proxy requires this exact commit.
1441 ;; This commit is mentioned in docker-libnetwork-cmd-proxy's vendor.conf.
1442 (let ((commit "6e2cb1366111dcf547c13531e3a263a067715847")
1446 (version (git-version "0.0.0" revision commit))
1450 (url "https://github.com/ishidawataru/sctp")
1452 (file-name (git-file-name name version))
1455 "1ba90fmpdwxa1ba4hrsjhi3gfy3pwmz7x8amw1p5dc9p5a7nnqrb"))))
1456 (build-system go-build-system)
1458 `(#:tests? #f ; Test suite is flakey.
1459 #:import-path "github.com/ishidawataru/sctp"))
1460 (home-page "https://github.com/ishidawataru/sctp")
1461 (synopsis "SCTP library for the Go programming language")
1462 (description "This library provides methods for using the stream control
1463 transmission protocol (SCTP) in a Go application.")
1464 (license license:asl2.0))))
1466 (define-public httping
1473 (uri (string-append "https://www.vanheusden.com/httping/httping-"
1477 "1y7sbgkhgadmd93x1zafqc4yp26ssiv16ni5bbi9vmvvdl55m29y"))))
1478 (build-system gnu-build-system)
1480 `(("gettext" ,gettext-minimal)))
1483 ("ncurses" ,ncurses)
1484 ("openssl" ,openssl)))
1486 `(#:make-flags (list "CC=gcc"
1487 (string-append "DESTDIR=" (assoc-ref %outputs "out"))
1489 #:tests? #f)) ; no tests
1490 (home-page "https://www.vanheusden.com/httping/")
1491 (synopsis "Web server latency and throughput monitor")
1493 "httping measures how long it takes to connect to a web server, send an
1494 HTTP(S) request, and receive the reply headers. It is somewhat similar to
1495 @command{ping}, but can be used even in cases where ICMP traffic is blocked
1496 by firewalls or when you want to monitor the response time of the actual web
1497 application stack itself.")
1498 (license license:gpl2))) ; with permission to link with OpenSSL
1500 (define-public httpstat
1507 (uri (pypi-uri "httpstat" version))
1510 "1chw2nk56vaq87aba012a270k9na06hfx1pfbsrc3jfvlc2kb9hb"))))
1511 (build-system python-build-system)
1512 (inputs `(("curl" ,curl)))
1515 (modify-phases %standard-phases
1516 (add-before 'build 'fix-curl-path
1517 (lambda* (#:key inputs #:allow-other-keys)
1518 (substitute* "httpstat.py"
1519 (("ENV_CURL_BIN.get\\('curl'\\)")
1520 (string-append "ENV_CURL_BIN.get('"
1521 (assoc-ref inputs "curl")
1524 (home-page "https://github.com/reorx/httpstat")
1525 (synopsis "Visualize curl statistics")
1527 "@command{httpstat} is a tool to visualize statistics from the
1528 @command{curl} HTTP client. It acts as a wrapper for @command{curl} and
1529 prints timing information for each step of the HTTP request (DNS lookup,
1530 TCP connection, TLS handshake and so on) in the terminal.")
1531 (license license:expat)))
1533 (define-public squid
1540 (uri (string-append "http://www.squid-cache.org/Versions/v4/squid-"
1543 (base32 "1q1ywpic6s7dfjj3cwzcfgscc4zq0aih462gyas7j1z683ss14b8"))))
1544 (build-system gnu-build-system)
1547 (modify-phases %standard-phases
1548 (add-before 'build 'fix-true-path
1549 (lambda* (#:key inputs #:allow-other-keys)
1550 (substitute* "test-suite/testheaders.sh"
1552 (string-append (assoc-ref inputs "coreutils")
1557 ("openldap" ,openldap)
1558 ("linux-pam" ,linux-pam)
1560 ("cyrus-sasl" ,cyrus-sasl)
1562 ("libxml2" ,libxml2)
1563 ("openssl" ,openssl)))
1565 `(("cppunit" ,cppunit)
1566 ("pkg-config" ,pkg-config)))
1567 (synopsis "Web caching proxy")
1568 (description "Squid is a caching proxy for the Web supporting HTTP, HTTPS,
1569 FTP, and more. It reduces bandwidth and improves response times by caching and
1570 reusing frequently-requested web pages.")
1571 (home-page "http://www.squid-cache.org/")
1572 (license license:gpl2+)))
1574 (define-public bwm-ng
1582 (url "https://github.com/vgropp/bwm-ng")
1583 (commit (string-append "v" version))))
1584 (file-name (git-file-name name version))
1586 (base32 "0k906wb4pw3dcqpcwnni78lahzi3bva483f8c17sjykic7as4y5n"))))
1587 (build-system gnu-build-system)
1590 (modify-phases %standard-phases
1591 (add-after 'unpack 'disable-premature-./configure
1593 (substitute* "autogen.sh"
1594 (("\\$srcdir/configure")
1598 `(("autoconf" ,autoconf)
1599 ("automake" ,automake)))
1601 `(("ncurses" ,ncurses)))
1602 (synopsis "Console based live network and disk I/O bandwidth monitor")
1603 (description "Bandwidth Monitor NG is a small and simple console based
1604 live network and disk I/O bandwidth monitor.")
1605 (home-page "https://www.gropp.org/?id=projects&sub=bwm-ng")
1606 (license license:gpl2)))
1608 (define-public aircrack-ng
1610 (name "aircrack-ng")
1615 (uri (string-append "https://download.aircrack-ng.org/aircrack-ng-"
1618 (base32 "0ix2k64qg7x3w0bzdsbk1m50kcpq1ws59g3zkwiafvpwdr4gs2sg"))))
1619 (build-system gnu-build-system)
1621 `(("autoconf" ,autoconf)
1622 ("automake" ,automake)
1623 ("libtool" ,libtool)
1624 ("pkg-config" ,pkg-config)
1627 `(("libgcrypt" ,libgcrypt)
1629 ("libpcap" ,libpcap)
1630 ("ethtool" ,ethtool)
1636 (list "--with-experimental=yes" ; build wesside-ng, etc.
1637 "--with-gcrypt") ; openssl's the default
1638 #:phases (modify-phases %standard-phases
1639 (add-before 'bootstrap 'patch-evalrev
1641 ;; Called by ./autogen.sh below, before the default
1642 ;; ‘patch-shebangs’ phase has had a chance to run.
1643 (substitute* "evalrev"
1647 (add-after 'build 'absolutize-tools
1648 (lambda* (#:key inputs #:allow-other-keys)
1649 (let ((ethtool (string-append (assoc-ref inputs "ethtool")
1651 (substitute* "scripts/airmon-ng"
1653 (string-append ethtool " ")))
1655 (home-page "https://www.aircrack-ng.org")
1656 (synopsis "Assess WiFi network security")
1658 "Aircrack-ng is a complete suite of tools to assess WiFi network
1659 security. It focuses on different areas of WiFi security: monitoring,
1660 attacking, testing, and cracking. All tools are command-line driven, which
1661 allows for heavy scripting.")
1662 (license (list license:gpl2+ license:bsd-3))))
1664 (define-public pixiewps
1671 "https://github.com/wiire-a/pixiewps/releases/"
1672 "download/v" version "/" name "-" version ".tar.xz"))
1675 "07nym6bqml0k9v29vnj003nrgnwrywgjvnljb7cdpsvnwilhbp64"))))
1676 (build-system gnu-build-system)
1680 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1682 (modify-phases %standard-phases
1683 (delete 'configure)) ; no configure script
1684 #:tests? #f)) ; there are no tests
1685 (home-page "https://github.com/wiire-a/pixiewps/")
1686 (synopsis "Offline brute-force tool for Wi-Fi Protected Setup")
1687 (description "Pixiewps implements the pixie-dust attack to brute
1688 force the Wi-Fi Protected Setup (WPS) PIN by exploiting the low or
1689 non-existing entropy of some access points.")
1690 (license license:gpl3+)))
1692 (define-public reaver
1699 "https://github.com/t6x/reaver-wps-fork-t6x/releases/"
1700 "download/v" version "/reaver-" version ".tar.xz"))
1703 "00k7mc81ifv0wma7k4v18mj498badbw5yls6c28qin3d1gda0ag3"))))
1704 (build-system gnu-build-system)
1707 ;; Save session files to current directory instead of /var.
1708 (list "--enable-savetocurrent"
1709 "--localstatedir=/tmp/dummy") ; prevent creating /var during install
1711 (modify-phases %standard-phases
1712 (add-before 'configure 'change-directory
1716 (add-after 'install 'install-doc
1717 (lambda* (#:key outputs #:allow-other-keys)
1719 (let* ((out (assoc-ref outputs "out"))
1720 (doc (string-append out "/share/doc/" ,name "-" ,version))
1721 (man1 (string-append out "/share/man/man1")))
1722 (for-each (lambda (file) (install-file file doc))
1723 (find-files "." "README.*"))
1724 (install-file "reaver.1" man1)
1726 #:tests? #f)) ; there are no tests
1728 `(("libpcap" ,libpcap)))
1730 `(("aircrack-ng" ,aircrack-ng)
1731 ("pixiewps" ,pixiewps)))
1732 (home-page "https://github.com/t6x/reaver-wps-fork-t6x/")
1733 (synopsis "Attack tool for Wi-Fi Protected Setup")
1734 (description "Reaver performs a brute force attack against an access
1735 point's Wi-Fi Protected Setup (WPS) PIN. Once the PIN is found, the WPA
1736 passphrase can be recovered and the AP's wireless settings can be
1738 (license license:gpl2+)))
1740 (define-public perl-danga-socket
1742 (name "perl-danga-socket")
1747 (uri (string-append "mirror://cpan/authors/id/N/NM/NML/"
1748 "Danga-Socket-" version ".tar.gz"))
1750 (base32 "0x4bvirmf0kphks19jwgva00zz73zx344218dfaiv8gigrw3yg4m"))))
1751 (build-system perl-build-system)
1753 `(("perl-test-tcp" ,perl-test-tcp)))
1755 `(("perl-sys-syscall" ,perl-sys-syscall)))
1756 (home-page "https://metacpan.org/release/Danga-Socket")
1757 (synopsis "Event loop and event-driven async socket base class")
1759 "Danga::Socket is an abstract base class for objects backed by a socket
1760 which provides the basic framework for event-driven asynchronous IO, designed
1761 to be fast. Danga::Socket is both a base class for objects, and an event
1763 (license license:perl-license)))
1765 (define-public perl-data-validate-ip
1767 (name "perl-data-validate-ip")
1773 "mirror://cpan/authors/id/D/DR/DROLSKY/Data-Validate-IP-"
1776 (base32 "1mmppyzsh1w2z2h86kvzqxy56wxgs62a3kf8nvcnz76bblir5ap1"))))
1777 (build-system perl-build-system)
1779 `(("perl-test-requires" ,perl-test-requires)))
1781 `(("perl-netaddr-ip" ,perl-netaddr-ip)))
1782 (home-page "https://metacpan.org/release/Data-Validate-IP")
1783 (synopsis "IPv4 and IPv6 validation methods")
1785 "This module provides several IP address validation subroutines that both
1786 validate and untaint their input. This includes both basic validation
1787 (@code{is_ipv4()} and @code{is_ipv6()}) and special cases like checking whether
1788 an address belongs to a specific network or whether an address is public or
1789 private (reserved).")
1790 (license license:perl-license)))
1792 (define-public perl-net-dns
1794 (name "perl-net-dns")
1801 (string-append "https://www.net-dns.org/download/Net-DNS-"
1803 (string-append "mirror://cpan/authors/id/N/NL/NLNETLABS/Net-DNS-"
1804 version ".tar.gz")))
1806 (base32 "0hdx5ajr34f39rycai090y9w8gq9v0shgziynaaj0rzk21vjfdpk"))))
1807 (build-system perl-build-system)
1809 `(("perl-digest-hmac" ,perl-digest-hmac)))
1810 (home-page "https://www.net-dns.org/")
1812 "Perl Interface to the Domain Name System")
1813 (description "Net::DNS is the Perl Interface to the Domain Name System.")
1814 (license license:x11)))
1816 (define-public perl-socket6
1818 (name "perl-socket6")
1824 "mirror://cpan/authors/id/U/UM/UMEMOTO/Socket6-"
1829 "054izici8klfxs8hr5rljib28plijpsfymy99xbzdp047bx1b2a6"))))
1830 (build-system perl-build-system)
1833 (modify-phases %standard-phases
1835 (lambda* (#:key outputs #:allow-other-keys)
1836 (let* ((out (assoc-ref outputs "out"))
1837 (args `("Makefile.PL"
1838 ,(string-append "PREFIX=" out)
1839 "INSTALLDIRS=site")))
1840 (setenv "CONFIG_SHELL" (which "sh"))
1841 (apply invoke "perl" args)))))))
1842 (home-page "https://metacpan.org/release/Socket6")
1844 "IPv6 related part of the C socket.h defines and structure manipulators for Perl")
1845 (description "Socket6 binds the IPv6 related part of the C socket header
1846 definitions and structure manipulators for Perl.")
1847 (license license:bsd-3)))
1849 (define-public perl-net-dns-resolver-programmable
1851 (name "perl-net-dns-resolver-programmable")
1857 "mirror://cpan/authors/id/J/JM/JMEHNLE/net-dns-resolver-programmable/"
1858 "Net-DNS-Resolver-Programmable-v" version ".tar.gz"))
1861 "1v3nl2kaj4fs55n1617n53q8sa3mir06898vpy1rq98zjih24h4d"))
1863 (search-patches "perl-net-dns-resolver-programmable-fix.patch"))))
1864 (build-system perl-build-system)
1866 `(("perl-module-build" ,perl-module-build)))
1867 (inputs `(("perl-net-dns" ,perl-net-dns)))
1869 "https://metacpan.org/release/Net-DNS-Resolver-Programmable")
1871 "Programmable DNS resolver class for offline emulation of DNS")
1872 (description "Net::DNS::Resolver::Programmable is a programmable DNS resolver for
1873 offline emulation of DNS.")
1874 (license license:perl-license)))
1876 (define-public perl-net-dns-resolver-mock
1878 (name "perl-net-dns-resolver-mock")
1879 (version "1.20171219")
1883 "mirror://cpan/authors/id/M/MB/MBRADSHAW/"
1884 "Net-DNS-Resolver-Mock-" version ".tar.gz"))
1887 "0m3rxpkv1b9121srvbqkrgzg4m8mnydiydqv34in1i1ixwrl6jn9"))))
1888 (build-system perl-build-system)
1890 `(("perl-net-dns" ,perl-net-dns)))
1891 (home-page "https://metacpan.org/release/Net-DNS-Resolver-Mock")
1892 (synopsis "Mock DNS Resolver object for testing")
1894 "Net::DNS::Resolver::Mock is a subclass of Net::DNS::Resolver, but returns
1895 static data from any provided DNS zone file instead of querying the network.
1896 It is intended primarily for use in testing.")
1897 (license license:perl-license)))
1899 (define-public perl-netaddr-ip
1901 (name "perl-netaddr-ip")
1907 "mirror://cpan/authors/id/M/MI/MIKER/NetAddr-IP-"
1912 "1rx0dinrz9fk9qcg4rwqq5n1dm3xv2arymixpclcv2q2nzgq4npc"))))
1913 (build-system perl-build-system)
1916 (modify-phases %standard-phases
1918 (lambda* (#:key outputs #:allow-other-keys)
1919 (let* ((out (assoc-ref outputs "out"))
1920 (args `("Makefile.PL"
1921 ,(string-append "PREFIX=" out)
1922 "INSTALLDIRS=site")))
1923 (setenv "CONFIG_SHELL" (which "sh"))
1924 (apply invoke "perl" args)))))))
1926 "https://metacpan.org/release/NetAddr-IP")
1928 "Manages IPv4 and IPv6 addresses and subnets")
1929 (description "NetAddr::IP manages IPv4 and IPv6 addresses and subsets.")
1930 (license license:perl-license)))
1932 (define-public perl-net-patricia
1934 (name "perl-net-patricia")
1940 "mirror://cpan/authors/id/G/GR/GRUBER/Net-Patricia-"
1945 "0ln5f57vc8388kyh9vhx2infrdzfhbpgyby74h1qsnhwds95m0vh"))))
1946 (build-system perl-build-system)
1949 (modify-phases %standard-phases
1950 (add-after 'unpack 'dont-link-with-nsl ; Borrowed from Debian.
1952 (substitute* "Makefile.PL"
1956 `(("perl-net-cidr-lite" ,perl-net-cidr-lite)
1957 ("perl-socket6" ,perl-socket6)))
1959 "https://metacpan.org/release/Net-Patricia")
1961 "Patricia Trie Perl module for fast IP address lookups")
1963 "Net::Patricia does IP address lookups quickly in Perl.")
1964 ;; The bindings are licensed under GPL2 or later.
1965 ;; libpatricia is licensed under 2-clause BSD.
1966 (license (list license:gpl2+ license:bsd-2))))
1968 (define-public perl-net-cidr-lite
1970 (name "perl-net-cidr-lite")
1976 "mirror://cpan/authors/id/D/DO/DOUGW/Net-CIDR-Lite-"
1981 "14shj73zbqmfjbp0qz1fs9j4p2dpvz5hfkm4qfdjbydflbl2b8fg"))))
1982 (build-system perl-build-system)
1984 "https://metacpan.org/release/Net-CIDR-Lite")
1986 "Perl extension for merging IPv4 or IPv6 CIDR addresses")
1987 (description "Net::CIDR::Lite merges IPv4 or IPv6 CIDR addresses.")
1988 (license license:gpl1+)))
1990 ;; TODO: Use the geolite-mirror-simple.pl script from the example
1991 ;; directory to stay current with the databases. How?
1992 (define-public perl-geo-ip
1994 (name "perl-geo-ip")
2000 "mirror://cpan/authors/id/M/MA/MAXMIND/Geo-IP-"
2005 "1fka8fr7fw6sh3xa9glhs1zjg3s2gfkhi7n7da1l2m2wblqj0c0n"))))
2006 (build-system perl-build-system)
2007 (home-page "https://metacpan.org/release/Geo-IP")
2009 "Look up location and network information by IP Address in Perl")
2010 (description "The Perl module @code{Geo::IP}. It looks up location and
2011 network information by IP Address.")
2012 (license license:perl-license)))
2014 (define-public perl-io-socket-inet6
2016 (name "perl-io-socket-inet6")
2022 "mirror://cpan/authors/id/S/SH/SHLOMIF/IO-Socket-INET6-"
2027 "1fqypz6qa5rw2d5y2zq7f49frwra0aln13nhq5gi514j2zx21q45"))))
2028 (build-system perl-build-system)
2030 `(("perl-module-build" ,perl-module-build)
2031 ("perl-test-pod" ,perl-test-pod)
2032 ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
2033 (inputs `(("perl-socket6" ,perl-socket6)))
2034 (arguments `(;; Need network socket API
2037 "https://metacpan.org/release/IO-Socket-INET6")
2039 "Perl object interface for AF_INET/AF_INET6 domain sockets")
2040 (description "IO::Socket::INET6 is an interface for AF_INET/AF_INET6 domain
2042 (license license:perl-license)))
2044 (define-public libproxy
2050 (uri (string-append "https://github.com/libproxy/libproxy/"
2051 "releases/download/" version "/libproxy-"
2055 "0kvdrazlzwia876w988cmlypp253gwy6idlh8mjk958c29jb8kb5"))))
2056 (build-system cmake-build-system)
2058 `(("pkg-config" ,pkg-config)))
2064 (modify-phases %standard-phases
2067 (invoke "ctest" "-E" "url-test"))))))
2068 (synopsis "Library providing automatic proxy configuration management")
2069 (description "Libproxy handles the details of HTTP/HTTPS proxy
2070 configuration for applications across all scenarios. Applications using
2071 libproxy only have to specify which proxy to use.")
2072 (home-page "https://libproxy.github.io/libproxy")
2073 (license license:lgpl2.1+)))
2075 (define-public proxychains-ng
2077 (name "proxychains-ng")
2082 (uri (string-append "http://ftp.barfooze.de/pub/sabotage/tarballs/"
2083 "proxychains-ng-" version ".tar.xz"))
2085 (base32 "1bmhfbl1bzc87vl0xwr1wh5xvslfyc41nl2hqzhbj258p0sy004x"))))
2086 (build-system gnu-build-system)
2088 `(#:tests? #f ; there are no tests
2090 (modify-phases %standard-phases
2091 (add-after 'unpack 'fix-configure-script
2093 ;; The configure script is very intolerant to unknown arguments,
2094 ;; such as "CONFIG_SHELL".
2095 (substitute* "configure"
2096 (("\\*\\) break ;;" line)
2097 (string-append "[A-Z]*) shift ;;\n"
2100 (add-before 'configure 'set-up-environment
2104 (synopsis "Redirect any TCP connection through a proxy or proxy chain")
2105 (description "Proxychains-ng is a preloader which hooks calls to sockets
2106 in dynamically linked programs and redirects them through one or more SOCKS or
2108 (home-page "https://github.com/rofl0r/proxychains-ng")
2109 (license license:gpl2+)))
2118 (uri (string-append "http://enet.bespin.org/download/"
2119 "enet-" version ".tar.gz"))
2121 (base32 "1lggc82rbzscci057dqqyhkbq4j6mr5k01hbrvn06jkzc2xpxdxv"))))
2122 (build-system gnu-build-system)
2124 `(("pkg-config" ,pkg-config)))
2125 (synopsis "Network communication layer on top of UDP")
2127 "ENet's purpose is to provide a relatively thin, simple and robust network
2128 communication layer on top of UDP. The primary feature it provides is optional
2129 reliable, in-order delivery of packets. ENet omits certain higher level
2130 networking features such as authentication, server discovery, encryption, or
2131 other similar tasks that are particularly application specific so that the
2132 library remains flexible, portable, and easily embeddable.")
2133 (home-page "http://enet.bespin.org")
2134 (license license:expat)))
2144 (url "https://github.com/yrutschle/sslh")
2145 (commit (string-append "v" version))))
2146 (file-name (git-file-name name version))
2148 (base32 "19h32dn0076p3s7dn35qi5yp2xvnxw9sqphppmn72vyb8caxvw1z"))))
2149 (build-system gnu-build-system)
2151 `(;; Test dependencies.
2154 ("perl-conf-libconfig" ,perl-conf-libconfig)
2155 ("perl-io-socket-inet6" ,perl-io-socket-inet6)
2156 ("perl-socket6" ,perl-socket6)
2157 ("psmisc" ,psmisc))) ; for ‘killall’
2159 `(("libcap" ,libcap)
2160 ("libconfig" ,libconfig)
2162 ("tcp-wrappers" ,tcp-wrappers)))
2165 (modify-phases %standard-phases
2166 (delete 'configure) ; no configure script
2167 (add-before 'check 'fix-tests
2170 (("\"/tmp") "$ENV{\"TMPDIR\"} . \"")
2171 ;; The Guix build environment lacks ‘ip6-localhost’.
2172 (("ip6-localhost") "localhost"))
2174 ;; Many of these files are mentioned in the man page. Install them.
2175 (add-after 'install 'install-documentation
2176 (lambda* (#:key outputs #:allow-other-keys)
2177 (let* ((out (assoc-ref outputs "out"))
2178 (doc (string-append out "/share/doc/sslh")))
2179 (install-file "README.md" doc)
2182 (install-file file (string-append doc "/examples")))
2183 (append (find-files "." "\\.cfg")
2184 (find-files "scripts"))))
2186 #:make-flags (list "CC=gcc"
2189 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2190 #:test-target "test"))
2191 (home-page "https://www.rutschle.net/tech/sslh/README.html")
2192 (synopsis "Applicative network protocol demultiplexer")
2194 "sslh is a network protocol demultiplexer. It acts like a switchboard,
2195 accepting connections from clients on one port and forwarding them to different
2196 servers based on the contents of the first received data packet. Detection of
2197 common protocols like HTTP(S), SSL, SSH, OpenVPN, tinc, and XMPP is already
2198 implemented, but any other protocol that matches a regular expression can be
2199 added. sslh's name comes from its original application of serving both SSH and
2200 HTTPS on port 443, allowing SSH connections from inside corporate firewalls
2201 that block port 22.")
2202 (license (list license:bsd-2 ; tls.[ch]
2203 license:gpl2+)))) ; everything else
2205 (define-public iperf
2211 (uri (string-append "http://downloads.es.net/pub/iperf"
2212 "/iperf-" version ".tar.gz"))
2215 "0f601avdmzpwsa3lbi0ppjhkrdipm5wifhhxy5czf99370k3mdi4"))))
2216 (build-system gnu-build-system)
2217 (synopsis "TCP, UDP and SCTP bandwidth measurement tool")
2219 "iPerf is a tool to measure achievable bandwidth on IP networks. It
2220 supports tuning of various parameters related to timing, buffers and
2221 protocols (TCP, UDP, SCTP with IPv4 and IPv6). For each test it reports
2222 the bandwidth, loss, and other parameters.")
2223 (home-page "https://software.es.net/iperf/")
2224 (license (list license:bsd-3 ; Main distribution.
2225 license:ncsa ; src/{units,iperf_locale,tcp_window_size}.c
2226 license:expat ; src/{cjson,net}.[ch]
2227 license:public-domain)))) ; src/portable_endian.h
2229 (define-public nethogs
2237 (url "https://github.com/raboof/nethogs")
2238 (commit (string-append "v" version))))
2241 (base32 "0sn1sdp86akwlm4r1vmkxjjl50c0xaisk91bbz57z7kcsaphxna9")
2243 (file-name (git-file-name name version))))
2244 (build-system gnu-build-system)
2246 `(("libpcap" ,libpcap)
2247 ("ncurses" ,ncurses)))
2249 `(#:make-flags `("CC=gcc"
2250 ,(string-append "PREFIX=" %output)
2251 ,(string-append "VERSION=" ,version))
2253 (modify-phases %standard-phases
2254 (delete 'configure)))) ; no ./configure script.
2255 (home-page "https://github.com/raboof/nethogs")
2256 (synopsis "Per-process bandwidth monitor")
2257 (description "NetHogs is a small 'net top' tool for Linux. Instead of
2258 breaking the traffic down per protocol or per subnet, like most tools do, it
2259 groups bandwidth by process.
2261 NetHogs does not rely on a special kernel module to be loaded. If there's
2262 suddenly a lot of network traffic, you can fire up NetHogs and immediately see
2263 which PID is causing this. This makes it easy to identify programs that have
2264 gone wild and are suddenly taking up your bandwidth.")
2265 (license license:gpl2+)))
2267 (define-public nzbget
2274 (uri (string-append "https://github.com/nzbget/nzbget/releases"
2275 "/download/v" version
2276 "/nzbget-" version "-src.tar.gz"))
2279 "0lwd0pfrs4a5ms193hgz2qiyf7grrc925dw6y0nfc0gkp27db9b5"))
2280 (modules '((guix build utils)))
2282 ;; Reported upstream as <https://github.com/nzbget/nzbget/pull/414>.
2284 (substitute* "daemon/connect/TlsSocket.cpp"
2285 (("gnutls_certificate-verification_status_print")
2286 "gnutls_certificate_verification_status_print"))
2291 (string-append "--with-libcurses-includes="
2292 (assoc-ref %build-inputs "ncurses") "/include")
2293 (string-append "--with-libcurses-libraries="
2294 (assoc-ref %build-inputs "ncurses") "/lib")
2295 (string-append "--with-tlslib=GnuTLS"))))
2296 (build-system gnu-build-system)
2297 (inputs `(("gnutls" ,gnutls)
2298 ("libxml2" ,libxml2)
2299 ("ncurses" ,ncurses)
2301 (native-inputs `(("pkg-config" ,pkg-config)))
2302 (home-page "https://github.com/nzbget/nzbget")
2303 (synopsis "Usenet binary file downloader")
2305 "NZBGet is a binary newsgrabber, which downloads files from Usenet based
2306 on information given in @code{nzb} files. NZBGet can be used in standalone
2307 and in server/client modes. In standalone mode, you pass NZBGet @command{nzb}
2308 files as command-line parameters and it downloads them and exits. NZBGet also
2309 contains a Web interface. Its server can be controlled through remote
2310 procedure calls (RPCs).")
2311 (license license:gpl2+)))
2313 (define-public openvswitch
2315 (name "openvswitch")
2320 "https://www.openvswitch.org/releases/openvswitch-"
2324 "0cd5vmfr6zwgcnkwys6rag6cmz68v0librpaplianv734xs74pyx"))))
2325 (build-system gnu-build-system)
2327 '(;; FIXME: many tests fail with:
2329 ;; test -e $OVS_RUNDIR/ovs-vswitchd.pid
2330 ;; ovs-appctl -t ovs-vswitchd exit
2335 "--localstatedir=/var"
2336 "--with-dbdir=/var/lib/openvswitch")
2338 (modify-phases %standard-phases
2342 ;; Don't try to create directories under /var.
2350 ("pkg-config" ,pkg-config)
2351 ("python" ,python-wrapper)
2353 ("util-linux" ,util-linux)))
2355 `(("libcap-ng" ,libcap-ng)
2356 ("openssl" ,openssl)))
2357 (synopsis "Virtual network switch")
2358 (home-page "https://www.openvswitch.org/")
2360 "Open vSwitch is a multilayer virtual switch. It is designed to enable
2361 massive network automation through programmatic extension, while still
2362 supporting standard management interfaces and protocols (e.g. NetFlow, sFlow,
2363 IPFIX, RSPAN, CLI, LACP, 802.1ag).")
2364 (license ; see debian/copyright for detail
2365 (list license:lgpl2.1 ; xenserver and utilities/bugtool
2366 license:gpl2 ; datapath
2367 license:bsd-2 license:bsd-3
2368 license:asl2.0)))) ; all other
2370 (define-public python-ipy
2376 (uri (pypi-uri "IPy" version))
2379 "08d6kcacj67mvh0b6y765ipccy6gi4w2ndd4v1l3im2qm1cgcarg"))))
2380 (build-system python-build-system)
2381 (home-page "https://github.com/autocracy/python-ipy/")
2382 (synopsis "Python class and tools for handling IP addresses and networks")
2383 (description "The @code{IP} class allows a comfortable parsing and
2384 handling for most notations in use for IPv4 and IPv6 addresses and
2386 (license license:bsd-3)))
2388 (define-public python2-ipy
2389 (package-with-python2 python-ipy))
2391 (define-public speedtest-cli
2393 (name "speedtest-cli")
2399 (url "https://github.com/sivel/speedtest-cli")
2400 (commit (string-append "v" version))))
2401 (file-name (git-file-name name version))
2403 (base32 "1456yly6iym2c9bl6pi4sz8xbw34bm2dxm1vzpydsd6jazwpmy26"))))
2404 (build-system python-build-system)
2405 (home-page "https://github.com/sivel/speedtest-cli")
2406 (synopsis "Internet bandwidth tester")
2408 "Command line interface for testing internet bandwidth using
2410 (license license:asl2.0)))
2412 (define-public tftp-hpa
2418 (uri (string-append "mirror://kernel.org/software/"
2419 "network/tftp/tftp-hpa/tftp-hpa-" version
2423 "12vidchglhyc20znq5wdsbhi9mqg90jnl7qr9qs8hbvaz4fkdvmg"))))
2424 (build-system gnu-build-system)
2425 (arguments `(#:tests? #f)) ; no test target
2426 (synopsis "HPA's tftp client")
2428 "This is a tftp client derived from OpenBSD tftp with some extra options
2429 added and bugs fixed. The source includes readline support but it is not
2430 enabled due to license conflicts between the BSD advertising clause and the GPL.")
2431 (home-page "https://git.kernel.org/cgit/network/tftp/tftp-hpa.git/about/")
2432 ;; Some source files are distributed under a 3-clause BSD license, and
2433 ;; others under a 4-clause BSD license. Refer to the files in the source
2434 ;; distribution for clarification.
2435 (license (list license:bsd-3 license:bsd-4))))
2437 (define-public pidentd
2445 (url "https://github.com/ptrrkssn/pidentd")
2446 (commit (string-append "v" version))))
2447 (file-name (git-file-name name version))
2450 "1k4rr0b4ygxssbnsykzjvz4hjhazzz4j5arlilyc1iq7b1wzsk7i"))))
2451 (build-system gnu-build-system)
2453 `(#:tests? #f)) ; No tests are included
2455 `(("openssl" ,openssl-1.0))) ;for the DES library
2456 (home-page "https://www.lysator.liu.se/~pen/pidentd/")
2457 (synopsis "Small Ident Daemon")
2459 "@dfn{Pidentd} (Peter's Ident Daemon) is an identd, which implements a
2460 identification server. Pidentd looks up specific TCP/IP connections and
2461 returns the user name and other information about the connection.")
2462 (license license:public-domain)))
2464 (define-public spiped
2470 (uri (string-append "https://www.tarsnap.com/spiped/spiped-"
2474 "04rpnc53whfky7pp2m9h35gwzwn6788pnl6c1qd576mpknbqjw4d"))))
2475 (build-system gnu-build-system)
2477 '(#:test-target "test"
2478 #:make-flags (let* ((out (assoc-ref %outputs "out"))
2479 (bindir (string-append out "/bin"))
2480 (man1dir (string-append out "/share/man/man1")))
2481 (list "CC=gcc" ; It tries to invoke `c99`.
2482 (string-append "BINDIR=" bindir)
2483 (string-append "MAN1DIR=" man1dir)))
2485 (modify-phases %standard-phases
2486 (add-after 'unpack 'patch-command-invocations
2488 (substitute* '("Makefile"
2489 "libcperciva/cpusupport/Build/cpusupport.sh"
2490 "libcperciva/POSIX/posix-cflags.sh"
2491 "libcperciva/POSIX/posix-l.sh")
2492 (("command -p") ""))
2494 (delete 'configure) ; No ./configure script.
2495 (add-after 'install 'install-more-docs
2496 (lambda* (#:key outputs #:allow-other-keys)
2497 (let* ((out (assoc-ref %outputs "out"))
2498 (misc (string-append out "/share/doc/spiped")))
2499 (install-file "DESIGN.md" misc)
2502 `(("procps" ,procps))) ; `ps` is used by the test suite.
2504 `(("openssl" ,openssl)))
2505 (home-page "https://www.tarsnap.com/spiped.html")
2506 (synopsis "Create secure pipes between sockets")
2507 (description "Spiped (pronounced \"ess-pipe-dee\") is a utility for creating
2508 symmetrically encrypted and authenticated pipes between socket addresses, so
2509 that one may connect to one address (e.g., a UNIX socket on localhost) and
2510 transparently have a connection established to another address (e.g., a UNIX
2511 socket on a different system). This is similar to 'ssh -L' functionality, but
2512 does not use SSH and requires a pre-shared symmetric key.")
2513 (license license:bsd-2)))
2515 (define-public quagga
2521 (uri (string-append "mirror://savannah/quagga/quagga-"
2525 "1lsksqxij5f1llqn86pkygrf5672kvrqn1kvxghi169hqf1c0r73"))
2527 (search-patches "quagga-reproducible-build.patch"))))
2528 (build-system gnu-build-system)
2529 (native-inputs `(("pkg-config" ,pkg-config)
2531 ("dejagnu" ,dejagnu)))
2532 (inputs `(("readline" ,readline)
2533 ("c-ares" ,c-ares)))
2534 (synopsis "Routing Software Suite")
2535 (description "Quagga is a routing software suite, providing implementations
2536 of OSPFv2, OSPFv3, RIP v1 and v2, RIPng and BGP-4 for Unix platforms.
2538 The Quagga architecture consists of a core daemon, @command{zebra}, which
2539 acts as an abstraction layer to the underlying Unix kernel and presents the
2540 Zserv API over a Unix or TCP stream to Quagga clients. It is these Zserv
2541 clients which typically implement a routing protocol and communicate routing
2542 updates to the zebra daemon.")
2543 (home-page "https://www.nongnu.org/quagga/")
2544 (license license:gpl2+)))
2546 (define-public thc-ipv6
2547 (let ((revision "0")
2548 (commit "4bb72573e0950ce6f8ca2800a10748477020029e"))
2551 (version (git-version "3.4" revision commit))
2555 (url "https://github.com/vanhauser-thc/thc-ipv6")
2557 (file-name (git-file-name name version))
2560 "1x5i6vbsddqc2yks7r1a2fw2fk16qxvd6hpzh1lykjfpkal8fdir"))))
2561 (build-system gnu-build-system)
2563 `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2564 #:tests? #f ; No test suite.
2566 (modify-phases %standard-phases
2567 (delete 'configure) ; No ./configure script.
2568 (add-before 'build 'patch-paths
2570 (substitute* "Makefile"
2571 (("/bin/echo") "echo"))
2573 (add-after 'install 'install-more-docs
2574 (lambda* (#:key outputs #:allow-other-keys)
2575 (let* ((out (assoc-ref outputs "out"))
2576 (doc (string-append out "/share/thc-ipv6/doc")))
2577 (install-file "README" doc)
2578 (install-file "HOWTO-INJECT" doc)
2580 ;; TODO Add libnetfilter-queue once packaged.
2582 `(("libpcap" ,libpcap)
2583 ("openssl" ,openssl)
2585 (home-page "https://github.com/vanhauser-thc/thc-ipv6")
2586 (synopsis "IPv6 security research toolkit")
2587 (description "The THC IPv6 Toolkit provides command-line tools and a library
2588 for researching IPv6 implementations and deployments. It requires Linux 2.6 or
2589 newer and only works on Ethernet network interfaces.")
2590 ;; AGPL 3 with exception for linking with OpenSSL. See the 'LICENSE' file in
2591 ;; the source distribution for more information.
2592 (license license:agpl3))))
2601 (uri (string-append "https://github.com/tgraf/bmon/releases/download/v"
2602 version "/bmon-" version ".tar.gz"))
2605 "0ylzriv4pwh76344abzl1w219x188gshbycbna35gsyfp09c7z82"))))
2606 (build-system gnu-build-system)
2608 `(("libconfuse" ,libconfuse)
2610 ("ncurses" ,ncurses)))
2612 `(("pkg-config" ,pkg-config)))
2613 (synopsis "Bandwidth monitor")
2614 (description "bmon is a monitoring and debugging tool to capture
2615 networking-related statistics and prepare them visually in a human-friendly
2616 way. It features various output methods including an interactive curses user
2617 interface and a programmable text output for scripting.")
2618 (home-page "https://github.com/tgraf/bmon")
2619 ;; README.md mentions both the 2-clause BSD and expat licenses, but all
2620 ;; the source files only have expat license headers. Upstream has been
2621 ;; contacted for clarification: https://github.com/tgraf/bmon/issues/59
2622 ;; Update the license field when upstream responds.
2623 (license (list license:bsd-2
2626 (define-public libnet
2633 (uri (string-append "https://github.com/libnet/libnet/releases/download"
2634 "/v" version "/libnet-" version ".tar.gz"))
2637 "19ys9vxk6fg70yzzdxsphfr0rwzgxxhr9b3ykhpg7rfray0qd96a"))))
2638 (build-system gnu-build-system)
2641 (modify-phases %standard-phases
2642 (add-before 'build 'build-doc
2643 (lambda* (#:key make-flags #:allow-other-keys)
2644 (apply invoke "make" "-C" "doc" "doc"
2647 `(;; To build the documentation, Doxygen and Perl is required.
2648 ("doxygen" ,doxygen)
2650 (home-page "https://github.com/libnet/libnet")
2651 (synopsis "Framework for low-level network packet construction")
2653 "Libnet provides a fairly portable framework for network packet
2654 construction and injection. It features portable packet creation interfaces
2655 at the IP layer and link layer, as well as a host of supplementary
2656 functionality. Using libnet, quick and simple packet assembly applications
2657 can be whipped up with little effort.")
2658 (license license:bsd-2)))
2667 (uri (string-append "ftp://ftp.bitwizard.nl/mtr/"
2668 "mtr-" version ".tar.gz"))
2670 (base32 "1glxvlqskcmjkxlqk9i12hcfaxb389cx2n8ji7776gmix3aq4z1z"))))
2671 (build-system gnu-build-system)
2673 `(("libcap" ,libcap)
2674 ("ncurses" ,ncurses)))
2676 `(#:tests? #f)) ; tests require network access
2677 (home-page "https://www.bitwizard.nl/mtr/")
2678 (synopsis "Network diagnostic tool")
2680 "@acronym{mtr, My TraceRoute} combines the functionality of the
2681 @command{traceroute} and @command{ping} programs in a single network diagnostic
2682 tool. @command{mtr} can use several network protocols to detect intermediate
2683 routers (or @dfn{hops}) between the local host and a user-specified destination.
2684 It then continually measures the response time and packet loss at each hop, and
2685 displays the results in real time.")
2686 (license license:gpl2+)))
2688 (define-public strongswan
2695 (uri (string-append "https://download.strongswan.org/strongswan-"
2696 version ".tar.bz2"))
2698 (base32 "0g2m08gmgdi3qvvqz6zy7n16np53sp232xd0rdc2vdhk73img6id"))))
2699 (build-system gnu-build-system)
2702 (modify-phases %standard-phases
2703 (add-before 'build 'patch-command-file-names
2704 (lambda* (#:key inputs #:allow-other-keys)
2705 (substitute* "src/libstrongswan/utils/process.c"
2707 (string-append (assoc-ref inputs "bash") "/bin/sh")))
2709 (substitute* "src/libstrongswan/tests/suites/test_process.c"
2710 (("/bin/sh") (which "sh"))
2711 (("/bin/echo") (which "echo"))
2712 (("cat") (which "cat")))
2714 (add-before 'check 'set-up-test-environment
2715 (lambda* (#:key inputs #:allow-other-keys)
2716 (setenv "TZDIR" (string-append (assoc-ref inputs "tzdata")
2721 ;; Disable bsd-4 licensed plugins.
2723 "--disable-blowfish")))
2727 ("libgcrypt" ,libgcrypt)
2728 ("openssl" ,openssl)))
2730 `(("coreutils" ,coreutils)
2731 ("tzdata" ,tzdata-for-tests)))
2732 (synopsis "IKEv1/v2 keying daemon")
2733 (description "StrongSwan is an IPsec implementation originally based upon
2734 the FreeS/WAN project. It contains support for IKEv1, IKEv2, MOBIKE, IPv6,
2736 (home-page "https://strongswan.org/")
2740 ;; src/libcharon/plugins/dnscert/*
2741 ;; src/libcharon/plugins/ext_auth/*
2742 ;; src/libcharon/plugins/vici/ruby/*
2743 ;; src/libcharon/plugins/xauth_pam/xauth_pam_listener.[ch]
2747 ;; src/libstrongswan/plugins/sha3/sha3_keccak.c
2748 license:public-domain
2749 ;; src/libstrongswan/plugins/pkcs11/pkcs11.h
2750 (license:non-copyleft
2751 "file://src/libstrongswan/plugins/pkcs11/pkcs11.h"
2752 "pkcs11 contains a unknown permissive license. View the specific
2753 file for more details.")
2754 ;; These files are not included in the
2755 ;; build, they are disabled through
2756 ;; options to ./configure
2758 ;; src/libstrongswan/plugins/blowfish/bf_enc.c
2759 ;; src/libstrongswan/plugins/blowfish/bf_locl.h
2760 ;; src/libstrongswan/plugins/blowfish/bf_pi.h
2761 ;; src/libstrongswan/plugins/blowfish/bf_skey.c
2762 ;; src/libstrongswan/plugins/blowfish/blowfish_crypter.c
2763 ;; src/libstrongswan/plugins/des/des_crypter.c
2766 (define-public amule
2773 (url "https://github.com/amule-project/amule")
2775 (file-name (git-file-name name version))
2778 "010wxm6g9f92x6fympj501zbnjka32rzbx0sk3a2y4zpih5d2nsn"))
2779 ;; Patch for adopting crypto++ >= 6.0.
2780 (patches (search-patches "amule-crypto-6.patch"))))
2781 (build-system gnu-build-system)
2784 (modify-phases %standard-phases
2785 (delete 'bootstrap) ; bootstrap phase runs too early.
2786 (add-after 'patch-source-shebangs 'autogen
2788 (invoke "sh" "autogen.sh")
2802 "--enable-amule-gui"
2803 "--enable-amule-daemon"
2804 "--enable-webserver"
2805 "--with-denoise-level=0")))
2807 `(("autoconf" ,autoconf)
2808 ("automake" ,automake)
2809 ("gettext-minimal" ,gettext-minimal)
2813 ("crypto++" ,crypto++)
2815 ("wxwidgets-gtk2" ,wxwidgets-gtk2)))
2816 (home-page "http://amule.org/")
2817 (synopsis "Peer-to-peer client for the eD2K and Kademlia networks")
2819 "aMule is an eMule-like client for the eD2k and Kademlia peer-to-peer
2820 file sharing networks. It includes a graphical user interface (GUI), a daemon
2821 allowing you to run a client with no graphical interface, and a Web GUI for
2822 remote access. The @command{amulecmd} command allows you to control aMule
2824 (license license:gpl2+)))
2833 (string-append "https://github.com/zeromq/zyre/releases/download/v"
2834 version "/" name "-" version ".tar.gz"))
2837 "0qz2730bng1gs9xbqxhkw88qbsmszgmmrl2g9k6xrg6r3bqvsdc7"))))
2838 (build-system gnu-build-system)
2839 (inputs `(("zeromq" ,zeromq)
2841 ("libsodium" ,libsodium)))
2842 (synopsis "Framework for proximity-based peer-to-peer applications")
2843 (description "Zyre provides reliable group messaging over local area
2844 networks using zeromq. It has these key characteristics:
2847 @item Zyre needs no administration or configuration.
2848 @item Peers may join and leave the network at any time.
2849 @item Peers talk to each other without any central brokers or servers.
2850 @item Peers can talk directly to each other.
2851 @item Peers can join groups, and then talk to groups.
2852 @item Zyre is reliable, and loses no messages even when the network is heavily loaded.
2853 @item Zyre is fast and has low latency, requiring no consensus protocols.
2854 @item Zyre is designed for WiFi networks, yet also works well on Ethernet networks.
2856 (home-page "https://github.com/zeromq/zyre")
2857 (license license:mpl2.0)))
2859 (define-public libsocketcan
2861 (name "libsocketcan")
2866 (url "https://git.pengutronix.de/cgit/tools/libsocketcan")
2867 (commit (string-append "v" version))))
2868 (file-name (git-file-name name version))
2871 "17z2y2r9xkixhr9bxr50m77fh710afl30s7jdhbxrvf56vmal2jr"))))
2872 (build-system gnu-build-system)
2874 `(("autoconf" ,autoconf)
2875 ("automake" ,automake)
2876 ("libtool" ,libtool)))
2877 (home-page "https://git.pengutronix.de/cgit/tools/libsocketcan")
2878 (synopsis "SocketCAN user-space library")
2879 (description "This library allows controlling basic functions in SocketCAN
2880 from user-space. It requires a kernel built with SocketCAN support.")
2881 (license license:lgpl2.1+)))
2883 (define-public can-utils
2886 (version "2020.02.04")
2890 (url "https://github.com/linux-can/can-utils")
2891 (commit (string-append "v" version))))
2892 (file-name (git-file-name name version))
2895 "1a3j1mmnb7pvgc8r7zzp6sdp7903in2hna6bmpraxln7cwlzn4l6"))))
2896 (build-system gnu-build-system)
2898 `(#:tests? #f ; No tests exist.
2899 #:make-flags (list "CC=gcc"
2900 (string-append "PREFIX="
2901 (assoc-ref %outputs "out")))
2903 (modify-phases %standard-phases
2905 (delete 'configure))))
2906 (home-page "https://github.com/linux-can/can-utils")
2907 (synopsis "CAN utilities")
2908 (description "This package provides CAN utilities in the following areas:
2911 @item Basic tools to display, record, generate and replay CAN traffic
2912 @item CAN access via IP sockets
2913 @item CAN in-kernel gateway configuration
2914 @item CAN bus measurement and testing
2915 @item ISO-TP (ISO15765-2:2016 - this means messages with a body larger than
2917 @item Log file converters
2918 @item Serial Line Discipline configuration for slcan driver
2920 ;; Either BSD-3 or GPL-2 can be used.
2921 (license (list license:bsd-3 license:gpl2))))
2930 (uri (string-append "mirror://sourceforge/asio/asio/"
2931 version " (Stable)/asio-" version ".tar.bz2"))
2933 (base32 "1akray4l3hgahmb92sbvsqg128c7g7s92jrkf1sp1fjnfjrxq9sf"))))
2934 (build-system gnu-build-system)
2937 ("openssl" ,openssl)))
2941 (string-append "--with-boost=" (assoc-ref %build-inputs "boost"))
2942 (string-append "--with-openssl=" (assoc-ref %build-inputs "openssl")))))
2943 (home-page "https://think-async.com/Asio")
2944 (synopsis "C++ library for ASynchronous network I/O")
2945 (description "Asio is a cross-platform C++ library for network and
2946 low-level I/O programming that provides developers with a consistent
2947 asynchronous model using a modern C++ approach.")
2948 (license license:boost1.0)))
2950 (define-public shadowsocks
2951 ;; There are some security fixes after the last release.
2952 (let* ((commit "e332ec93e9c90f1cbee676b022bf2c5d5b7b1239")
2954 (version (git-version "2.8.2" revision commit)))
2956 (name "shadowsocks")
2958 (home-page "https://github.com/shadowsocks/shadowsocks")
2966 "1idd9b4f2pnhcpk1bh030hqg5zq25gkwxd53xi3c0cj242w7sp2j"))
2967 (file-name (git-file-name name version))))
2968 (build-system python-build-system)
2969 (synopsis "Fast tunnel proxy that helps you bypass firewalls")
2971 "This package is a fast tunnel proxy that helps you bypass firewalls.
2975 @item TCP & UDP support
2976 @item User management API
2978 @item Workers and graceful restart
2979 @item Destination IP blacklist
2981 (license license:asl2.0))))
2983 (define-public net-snmp
2989 (uri (string-append "mirror://sourceforge/net-snmp/net-snmp/"
2990 version "/net-snmp-" version ".tar.gz"))
2993 "0wb0vyafpspw3mcifkjjmf17r1r80kjvslycscb8nvaxz1k3lc04"))
2994 (modules '((guix build utils)))
2997 ;; Drop bundled libraries.
2998 (delete-file-recursively "snmplib/openssl")
3000 (build-system gnu-build-system)
3002 `(#:test-target "test"
3003 ;; XXX: With parallel build enabled, Perl modules may not get linked with
3004 ;; libnetsnmp. See e.g. <https://bugzilla.novell.com/show_bug.cgi?id=819497>.
3005 #:parallel-build? #f
3007 (list (string-append "LDFLAGS=-Wl,-rpath="
3008 (assoc-ref %outputs "out")
3010 "--with-logfile=/var/log/snmpd.log"
3011 (string-append "--with-openssl="
3012 (assoc-ref %build-inputs "openssl")))
3014 (modify-phases %standard-phases
3015 (add-after 'unpack 'patch-tests
3016 (lambda* (#:key inputs #:allow-other-keys)
3017 (substitute* "testing/fulltests/support/simple_TESTCONF.sh"
3019 (string-append "NETSTAT=\"" (which "netstat") "\"")))
3020 (substitute* '("testing/fulltests/default/T065agentextend_simple"
3021 "testing/fulltests/default/T115agentxperl_simple")
3022 (("/usr/bin/env") (which "env")))
3023 (substitute* "testing/fulltests/default/T065agentextend_sh_simple"
3024 (("/bin/sh") (which "sh")))
3025 ;; These tests require network access.
3026 (for-each delete-file
3027 '("testing/fulltests/default/T070com2sec_simple"
3028 "testing/fulltests/default/T071com2sec6_simple"))
3030 (add-after 'unpack 'patch-Makefile.PL
3031 (lambda* (#:key outputs #:allow-other-keys)
3032 (substitute* "Makefile.in"
3033 (("Makefile.PL -NET")
3034 (string-append "Makefile.PL PREFIX="
3035 (assoc-ref outputs "out")
3036 " INSTALLDIRS=site" " NO_PERLLOCAL=1"
3041 ("ncurses" ,ncurses) ; for the ‘apps’
3042 ("openssl" ,openssl)
3045 `(("pkg-config" ,pkg-config)
3048 ("net-tools" ,net-tools)
3049 ("coreutils" ,coreutils)
3051 (home-page "http://www.net-snmp.org/")
3052 (synopsis "Simple Network Management Protocol library and tools")
3053 (description "The @dfn{Simple Network Management Protocol} (SNMP) is a
3054 widely used protocol for monitoring the health and welfare of network
3055 equipment (e.g. routers), computer equipment and even devices like UPSs.
3056 Net-SNMP is a suite of applications used to implement SNMP v1, SNMP v2c and
3057 SNMP v3 using both IPv4 and IPv6.")
3058 ;; This only affects OpenBSD
3059 ;; https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-8100
3060 (properties `((lint-hidden-cve . ("CVE-2015-8100"))))
3061 (license (list license:bsd-3
3062 (license:non-copyleft
3063 "http://www.net-snmp.org/about/license.html"
3064 "CMU/UCD copyright notice")))))
3066 (define-public ubridge
3074 (url "https://github.com/GNS3/ubridge")
3075 (commit (string-append "v" version))))
3076 (file-name (git-file-name name version))
3078 (base32 "0jg66jhhpv4c9340fsdp64hf9h253i8r81fknxa0gq241ripp3jn"))))
3079 (build-system gnu-build-system)
3081 `(#:tests? #f ; no tests
3083 (list ,(string-append "CC=" (cc-for-target)))
3085 (modify-phases %standard-phases
3086 (delete 'configure) ; no configure script
3087 (add-before 'install 'set-bindir
3088 (lambda* (#:key inputs outputs #:allow-other-keys)
3089 (let ((bin (string-append (assoc-ref outputs "out")
3092 (substitute* "Makefile"
3093 (("\\$\\(BINDIR\\)") bin)
3094 (("\tsetcap cap_net.*$") "")))
3097 `(("libpcap" ,libpcap)))
3098 (home-page "https://github.com/GNS3/ubridge/")
3099 (synopsis "Bridge for UDP tunnels, Ethernet, TAP and VMnet interfaces")
3100 (description "uBridge is a simple program to create user-land bridges
3101 between various technologies. Currently, bridging between UDP tunnels,
3102 Ethernet and TAP interfaces is supported. Packet capture is also supported.")
3103 (license license:gpl3+)))
3105 (define-public hcxtools
3113 (url "https://github.com/ZerBea/hcxtools")
3116 (base32 "0k2qlq9hz5zc21nyc6yrnfqzga7hydn5mm0x3rpl2fhkwl81lxcn"))
3117 (file-name (git-file-name name version))))
3118 (build-system gnu-build-system)
3121 ("libpcap" ,libpcap)
3122 ("openssl" ,openssl)
3127 (string-append "INSTALLDIR=" (assoc-ref %outputs "out") "/bin"))
3128 #:tests? #f ; no test suite
3130 (modify-phases %standard-phases
3131 (delete 'configure))))
3132 (home-page "https://github.com/ZerBea/hcxtools")
3133 (synopsis "Capture wlan traffic to hashcat and John the Ripper")
3135 "This package contains a small set of tools to capture and convert
3136 packets from wireless devices for use with hashcat or John the Ripper.")
3137 (license license:expat)))
3139 (define-public hcxdumptool
3141 (name "hcxdumptool")
3147 (url "https://github.com/ZerBea/hcxdumptool")
3150 (base32 "1b4d543y64ib92w9gcmiyjn5hz2vyjqmxk3f3yr1zk04fhw16gmf"))
3151 (file-name (git-file-name name version))))
3152 (build-system gnu-build-system)
3155 (list ,(string-append "CC=" (cc-for-target))
3156 (string-append "INSTALLDIR=" (assoc-ref %outputs "out") "/bin"))
3157 #:tests? #f ; no test suite
3159 (modify-phases %standard-phases
3160 (delete 'configure))))
3162 `(("openssl" ,openssl)))
3163 (home-page "https://github.com/ZerBea/hcxdumptool")
3164 (synopsis "Small tool to capture packets from wlan devices")
3166 "Small tool to capture packets from WLAN devices. After capturing,
3167 upload the \"uncleaned\" cap to @url{https://wpa-sec.stanev.org/?submit} to
3168 see if the access point or the client is vulnerable to a dictionary attack.
3169 Convert the cap file to hccapx format and/or to WPA-PMKID-PBKDF2
3170 hashline (16800) with @command{hcxpcaptool} from the @code{hcxtools} package
3171 and check if the WLAN key or the master key was transmitted unencrypted.")
3172 (license license:expat)))
3174 (define-public dante
3181 (uri (string-append "https://www.inet.no/dante/files/dante-"
3185 "19rqzj167q73ag20zxpvswhkk0bj56r5maf83v5016sw7vrcz5sc"))))
3186 (build-system gnu-build-system)
3188 ;; XXX: The dynamic socks library doesn't work with 'libc.so' (GNU ld
3189 ;; script). When preloading is enabled, 'sockd' failed with:
3190 ;; … Failed to open library "libc.so": …: invalid ELF header
3191 '(#:configure-flags '("--disable-preload")))
3192 (home-page "https://www.inet.no/dante/")
3193 (synopsis "SOCKS server and client")
3194 (description "Dante is a SOCKS client and server implementation. It can
3195 be installed on a machine with access to an external TCP/IP network and will
3196 allow all other machines, without direct access to that network, to be relayed
3197 through the machine the Dante server is running on. The external network will
3198 never see any machines other than the one Dante is running on.")
3199 (license (license:non-copyleft "file://LICENSE"))))
3201 (define-public restbed
3202 (let ((commit "6eb385fa9051203f28bf96cc1844bbb5a9a6481f"))
3205 (version (git-version "4.6" "1" commit))
3210 (url "https://github.com/Corvusoft/restbed/")
3212 (file-name (string-append name "-" version ".tar.gz"))
3214 (base32 "0k60i5drklqqrb4khb25fzkgz9y0sncxf1sp6lh2bm1m0gh0661n"))))
3215 (build-system cmake-build-system)
3218 ("catch" ,catch-framework)
3219 ("openssl" ,openssl)))
3223 '("-DBUILD_TESTS=NO"
3224 "-DBUILD_EXAMPLES=NO"
3226 "-DBUILD_SHARED=NO")
3228 (modify-phases %standard-phases
3229 (add-after 'unpack 'apply-patches-and-fix-paths
3230 (lambda* (#:key inputs #:allow-other-keys)
3231 (let ((asio (assoc-ref inputs "asio"))
3232 (catch (assoc-ref inputs "catch"))
3233 (openssl (assoc-ref inputs "openssl")))
3234 (substitute* "cmake/Findasio.cmake"
3235 (("(find_path\\( asio_INCLUDE asio\\.hpp HINTS ).*$" all begin)
3236 (string-append begin " \"" asio "/include\" )")))
3237 (substitute* "cmake/Findcatch.cmake"
3238 (("(find_path\\( catch_INCLUDE catch\\.hpp HINTS ).*$" all begin)
3239 (string-append begin " \"" catch "/include\" )")))
3240 (substitute* "cmake/Findopenssl.cmake"
3241 (("(find_library\\( ssl_LIBRARY ssl ssleay32 HINTS ).*$" all begin)
3242 (string-append begin " \"" openssl "/lib\" )"))
3243 (("(find_library\\( crypto_LIBRARY crypto libeay32 HINTS ).*$" all begin)
3244 (string-append begin " \"" openssl "/lib\" )"))
3245 (("(find_path\\( ssl_INCLUDE openssl/ssl\\.h HINTS ).*$" all begin)
3246 (string-append begin " \"" openssl "/include\" )")))))))))
3247 (synopsis "Asynchronous RESTful functionality to C++11 applications")
3248 (description "Restbed is a comprehensive and consistent programming
3249 model for building applications that require seamless and secure
3250 communication over HTTP.")
3251 (home-page "https://github.com/Corvusoft/restbed")
3252 (license license:agpl3+))))
3254 (define-public restinio
3261 (url "https://github.com/Stiffstream/restinio")
3262 (commit (string-append "v." version))))
3263 (file-name (git-file-name name version))
3266 "141a96hx8zhcdv121g6cs91n46kb47y040v25pnvz5f54964z7f5"))))
3267 (build-system cmake-build-system)
3268 (inputs ; TODO: Need to force-keep references on some inputs, e.g. boost.
3270 ("catch2" ,catch-framework2)
3271 ("openssl" ,openssl)
3275 ("sobjectizer" ,sobjectizer)))
3279 ("http-parser" ,http-parser)))
3281 `(#:configure-flags '("-DRESTINIO_INSTALL=on")
3282 #:tests? #f ; TODO: The tests are called from the root CMakelist, need RESTINIO_TEST=on.
3284 (modify-phases %standard-phases
3285 (add-after 'unpack 'change-directory
3287 (chdir "dev/restinio")
3289 (home-page "https://stiffstream.com/en/products/restinio.html")
3290 (synopsis "C++14 library that gives you an embedded HTTP/Websocket server")
3291 (description "RESTinio is a header-only C++14 library that gives you an embedded
3292 HTTP/Websocket server. It is based on standalone version of ASIO
3293 and targeted primarily for asynchronous processing of HTTP-requests.")
3294 (license license:bsd-3)))
3296 (define-public opendht
3303 (url "https://github.com/savoirfairelinux/opendht")
3305 (file-name (git-file-name name version))
3306 (patches (search-patches "opendht-fix-jami.patch"))
3309 "1ax26ri1ifb6s8ppd28jmanka9yf8mw3np65q2h4djhhik0phhal"))))
3310 ;; Since 2.0, the gnu-build-system does not seem to work anymore, upstream bug?
3311 (build-system cmake-build-system)
3313 `(("argon2" ,argon2)
3315 ("readline" ,readline)
3316 ("jsoncpp" ,jsoncpp)
3317 ("openssl" ,openssl) ;required for the DHT proxy
3320 `(("gnutls" ,gnutls) ;included in opendht/crypto.h
3321 ("msgpack" ,msgpack))) ;included in several installed headers
3323 `(("autoconf" ,autoconf)
3324 ("automake" ,automake)
3325 ("pkg-config" ,pkg-config)
3326 ("restinio" ,restinio) ;headers only library
3327 ("libtool" ,libtool)
3328 ("cppunit" ,cppunit)))
3330 `(#:tests? #f ; Tests require network connection.
3332 '(;; "-DOPENDHT_TESTS=on"
3333 "-DOPENDHT_TOOLS=off"
3334 "-DOPENDHT_PYTHON=off"
3335 "-DOPENDHT_PROXY_SERVER=on"
3336 "-DOPENDHT_PUSH_NOTIFICATIONS=on"
3337 "-DOPENDHT_PROXY_SERVER_IDENTITY=on"
3338 "-DOPENDHT_PROXY_CLIENT=on")))
3339 (home-page "https://github.com/savoirfairelinux/opendht/")
3340 (synopsis "Distributed Hash Table (DHT) library")
3341 (description "OpenDHT is a Distributed Hash Table (DHT) library. It may
3342 be used to manage peer-to-peer network connections as needed for real time
3344 (license license:gpl3+)))
3346 (define-public frrouting
3352 (uri (string-append "https://github.com/FRRouting/frr/releases/"
3353 "download/frr-" version "/frr-" version
3357 "0xfrvi62w8qlh46f504ka0skb7pm0g0p8vmdng4w90gsbirlzpdd"))))
3358 (build-system gnu-build-system)
3360 `(("c-ares" ,c-ares)
3362 ("readline" ,readline)))
3365 ("pkg-config" ,pkg-config)
3366 ("python" ,python-wrapper)
3367 ("python-pytest" ,python-pytest)))
3368 (home-page "https://frrouting.org/")
3369 (synopsis "IP routing protocol suite")
3370 (description "FRRouting (FRR) is an IP routing protocol suite which includes
3371 protocol daemons for BGP, IS-IS, LDP, OSPF, PIM, and RIP. ")
3372 (license license:gpl2+)))
3381 (url "https://git.kernel.org/pub/scm/network/wireless/iwd.git")
3383 (file-name (git-file-name name version))
3386 "001dikinsa6kshwscjbvwipavzwpqnpvx9fpshcn63gbvbhyd393"))))
3387 (build-system gnu-build-system)
3391 ("readline" ,readline)))
3393 `(("asciidoc" ,asciidoc)
3394 ("autoconf" ,autoconf)
3395 ("automake" ,automake)
3396 ("libtool" ,libtool)
3397 ("pkgconfig" ,pkg-config)
3399 ("openssl" ,openssl)))
3402 (let ((dbus (assoc-ref %outputs "out")))
3403 (list "--disable-systemd-service"
3404 "--enable-external-ell"
3409 "--localstatedir=/var"
3410 (string-append "--with-dbus-datadir=" dbus "/share/")
3411 (string-append "--with-dbus-busdir="
3412 dbus "/share/dbus-1/system-services")))
3414 (modify-phases %standard-phases
3415 (add-before 'bootstrap 'pre-bootstrap
3417 (substitute* "Makefile.am"
3418 ;; Test disabled because it needs the kernel module
3419 ;; 'pkcs8_key_parser' loaded.
3420 (("unit\\/test-eapol.*? ") "")
3421 ;; Don't try to 'mkdir /var'.
3422 (("\\$\\(MKDIR_P\\) -m 700") "true"))
3424 (home-page "https://git.kernel.org/pub/scm/network/wireless/iwd.git/")
3425 (synopsis "Internet Wireless Daemon")
3426 (description "iwd is a wireless daemon for Linux that aims to replace WPA
3427 Supplicant. It optimizes resource utilization by not depending on any external
3428 libraries and instead utilizing features provided by the Linux kernel to the
3429 maximum extent possible.")
3430 (license license:lgpl2.1+)))
3432 (define-public batctl
3439 (uri (string-append "https://downloads.open-mesh.org/batman/releases/batman-adv-"
3440 version "/batctl-" version ".tar.gz"))
3442 (base32 "0r2w2v4sy6wgr7mp9lc7yj9k4ldsbsm3425rjil7p0b17zmzf4rm"))))
3444 `(("libnl" ,libnl)))
3446 `(("pkg-config" ,pkg-config)))
3447 (build-system gnu-build-system)
3450 ;; Batctl only has a makefile. Thus we disable tests and
3451 ;; configuration, passing in a few make-flags.
3452 #:phases (modify-phases %standard-phases (delete 'configure))
3454 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3455 (string-append "PKG_CONFIG=" (assoc-ref %build-inputs "pkg-config")
3458 (home-page "https://www.open-mesh.org/projects/batman-adv/wiki/Wiki")
3459 (synopsis "Management tool for the mesh networking BATMAN protocol")
3460 (description "This package provides a control tool for the
3461 B.A.T.M.A.N. mesh networking routing protocol provided by the Linux kernel
3462 module @code{batman-adv}, for Layer 2.")
3463 (license license:gpl2+)))
3465 (define-public pagekite
3468 (version "1.5.2.200725")
3473 (url "https://github.com/pagekite/PyPagekite")
3474 (commit (string-append "v" version))))
3475 (file-name (git-file-name name version))
3477 (base32 "0lig1i42bn9isw848vnml5qhcaa04x1dr2hb075bm0a3439kv3rr"))))
3478 (build-system python-build-system)
3481 (modify-phases %standard-phases
3482 (add-after 'install 'install-man-page
3483 (lambda* (#:key inputs outputs #:allow-other-keys)
3484 (let* ((out (assoc-ref outputs "out"))
3485 (man (string-append out "/share/man")))
3487 (string-append "PYTHONPATH=" (getenv "PYTHONPATH"))
3489 (install-file "doc/pagekite.1" (string-append man "/man1"))
3492 `(("python-six" ,python-six)
3493 ("python-socksipychain" ,python-socksipychain)))
3494 (home-page "https://pagekite.net/")
3495 (synopsis "Make localhost servers publicly visible")
3497 "PageKite implements a tunneled reverse proxy which makes it easy to make
3498 a service (such as an HTTP or SSH server) on localhost visible to the wider
3499 Internet, even behind NAT or restrictive firewalls. A managed front-end relay
3500 service is available at @url{https://pagekite.net/}, or you can run your own.")
3501 (license license:agpl3+)))
3503 (define-public ipcalc
3509 (uri (string-append "http://jodies.de/ipcalc-archive/"
3510 name "-" version ".tar.gz"))
3513 "12if9sm8h2ac0pgwkw835cgyqjxm6h27k4kfn2vfas9krrqwbafx"))))
3514 (inputs `(("perl" ,perl)
3517 ("tarball" ,source)))
3518 (build-system trivial-build-system) ;no Makefile.PL
3520 `(#:modules ((guix build utils))
3523 (use-modules (guix build utils))
3524 (use-modules (srfi srfi-1))
3525 (let* ((source (assoc-ref %build-inputs "source"))
3526 (perl (string-append (assoc-ref %build-inputs "perl")
3528 (tar (assoc-ref %build-inputs "tar"))
3529 (gz (assoc-ref %build-inputs "gzip"))
3530 (out (assoc-ref %outputs "out"))
3531 (bin (string-append out "/bin"))
3532 (doc (string-append out "/share/doc/ipcalc")))
3533 (setenv "PATH" (string-append gz "/bin"))
3534 (invoke (string-append tar "/bin/tar") "xvf" source)
3535 (chdir (string-append ,name "-" ,version))
3537 (install-file "ipcalc" bin)
3538 (patch-shebang (string-append bin "/ipcalc") (list perl))
3540 (synopsis "Simple IP network calculator")
3541 (description "ipcalc takes an IP address and netmask and calculates the
3542 resulting broadcast, network, Cisco wildcard mask, and host range. By giving
3543 a second netmask, you can design subnets and supernets. It is also intended
3544 to be a teaching tool and presents the subnetting results as
3545 easy-to-understand binary values.")
3546 (home-page "http://jodies.de/ipcalc")
3547 (license license:gpl2+)))
3549 (define-public tunctl
3556 (uri (string-append "mirror://sourceforge/tunctl/tunctl/" version "/"
3557 "tunctl-" version ".tar.gz"))
3559 (base32 "1zsgn7w6l2zh2q0j6qaw8wsx981qcr536qlz1lgb3b5zqr66qama"))))
3560 (build-system gnu-build-system)
3563 (modify-phases %standard-phases
3564 (delete 'bootstrap) ;there is no configure.ac file
3565 (delete 'configure) ;there is no configure script
3566 (delete 'check) ;there are no tests
3570 (invoke "make" "tunctl")))
3571 ;; TODO: Requires docbook2x to generate man page from SGML.
3573 (lambda* (#:key outputs #:allow-other-keys)
3574 (let* ((out (assoc-ref outputs "out"))
3575 (bin (string-append out "/bin")))
3576 (install-file "tunctl" bin))
3578 (home-page "http://tunctl.sourceforge.net")
3579 (synopsis "Utility to set up and maintain TUN/TAP network interfaces")
3580 (description "Tunctl is used to set up and maintain persistent TUN/TAP
3581 network interfaces, enabling user applications to simulate network traffic.
3582 Such interfaces are useful for VPN software, virtualization, emulation,
3583 simulation, and a number of other applications.")
3584 (license license:gpl2)))
3593 (uri (string-append "mirror://sourceforge/wake-on-lan/wol/"
3594 version "/wol-" version ".tar.gz"))
3596 (base32 "08i6l5lr14mh4n3qbmx6kyx7vjqvzdnh3j9yfvgjppqik2dnq270"))))
3597 (build-system gnu-build-system)
3598 (home-page "https://sourceforge.net/projects/wake-on-lan/")
3599 (synopsis "Implements Wake On LAN functionality in a small program")
3600 (description "Tool to send a magic packet to wake another host on the
3601 network. This must be enabled on the target host, usually in the BIOS.")
3602 (license license:gpl2)))
3611 (uri "mirror://sourceforge/vde/vde2/2.3.2/vde2-2.3.2.tar.gz")
3613 (base32 "14xga0ib6p1wrv3hkl4sa89yzjxv7f1vfqaxsch87j6scdm59pr2"))))
3614 (build-system gnu-build-system)
3616 `(#:parallel-build? #f)) ; Build fails if #t.
3618 `(("python" ,python)
3619 ("libpcap" ,libpcap)
3620 ("openssl" ,openssl-1.0))) ; Build fails with 1.1.
3621 (home-page "https://github.com/virtualsquare/vde-2")
3622 (synopsis "Virtual Distributed Ethernet")
3623 (description "VDE is a set of programs to provide virtual software-defined
3624 Ethernet network interface controllers across multiple virtual or
3625 physical, local or remote devices. The VDE architecture provides
3626 virtual counterparts to hardware components such as switches and
3628 (license (list license:gpl2
3629 license:lgpl2.1 ; libvdeplug
3630 (license:non-copyleft ; slirpvde
3631 "file://COPYING.slirpvde"
3632 "See COPYING.slirpvde in the distribution.")))))
3634 (define-public haproxy
3640 (uri (string-append "https://www.haproxy.org/download/"
3641 (version-major+minor version)
3642 "/src/haproxy-" version ".tar.gz"))
3645 "0fd3c1znid5a9w3gcf77b85hm2a2558w9s02c4b7xzkmivqnqbir"))))
3646 (build-system gnu-build-system)
3649 (let* ((out (assoc-ref %outputs "out")))
3650 (list (string-append "PREFIX=" out)
3651 (string-append "DOCDIR=" out "/share/" ,name)
3652 "TARGET=linux-glibc"
3657 #:tests? #f ; there are only regression tests, using varnishtest
3659 (modify-phases %standard-phases
3660 (delete 'configure))))
3663 ("openssl" ,openssl)
3666 (home-page "https://www.haproxy.org/")
3667 (synopsis "Reliable, high performance TCP/HTTP load balancer")
3668 (description "HAProxy is a free, very fast and reliable solution offering
3669 high availability, load balancing, and proxying for TCP and HTTP-based
3670 applications. It is particularly suited for web sites crawling under very
3671 high loads while needing persistence or Layer7 processing. Supporting tens of
3672 thousands of connections is clearly realistic with today's hardware.")
3673 (license (list license:gpl2+
3675 license:lgpl2.1+))))
3677 (define-public lldpd
3684 (uri (string-append "https://media.luffy.cx/files/lldpd/lldpd-"
3687 (base32 "1v5fd8vwxracvzvgrsswvhppwyx5c4srj89g1cnvy73w831mpq95"))
3688 (modules '((guix build utils)))
3691 ;; Drop bundled library.
3692 (delete-file-recursively "libevent")
3697 "--with-privsep-user=nobody"
3698 "--with-privsep-group=nogroup"
3699 "--localstatedir=/var"
3701 "--without-embedded-libevent"
3702 (string-append "--with-systemdsystemunitdir="
3703 (assoc-ref %outputs "out")
3704 "/lib/systemd/system"))))
3705 (build-system gnu-build-system)
3707 `(("libevent" ,libevent)
3708 ("libxml2" ,libxml2)
3709 ("openssl" ,openssl)
3710 ("readline" ,readline)))
3712 `(("pkg-config" ,pkg-config)))
3713 (home-page "https://vincentbernat.github.io/lldpd/")
3714 (synopsis "Locate neighbors of your network equipment")
3716 "The @dfn{Link Layer Discovery Protocol} (LLDP) is an industry standard
3717 protocol designed to supplant proprietary Link-Layer protocols such as EDP or
3718 CDP. The goal of LLDP is to provide an inter-vendor compatible mechanism to
3719 deliver Link-Layer notifications to adjacent network devices. @code{lldpd} is
3720 an implementation of LLDP. It also supports some proprietary protocols.")
3721 (license license:isc)))
3723 (define-public hashcash
3730 (uri (string-append "http://www.hashcash.org/source/hashcash-"
3734 "15kqaimwb2y8wvzpn73021bvay9mz1gqqfc40gk4hj6f84nz34h1"))))
3735 (build-system gnu-build-system)
3737 `(#:make-flags (list (string-append "CC=" ,(cc-for-target)))
3739 (modify-phases %standard-phases
3741 ;; No tests available.
3744 (lambda* (#:key outputs #:allow-other-keys)
3745 (let* ((outdir (assoc-ref outputs "out"))
3746 (bindir (string-append outdir "/bin"))
3747 (mandir (string-append outdir "/share/man/man1"))
3748 (docdir (string-append outdir "/share/doc/hashcash-" ,version)))
3749 ;; Install manually, as we don't need the `sha1' binary
3750 (install-file "hashcash" bindir)
3751 (install-file "hashcash.1" mandir)
3752 (install-file "README" docdir)
3753 (install-file "LICENSE" docdir)
3754 (install-file "CHANGELOG" docdir)
3756 (home-page "https://www.hashcash.org/")
3757 (synopsis "Denial-of-service countermeasure")
3758 (description "Hashcash is a proof-of-work algorithm, which has been used
3759 as a denial-of-service countermeasure technique in a number of systems.
3761 A hashcash stamp constitutes a proof-of-work which takes a parametrizable
3762 amount of work to compute for the sender. The recipient can verify received
3763 hashcash stamps efficiently.
3765 This package contains a command-line tool for computing and verifying hashcash
3767 (license license:public-domain)))
3776 (uri (string-append "mirror://sourceforge/nbd/nbd/3.20/nbd-" version
3780 "1kfnyx52nna2mnw264njk1dl2zc8m78sz031yp65mbmpi99v7qg0"))))
3781 (build-system gnu-build-system)
3785 `(("pkg-config" ,pkg-config)
3787 (home-page "https://nbd.sourceforge.io/")
3788 (synopsis "NBD client and server")
3789 (description "This package provides the NBD (Network Block Devices)
3790 client and server. It allows you to use remote block devices over a TCP/IP
3792 (license license:gpl2)))