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 Maxim Cournoyer <maxim.cournoyer@gmail.com>
30 ;;; Copyright © 2019 Vasile Dumitrascu <va511e@yahoo.com>
31 ;;; Copyright © 2019 Julien Lepiller <julien@lepiller.eu>
32 ;;; Copyright © 2019 Timotej Lazar <timotej.lazar@araneo.si>
33 ;;; Copyright © 2019 Brice Waegeneire <brice@waegenei.re>
34 ;;; Copyright © 2019 Tonton <tonton@riseup.net>
35 ;;; Copyright © 2019, 2020 Alex Griffin <a@ajgrf.com>
36 ;;; Copyright © 2019, 2020 Jan Wielkiewicz <tona_kosmicznego_smiecia@interia.pl>
37 ;;; Copyright © 2019 Daniel Schaefer <git@danielschaefer.me>
38 ;;; Copyright © 2019 Diego N. Barbato <dnbarbato@posteo.de>
39 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
40 ;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
41 ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
43 ;;; This file is part of GNU Guix.
45 ;;; GNU Guix is free software; you can redistribute it and/or modify it
46 ;;; under the terms of the GNU General Public License as published by
47 ;;; the Free Software Foundation; either version 3 of the License, or (at
48 ;;; your option) any later version.
50 ;;; GNU Guix is distributed in the hope that it will be useful, but
51 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
52 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
53 ;;; GNU General Public License for more details.
55 ;;; You should have received a copy of the GNU General Public License
56 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
58 (define-module (gnu packages networking)
59 #:use-module ((guix licenses) #:prefix license:)
60 #:use-module (guix packages)
61 #:use-module (guix download)
62 #:use-module (guix git-download)
63 #:use-module (guix build-system cmake)
64 #:use-module (guix build-system glib-or-gtk)
65 #:use-module (guix build-system gnu)
66 #:use-module (guix build-system go)
67 #:use-module (guix build-system meson)
68 #:use-module (guix build-system perl)
69 #:use-module (guix build-system python)
70 #:use-module (guix build-system trivial)
71 #:use-module (guix utils)
72 #:use-module (gnu packages)
73 #:use-module (gnu packages admin)
74 #:use-module (gnu packages adns)
75 #:use-module (gnu packages algebra)
76 #:use-module (gnu packages audio)
77 #:use-module (gnu packages autogen)
78 #:use-module (gnu packages autotools)
79 #:use-module (gnu packages base)
80 #:use-module (gnu packages bison)
81 #:use-module (gnu packages boost)
82 #:use-module (gnu packages check)
83 #:use-module (gnu packages code)
84 #:use-module (gnu packages compression)
85 #:use-module (gnu packages cpp)
86 #:use-module (gnu packages crypto)
87 #:use-module (gnu packages curl)
88 #:use-module (gnu packages cyrus-sasl)
89 #:use-module (gnu packages dejagnu)
90 #:use-module (gnu packages docbook)
91 #:use-module (gnu packages documentation)
92 #:use-module (gnu packages flex)
93 #:use-module (gnu packages freedesktop)
94 #:use-module (gnu packages gettext)
95 #:use-module (gnu packages glib)
96 #:use-module (gnu packages gnome)
97 #:use-module (gnu packages gnupg)
98 #:use-module (gnu packages gtk)
99 #:use-module (gnu packages image)
100 #:use-module (gnu packages libevent)
101 #:use-module (gnu packages libidn)
102 #:use-module (gnu packages linux)
103 #:use-module (gnu packages lua)
104 #:use-module (gnu packages multiprecision)
105 #:use-module (gnu packages kerberos)
106 #:use-module (gnu packages ncurses)
107 #:use-module (gnu packages nettle)
108 #:use-module (gnu packages openldap)
109 #:use-module (gnu packages password-utils)
110 #:use-module (gnu packages pcre)
111 #:use-module (gnu packages perl)
112 #:use-module (gnu packages perl-check)
113 #:use-module (gnu packages pkg-config)
114 #:use-module (gnu packages polkit)
115 #:use-module (gnu packages pretty-print)
116 #:use-module (gnu packages pulseaudio)
117 #:use-module (gnu packages python)
118 #:use-module (gnu packages python-web)
119 #:use-module (gnu packages python-xyz)
120 #:use-module (gnu packages qt)
121 #:use-module (gnu packages readline)
122 #:use-module (gnu packages samba)
123 #:use-module (gnu packages serialization)
124 #:use-module (gnu packages sqlite)
125 #:use-module (gnu packages ssh)
126 #:use-module (gnu packages textutils)
127 #:use-module (gnu packages tls)
128 #:use-module (gnu packages valgrind)
129 #:use-module (gnu packages web)
130 #:use-module (gnu packages wxwidgets)
131 #:use-module (gnu packages xml)
132 #:use-module (ice-9 match))
134 (define-public blueman
141 (uri (string-append "https://github.com/blueman-project/blueman/releases"
142 "/download/" version "/blueman-" version ".tar.xz"))
144 (base32 "1pngqbwapbvywhkmflapqvs0wa0af7d1a87wy56l5hg2r462xl1v"))))
145 (build-system glib-or-gtk-build-system)
147 `(#:configure-flags (list "--enable-polkit"
148 "--without-systemdsystemunitdir" ; Not required
149 "--without-systemduserunitdir") ; Not required
151 (modify-phases %standard-phases
152 ;; Python references are not being patched in patch-phase of build,
153 ;; despite using python-wrapper as input. So we patch them manually.
154 (add-after 'unpack 'patch-python-references
155 (lambda* (#:key inputs #:allow-other-keys)
156 (with-directory-excursion "apps"
157 (substitute* '("blueman-adapters.in" "blueman-applet.in"
158 "blueman-assistant.in" "blueman-manager.in"
159 "blueman-mechanism.in" "blueman-report.in"
160 "blueman-rfcomm-watcher.in" "blueman-sendto.in"
161 "blueman-services.in" "blueman-tray.in")
162 (("@PYTHON@") (string-append (assoc-ref inputs "python")
164 ,(version-major+minor
165 (package-version python))))))
167 ;; Fix loading of external programs.
168 (add-after 'unpack 'patch-external-programs
169 (lambda* (#:key inputs #:allow-other-keys)
170 (substitute* '("apps/blueman-report.in" "blueman/main/NetConf.py"
171 "blueman/main/PPPConnection.py")
172 (("/usr/sbin/bluetoothd")
173 (string-append (assoc-ref inputs "bluez")
174 "/libexec/bluetooth/bluetoothd"))
176 (string-append (assoc-ref inputs "iptables")
179 (string-append (assoc-ref inputs "ppp")
182 ;; Fix loading of pulseaudio libraries.
183 (add-after 'unpack 'patch-pulseaudio-libraries
184 (lambda* (#:key inputs #:allow-other-keys)
185 (let* ((pulseaudio (assoc-ref inputs "pulseaudio"))
186 (pulse (string-append pulseaudio "/lib/libpulse.so.0"))
187 (pulse-glib (string-append pulseaudio
188 "/lib/libpulse-mainloop-glib.so.0")))
189 (with-directory-excursion "blueman/main"
190 (substitute* "PulseAudioUtils.py"
191 (("libpulse.so.0") pulse)
192 (("libpulse-mainloop-glib.so.0") pulse-glib)))
194 ;; Fix running of blueman programs.
195 (add-after 'glib-or-gtk-wrap 'wrap-blueman-progs
196 (lambda* (#:key outputs #:allow-other-keys)
197 (let* ((out (assoc-ref outputs "out"))
198 (bin (string-append out "/bin/blueman-"))
199 (libexec (string-append out "/libexec/blueman-"))
200 (lib (string-append out "/lib/python"
201 ,(version-major+minor
202 (package-version python))
206 (wrap-program program
207 `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,lib))
208 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))))
210 (map (lambda (prog) (string-append bin prog))
211 '("adapters" "applet" "assistant" "manager" "report"
212 "sendto" "services" "tray"))
213 (map (lambda (prog) (string-append libexec prog))
214 '("mechanism" "rfcomm-watcher"))))
217 `(("cython" ,python-cython)
218 ("glib:bin" ,glib "bin")
219 ("gobject-introspection" ,gobject-introspection)
220 ("gtk+:bin" ,gtk+ "bin")
221 ("intltool" ,intltool)
222 ("pkg-config" ,pkg-config)))
226 ("gdkpixbuf" ,gdk-pixbuf+svg)
229 ("iproute2" ,iproute)
230 ("iptables" ,iptables)
231 ("net-tools" ,net-tools)
235 ("pulseaudio" ,pulseaudio)
236 ("pycairo" ,python-pycairo)
237 ("pygobject" ,python-pygobject)
238 ("python" ,python-wrapper)
239 ("libappindicator" ,libappindicator)
240 ("libnm" ,network-manager)))
241 (synopsis "GTK+ Bluetooth manager")
242 (description "Blueman is a Bluetooth management utility using the Bluez
243 D-Bus backend. It is designed to be easy to use for most common Bluetooth
245 (home-page "https://github.com/blueman-project/blueman")
246 (license license:gpl3+)))
248 ;; The gnu.org ‘home’ for this GNU project is a directory listing with 1.6.0 as
249 ;; the latest version. The author's git repository, mentioned in the 1.6.0
250 ;; README and otherwise legit-looking, contains a proper 1.7.0 release tarball
251 ;; with many OUI updates. Use it, even though it's also several years old now.
252 (define-public macchanger
259 (uri (string-append "https://github.com/alobbs/macchanger/"
260 "releases/download/" version "/"
261 name "-" version ".tar.gz"))
263 (base32 "1gs5m0jxyprdp00w2qkbnaqm3ilkjz0q1gqdg4nzdm8g4xy73qns"))))
264 (build-system gnu-build-system)
265 (home-page "https://www.gnu.org/software/macchanger/")
266 (synopsis "Viewing and manipulating MAC addresses of network interfaces")
267 (description "GNU MAC Changer is a utility for viewing and changing MAC
268 addresses of networking devices. New addresses may be set explicitly or
269 randomly. They can include MAC addresses of the same or other hardware vendors
270 or, more generally, MAC addresses of the same category of hardware.")
271 (license license:gpl2+)))
273 (define-public miredo
279 (uri (string-append "http://www.remlab.net/files/miredo/miredo-"
283 "0j9ilig570snbmj48230hf7ms8kvcwi2wblycqrmhh85lksd49ps"))))
284 (build-system gnu-build-system)
287 (modify-phases %standard-phases
288 ;; The checkconf test in src/ requires network access.
290 'check 'disable-checkconf-test
292 (substitute* "src/Makefile"
293 (("^TESTS = .*") "TESTS = \n"))
295 (home-page "https://www.remlab.net/miredo/")
296 (synopsis "Teredo IPv6 tunneling software")
298 "Miredo is an implementation (client, relay, server) of the Teredo
299 specification, which provides IPv6 Internet connectivity to IPv6 enabled hosts
300 residing in IPv4-only networks, even when they are behind a NAT device.")
301 (license license:gpl2+)))
303 (define-public ndisc6
309 (uri (string-append "https://www.remlab.net/files/ndisc6/ndisc6-"
313 "07swyar1hl83zxmd7fqwb2q0c0slvrswkcfp3nz5lknrk15dmcdb"))))
314 (build-system gnu-build-system)
315 (home-page "https://www.remlab.net/ndisc6/")
316 (synopsis "IPv6 diagnostic tools")
318 "NDisc6 is a collection of tools for IPv6 networking diagnostics.
319 It includes the following programs:
322 @item @command{ndisc6}: ICMPv6 Neighbor Discovery tool.
323 @item @command{rdisc6}: ICMPv6 Router Discovery tool.
324 @item @command{tcptraceroute6}: IPv6 traceroute over TCP.
325 @item @command{traceroute6}: IPv6 traceroute over UDP.
326 @item @command{rdnssd}: Recursive DNS Servers discovery daemon.
328 ;; The user can choose version 2 or 3 of the GPL, not later versions.
329 (license (list license:gpl2 license:gpl3))))
338 "http://www.dest-unreach.org/socat/download/socat-"
342 "1z7xgnwiqpcv1j6aghhj9nqbx7cg3gpc4n9j7vi9hm7nhv5788wp"))))
343 (build-system gnu-build-system)
344 (arguments '(#:tests? #f)) ; no test suite
345 (inputs `(("openssl" ,openssl)))
346 (home-page "http://www.dest-unreach.org/socat/")
348 "Open bidirectional communication channels from the command line")
350 "socat is a relay for bidirectional data transfer between two independent
351 data channels---files, pipes, devices, sockets, etc. It can create
352 \"listening\" sockets, named pipes, and pseudo terminals.
354 socat can be used, for instance, as TCP port forwarder, as a shell interface
355 to UNIX sockets, IPv6 relay, for redirecting TCP oriented programs to a serial
356 line, to logically connect serial lines on different computers, or to
357 establish a relatively secure environment (su and chroot) for running client
358 or server shell scripts with network connections.")
359 (license license:gpl2)))
361 (define-public tcp-wrappers
363 (name "tcp-wrappers")
368 "ftp://ftp.porcupine.org/pub/security/tcp_wrappers_"
372 "0p9ilj4v96q32klavx0phw9va21fjp8vpk11nbh6v2ppxnnxfhwm"))))
373 (build-system gnu-build-system)
376 (modify-phases %standard-phases
377 (delete 'configure) ; there is no configure script
378 (delete 'check) ; there are no tests
382 ;; Upstream doesn't generate a shared library. So we have to do it.
383 (setenv "CC" "gcc -fno-builtin -fPIC")
384 (substitute* "Makefile"
385 (("^(all[^\n]*)" line) (string-append line " libwrap.so\n
386 libwrap.so: $(LIB_OBJ)\n
387 \tgcc -shared $^ -o $@\n")))
388 ;; Deal with some gcc breakage.
389 (substitute* "percent_m.c"
390 (("extern char .sys_errlist.*;") ""))
391 (substitute* "scaffold.c"
392 (("extern char .malloc.*;") ""))
393 ;; This, believe it or not, is the recommended way to build!
394 (invoke "make" "REAL_DAEMON_DIR=/etc" "linux")))
395 ;; There is no make install stage, so we have to do it ourselves.
398 (let ((out (assoc-ref %outputs "out"))
399 (man-pages `("hosts_access.3"
407 (headers `("tcpd.h"))
408 (bins `("safe_finger"
415 (install-file x (string-append out "/include")))
419 (install-file x (string-append out "/share/man/man"
420 (string-take-right x 1))))
424 (install-file x (string-append out "/lib/")))
428 (install-file x (string-append out "/bin/")))
431 (home-page "http://www.porcupine.org")
432 (synopsis "Monitor and filter incoming requests for network services")
433 (description "With this package you can monitor and filter incoming requests for
434 network services. It includes a library which may be used by daemons to
435 transparently check connection attempts against an access control list.")
436 (license (license:non-copyleft "file://DISCLAIMER"
437 "See the file DISCLAIMER in the distribution."))))
440 (define-public zeromq
446 (uri (string-append "https://github.com/zeromq/libzmq/releases"
447 "/download/v" version "/zeromq-" version ".tar.gz"))
450 "0qzp80ky4y2k7k1ya09v9gkivvfbz2km813snrb8jhnn634bbmzb"))))
451 (build-system gnu-build-system)
452 (home-page "https://zeromq.org")
453 (synopsis "Library for message-based applications")
455 "The 0MQ lightweight messaging kernel is a library which extends the
456 standard socket interfaces with features traditionally provided by specialized
457 messaging middle-ware products. 0MQ sockets provide an abstraction of
458 asynchronous message queues, multiple messaging patterns, message
459 filtering (subscriptions), seamless access to multiple transport protocols and
461 (license license:lgpl3+)))
470 "https://github.com/zeromq/" name
471 "/releases/download/v" version
472 "/" name "-" version ".tar.gz"))
475 "1szciz62sk3fm4ga9qjpxz0n0lazvphm32km95bq92ncng12kayg"))))
476 (build-system gnu-build-system)
478 '(#:configure-flags '("--enable-drafts")
479 #:phases (modify-phases %standard-phases
480 (add-before 'check 'patch-tests
482 ;; XXX FIXME: Disable the zproc test, which fails on some
483 ;; hardware: <https://github.com/zeromq/czmq/issues/2007>.
484 (substitute* "src/czmq_selftest.c"
485 (("\\{ \"zproc\", zproc_test.*")
489 `(("zeromq" ,zeromq)))
490 (home-page "https://zeromq.org")
491 (synopsis "High-level C bindings for ØMQ")
493 "czmq provides bindings for the ØMQ core API that hides the differences
494 between different versions of ØMQ.")
495 (license license:mpl2.0)))
497 (define-public cppzmq
504 (url "https://github.com/zeromq/cppzmq")
505 (commit (string-append "v" version))))
508 "19acx2bzi4n6fdnfgkja1nds7m1bwg8lw5vfcijrx9fv75pa7m8h"))
509 (file-name (git-file-name name version))))
510 (build-system cmake-build-system)
512 '(;; FIXME: The test suite requires downloading Catch and custom
513 ;; CMake targets, and refuses to use the system version.
514 ;; See <https://github.com/zeromq/cppzmq/issues/334>.
516 #:configure-flags '("-DCPPZMQ_BUILD_TESTS=OFF")))
518 `(("pkg-config" ,pkg-config)))
520 `(("zeromq" ,zeromq)))
521 (home-page "https://zeromq.org")
522 (synopsis "C++ bindings for the ØMQ messaging library")
524 "This package provides header-only C++ bindings for ØMQ. The header
525 files contain direct mappings of the abstractions provided by the ØMQ C API.")
526 (license license:expat)))
528 (define-public libnatpmp
535 "http://miniupnp.free.fr/files/"
536 name "-" version ".tar.gz"))
539 "1c1n8n7mp0amsd6vkz32n8zj3vnsckv308bb7na0dg0r8969rap1"))))
540 (build-system gnu-build-system)
543 (modify-phases %standard-phases
545 (delete 'check)) ; no tests
547 (let* ((target ,(%current-target-system))
549 (string-append target "-gcc")
552 (string-append "CC=" gcc)
553 (string-append "INSTALLPREFIX=" (assoc-ref %outputs "out"))
554 (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib")))))
555 (home-page "http://miniupnp.free.fr/libnatpmp.html")
556 (synopsis "C library implementing NAT-PMP")
558 "@code{libnatpmp} is a portable and asynchronous implementation of
559 the Network Address Translation - Port Mapping Protocol (NAT-PMP)
560 written in the C programming language.")
561 (license license:bsd-3)))
563 (define-public librdkafka
570 (url "https://github.com/edenhill/librdkafka.git")
571 (commit (string-append "v" version))))
572 (file-name (git-file-name name version))
575 "05mgrdzacn9kdpr68r5j0cvsvl54s52glnsc1ww9rcxx6p7hq1ly"))))
576 (build-system gnu-build-system)
579 (modify-phases %standard-phases
581 ;; its custom configure script doesn't understand 'CONFIG_SHELL'.
582 (lambda* (#:key outputs #:allow-other-keys)
583 (let ((out (assoc-ref outputs "out")))
584 ;; librdkafka++.so lacks RUNPATH for librdkafka.so
586 (string-append "-Wl,-rpath=" out "/lib"))
587 (invoke "./configure"
588 (string-append "--prefix=" out))))))))
590 `(("python" ,python-wrapper)))
592 `(("zlib" ,zlib))) ; in the Libs.private field of rdkafka.pc
593 (home-page "https://github.com/edenhill/librdkafka")
594 (synopsis "Apache Kafka C/C++ client library")
596 "librdkafka is a C library implementation of the Apache Kafka protocol,
597 containing both Producer and Consumer support.")
598 (license license:bsd-2)))
600 (define-public libndp
606 (uri (string-append "https://libndp.org/files/"
607 "libndp-" version ".tar.gz"))
610 "1dlinhl39va00v55qygjc9ap77yqf7xvn4rwmvdr49xhzzxhlj1c"))))
611 (build-system gnu-build-system)
612 (home-page "https://libndp.org/")
613 (synopsis "Library for Neighbor Discovery Protocol")
615 "libndp contains a library which provides a wrapper for IPv6 Neighbor
616 Discovery Protocol. It also provides a tool named ndptool for sending and
617 receiving NDP messages.")
618 (license license:lgpl2.1+)))
620 (define-public ethtool
626 (uri (string-append "mirror://kernel.org/software/network/"
627 "ethtool/ethtool-" version ".tar.xz"))
630 "0f9w0pqkvwn540rasmj6c8897g9gj2hmjnbkhpi9yf1s7jyvhkkj"))))
631 (build-system gnu-build-system)
633 `(("pkg-config" ,pkg-config)))
635 `(("libmnl" ,libmnl)))
636 (home-page "https://www.kernel.org/pub/software/network/ethtool/")
637 (synopsis "Display or change Ethernet device settings")
639 "ethtool can be used to query and change settings such as speed,
640 auto-negotiation and checksum offload on many network devices, especially
642 (license license:gpl2)))
644 (define-public ifstatus
650 (uri (string-append "mirror://sourceforge/ifstatus/ifstatus/"
651 "ifstatus%20v" version "/ifstatus-v"
655 "045cbsq9ps32j24v8y5hpyqxnqn9mpaf3mgvirlhgpqyb9jsia0c"))
656 (modules '((guix build utils)))
659 (substitute* "Main.h"
660 (("#include <stdio.h>")
661 "#include <stdio.h>\n#include <stdlib.h>"))
663 (build-system gnu-build-system)
665 '(#:tests? #f ; no "check" target
667 (modify-phases %standard-phases
668 (delete 'configure) ; no configure script
670 (lambda* (#:key outputs #:allow-other-keys)
671 (let* ((out (assoc-ref outputs "out"))
672 (bin (string-append out "/bin")))
674 (copy-file "ifstatus"
675 (string-append bin "/ifstatus")))
677 (inputs `(("ncurses" ,ncurses)))
678 (home-page "http://ifstatus.sourceforge.net/graphic/index.html")
679 (synopsis "Text based network interface status monitor")
681 "IFStatus is a simple, easy-to-use program for displaying commonly
682 needed/wanted real-time traffic statistics of multiple network
683 interfaces, with a simple and efficient view on the command line. It is
684 intended as a substitute for the PPPStatus and EthStatus projects.")
685 (license license:gpl2+)))
687 (define-public iputils
691 (home-page "https://github.com/iputils/iputils")
694 (uri (git-reference (url home-page)
695 (commit (string-append "s" version))))
696 (file-name (git-file-name name version))
697 (patches (search-patches "iputils-libcap-compat.patch"))
700 "04bp4af15adp79ipxmiakfp0ij6hx5qam266flzbr94pr8z8l693"))))
701 (build-system meson-build-system)
703 `(#:configure-flags '("-DBUILD_RARPD=true")
705 (modify-phases %standard-phases
706 (add-after 'unpack 'fix-docbook-url
707 (lambda* (#:key inputs #:allow-other-keys)
708 (let* ((docbook-xsl (assoc-ref inputs "docbook-xsl"))
709 (uri (string-append docbook-xsl "/xml/xsl/docbook-xsl-"
710 ,(package-version docbook-xsl))))
714 (("http://docbook\\.sourceforge\\.net/release/xsl-ns/current")
716 (cons "doc/meson.build"
717 (find-files "doc" "\\.xsl$")))
720 `(("gettext" ,gettext-minimal)
721 ("pkg-config" ,pkg-config)
722 ("docbook-xsl" ,docbook-xsl)
723 ("docbook-xml" ,docbook-xml-5)
724 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
725 ("xsltproc" ,libxslt)))
729 ("openssl" ,openssl)))
730 (synopsis "Collection of network utilities")
732 "This package contains a variety of tools for dealing with network
733 configuration, troubleshooting, or servers. Utilities included are:
736 @item @command{arping}: Ping hosts using the @dfn{Adress Resolution Protocol}.
737 @item @command{clockdiff}: Compute time difference between network hosts
738 using ICMP TSTAMP messages.
739 @item @command{ninfod}: Daemon that responds to IPv6 Node Information Queries.
740 @item @command{ping}: Use ICMP ECHO messages to measure round-trip delays
741 and packet loss across network paths.
742 @item @command{rarpd}: Answer RARP requests from clients.
743 @item @command{rdisc}: Populate network routing tables with information from
744 the ICMP router discovery protocol.
745 @item @command{tftpd}: Trivial file transfer protocol server.
746 @item @command{tracepath}: Trace network path to an IPv4 or IPv6 address and
747 discover MTU along the way.
749 ;; The various utilities are covered by different licenses, see LICENSE
751 (license (list license:gpl2+ ;arping, rarpd, tracepath
752 license:bsd-3 ;clockdiff, ninfod, ping, tftpd
753 (license:non-copyleft
754 "https://spdx.org/licenses/Rdisc.html"
755 "Sun Microsystems license, see rdisc.c for details")))))
763 (uri (string-append "mirror://sourceforge/nload/nload/" version
764 "/nload-" version ".tar.gz"))
767 "1rb9skch2kgqzigf19x8bzk211jdfjfdkrcvaqyj89jy2pkm3h61"))))
768 (build-system gnu-build-system)
769 (inputs `(("ncurses" ,ncurses)))
770 (home-page "http://www.roland-riegel.de/nload/")
771 (synopsis "Realtime console network usage monitor")
773 "Nload is a console application which monitors network traffic and
774 bandwidth usage in real time. It visualizes the in- and outgoing traffic using
775 two graphs, and provides additional info like total amount of transferred data
776 and min/max network usage.")
777 (license license:gpl2+)))
779 (define-public iodine
785 (uri (string-append "http://code.kryo.se/" name "/"
786 name "-" version ".tar.gz"))
789 "0gh17kcxxi37k65zm4gqsvbk3aw7yphcs3c02pn1c4s2y6n40axd"))))
790 (build-system gnu-build-system)
793 (modify-phases %standard-phases
795 (add-before 'build 'fix-ifconfig-path
796 ;; This package works only with the net-tools version of ifconfig.
797 (lambda* (#:key inputs #:allow-other-keys)
798 (substitute* "src/tun.c"
800 (string-append (assoc-ref inputs "net-tools") "/bin/")))
802 (add-before 'check 'delete-failing-tests
803 ;; Avoid https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802105.
805 (substitute* "tests/common.c"
806 (("tcase_add_test\\(tc, \
807 test_parse_format_ipv(4(|_listen_all|_mapped_ipv6)|6)\\);")
810 #:make-flags (list "CC=gcc"
811 (string-append "prefix=" (assoc-ref %outputs "out")))
812 #:test-target "test"))
813 (inputs `(("net-tools" ,net-tools)
815 (native-inputs `(("check" ,check)
816 ("pkg-config" ,pkg-config)))
817 (home-page "https://code.kryo.se/iodine/")
818 (synopsis "Tunnel IPv4 data through a DNS server")
819 (description "Iodine tunnels IPv4 data through a DNS server. This
820 can be useful in different situations where internet access is firewalled, but
821 DNS queries are allowed. The bandwidth is asymmetrical, with limited upstream
822 and up to 1 Mbit/s downstream.")
823 ;; src/md5.[ch] is released under the zlib license
824 (license (list license:isc license:zlib))))
833 (uri (string-append "mirror://debian/pool/main/w/whois/"
834 "whois_" version ".tar.xz"))
836 (base32 "0kpi981zjczvdcxfcq455c529vlaxa73x8kbm530z5b01h0fk8fb"))))
837 (build-system gnu-build-system)
839 `(#:tests? #f ; no test suite
840 #:make-flags (list "CC=gcc"
841 (string-append "prefix=" (assoc-ref %outputs "out")))
843 (modify-phases %standard-phases
844 (delete 'configure) ; no configure script
845 (add-before 'build 'setenv
847 (setenv "HAVE_ICONV" "1")
850 `(("libidn2" ,libidn2)))
852 `(("gettext" ,gettext-minimal)
854 ("pkg-config" ,pkg-config)))
855 (synopsis "Intelligent client for the WHOIS directory service")
857 "whois searches for an object in a @dfn{WHOIS} (RFC 3912) database.
858 It is commonly used to look up the registered users or assignees of an Internet
859 resource, such as a domain name, an IP address block, or an autonomous system.
860 It can automatically select the appropriate server for most queries.
862 For historical reasons, this package also includes @command{mkpasswd}, which
863 encrypts passwords using @code{crypt(3)} and is unrelated to the Expect command
865 (home-page "https://github.com/rfc1036/whois")
866 (license license:gpl2+)))
868 (define-public wireshark
875 (uri (string-append "https://www.wireshark.org/download/src/wireshark-"
878 (base32 "1amqgn94g6h6cfnsccm2zb4c73pfv1qmzi1i6h1hnbcyhhg4czfi"))))
879 (build-system cmake-build-system)
882 (modify-phases %standard-phases
883 (add-after 'unpack 'remove-failing-test
884 ;; Test 31/32 fails with errors like "Program reassemble_test is
885 ;; not available". Skipping it for now.
887 (substitute* "CMakeLists.txt"
888 (("suite_unittests" all) (string-append "# " all)))
890 ;; Build process chokes during `validate-runpath' phase.
892 ;; Errors are like the following:
893 ;; "/gnu/store/...wireshark-3.0.0/lib/wireshark/plugins/3.0/epan/ethercat.so:
894 ;; error: depends on 'libwireshark.so.12', which cannot be found in
895 ;; RUNPATH". That is, "/gnu/store/...wireshark-3.0.0./lib" doesn't
896 ;; belong to RUNPATH.
898 ;; That’s not a problem in practice because "ethercat.so" is a plugin,
899 ;; so it’s dlopen’d by a process that already provides "libwireshark".
900 ;; For now, we disable this phase.
901 #:validate-runpath? #f))
907 ("libgcrypt" ,libgcrypt)
913 ("lua" ,lua-5.2) ;Lua 5.3 unsupported
916 ("qtmultimedia" ,qtmultimedia)
925 ("gettext" ,gettext-minimal)
927 ("pkg-config" ,pkg-config)
928 ("python" ,python-wrapper)
929 ("qttools" ,qttools)))
930 (synopsis "Network traffic analyzer")
931 (description "Wireshark is a network protocol analyzer, or @dfn{packet
932 sniffer}, that lets you capture and interactively browse the contents of
934 (home-page "https://www.wireshark.org/")
935 (license license:gpl2+)))
944 (uri (string-append "https://fping.org/dist/fping-"
947 (base32 "0jmnf4vmr43aiwk3h2b5qdsb95gxar8gz1yli8fswnm9nrs9ccvx"))))
948 (build-system gnu-build-system)
949 (home-page "https://fping.org/")
950 (synopsis "Send ICMP ECHO_REQUEST packets to network hosts")
952 "fping is a ping like program which uses the Internet Control Message
953 Protocol (ICMP) echo request to determine if a target host is responding.
954 fping differs from ping in that you can specify any number of targets on the
955 command line, or specify a file containing the lists of targets to ping.
956 Instead of sending to one target until it times out or replies, fping will
957 send out a ping packet and move on to the next target in a round-robin
959 (license license:expat)))
961 (define-public gandi.cli
968 (uri (pypi-uri name version))
970 (base32 "110wc9zgxsrvw4yzp21p0ian5lcf7vhcpxhnmsc4fg9pzl2bwxd5"))))
971 (build-system python-build-system)
974 (modify-phases %standard-phases
975 (add-after 'unpack 'embed-store-file-names
977 (substitute* (list "gandi/cli/modules/cert.py"
978 "gandi/cli/tests/commands/test_certificate.py")
979 (("openssl") (which "openssl")))
981 (add-after 'install 'install-documentation
982 ;; The included man page may be outdated but we install it anyway,
983 ;; since it's mentioned in 'gandi --help' and better than nothing.
984 (lambda* (#:key outputs #:allow-other-keys)
985 (let* ((out (assoc-ref outputs "out"))
986 (man1 (string-append out "/share/man/man1")))
988 (with-output-to-file (string-append man1 "/gandi.1")
990 (invoke "rst2man.py" "gandicli.man.rst")))
993 `(("python-docutils" ,python-docutils) ; for rst2man.py
994 ("python-pytest-cov" ,python-pytest-cov)
995 ("python-tox" ,python-tox)))
997 `(("openssl" ,openssl)
998 ("python-click" ,python-click)
999 ("python-ipy" ,python-ipy)
1000 ("python-pyyaml" ,python-pyyaml)
1001 ("python-requests" ,python-requests)))
1002 (home-page "https://cli.gandi.net")
1003 (synopsis "Command-line interface to the Gandi.net Web API")
1005 "This package provides a command-line client (@command{gandi}) to buy,
1006 manage, and delete Internet resources from Gandi.net such as domain names,
1007 virtual machines, and certificates.")
1008 (license license:gpl3+)))
1010 (define-public go-netns
1011 (let ((commit "13995c7128ccc8e51e9a6bd2b551020a27180abd")
1015 (version (git-version "0.0.0" revision commit))
1019 (url "https://github.com/vishvananda/netns.git")
1021 (file-name (git-file-name name version))
1024 "1zk6w8158qi4niva5rijchbv9ixgmijsgqshh54wdaav4xrhjshn"))))
1025 (build-system go-build-system)
1027 `(#:import-path "github.com/vishvananda/netns"
1028 #:tests? #f)) ;tests require root privileges
1029 (home-page "https://github.com/vishvananda/netns")
1030 (synopsis "Simple network namespace handling for Go")
1031 (description "The netns package provides a simple interface for
1032 handling network namespaces in Go.")
1033 (license license:asl2.0))))
1035 (define-public go-sctp
1036 ;; docker-libnetwork-cmd-proxy requires this exact commit.
1037 (let ((commit "07191f837fedd2f13d1ec7b5f885f0f3ec54b1cb")
1041 (version (git-version "0.0.0" revision commit))
1045 (url "https://github.com/ishidawataru/sctp.git")
1047 (file-name (git-file-name name version))
1050 "1mk9ncm10gwi5pn5wcw4skbyf4qg7n5qdf1mim4gf3mrckvi6g6h"))))
1051 (build-system go-build-system)
1053 `(#:import-path "github.com/ishidawataru/sctp"))
1054 (home-page "https://github.com/ishidawataru/sctp")
1055 (synopsis "SCTP library for the Go programming language")
1056 (description "This library provides methods for using the stream control
1057 transmission protocol (SCTP) in a Go application.")
1058 (license license:asl2.0))))
1060 (define-public httping
1067 (uri (string-append "https://www.vanheusden.com/httping/httping-"
1071 "1y7sbgkhgadmd93x1zafqc4yp26ssiv16ni5bbi9vmvvdl55m29y"))))
1072 (build-system gnu-build-system)
1074 `(("gettext" ,gettext-minimal)))
1077 ("ncurses" ,ncurses)
1078 ("openssl" ,openssl)))
1080 `(#:make-flags (list "CC=gcc"
1081 (string-append "DESTDIR=" (assoc-ref %outputs "out"))
1083 #:tests? #f)) ; no tests
1084 (home-page "https://www.vanheusden.com/httping/")
1085 (synopsis "Web server latency and throughput monitor")
1087 "httping measures how long it takes to connect to a web server, send an
1088 HTTP(S) request, and receive the reply headers. It is somewhat similar to
1089 @command{ping}, but can be used even in cases where ICMP traffic is blocked
1090 by firewalls or when you want to monitor the response time of the actual web
1091 application stack itself.")
1092 (license license:gpl2))) ; with permission to link with OpenSSL
1094 (define-public httpstat
1101 (uri (pypi-uri "httpstat" version))
1104 "1chw2nk56vaq87aba012a270k9na06hfx1pfbsrc3jfvlc2kb9hb"))))
1105 (build-system python-build-system)
1106 (inputs `(("curl" ,curl)))
1109 (modify-phases %standard-phases
1110 (add-before 'build 'fix-curl-path
1111 (lambda* (#:key inputs #:allow-other-keys)
1112 (substitute* "httpstat.py"
1113 (("ENV_CURL_BIN.get\\('curl'\\)")
1114 (string-append "ENV_CURL_BIN.get('"
1115 (assoc-ref inputs "curl")
1118 (home-page "https://github.com/reorx/httpstat")
1119 (synopsis "Visualize curl statistics")
1121 "@command{httpstat} is a tool to visualize statistics from the
1122 @command{curl} HTTP client. It acts as a wrapper for @command{curl} and
1123 prints timing information for each step of the HTTP request (DNS lookup,
1124 TCP connection, TLS handshake and so on) in the terminal.")
1125 (license license:expat)))
1127 (define-public squid
1134 (uri (string-append "http://www.squid-cache.org/Versions/v4/squid-"
1137 (base32 "05z34ysy2zn7as11vd365xxhh36bm1ysiwcbr0i0f0nwng406apl"))))
1138 (build-system gnu-build-system)
1141 (modify-phases %standard-phases
1142 (add-before 'build 'fix-true-path
1143 (lambda* (#:key inputs #:allow-other-keys)
1144 (substitute* "test-suite/testheaders.sh"
1146 (string-append (assoc-ref inputs "coreutils")
1151 ("openldap" ,openldap)
1152 ("linux-pam" ,linux-pam)
1154 ("cyrus-sasl" ,cyrus-sasl)
1156 ("libxml2" ,libxml2)
1157 ("openssl" ,openssl)))
1159 `(("cppunit" ,cppunit)
1160 ("pkg-config" ,pkg-config)))
1161 (synopsis "Web caching proxy")
1162 (description "Squid is a caching proxy for the Web supporting HTTP, HTTPS,
1163 FTP, and more. It reduces bandwidth and improves response times by caching and
1164 reusing frequently-requested web pages.")
1165 (home-page "http://www.squid-cache.org/")
1166 (license license:gpl2+)))
1168 (define-public bwm-ng
1176 (url "https://github.com/vgropp/bwm-ng.git")
1177 (commit (string-append "v" version))))
1178 (file-name (git-file-name name version))
1180 (base32 "0k906wb4pw3dcqpcwnni78lahzi3bva483f8c17sjykic7as4y5n"))))
1181 (build-system gnu-build-system)
1184 (modify-phases %standard-phases
1185 (add-after 'unpack 'disable-premature-./configure
1187 (substitute* "autogen.sh"
1188 (("\\$srcdir/configure")
1192 `(("autoconf" ,autoconf)
1193 ("automake" ,automake)))
1195 `(("ncurses" ,ncurses)))
1196 (synopsis "Console based live network and disk I/O bandwidth monitor")
1197 (description "Bandwidth Monitor NG is a small and simple console based
1198 live network and disk I/O bandwidth monitor.")
1199 (home-page "https://www.gropp.org/?id=projects&sub=bwm-ng")
1200 (license license:gpl2)))
1202 (define-public aircrack-ng
1204 (name "aircrack-ng")
1209 (uri (string-append "https://download.aircrack-ng.org/aircrack-ng-"
1212 (base32 "0ix2k64qg7x3w0bzdsbk1m50kcpq1ws59g3zkwiafvpwdr4gs2sg"))))
1213 (build-system gnu-build-system)
1215 `(("autoconf" ,autoconf)
1216 ("automake" ,automake)
1217 ("libtool" ,libtool)
1218 ("pkg-config" ,pkg-config)
1221 `(("libgcrypt" ,libgcrypt)
1223 ("libpcap" ,libpcap)
1224 ("ethtool" ,ethtool)
1230 (list "--with-experimental=yes" ; build wesside-ng, etc.
1231 "--with-gcrypt") ; openssl's the default
1232 #:phases (modify-phases %standard-phases
1233 (add-before 'bootstrap 'patch-evalrev
1235 ;; Called by ./autogen.sh below, before the default
1236 ;; ‘patch-shebangs’ phase has had a chance to run.
1237 (substitute* "evalrev"
1241 (add-after 'build 'absolutize-tools
1242 (lambda* (#:key inputs #:allow-other-keys)
1243 (let ((ethtool (string-append (assoc-ref inputs "ethtool")
1245 (substitute* "scripts/airmon-ng"
1247 (string-append ethtool " ")))
1249 (home-page "https://www.aircrack-ng.org")
1250 (synopsis "Assess WiFi network security")
1252 "Aircrack-ng is a complete suite of tools to assess WiFi network
1253 security. It focuses on different areas of WiFi security: monitoring,
1254 attacking, testing, and cracking. All tools are command-line driven, which
1255 allows for heavy scripting.")
1256 (license (list license:gpl2+ license:bsd-3))))
1258 (define-public pixiewps
1265 "https://github.com/wiire-a/pixiewps/releases/"
1266 "download/v" version "/" name "-" version ".tar.xz"))
1269 "07nym6bqml0k9v29vnj003nrgnwrywgjvnljb7cdpsvnwilhbp64"))))
1270 (build-system gnu-build-system)
1274 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1276 (modify-phases %standard-phases
1277 (delete 'configure)) ; no configure script
1278 #:tests? #f)) ; there are no tests
1279 (home-page "https://github.com/wiire-a/pixiewps/")
1280 (synopsis "Offline brute-force tool for Wi-Fi Protected Setup")
1281 (description "Pixiewps implements the pixie-dust attack to brute
1282 force the Wi-Fi Protected Setup (WPS) PIN by exploiting the low or
1283 non-existing entropy of some access points.")
1284 (license license:gpl3+)))
1286 (define-public reaver
1293 "https://github.com/t6x/reaver-wps-fork-t6x/releases/"
1294 "download/v" version "/reaver-" version ".tar.xz"))
1297 "00k7mc81ifv0wma7k4v18mj498badbw5yls6c28qin3d1gda0ag3"))))
1298 (build-system gnu-build-system)
1301 ;; Save session files to current directory instead of /var.
1302 (list "--enable-savetocurrent"
1303 "--localstatedir=/tmp/dummy") ; prevent creating /var during install
1305 (modify-phases %standard-phases
1306 (add-before 'configure 'change-directory
1310 (add-after 'install 'install-doc
1311 (lambda* (#:key outputs #:allow-other-keys)
1313 (let* ((out (assoc-ref outputs "out"))
1314 (doc (string-append out "/share/doc/" ,name "-" ,version))
1315 (man1 (string-append out "/share/man/man1")))
1316 (for-each (lambda (file) (install-file file doc))
1317 (find-files "." "README.*"))
1318 (install-file "reaver.1" man1)
1320 #:tests? #f)) ; there are no tests
1322 `(("libpcap" ,libpcap)))
1324 `(("aircrack-ng" ,aircrack-ng)
1325 ("pixiewps" ,pixiewps)))
1326 (home-page "https://github.com/t6x/reaver-wps-fork-t6x/")
1327 (synopsis "Attack tool for Wi-Fi Protected Setup")
1328 (description "Reaver performs a brute force attack against an access
1329 point's Wi-Fi Protected Setup (WPS) PIN. Once the PIN is found, the WPA
1330 passphrase can be recovered and the AP's wireless settings can be
1332 (license license:gpl2+)))
1334 (define-public perl-danga-socket
1336 (name "perl-danga-socket")
1341 (uri (string-append "mirror://cpan/authors/id/N/NM/NML/"
1342 "Danga-Socket-" version ".tar.gz"))
1344 (base32 "0x4bvirmf0kphks19jwgva00zz73zx344218dfaiv8gigrw3yg4m"))))
1345 (build-system perl-build-system)
1347 `(("perl-test-tcp" ,perl-test-tcp)))
1349 `(("perl-sys-syscall" ,perl-sys-syscall)))
1350 (home-page "https://metacpan.org/release/Danga-Socket")
1351 (synopsis "Event loop and event-driven async socket base class")
1353 "Danga::Socket is an abstract base class for objects backed by a socket
1354 which provides the basic framework for event-driven asynchronous IO, designed
1355 to be fast. Danga::Socket is both a base class for objects, and an event
1357 (license license:perl-license)))
1359 (define-public perl-data-validate-ip
1361 (name "perl-data-validate-ip")
1367 "mirror://cpan/authors/id/D/DR/DROLSKY/Data-Validate-IP-"
1370 (base32 "1mmppyzsh1w2z2h86kvzqxy56wxgs62a3kf8nvcnz76bblir5ap1"))))
1371 (build-system perl-build-system)
1373 `(("perl-test-requires" ,perl-test-requires)))
1375 `(("perl-netaddr-ip" ,perl-netaddr-ip)))
1376 (home-page "https://metacpan.org/release/Data-Validate-IP")
1377 (synopsis "IPv4 and IPv6 validation methods")
1379 "This module provides several IP address validation subroutines that both
1380 validate and untaint their input. This includes both basic validation
1381 (@code{is_ipv4()} and @code{is_ipv6()}) and special cases like checking whether
1382 an address belongs to a specific network or whether an address is public or
1383 private (reserved).")
1384 (license license:perl-license)))
1386 (define-public perl-net-dns
1388 (name "perl-net-dns")
1395 (string-append "https://www.net-dns.org/download/Net-DNS-"
1397 (string-append "mirror://cpan/authors/id/N/NL/NLNETLABS/Net-DNS-"
1398 version ".tar.gz")))
1400 (base32 "0qyy5k4k0llqjjmkkfg96919gqybdc1z5fy9047n9imidjxc59hi"))))
1401 (build-system perl-build-system)
1403 `(("perl-digest-hmac" ,perl-digest-hmac)))
1404 (home-page "https://www.net-dns.org/")
1406 "Perl Interface to the Domain Name System")
1407 (description "Net::DNS is the Perl Interface to the Domain Name System.")
1408 (license license:x11)))
1410 (define-public perl-socket6
1412 (name "perl-socket6")
1418 "mirror://cpan/authors/id/U/UM/UMEMOTO/Socket6-"
1423 "054izici8klfxs8hr5rljib28plijpsfymy99xbzdp047bx1b2a6"))))
1424 (build-system perl-build-system)
1427 (modify-phases %standard-phases
1429 (lambda* (#:key outputs #:allow-other-keys)
1430 (let* ((out (assoc-ref outputs "out"))
1431 (args `("Makefile.PL"
1432 ,(string-append "PREFIX=" out)
1433 "INSTALLDIRS=site")))
1434 (setenv "CONFIG_SHELL" (which "sh"))
1435 (apply invoke "perl" args)))))))
1436 (home-page "https://metacpan.org/release/Socket6")
1438 "IPv6 related part of the C socket.h defines and structure manipulators for Perl")
1439 (description "Socket6 binds the IPv6 related part of the C socket header
1440 definitions and structure manipulators for Perl.")
1441 (license license:bsd-3)))
1443 (define-public perl-net-dns-resolver-programmable
1445 (name "perl-net-dns-resolver-programmable")
1451 "mirror://cpan/authors/id/J/JM/JMEHNLE/net-dns-resolver-programmable/"
1452 "Net-DNS-Resolver-Programmable-v" version ".tar.gz"))
1455 "1v3nl2kaj4fs55n1617n53q8sa3mir06898vpy1rq98zjih24h4d"))
1457 (search-patches "perl-net-dns-resolver-programmable-fix.patch"))))
1458 (build-system perl-build-system)
1460 `(("perl-module-build" ,perl-module-build)))
1461 (inputs `(("perl-net-dns" ,perl-net-dns)))
1463 "https://metacpan.org/release/Net-DNS-Resolver-Programmable")
1465 "Programmable DNS resolver class for offline emulation of DNS")
1466 (description "Net::DNS::Resolver::Programmable is a programmable DNS resolver for
1467 offline emulation of DNS.")
1468 (license license:perl-license)))
1470 (define-public perl-net-dns-resolver-mock
1472 (name "perl-net-dns-resolver-mock")
1473 (version "1.20171219")
1477 "mirror://cpan/authors/id/M/MB/MBRADSHAW/"
1478 "Net-DNS-Resolver-Mock-" version ".tar.gz"))
1481 "0m3rxpkv1b9121srvbqkrgzg4m8mnydiydqv34in1i1ixwrl6jn9"))))
1482 (build-system perl-build-system)
1484 `(("perl-net-dns" ,perl-net-dns)))
1485 (home-page "https://metacpan.org/release/Net-DNS-Resolver-Mock")
1486 (synopsis "Mock DNS Resolver object for testing")
1488 "Net::DNS::Resolver::Mock is a subclass of Net::DNS::Resolver, but returns
1489 static data from any provided DNS zone file instead of querying the network.
1490 It is intended primarily for use in testing.")
1491 (license license:perl-license)))
1493 (define-public perl-netaddr-ip
1495 (name "perl-netaddr-ip")
1501 "mirror://cpan/authors/id/M/MI/MIKER/NetAddr-IP-"
1506 "1rx0dinrz9fk9qcg4rwqq5n1dm3xv2arymixpclcv2q2nzgq4npc"))))
1507 (build-system perl-build-system)
1510 (modify-phases %standard-phases
1512 (lambda* (#:key outputs #:allow-other-keys)
1513 (let* ((out (assoc-ref outputs "out"))
1514 (args `("Makefile.PL"
1515 ,(string-append "PREFIX=" out)
1516 "INSTALLDIRS=site")))
1517 (setenv "CONFIG_SHELL" (which "sh"))
1518 (apply invoke "perl" args)))))))
1520 "https://metacpan.org/release/NetAddr-IP")
1522 "Manages IPv4 and IPv6 addresses and subnets")
1523 (description "NetAddr::IP manages IPv4 and IPv6 addresses and subsets.")
1524 (license license:perl-license)))
1526 (define-public perl-net-patricia
1528 (name "perl-net-patricia")
1534 "mirror://cpan/authors/id/G/GR/GRUBER/Net-Patricia-"
1539 "0ln5f57vc8388kyh9vhx2infrdzfhbpgyby74h1qsnhwds95m0vh"))))
1540 (build-system perl-build-system)
1543 (modify-phases %standard-phases
1544 (add-after 'unpack 'dont-link-with-nsl ; Borrowed from Debian.
1546 (substitute* "Makefile.PL"
1550 `(("perl-net-cidr-lite" ,perl-net-cidr-lite)
1551 ("perl-socket6" ,perl-socket6)))
1553 "https://metacpan.org/release/Net-Patricia")
1555 "Patricia Trie Perl module for fast IP address lookups")
1557 "Net::Patricia does IP address lookups quickly in Perl.")
1558 ;; The bindings are licensed under GPL2 or later.
1559 ;; libpatricia is licensed under 2-clause BSD.
1560 (license (list license:gpl2+ license:bsd-2))))
1562 (define-public perl-net-cidr-lite
1564 (name "perl-net-cidr-lite")
1570 "mirror://cpan/authors/id/D/DO/DOUGW/Net-CIDR-Lite-"
1575 "14shj73zbqmfjbp0qz1fs9j4p2dpvz5hfkm4qfdjbydflbl2b8fg"))))
1576 (build-system perl-build-system)
1578 "https://metacpan.org/release/Net-CIDR-Lite")
1580 "Perl extension for merging IPv4 or IPv6 CIDR addresses")
1581 (description "Net::CIDR::Lite merges IPv4 or IPv6 CIDR addresses.")
1582 (license license:gpl1+)))
1584 ;; TODO: Use the geolite-mirror-simple.pl script from the example
1585 ;; directory to stay current with the databases. How?
1586 (define-public perl-geo-ip
1588 (name "perl-geo-ip")
1594 "mirror://cpan/authors/id/M/MA/MAXMIND/Geo-IP-"
1599 "1fka8fr7fw6sh3xa9glhs1zjg3s2gfkhi7n7da1l2m2wblqj0c0n"))))
1600 (build-system perl-build-system)
1601 (home-page "https://metacpan.org/release/Geo-IP")
1603 "Look up location and network information by IP Address in Perl")
1604 (description "The Perl module @code{Geo::IP}. It looks up location and
1605 network information by IP Address.")
1606 (license license:perl-license)))
1608 (define-public perl-io-socket-inet6
1610 (name "perl-io-socket-inet6")
1616 "mirror://cpan/authors/id/S/SH/SHLOMIF/IO-Socket-INET6-"
1621 "1fqypz6qa5rw2d5y2zq7f49frwra0aln13nhq5gi514j2zx21q45"))))
1622 (build-system perl-build-system)
1624 `(("perl-module-build" ,perl-module-build)
1625 ("perl-test-pod" ,perl-test-pod)
1626 ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
1627 (inputs `(("perl-socket6" ,perl-socket6)))
1628 (arguments `(;; Need network socket API
1631 "https://metacpan.org/release/IO-Socket-INET6")
1633 "Perl object interface for AF_INET/AF_INET6 domain sockets")
1634 (description "IO::Socket::INET6 is an interface for AF_INET/AF_INET6 domain
1636 (license license:perl-license)))
1638 (define-public libproxy
1644 (uri (string-append "https://github.com/libproxy/libproxy/"
1645 "releases/download/" version "/libproxy-"
1649 "0kvdrazlzwia876w988cmlypp253gwy6idlh8mjk958c29jb8kb5"))))
1650 (build-system cmake-build-system)
1652 `(("pkg-config" ,pkg-config)))
1658 (modify-phases %standard-phases
1661 (invoke "ctest" "-E" "url-test"))))))
1662 (synopsis "Library providing automatic proxy configuration management")
1663 (description "Libproxy handles the details of HTTP/HTTPS proxy
1664 configuration for applications across all scenarios. Applications using
1665 libproxy only have to specify which proxy to use.")
1666 (home-page "https://libproxy.github.io/libproxy")
1667 (license license:lgpl2.1+)))
1669 (define-public proxychains-ng
1671 (name "proxychains-ng")
1676 (uri (string-append "http://ftp.barfooze.de/pub/sabotage/tarballs/"
1677 "proxychains-ng-" version ".tar.xz"))
1679 (base32 "1bmhfbl1bzc87vl0xwr1wh5xvslfyc41nl2hqzhbj258p0sy004x"))))
1680 (build-system gnu-build-system)
1682 `(#:tests? #f ; there are no tests
1684 (modify-phases %standard-phases
1685 (add-after 'unpack 'fix-configure-script
1687 ;; The configure script is very intolerant to unknown arguments,
1688 ;; such as "CONFIG_SHELL".
1689 (substitute* "configure"
1690 (("\\*\\) break ;;" line)
1691 (string-append "[A-Z]*) shift ;;\n"
1694 (add-before 'configure 'set-up-environment
1698 (synopsis "Redirect any TCP connection through a proxy or proxy chain")
1699 (description "Proxychains-ng is a preloader which hooks calls to sockets
1700 in dynamically linked programs and redirects them through one or more SOCKS or
1702 (home-page "https://github.com/rofl0r/proxychains-ng")
1703 (license license:gpl2+)))
1711 (uri (string-append "http://enet.bespin.org/download/"
1712 "enet-" version ".tar.gz"))
1715 "1yxxf9bkx6dx3j8j70fj17c05likyfibb1419ls74hp58qrzdgas"))))
1716 (build-system gnu-build-system)
1718 `(("pkg-config" ,pkg-config)))
1719 (synopsis "Network communication layer on top of UDP")
1721 "ENet's purpose is to provide a relatively thin, simple and robust network
1722 communication layer on top of UDP. The primary feature it provides is optional
1723 reliable, in-order delivery of packets. ENet omits certain higher level
1724 networking features such as authentication, server discovery, encryption, or
1725 other similar tasks that are particularly application specific so that the
1726 library remains flexible, portable, and easily embeddable.")
1727 (home-page "http://enet.bespin.org")
1728 (license license:expat)))
1738 (url "https://github.com/yrutschle/sslh.git")
1739 (commit (string-append "v" version))))
1740 (file-name (git-file-name name version))
1742 (base32 "18zhkqlwfh6f5dg1a41a4p7p9g94dgb9nwls1ksy9r5yz174i2fx"))))
1743 (build-system gnu-build-system)
1745 `(;; Test dependencies.
1748 ("perl-conf-libconfig" ,perl-conf-libconfig)
1749 ("perl-io-socket-inet6" ,perl-io-socket-inet6)
1750 ("perl-socket6" ,perl-socket6)
1751 ("psmisc" ,psmisc))) ; for ‘killall’
1753 `(("libcap" ,libcap)
1754 ("libconfig" ,libconfig)
1756 ("tcp-wrappers" ,tcp-wrappers)))
1759 (modify-phases %standard-phases
1760 (delete 'configure) ; no configure script
1761 (add-before 'check 'fix-tests
1764 (("\"/tmp") "$ENV{\"TMPDIR\"} . \"")
1765 ;; The Guix build environment lacks ‘ip6-localhost’.
1766 (("ip6-localhost") "localhost"))
1768 ;; Many of these files are mentioned in the man page. Install them.
1769 (add-after 'install 'install-documentation
1770 (lambda* (#:key outputs #:allow-other-keys)
1771 (let* ((out (assoc-ref outputs "out"))
1772 (doc (string-append out "/share/doc/sslh")))
1773 (install-file "README.md" doc)
1776 (install-file file (string-append doc "/examples")))
1777 (append (find-files "." "\\.cfg")
1778 (find-files "scripts"))))
1780 #:make-flags (list "CC=gcc"
1783 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1784 #:test-target "test"))
1785 (home-page "https://www.rutschle.net/tech/sslh/README.html")
1786 (synopsis "Applicative network protocol demultiplexer")
1788 "sslh is a network protocol demultiplexer. It acts like a switchboard,
1789 accepting connections from clients on one port and forwarding them to different
1790 servers based on the contents of the first received data packet. Detection of
1791 common protocols like HTTP(S), SSL, SSH, OpenVPN, tinc, and XMPP is already
1792 implemented, but any other protocol that matches a regular expression can be
1793 added. sslh's name comes from its original application of serving both SSH and
1794 HTTPS on port 443, allowing SSH connections from inside corporate firewalls
1795 that block port 22.")
1796 (license (list license:bsd-2 ; tls.[ch]
1797 license:gpl2+)))) ; everything else
1799 (define-public iperf
1805 (uri (string-append "http://downloads.es.net/pub/iperf"
1806 "/iperf-" version ".tar.gz"))
1809 "033is7b5grfbiil98jxlz4ixp9shm44x6hy8flpsyz1i4h108inq"))))
1810 (build-system gnu-build-system)
1811 (synopsis "TCP, UDP and SCTP bandwidth measurement tool")
1813 "iPerf is a tool to measure achievable bandwidth on IP networks. It
1814 supports tuning of various parameters related to timing, buffers and
1815 protocols (TCP, UDP, SCTP with IPv4 and IPv6). For each test it reports
1816 the bandwidth, loss, and other parameters.")
1817 (home-page "https://software.es.net/iperf/")
1818 (license (list license:bsd-3 ; Main distribution.
1819 license:ncsa ; src/{units,iperf_locale,tcp_window_size}.c
1820 license:expat ; src/{cjson,net}.[ch]
1821 license:public-domain)))) ; src/portable_endian.h
1823 (define-public nethogs
1831 (url "https://github.com/raboof/nethogs")
1832 (commit (string-append "v" version))))
1835 (base32 "0sn1sdp86akwlm4r1vmkxjjl50c0xaisk91bbz57z7kcsaphxna9")
1837 (file-name (git-file-name name version))))
1838 (build-system gnu-build-system)
1840 `(("libpcap" ,libpcap)
1841 ("ncurses" ,ncurses)))
1843 `(#:make-flags `("CC=gcc"
1844 ,(string-append "PREFIX=" %output)
1845 ,(string-append "VERSION=" ,version))
1847 (modify-phases %standard-phases
1848 (delete 'configure)))) ; no ./configure script.
1849 (home-page "https://github.com/raboof/nethogs")
1850 (synopsis "Per-process bandwidth monitor")
1851 (description "NetHogs is a small 'net top' tool for Linux. Instead of
1852 breaking the traffic down per protocol or per subnet, like most tools do, it
1853 groups bandwidth by process.
1855 NetHogs does not rely on a special kernel module to be loaded. If there's
1856 suddenly a lot of network traffic, you can fire up NetHogs and immediately see
1857 which PID is causing this. This makes it easy to identify programs that have
1858 gone wild and are suddenly taking up your bandwidth.")
1859 (license license:gpl2+)))
1861 (define-public nzbget
1868 (uri (string-append "https://github.com/nzbget/nzbget/releases"
1869 "/download/v" version
1870 "/nzbget-" version "-src.tar.gz"))
1873 "0lwd0pfrs4a5ms193hgz2qiyf7grrc925dw6y0nfc0gkp27db9b5"))
1874 (modules '((guix build utils)))
1876 ;; Reported upstream as <https://github.com/nzbget/nzbget/pull/414>.
1878 (substitute* "daemon/connect/TlsSocket.cpp"
1879 (("gnutls_certificate-verification_status_print")
1880 "gnutls_certificate_verification_status_print"))
1885 (string-append "--with-libcurses-includes="
1886 (assoc-ref %build-inputs "ncurses") "/include")
1887 (string-append "--with-libcurses-libraries="
1888 (assoc-ref %build-inputs "ncurses") "/lib")
1889 (string-append "--with-tlslib=GnuTLS"))))
1890 (build-system gnu-build-system)
1891 (inputs `(("gnutls" ,gnutls)
1892 ("libxml2" ,libxml2)
1893 ("ncurses" ,ncurses)
1895 (native-inputs `(("pkg-config" ,pkg-config)))
1896 (home-page "https://github.com/nzbget/nzbget")
1897 (synopsis "Usenet binary file downloader")
1899 "NZBGet is a binary newsgrabber, which downloads files from Usenet based
1900 on information given in @code{nzb} files. NZBGet can be used in standalone
1901 and in server/client modes. In standalone mode, you pass NZBGet @command{nzb}
1902 files as command-line parameters and it downloads them and exits. NZBGet also
1903 contains a Web interface. Its server can be controlled through remote
1904 procedure calls (RPCs).")
1905 (license license:gpl2+)))
1907 (define-public openvswitch
1909 (name "openvswitch")
1914 "https://www.openvswitch.org/releases/openvswitch-"
1918 "0cd5vmfr6zwgcnkwys6rag6cmz68v0librpaplianv734xs74pyx"))))
1919 (build-system gnu-build-system)
1921 '(;; FIXME: many tests fail with:
1923 ;; test -e $OVS_RUNDIR/ovs-vswitchd.pid
1924 ;; ovs-appctl -t ovs-vswitchd exit
1929 "--localstatedir=/var"
1930 "--with-dbdir=/var/lib/openvswitch")
1932 (modify-phases %standard-phases
1936 ;; Don't try to create directories under /var.
1944 ("pkg-config" ,pkg-config)
1945 ("python" ,python-wrapper)
1947 ("util-linux" ,util-linux)))
1949 `(("libcap-ng" ,libcap-ng)
1950 ("openssl" ,openssl)))
1951 (synopsis "Virtual network switch")
1952 (home-page "https://www.openvswitch.org/")
1954 "Open vSwitch is a multilayer virtual switch. It is designed to enable
1955 massive network automation through programmatic extension, while still
1956 supporting standard management interfaces and protocols (e.g. NetFlow, sFlow,
1957 IPFIX, RSPAN, CLI, LACP, 802.1ag).")
1958 (license ; see debian/copyright for detail
1959 (list license:lgpl2.1 ; xenserver and utilities/bugtool
1960 license:gpl2 ; datapath
1961 license:bsd-2 license:bsd-3
1962 license:asl2.0)))) ; all other
1964 (define-public python-ipy
1970 (uri (pypi-uri "IPy" version))
1973 "08d6kcacj67mvh0b6y765ipccy6gi4w2ndd4v1l3im2qm1cgcarg"))))
1974 (build-system python-build-system)
1975 (home-page "https://github.com/autocracy/python-ipy/")
1976 (synopsis "Python class and tools for handling IP addresses and networks")
1977 (description "The @code{IP} class allows a comfortable parsing and
1978 handling for most notations in use for IPv4 and IPv6 addresses and
1980 (license license:bsd-3)))
1982 (define-public python2-ipy
1983 (package-with-python2 python-ipy))
1985 (define-public speedtest-cli
1987 (name "speedtest-cli")
1993 (url "https://github.com/sivel/speedtest-cli")
1994 (commit (string-append "v" version))))
1995 (file-name (git-file-name name version))
1997 (base32 "1456yly6iym2c9bl6pi4sz8xbw34bm2dxm1vzpydsd6jazwpmy26"))))
1998 (build-system python-build-system)
1999 (home-page "https://github.com/sivel/speedtest-cli")
2000 (synopsis "Internet bandwidth tester")
2002 "Command line interface for testing internet bandwidth using
2004 (license license:asl2.0)))
2006 (define-public tftp-hpa
2012 (uri (string-append "mirror://kernel.org/software/"
2013 "network/tftp/tftp-hpa/tftp-hpa-" version
2017 "12vidchglhyc20znq5wdsbhi9mqg90jnl7qr9qs8hbvaz4fkdvmg"))))
2018 (build-system gnu-build-system)
2019 (arguments `(#:tests? #f)) ; no test target
2020 (synopsis "HPA's tftp client")
2022 "This is a tftp client derived from OpenBSD tftp with some extra options
2023 added and bugs fixed. The source includes readline support but it is not
2024 enabled due to license conflicts between the BSD advertising clause and the GPL.")
2025 (home-page "https://git.kernel.org/cgit/network/tftp/tftp-hpa.git/about/")
2026 ;; Some source files are distributed under a 3-clause BSD license, and
2027 ;; others under a 4-clause BSD license. Refer to the files in the source
2028 ;; distribution for clarification.
2029 (license (list license:bsd-3 license:bsd-4))))
2031 (define-public pidentd
2039 (url "https://github.com/ptrrkssn/pidentd")
2040 (commit (string-append "v" version))))
2041 (file-name (git-file-name name version))
2044 "1k4rr0b4ygxssbnsykzjvz4hjhazzz4j5arlilyc1iq7b1wzsk7i"))))
2045 (build-system gnu-build-system)
2047 `(#:tests? #f)) ; No tests are included
2049 `(("openssl" ,openssl-1.0))) ;for the DES library
2050 (home-page "https://www.lysator.liu.se/~pen/pidentd/")
2051 (synopsis "Small Ident Daemon")
2053 "@dfn{Pidentd} (Peter's Ident Daemon) is an identd, which implements a
2054 identification server. Pidentd looks up specific TCP/IP connections and
2055 returns the user name and other information about the connection.")
2056 (license license:public-domain)))
2058 (define-public spiped
2064 (uri (string-append "https://www.tarsnap.com/spiped/spiped-"
2068 "04rpnc53whfky7pp2m9h35gwzwn6788pnl6c1qd576mpknbqjw4d"))))
2069 (build-system gnu-build-system)
2071 '(#:test-target "test"
2072 #:make-flags (let* ((out (assoc-ref %outputs "out"))
2073 (bindir (string-append out "/bin"))
2074 (man1dir (string-append out "/share/man/man1")))
2075 (list "CC=gcc" ; It tries to invoke `c99`.
2076 (string-append "BINDIR=" bindir)
2077 (string-append "MAN1DIR=" man1dir)))
2079 (modify-phases %standard-phases
2080 (add-after 'unpack 'patch-command-invocations
2082 (substitute* '("Makefile"
2083 "libcperciva/cpusupport/Build/cpusupport.sh"
2084 "libcperciva/POSIX/posix-cflags.sh"
2085 "libcperciva/POSIX/posix-l.sh")
2086 (("command -p") ""))
2088 (delete 'configure) ; No ./configure script.
2089 (add-after 'install 'install-more-docs
2090 (lambda* (#:key outputs #:allow-other-keys)
2091 (let* ((out (assoc-ref %outputs "out"))
2092 (misc (string-append out "/share/doc/spiped")))
2093 (install-file "DESIGN.md" misc)
2096 `(("procps" ,procps))) ; `ps` is used by the test suite.
2098 `(("openssl" ,openssl)))
2099 (home-page "https://www.tarsnap.com/spiped.html")
2100 (synopsis "Create secure pipes between sockets")
2101 (description "Spiped (pronounced \"ess-pipe-dee\") is a utility for creating
2102 symmetrically encrypted and authenticated pipes between socket addresses, so
2103 that one may connect to one address (e.g., a UNIX socket on localhost) and
2104 transparently have a connection established to another address (e.g., a UNIX
2105 socket on a different system). This is similar to 'ssh -L' functionality, but
2106 does not use SSH and requires a pre-shared symmetric key.")
2107 (license license:bsd-2)))
2109 (define-public quagga
2115 (uri (string-append "mirror://savannah/quagga/quagga-"
2119 "1lsksqxij5f1llqn86pkygrf5672kvrqn1kvxghi169hqf1c0r73"))
2121 (search-patches "quagga-reproducible-build.patch"))))
2122 (build-system gnu-build-system)
2123 (native-inputs `(("pkg-config" ,pkg-config)
2125 ("dejagnu" ,dejagnu)))
2126 (inputs `(("readline" ,readline)
2127 ("c-ares" ,c-ares)))
2128 (synopsis "Routing Software Suite")
2129 (description "Quagga is a routing software suite, providing implementations
2130 of OSPFv2, OSPFv3, RIP v1 and v2, RIPng and BGP-4 for Unix platforms.
2132 The Quagga architecture consists of a core daemon, @command{zebra}, which
2133 acts as an abstraction layer to the underlying Unix kernel and presents the
2134 Zserv API over a Unix or TCP stream to Quagga clients. It is these Zserv
2135 clients which typically implement a routing protocol and communicate routing
2136 updates to the zebra daemon.")
2137 (home-page "https://www.nongnu.org/quagga/")
2138 (license license:gpl2+)))
2140 (define-public thc-ipv6
2141 (let ((revision "0")
2142 (commit "4bb72573e0950ce6f8ca2800a10748477020029e"))
2145 (version (git-version "3.4" revision commit))
2149 (url "https://github.com/vanhauser-thc/thc-ipv6.git")
2151 (file-name (git-file-name name version))
2154 "1x5i6vbsddqc2yks7r1a2fw2fk16qxvd6hpzh1lykjfpkal8fdir"))))
2155 (build-system gnu-build-system)
2157 `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2158 #:tests? #f ; No test suite.
2160 (modify-phases %standard-phases
2161 (delete 'configure) ; No ./configure script.
2162 (add-before 'build 'patch-paths
2164 (substitute* "Makefile"
2165 (("/bin/echo") "echo"))
2167 (add-after 'install 'install-more-docs
2168 (lambda* (#:key outputs #:allow-other-keys)
2169 (let* ((out (assoc-ref outputs "out"))
2170 (doc (string-append out "/share/thc-ipv6/doc")))
2171 (install-file "README" doc)
2172 (install-file "HOWTO-INJECT" doc)
2174 ;; TODO Add libnetfilter-queue once packaged.
2176 `(("libpcap" ,libpcap)
2177 ("openssl" ,openssl)
2179 (home-page "https://github.com/vanhauser-thc/thc-ipv6")
2180 (synopsis "IPv6 security research toolkit")
2181 (description "The THC IPv6 Toolkit provides command-line tools and a library
2182 for researching IPv6 implementations and deployments. It requires Linux 2.6 or
2183 newer and only works on Ethernet network interfaces.")
2184 ;; AGPL 3 with exception for linking with OpenSSL. See the 'LICENSE' file in
2185 ;; the source distribution for more information.
2186 (license license:agpl3))))
2195 (uri (string-append "https://github.com/tgraf/bmon/releases/download/v"
2196 version "/bmon-" version ".tar.gz"))
2199 "0ylzriv4pwh76344abzl1w219x188gshbycbna35gsyfp09c7z82"))))
2200 (build-system gnu-build-system)
2202 `(("libconfuse" ,libconfuse)
2204 ("ncurses" ,ncurses)))
2206 `(("pkg-config" ,pkg-config)))
2207 (synopsis "Bandwidth monitor")
2208 (description "bmon is a monitoring and debugging tool to capture
2209 networking-related statistics and prepare them visually in a human-friendly
2210 way. It features various output methods including an interactive curses user
2211 interface and a programmable text output for scripting.")
2212 (home-page "https://github.com/tgraf/bmon")
2213 ;; README.md mentions both the 2-clause BSD and expat licenses, but all
2214 ;; the source files only have expat license headers. Upstream has been
2215 ;; contacted for clarification: https://github.com/tgraf/bmon/issues/59
2216 ;; Update the license field when upstream responds.
2217 (license (list license:bsd-2
2220 (define-public libnet
2227 (uri (string-append "https://github.com/libnet/libnet/releases/download"
2228 "/v" version "/libnet-" version ".tar.gz"))
2231 "19ys9vxk6fg70yzzdxsphfr0rwzgxxhr9b3ykhpg7rfray0qd96a"))))
2232 (build-system gnu-build-system)
2235 (modify-phases %standard-phases
2236 (add-before 'build 'build-doc
2237 (lambda* (#:key make-flags #:allow-other-keys)
2238 (apply invoke "make" "-C" "doc" "doc"
2241 `(;; To build the documentation, Doxygen and Perl is required.
2242 ("doxygen" ,doxygen)
2244 (home-page "https://github.com/libnet/libnet")
2245 (synopsis "Framework for low-level network packet construction")
2247 "Libnet provides a fairly portable framework for network packet
2248 construction and injection. It features portable packet creation interfaces
2249 at the IP layer and link layer, as well as a host of supplementary
2250 functionality. Using libnet, quick and simple packet assembly applications
2251 can be whipped up with little effort.")
2252 (license license:bsd-2)))
2261 (uri (string-append "ftp://ftp.bitwizard.nl/mtr/"
2262 "mtr-" version ".tar.gz"))
2264 (base32 "03gid8g4r6a9r40855s4345xm1bylj2kfqkicjwxpmvvccyng712"))))
2265 (build-system gnu-build-system)
2267 `(("libcap" ,libcap)
2268 ("ncurses" ,ncurses)))
2270 `(#:tests? #f)) ; tests require network access
2271 (home-page "https://www.bitwizard.nl/mtr/")
2272 (synopsis "Network diagnostic tool")
2274 "@acronym{mtr, My TraceRoute} combines the functionality of the
2275 @command{traceroute} and @command{ping} programs in a single network diagnostic
2276 tool. @command{mtr} can use several network protocols to detect intermediate
2277 routers (or @dfn{hops}) between the local host and a user-specified destination.
2278 It then continually measures the response time and packet loss at each hop, and
2279 displays the results in real time.")
2280 (license license:gpl2+)))
2282 (define-public strongswan
2289 (uri (string-append "https://download.strongswan.org/strongswan-"
2290 version ".tar.bz2"))
2292 (base32 "0g2m08gmgdi3qvvqz6zy7n16np53sp232xd0rdc2vdhk73img6id"))))
2293 (build-system gnu-build-system)
2296 (modify-phases %standard-phases
2297 (add-before 'build 'patch-command-file-names
2298 (lambda* (#:key inputs #:allow-other-keys)
2299 (substitute* "src/libstrongswan/utils/process.c"
2301 (string-append (assoc-ref inputs "bash") "/bin/sh")))
2303 (substitute* "src/libstrongswan/tests/suites/test_process.c"
2304 (("/bin/sh") (which "sh"))
2305 (("/bin/echo") (which "echo"))
2306 (("cat") (which "cat")))
2308 (add-before 'check 'set-up-test-environment
2309 (lambda* (#:key inputs #:allow-other-keys)
2310 (setenv "TZDIR" (string-append (assoc-ref inputs "tzdata")
2315 ;; Disable bsd-4 licensed plugins.
2317 "--disable-blowfish")))
2321 ("libgcrypt" ,libgcrypt)
2322 ("openssl" ,openssl)))
2324 `(("coreutils" ,coreutils)
2325 ("tzdata" ,tzdata-for-tests)))
2326 (synopsis "IKEv1/v2 keying daemon")
2327 (description "StrongSwan is an IPsec implementation originally based upon
2328 the FreeS/WAN project. It contains support for IKEv1, IKEv2, MOBIKE, IPv6,
2330 (home-page "https://strongswan.org/")
2334 ;; src/libcharon/plugins/dnscert/*
2335 ;; src/libcharon/plugins/ext_auth/*
2336 ;; src/libcharon/plugins/vici/ruby/*
2337 ;; src/libcharon/plugins/xauth_pam/xauth_pam_listener.[ch]
2341 ;; src/libstrongswan/plugins/sha3/sha3_keccak.c
2342 license:public-domain
2343 ;; src/libstrongswan/plugins/pkcs11/pkcs11.h
2344 (license:non-copyleft
2345 "file://src/libstrongswan/plugins/pkcs11/pkcs11.h"
2346 "pkcs11 contains a unknown permissive license. View the specific
2347 file for more details.")
2348 ;; These files are not included in the
2349 ;; build, they are disabled through
2350 ;; options to ./configure
2352 ;; src/libstrongswan/plugins/blowfish/bf_enc.c
2353 ;; src/libstrongswan/plugins/blowfish/bf_locl.h
2354 ;; src/libstrongswan/plugins/blowfish/bf_pi.h
2355 ;; src/libstrongswan/plugins/blowfish/bf_skey.c
2356 ;; src/libstrongswan/plugins/blowfish/blowfish_crypter.c
2357 ;; src/libstrongswan/plugins/des/des_crypter.c
2360 (define-public amule
2367 (url "https://github.com/amule-project/amule")
2369 (file-name (git-file-name name version))
2372 "010wxm6g9f92x6fympj501zbnjka32rzbx0sk3a2y4zpih5d2nsn"))
2373 ;; Patch for adopting crypto++ >= 6.0.
2374 (patches (search-patches "amule-crypto-6.patch"))))
2375 (build-system gnu-build-system)
2378 (modify-phases %standard-phases
2379 (delete 'bootstrap) ; bootstrap phase runs too early.
2380 (add-after 'patch-source-shebangs 'autogen
2382 (invoke "sh" "autogen.sh")
2396 "--enable-amule-gui"
2397 "--enable-amule-daemon"
2398 "--enable-webserver"
2399 "--with-denoise-level=0")))
2401 `(("autoconf" ,autoconf)
2402 ("automake" ,automake)
2403 ("gettext-minimal" ,gettext-minimal)
2407 ("crypto++" ,crypto++)
2409 ("wxwidgets-gtk2" ,wxwidgets-gtk2)))
2410 (home-page "http://amule.org/")
2411 (synopsis "Peer-to-peer client for the eD2K and Kademlia networks")
2413 "aMule is an eMule-like client for the eD2k and Kademlia peer-to-peer
2414 file sharing networks. It includes a graphical user interface (GUI), a daemon
2415 allowing you to run a client with no graphical interface, and a Web GUI for
2416 remote access. The @command{amulecmd} command allows you to control aMule
2418 (license license:gpl2+)))
2427 (string-append "https://github.com/zeromq/zyre/releases/download/v"
2428 version "/" name "-" version ".tar.gz"))
2431 "0qz2730bng1gs9xbqxhkw88qbsmszgmmrl2g9k6xrg6r3bqvsdc7"))))
2432 (build-system gnu-build-system)
2433 (inputs `(("zeromq" ,zeromq)
2435 ("libsodium" ,libsodium)))
2436 (synopsis "Framework for proximity-based peer-to-peer applications")
2437 (description "Zyre provides reliable group messaging over local area
2438 networks using zeromq. It has these key characteristics:
2441 @item Zyre needs no administration or configuration.
2442 @item Peers may join and leave the network at any time.
2443 @item Peers talk to each other without any central brokers or servers.
2444 @item Peers can talk directly to each other.
2445 @item Peers can join groups, and then talk to groups.
2446 @item Zyre is reliable, and loses no messages even when the network is heavily loaded.
2447 @item Zyre is fast and has low latency, requiring no consensus protocols.
2448 @item Zyre is designed for WiFi networks, yet also works well on Ethernet networks.
2450 (home-page "https://github.com/zeromq/zyre")
2451 (license license:mpl2.0)))
2453 (define-public can-utils
2456 (version "2018.02.0")
2460 (url "https://github.com/linux-can/can-utils.git")
2461 (commit (string-append "v" version))))
2462 (file-name (git-file-name name version))
2465 "0r0zkm67bdcmbfypjr7z041d4zp0xzb379dyl8cvhmflh12fd2jb"))))
2466 (build-system gnu-build-system)
2468 `(#:tests? #f ; No tests exist.
2469 #:make-flags (list "CC=gcc"
2470 (string-append "PREFIX="
2471 (assoc-ref %outputs "out")))
2473 (modify-phases %standard-phases
2475 (delete 'configure))))
2476 (home-page "https://github.com/linux-can/can-utils")
2477 (synopsis "CAN utilities")
2478 (description "This package provides CAN utilities in the following areas:
2481 @item Basic tools to display, record, generate and replay CAN traffic
2482 @item CAN access via IP sockets
2483 @item CAN in-kernel gateway configuration
2484 @item CAN bus measurement and testing
2485 @item ISO-TP (ISO15765-2:2016 - this means messages with a body larger than
2487 @item Log file converters
2488 @item Serial Line Discipline configuration for slcan driver
2490 ;; Either BSD-3 or GPL-2 can be used.
2491 (license (list license:bsd-3 license:gpl2))))
2500 (uri (string-append "mirror://sourceforge/asio/asio/"
2501 version " (Stable)/asio-" version ".tar.bz2"))
2503 (base32 "1akray4l3hgahmb92sbvsqg128c7g7s92jrkf1sp1fjnfjrxq9sf"))))
2504 (build-system gnu-build-system)
2507 ("openssl" ,openssl)))
2511 (string-append "--with-boost=" (assoc-ref %build-inputs "boost"))
2512 (string-append "--with-openssl=" (assoc-ref %build-inputs "openssl")))))
2513 (home-page "https://think-async.com/Asio")
2514 (synopsis "C++ library for ASynchronous network I/O")
2515 (description "Asio is a cross-platform C++ library for network and
2516 low-level I/O programming that provides developers with a consistent
2517 asynchronous model using a modern C++ approach.")
2518 (license license:boost1.0)))
2520 (define-public shadowsocks
2521 ;; There are some security fixes after the last release.
2522 (let* ((commit "e332ec93e9c90f1cbee676b022bf2c5d5b7b1239")
2524 (version (git-version "2.8.2" revision commit)))
2526 (name "shadowsocks")
2528 (home-page "https://github.com/shadowsocks/shadowsocks")
2536 "1idd9b4f2pnhcpk1bh030hqg5zq25gkwxd53xi3c0cj242w7sp2j"))
2537 (file-name (git-file-name name version))))
2538 (build-system python-build-system)
2539 (synopsis "Fast tunnel proxy that helps you bypass firewalls")
2541 "This package is a fast tunnel proxy that helps you bypass firewalls.
2545 @item TCP & UDP support
2546 @item User management API
2548 @item Workers and graceful restart
2549 @item Destination IP blacklist
2551 (license license:asl2.0))))
2553 (define-public net-snmp
2559 (uri (string-append "mirror://sourceforge/net-snmp/net-snmp/"
2560 version "/net-snmp-" version ".tar.gz"))
2563 "1pvajzj9gmj56dmwix0ywmkmy2pglh6nny646hkm7ghfhh03bz5j"))
2564 (modules '((guix build utils)))
2567 ;; Drop bundled libraries.
2568 (delete-file-recursively "snmplib/openssl")
2570 (build-system gnu-build-system)
2572 `(#:test-target "test"
2573 ;; XXX: With parallel build enabled, Perl modules may not get linked with
2574 ;; libnetsnmp. See e.g. <https://bugzilla.novell.com/show_bug.cgi?id=819497>.
2575 #:parallel-build? #f
2577 (list (string-append "LDFLAGS=-Wl,-rpath="
2578 (assoc-ref %outputs "out")
2580 "--with-logfile=/var/log/snmpd.log"
2581 (string-append "--with-openssl="
2582 (assoc-ref %build-inputs "openssl")))
2584 (modify-phases %standard-phases
2585 (add-after 'unpack 'patch-tests
2586 (lambda* (#:key inputs #:allow-other-keys)
2587 (substitute* "testing/fulltests/support/simple_TESTCONF.sh"
2589 (string-append "NETSTAT=\"" (which "netstat") "\"")))
2590 (substitute* '("testing/fulltests/default/T065agentextend_simple"
2591 "testing/fulltests/default/T115agentxperl_simple")
2592 (("/usr/bin/env") (which "env")))
2593 (substitute* "testing/fulltests/default/T065agentextend_sh_simple"
2594 (("/bin/sh") (which "sh")))
2595 ;; These tests require network access.
2596 (for-each delete-file
2597 '("testing/fulltests/default/T070com2sec_simple"
2598 "testing/fulltests/default/T071com2sec6_simple"))
2600 (add-after 'unpack 'patch-Makefile.PL
2601 (lambda* (#:key outputs #:allow-other-keys)
2602 (substitute* "Makefile.in"
2603 (("Makefile.PL -NET")
2604 (string-append "Makefile.PL PREFIX="
2605 (assoc-ref outputs "out")
2606 " INSTALLDIRS=site" " NO_PERLLOCAL=1"
2611 ("openssl" ,openssl)
2613 ;; These inputs are only needed for tests.
2615 `(("net-tools" ,net-tools)
2616 ("coreutils" ,coreutils)
2618 (home-page "http://www.net-snmp.org/")
2619 (synopsis "Simple Network Management Protocol library and tools")
2620 (description "The @dfn{Simple Network Management Protocol} (SNMP) is a
2621 widely used protocol for monitoring the health and welfare of network
2622 equipment (e.g. routers), computer equipment and even devices like UPSs.
2623 Net-SNMP is a suite of applications used to implement SNMP v1, SNMP v2c and
2624 SNMP v3 using both IPv4 and IPv6.")
2625 ;; This only affects OpenBSD
2626 ;; https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-8100
2627 (properties `((lint-hidden-cve . ("CVE-2015-8100"))))
2628 (license (list license:bsd-3
2629 (license:non-copyleft
2630 "http://www.net-snmp.org/about/license.html"
2631 "CMU/UCD copyright notice")))))
2633 (define-public ubridge
2641 (url "https://github.com/GNS3/ubridge.git")
2642 (commit (string-append "v" version))))
2643 (file-name (git-file-name name version))
2645 (base32 "0jg66jhhpv4c9340fsdp64hf9h253i8r81fknxa0gq241ripp3jn"))))
2646 (build-system gnu-build-system)
2648 `(#:tests? #f ; no tests
2650 (list ,(string-append "CC=" (cc-for-target)))
2652 (modify-phases %standard-phases
2653 (delete 'configure) ; no configure script
2654 (add-before 'install 'set-bindir
2655 (lambda* (#:key inputs outputs #:allow-other-keys)
2656 (let ((bin (string-append (assoc-ref outputs "out")
2659 (substitute* "Makefile"
2660 (("\\$\\(BINDIR\\)") bin)
2661 (("\tsetcap cap_net.*$") "")))
2664 `(("libpcap" ,libpcap)))
2665 (home-page "https://github.com/GNS3/ubridge/")
2666 (synopsis "Bridge for UDP tunnels, Ethernet, TAP and VMnet interfaces")
2667 (description "uBridge is a simple program to create user-land bridges
2668 between various technologies. Currently, bridging between UDP tunnels,
2669 Ethernet and TAP interfaces is supported. Packet capture is also supported.")
2670 (license license:gpl3+)))
2672 (define-public hcxtools
2680 (url "https://github.com/ZerBea/hcxtools.git")
2683 (base32 "0k2qlq9hz5zc21nyc6yrnfqzga7hydn5mm0x3rpl2fhkwl81lxcn"))
2684 (file-name (git-file-name name version))))
2685 (build-system gnu-build-system)
2688 ("libpcap" ,libpcap)
2689 ("openssl" ,openssl)
2694 (string-append "INSTALLDIR=" (assoc-ref %outputs "out") "/bin"))
2695 #:tests? #f ; no test suite
2697 (modify-phases %standard-phases
2698 (delete 'configure))))
2699 (home-page "https://github.com/ZerBea/hcxtools")
2700 (synopsis "Capture wlan traffic to hashcat and John the Ripper")
2702 "This package contains a small set of tools to capture and convert
2703 packets from wireless devices for use with hashcat or John the Ripper.")
2704 (license license:expat)))
2706 (define-public hcxdumptool
2708 (name "hcxdumptool")
2714 (url "https://github.com/ZerBea/hcxdumptool.git")
2717 (base32 "1b4d543y64ib92w9gcmiyjn5hz2vyjqmxk3f3yr1zk04fhw16gmf"))
2718 (file-name (git-file-name name version))))
2719 (build-system gnu-build-system)
2722 (list ,(string-append "CC=" (cc-for-target))
2723 (string-append "INSTALLDIR=" (assoc-ref %outputs "out") "/bin"))
2724 #:tests? #f ; no test suite
2726 (modify-phases %standard-phases
2727 (delete 'configure))))
2729 `(("openssl" ,openssl)))
2730 (home-page "https://github.com/ZerBea/hcxdumptool")
2731 (synopsis "Small tool to capture packets from wlan devices")
2733 "Small tool to capture packets from WLAN devices. After capturing,
2734 upload the \"uncleaned\" cap to @url{https://wpa-sec.stanev.org/?submit} to
2735 see if the access point or the client is vulnerable to a dictionary attack.
2736 Convert the cap file to hccapx format and/or to WPA-PMKID-PBKDF2
2737 hashline (16800) with @command{hcxpcaptool} from the @code{hcxtools} package
2738 and check if the WLAN key or the master key was transmitted unencrypted.")
2739 (license license:expat)))
2741 (define-public dante
2748 (uri (string-append "https://www.inet.no/dante/files/dante-"
2752 "19rqzj167q73ag20zxpvswhkk0bj56r5maf83v5016sw7vrcz5sc"))))
2753 (build-system gnu-build-system)
2755 ;; XXX: The dynamic socks library doesn't work with 'libc.so' (GNU ld
2756 ;; script). When preloading is enabled, 'sockd' failed with:
2757 ;; … Failed to open library "libc.so": …: invalid ELF header
2758 '(#:configure-flags '("--disable-preload")))
2759 (home-page "https://www.inet.no/dante/")
2760 (synopsis "SOCKS server and client")
2761 (description "Dante is a SOCKS client and server implementation. It can
2762 be installed on a machine with access to an external TCP/IP network and will
2763 allow all other machines, without direct access to that network, to be relayed
2764 through the machine the Dante server is running on. The external network will
2765 never see any machines other than the one Dante is running on.")
2766 (license (license:non-copyleft "file://LICENSE"))))
2768 (define-public restbed
2769 (let ((commit "6eb385fa9051203f28bf96cc1844bbb5a9a6481f"))
2772 (version (git-version "4.6" "1" commit))
2777 (url "https://github.com/Corvusoft/restbed/")
2779 (file-name (string-append name "-" version ".tar.gz"))
2781 (base32 "0k60i5drklqqrb4khb25fzkgz9y0sncxf1sp6lh2bm1m0gh0661n"))))
2782 (build-system cmake-build-system)
2785 ("catch" ,catch-framework)
2786 ("openssl" ,openssl)))
2790 '("-DBUILD_TESTS=NO"
2791 "-DBUILD_EXAMPLES=NO"
2793 "-DBUILD_SHARED=NO")
2795 (modify-phases %standard-phases
2796 (add-after 'unpack 'apply-patches-and-fix-paths
2797 (lambda* (#:key inputs #:allow-other-keys)
2798 (let ((asio (assoc-ref inputs "asio"))
2799 (catch (assoc-ref inputs "catch"))
2800 (openssl (assoc-ref inputs "openssl")))
2801 (substitute* "cmake/Findasio.cmake"
2802 (("(find_path\\( asio_INCLUDE asio\\.hpp HINTS ).*$" all begin)
2803 (string-append begin " \"" asio "/include\" )")))
2804 (substitute* "cmake/Findcatch.cmake"
2805 (("(find_path\\( catch_INCLUDE catch\\.hpp HINTS ).*$" all begin)
2806 (string-append begin " \"" catch "/include\" )")))
2807 (substitute* "cmake/Findopenssl.cmake"
2808 (("(find_library\\( ssl_LIBRARY ssl ssleay32 HINTS ).*$" all begin)
2809 (string-append begin " \"" openssl "/lib\" )"))
2810 (("(find_library\\( crypto_LIBRARY crypto libeay32 HINTS ).*$" all begin)
2811 (string-append begin " \"" openssl "/lib\" )"))
2812 (("(find_path\\( ssl_INCLUDE openssl/ssl\\.h HINTS ).*$" all begin)
2813 (string-append begin " \"" openssl "/include\" )")))))))))
2814 (synopsis "Asynchronous RESTful functionality to C++11 applications")
2815 (description "Restbed is a comprehensive and consistent programming
2816 model for building applications that require seamless and secure
2817 communication over HTTP.")
2818 (home-page "https://github.com/Corvusoft/restbed")
2819 (license license:agpl3+))))
2821 (define-public restinio
2828 (url "https://github.com/Stiffstream/restinio.git")
2829 (commit (string-append "v." version))))
2830 (file-name (git-file-name name version))
2833 "141a96hx8zhcdv121g6cs91n46kb47y040v25pnvz5f54964z7f5"))))
2834 (build-system cmake-build-system)
2835 (inputs ; TODO: Need to force-keep references on some inputs, e.g. boost.
2837 ("catch2" ,catch-framework2)
2838 ("openssl" ,openssl)
2842 ("sobjectizer" ,sobjectizer)))
2846 ("http-parser", http-parser)))
2848 `(#:configure-flags '("-DRESTINIO_INSTALL=on")
2849 #:tests? #f ; TODO: The tests are called from the root CMakelist, need RESTINIO_TEST=on.
2851 (modify-phases %standard-phases
2852 (add-after 'unpack 'change-directory
2854 (chdir "dev/restinio")
2856 (home-page "https://stiffstream.com/en/products/restinio.html")
2857 (synopsis "C++14 library that gives you an embedded HTTP/Websocket server")
2858 (description "RESTinio is a header-only C++14 library that gives you an embedded
2859 HTTP/Websocket server. It is based on standalone version of ASIO
2860 and targeted primarily for asynchronous processing of HTTP-requests.")
2861 (license license:bsd-3)))
2863 (define-public opendht
2870 (url "https://github.com/savoirfairelinux/opendht.git")
2872 (file-name (git-file-name name version))
2875 "1q1fwk8wwk9r6bp0indpr60ql668lsk16ykslacyhrh7kg97kvhr"))))
2876 ;; Since 2.0, the gnu-build-system does not seem to work anymore, upstream bug?
2877 (build-system cmake-build-system)
2879 `(("gnutls" ,gnutls)
2881 ("readline" ,readline)
2882 ("jsoncpp" ,jsoncpp)
2883 ("openssl" ,openssl)
2886 `(("argon2" ,argon2) ; TODO: Needed for the pkg-config .pc file to work?
2887 ("msgpack" ,msgpack))) ;included in several installed headers
2889 `(("autoconf" ,autoconf)
2890 ("pkg-config" ,pkg-config)
2891 ("restinio" ,restinio)
2892 ("automake" ,automake)
2893 ("libtool" ,libtool)
2894 ("cppunit" ,cppunit)))
2896 `(#:tests? #f ; Tests require network connection.
2898 '(;; "-DOPENDHT_TESTS=on"
2899 "-DOPENDHT_TOOLS=off"
2900 "-DOPENDHT_PYTHON=off"
2901 "-DOPENDHT_PROXY_SERVER=on"
2902 "-DOPENDHT_PUSH_NOTIFICATIONS=on"
2903 "-DOPENDHT_PROXY_SERVER_IDENTITY=on"
2904 "-DOPENDHT_PROXY_CLIENT=on")))
2905 (home-page "https://github.com/savoirfairelinux/opendht/")
2906 (synopsis "Distributed Hash Table (DHT) library")
2907 (description "OpenDHT is a Distributed Hash Table (DHT) library. It may
2908 be used to manage peer-to-peer network connections as needed for real time
2910 (license license:gpl3+)))
2912 (define-public frrouting
2918 (uri (string-append "https://github.com/FRRouting/frr/releases/"
2919 "download/frr-" version "/frr-" version
2923 "0xfrvi62w8qlh46f504ka0skb7pm0g0p8vmdng4w90gsbirlzpdd"))))
2924 (build-system gnu-build-system)
2926 `(("c-ares" ,c-ares)
2928 ("readline" ,readline)))
2931 ("pkg-config" ,pkg-config)
2932 ("python" ,python-wrapper)
2933 ("python-pytest" ,python-pytest)))
2934 (home-page "https://frrouting.org/")
2935 (synopsis "IP routing protocol suite")
2936 (description "FRRouting (FRR) is an IP routing protocol suite which includes
2937 protocol daemons for BGP, IS-IS, LDP, OSPF, PIM, and RIP. ")
2938 (license license:gpl2+)))
2947 (url "https://git.kernel.org/pub/scm/network/wireless/iwd.git")
2949 (file-name (git-file-name name version))
2952 "001dikinsa6kshwscjbvwipavzwpqnpvx9fpshcn63gbvbhyd393"))))
2953 (build-system gnu-build-system)
2957 ("readline" ,readline)))
2959 `(("asciidoc" ,asciidoc)
2960 ("autoconf" ,autoconf)
2961 ("automake" ,automake)
2962 ("libtool" ,libtool)
2963 ("pkgconfig" ,pkg-config)
2965 ("openssl" ,openssl)))
2968 (let ((dbus (assoc-ref %outputs "out")))
2969 (list "--disable-systemd-service"
2970 "--enable-external-ell"
2975 "--localstatedir=/var"
2976 (string-append "--with-dbus-datadir=" dbus "/share/")
2977 (string-append "--with-dbus-busdir="
2978 dbus "/share/dbus-1/system-services")))
2980 (modify-phases %standard-phases
2981 (add-before 'bootstrap 'pre-bootstrap
2983 (substitute* "Makefile.am"
2984 ;; Test disabled because it needs the kernel module
2985 ;; 'pkcs8_key_parser' loaded.
2986 (("unit\\/test-eapol.*? ") "")
2987 ;; Don't try to 'mkdir /var'.
2988 (("\\$\\(MKDIR_P\\) -m 700") "true"))
2990 (home-page "https://git.kernel.org/pub/scm/network/wireless/iwd.git/")
2991 (synopsis "Internet Wireless Daemon")
2992 (description "iwd is a wireless daemon for Linux that aims to replace WPA
2993 Supplicant. It optimizes resource utilization by not depending on any external
2994 libraries and instead utilizing features provided by the Linux kernel to the
2995 maximum extent possible.")
2996 (license license:lgpl2.1+)))
2998 (define-public batctl
3005 (uri (string-append "https://downloads.open-mesh.org/batman/releases/batman-adv-"
3006 version "/batctl-" version ".tar.gz"))
3008 (base32 "0fy252q1my3a57v6pfz8i97h6zv7v03di01dhwjkj47pqnx1rqm3"))))
3010 `(("libnl" ,libnl)))
3012 `(("pkg-config" ,pkg-config)))
3013 (build-system gnu-build-system)
3016 ;; Batctl only has a makefile. Thus we disable tests and
3017 ;; configuration, passing in a few make-flags.
3018 #:phases (modify-phases %standard-phases (delete 'configure))
3020 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3021 (string-append "PKG_CONFIG=" (assoc-ref %build-inputs "pkg-config")
3024 (home-page "https://www.open-mesh.org/projects/batman-adv/wiki/Wiki")
3025 (synopsis "Management tool for the mesh networking BATMAN protocol")
3026 (description "This package provides a control tool for the
3027 B.A.T.M.A.N. mesh networking routing protocol provided by the Linux kernel
3028 module @code{batman-adv}, for Layer 2.")
3029 (license license:gpl2+)))
3031 (define-public pagekite
3034 (version "1.5.2.200603")
3039 (url "https://github.com/pagekite/PyPagekite.git")
3040 (commit (string-append "v" version))))
3041 (file-name (git-file-name name version))
3043 (base32 "08rcyr54dssnpand6y26f8x9cjmd91hr44my08kxw70s5iqiwizv"))))
3044 (build-system python-build-system)
3047 (modify-phases %standard-phases
3048 (add-after 'install 'install-man-page
3049 (lambda* (#:key inputs outputs #:allow-other-keys)
3050 (let* ((out (assoc-ref outputs "out"))
3051 (man (string-append out "/share/man")))
3053 (string-append "PYTHONPATH=" (getenv "PYTHONPATH"))
3055 (install-file "doc/pagekite.1" (string-append man "/man1"))
3058 `(("python-six" ,python-six)
3059 ("python-socksipychain" ,python-socksipychain)))
3060 (home-page "https://pagekite.net/")
3061 (synopsis "Make localhost servers publicly visible")
3063 "PageKite implements a tunneled reverse proxy which makes it easy to make
3064 a service (such as an HTTP or SSH server) on localhost visible to the wider
3065 Internet, even behind NAT or restrictive firewalls. A managed front-end relay
3066 service is available at @url{https://pagekite.net/}, or you can run your own.")
3067 (license license:agpl3+)))
3069 (define-public ipcalc
3075 (uri (string-append "http://jodies.de/ipcalc-archive/"
3076 name "-" version ".tar.gz"))
3079 "12if9sm8h2ac0pgwkw835cgyqjxm6h27k4kfn2vfas9krrqwbafx"))))
3080 (inputs `(("perl" ,perl)
3083 ("tarball" ,source)))
3084 (build-system trivial-build-system) ;no Makefile.PL
3086 `(#:modules ((guix build utils))
3089 (use-modules (guix build utils))
3090 (use-modules (srfi srfi-1))
3091 (let* ((source (assoc-ref %build-inputs "source"))
3092 (perl (string-append (assoc-ref %build-inputs "perl")
3094 (tar (assoc-ref %build-inputs "tar"))
3095 (gz (assoc-ref %build-inputs "gzip"))
3096 (out (assoc-ref %outputs "out"))
3097 (bin (string-append out "/bin"))
3098 (doc (string-append out "/share/doc/ipcalc")))
3099 (setenv "PATH" (string-append gz "/bin"))
3100 (invoke (string-append tar "/bin/tar") "xvf" source)
3101 (chdir (string-append ,name "-" ,version))
3103 (install-file "ipcalc" bin)
3104 (patch-shebang (string-append bin "/ipcalc") (list perl))
3106 (synopsis "Simple IP network calculator")
3107 (description "ipcalc takes an IP address and netmask and calculates the
3108 resulting broadcast, network, Cisco wildcard mask, and host range. By giving
3109 a second netmask, you can design subnets and supernets. It is also intended
3110 to be a teaching tool and presents the subnetting results as
3111 easy-to-understand binary values.")
3112 (home-page "http://jodies.de/ipcalc")
3113 (license license:gpl2+)))
3115 (define-public tunctl
3122 (uri (string-append "mirror://sourceforge/tunctl/tunctl/" version "/"
3123 "tunctl-" version ".tar.gz"))
3125 (base32 "1zsgn7w6l2zh2q0j6qaw8wsx981qcr536qlz1lgb3b5zqr66qama"))))
3126 (build-system gnu-build-system)
3129 (modify-phases %standard-phases
3130 (delete 'bootstrap) ;there is no configure.ac file
3131 (delete 'configure) ;there is no configure script
3132 (delete 'check) ;there are no tests
3136 (invoke "make" "tunctl")))
3137 ;; TODO: Requires docbook2x to generate man page from SGML.
3139 (lambda* (#:key outputs #:allow-other-keys)
3140 (let* ((out (assoc-ref outputs "out"))
3141 (bin (string-append out "/bin")))
3142 (install-file "tunctl" bin))
3144 (home-page "http://tunctl.sourceforge.net")
3145 (synopsis "Utility to set up and maintain TUN/TAP network interfaces")
3146 (description "Tunctl is used to set up and maintain persistent TUN/TAP
3147 network interfaces, enabling user applications to simulate network traffic.
3148 Such interfaces are useful for VPN software, virtualization, emulation,
3149 simulation, and a number of other applications.")
3150 (license license:gpl2)))
3159 (uri (string-append "mirror://sourceforge/wake-on-lan/wol/"
3160 version "/wol-" version ".tar.gz"))
3162 (base32 "08i6l5lr14mh4n3qbmx6kyx7vjqvzdnh3j9yfvgjppqik2dnq270"))))
3163 (build-system gnu-build-system)
3164 (home-page "https://sourceforge.net/projects/wake-on-lan/")
3165 (synopsis "Implements Wake On LAN functionality in a small program")
3166 (description "Tool to send a magic packet to wake another host on the
3167 network. This must be enabled on the target host, usually in the BIOS.")
3168 (license license:gpl2)))
3177 (uri "mirror://sourceforge/vde/vde2/2.3.2/vde2-2.3.2.tar.gz")
3179 (base32 "14xga0ib6p1wrv3hkl4sa89yzjxv7f1vfqaxsch87j6scdm59pr2"))))
3180 (build-system gnu-build-system)
3182 `(#:parallel-build? #f)) ; Build fails if #t.
3184 `(("python" ,python)
3185 ("libpcap" ,libpcap)
3186 ("openssl" ,openssl-1.0))) ; Build fails with 1.1.
3187 (home-page "https://github.com/virtualsquare/vde-2")
3188 (synopsis "Virtual Distributed Ethernet")
3189 (description "VDE is a set of programs to provide virtual software-defined
3190 Ethernet network interface controllers across multiple virtual or
3191 physical, local or remote devices. The VDE architecture provides
3192 virtual counterparts to hardware components such as switches and
3194 (license (list license:gpl2
3195 license:lgpl2.1 ; libvdeplug
3196 (license:non-copyleft ; slirpvde
3197 "file://COPYING.slirpvde"
3198 "See COPYING.slirpvde in the distribution.")))))
3200 (define-public haproxy
3206 (uri (string-append "https://www.haproxy.org/download/"
3207 (version-major+minor version)
3208 "/src/haproxy-" version ".tar.gz"))
3211 "0fd3c1znid5a9w3gcf77b85hm2a2558w9s02c4b7xzkmivqnqbir"))))
3212 (build-system gnu-build-system)
3215 (let* ((out (assoc-ref %outputs "out")))
3216 (list (string-append "PREFIX=" out)
3217 (string-append "DOCDIR=" out "/share/" ,name)
3218 "TARGET=linux-glibc"
3223 #:tests? #f ; there are only regression tests, using varnishtest
3225 (modify-phases %standard-phases
3226 (delete 'configure))))
3229 ("openssl" ,openssl)
3232 (home-page "https://www.haproxy.org/")
3233 (synopsis "Reliable, high performance TCP/HTTP load balancer")
3234 (description "HAProxy is a free, very fast and reliable solution offering
3235 high availability, load balancing, and proxying for TCP and HTTP-based
3236 applications. It is particularly suited for web sites crawling under very
3237 high loads while needing persistence or Layer7 processing. Supporting tens of
3238 thousands of connections is clearly realistic with today's hardware.")
3239 (license (list license:gpl2+
3241 license:lgpl2.1+))))
3243 (define-public lldpd
3250 (uri (string-append "https://media.luffy.cx/files/lldpd/lldpd-"
3254 "16fbqrs3l976gdslx647nds8x7sz4h5h3h4l4yxzrayvyh9b5lrd"))
3255 (modules '((guix build utils)))
3258 ;; Drop bundled library.
3259 (delete-file-recursively "libevent")
3264 "--with-privsep-user=nobody"
3265 "--with-privsep-group=nogroup"
3266 "--localstatedir=/var"
3268 "--without-embedded-libevent"
3269 (string-append "--with-systemdsystemunitdir="
3270 (assoc-ref %outputs "out")
3271 "/lib/systemd/system"))))
3272 (build-system gnu-build-system)
3274 `(("libevent" ,libevent)
3275 ("libxml2" ,libxml2)
3276 ("openssl" ,openssl)
3277 ("readline" ,readline)))
3279 `(("pkg-config" ,pkg-config)))
3280 (home-page "https://vincentbernat.github.io/lldpd/")
3281 (synopsis "Locate neighbors of your network equipment")
3283 "The @dfn{Link Layer Discovery Protocol} (LLDP) is an industry standard
3284 protocol designed to supplant proprietary Link-Layer protocols such as EDP or
3285 CDP. The goal of LLDP is to provide an inter-vendor compatible mechanism to
3286 deliver Link-Layer notifications to adjacent network devices. @code{lldpd} is
3287 an implementation of LLDP. It also supports some proprietary protocols.")
3288 (license license:isc)))
3290 (define-public hashcash
3297 (uri (string-append "http://www.hashcash.org/source/hashcash-"
3301 "15kqaimwb2y8wvzpn73021bvay9mz1gqqfc40gk4hj6f84nz34h1"))))
3302 (build-system gnu-build-system)
3304 `(#:make-flags (list (string-append "CC=" ,(cc-for-target)))
3306 (modify-phases %standard-phases
3308 ;; No tests available.
3311 (lambda* (#:key outputs #:allow-other-keys)
3312 (let* ((outdir (assoc-ref outputs "out"))
3313 (bindir (string-append outdir "/bin"))
3314 (mandir (string-append outdir "/share/man/man1"))
3315 (docdir (string-append outdir "/share/doc/hashcash-" ,version)))
3316 ;; Install manually, as we don't need the `sha1' binary
3317 (install-file "hashcash" bindir)
3318 (install-file "hashcash.1" mandir)
3319 (install-file "README" docdir)
3320 (install-file "LICENSE" docdir)
3321 (install-file "CHANGELOG" docdir)
3323 (home-page "https://www.hashcash.org/")
3324 (synopsis "Denial-of-service countermeasure")
3325 (description "Hashcash is a proof-of-work algorithm, which has been used
3326 as a denial-of-service countermeasure technique in a number of systems.
3328 A hashcash stamp constitutes a proof-of-work which takes a parametrizable
3329 amount of work to compute for the sender. The recipient can verify received
3330 hashcash stamps efficiently.
3332 This package contains a command-line tool for computing and verifying hashcash
3334 (license license:public-domain)))