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, 2020 Leo Famulari <leo@famulari.name>
17 ;;; Copyright © 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
18 ;;; Copyright © 2017, 2018, 2019 Rutger Helling <rhelling@mykolab.com>
19 ;;; Copyright © 2017, 2019 Gábor Boskovits <boskovits@gmail.com>
20 ;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
21 ;;; Copyright © 2018 Adam Van Ymeren <adam@vany.ca>
22 ;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com>
23 ;;; Copyright © 2018 Tonton <tonton@riseup.net>
24 ;;; Copyright © 2018 Clément Lassieur <clement@lassieur.org>
25 ;;; Copyright © 2018 Theodoros Foradis <theodoros@foradis.org>
26 ;;; Copyright © 2018, 2020 Marius Bakke <mbakke@fastmail.com>
27 ;;; Copyright © 2018, 2020 Oleg Pykhalov <go.wigust@gmail.com>
28 ;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz>
29 ;;; Copyright © 2019, 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
30 ;;; Copyright © 2019 Vasile Dumitrascu <va511e@yahoo.com>
31 ;;; Copyright © 2019 Julien Lepiller <julien@lepiller.eu>
32 ;;; Copyright © 2019 Timotej Lazar <timotej.lazar@araneo.si>
33 ;;; Copyright © 2019 Brice Waegeneire <brice@waegenei.re>
34 ;;; Copyright © 2019 Tonton <tonton@riseup.net>
35 ;;; Copyright © 2019, 2020 Alex Griffin <a@ajgrf.com>
36 ;;; Copyright © 2019, 2020 Jan Wielkiewicz <tona_kosmicznego_smiecia@interia.pl>
37 ;;; Copyright © 2019 Daniel Schaefer <git@danielschaefer.me>
38 ;;; Copyright © 2019 Diego N. Barbato <dnbarbato@posteo.de>
39 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
40 ;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
41 ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
42 ;;; Copyright © 2020 Jesse Dowell <jessedowell@gmail.com>
43 ;;; Copyright © 2020 Hamzeh Nasajpour <h.nasajpour@pantherx.org>
44 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
46 ;;; This file is part of GNU Guix.
48 ;;; GNU Guix is free software; you can redistribute it and/or modify it
49 ;;; under the terms of the GNU General Public License as published by
50 ;;; the Free Software Foundation; either version 3 of the License, or (at
51 ;;; your option) any later version.
53 ;;; GNU Guix is distributed in the hope that it will be useful, but
54 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
55 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
56 ;;; GNU General Public License for more details.
58 ;;; You should have received a copy of the GNU General Public License
59 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
61 (define-module (gnu packages networking)
62 #:use-module ((guix licenses) #:prefix license:)
63 #:use-module (guix packages)
64 #:use-module (guix download)
65 #:use-module (guix git-download)
66 #:use-module (guix build-system cmake)
67 #:use-module (guix build-system glib-or-gtk)
68 #:use-module (guix build-system gnu)
69 #:use-module (guix build-system go)
70 #:use-module (guix build-system meson)
71 #:use-module (guix build-system perl)
72 #:use-module (guix build-system python)
73 #:use-module (guix build-system trivial)
74 #:use-module (guix utils)
75 #:use-module (gnu packages)
76 #:use-module (gnu packages admin)
77 #:use-module (gnu packages adns)
78 #:use-module (gnu packages algebra)
79 #:use-module (gnu packages audio)
80 #:use-module (gnu packages autogen)
81 #:use-module (gnu packages autotools)
82 #:use-module (gnu packages base)
83 #:use-module (gnu packages bison)
84 #:use-module (gnu packages boost)
85 #:use-module (gnu packages check)
86 #:use-module (gnu packages code)
87 #:use-module (gnu packages compression)
88 #:use-module (gnu packages cpp)
89 #:use-module (gnu packages crypto)
90 #:use-module (gnu packages curl)
91 #:use-module (gnu packages cyrus-sasl)
92 #:use-module (gnu packages dejagnu)
93 #:use-module (gnu packages docbook)
94 #:use-module (gnu packages documentation)
95 #:use-module (gnu packages flex)
96 #:use-module (gnu packages freedesktop)
97 #:use-module (gnu packages gettext)
98 #:use-module (gnu packages glib)
99 #:use-module (gnu packages gnome)
100 #:use-module (gnu packages gnupg)
101 #:use-module (gnu packages golang)
102 #:use-module (gnu packages graphviz)
103 #:use-module (gnu packages gstreamer)
104 #:use-module (gnu packages gtk)
105 #:use-module (gnu packages image)
106 #:use-module (gnu packages libevent)
107 #:use-module (gnu packages libidn)
108 #:use-module (gnu packages linux)
109 #:use-module (gnu packages lua)
110 #:use-module (gnu packages multiprecision)
111 #:use-module (gnu packages kerberos)
112 #:use-module (gnu packages ncurses)
113 #:use-module (gnu packages nettle)
114 #:use-module (gnu packages openldap)
115 #:use-module (gnu packages onc-rpc)
116 #:use-module (gnu packages password-utils)
117 #:use-module (gnu packages pcre)
118 #:use-module (gnu packages perl)
119 #:use-module (gnu packages perl-check)
120 #:use-module (gnu packages pkg-config)
121 #:use-module (gnu packages polkit)
122 #:use-module (gnu packages pretty-print)
123 #:use-module (gnu packages pulseaudio)
124 #:use-module (gnu packages python)
125 #:use-module (gnu packages python-web)
126 #:use-module (gnu packages python-xyz)
127 #:use-module (gnu packages qt)
128 #:use-module (gnu packages readline)
129 #:use-module (gnu packages ruby)
130 #:use-module (gnu packages samba)
131 #:use-module (gnu packages serialization)
132 #:use-module (gnu packages shells)
133 #:use-module (gnu packages sphinx)
134 #:use-module (gnu packages sqlite)
135 #:use-module (gnu packages ssh)
136 #:use-module (gnu packages tcl)
137 #:use-module (gnu packages textutils)
138 #:use-module (gnu packages tls)
139 #:use-module (gnu packages valgrind)
140 #:use-module (gnu packages web)
141 #:use-module (gnu packages wxwidgets)
142 #:use-module (gnu packages xml)
143 #:use-module (ice-9 match))
152 (uri (string-append "https://github.com/axel-download-accelerator/axel/"
153 "releases/download/v" version "/"
154 "axel-" version ".tar.xz"))
156 (base32 "0kmlqk04sgkshsll4r9w3k0rvrgz0gpk987618r50khwl484zss6"))))
157 (build-system gnu-build-system)
159 `(("gettext" ,gettext-minimal)
160 ("pkg-config" ,pkg-config)))
162 `(("libressl" ,libressl)))
163 (home-page "https://github.com/axel-download-accelerator/axel")
164 (synopsis "Light command line download accelerator")
166 "Axel tries to accelerate the download process by using multiple
167 connections per file, and can also balance the load between different
168 servers. It tries to be as light as possible, so it might be useful
169 on byte-critical systems. It supports HTTP, HTTPS, FTP and FTPS
171 (license license:gpl2+)))
173 ;; This package does not have a release yet.
174 ;; But this is required to provide a feature in PipeWire.
175 (define-public libcamera
184 (url "git://linuxtv.org/libcamera.git")
185 (commit "74c8b508338ccdd0780aa1e067a1e8fcb9ee326b")))
187 (git-file-name name version))
189 (base32 "0d9lp8b9gyxh4jwfh55kp8zl1xyyg32z684v3y29378zpksncss1"))))
190 (build-system meson-build-system)
191 (outputs '("out" "doc"))
193 `(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
198 (modify-phases %standard-phases
199 (add-after 'unpack 'disable-failing-tests
201 (substitute* "test/meson.build"
202 (("\\['list-cameras', 'list-cameras.cpp'\\],")
205 (add-after 'install 'move-doc
206 (lambda* (#:key outputs #:allow-other-keys)
207 (let* ((out (assoc-ref outputs "out"))
208 (doc (assoc-ref outputs "doc")))
209 (mkdir-p (string-append doc "/share"))
211 (string-append out "/share/doc")
212 (string-append doc "/share/doc"))
217 ("pkg-config" ,pkg-config)
218 ("python" ,python-wrapper)
219 ("sphinx" ,python-sphinx)
220 ("yaml" ,python-pyyaml)))
224 ("gstreamer" ,gst-plugins-base)
230 (synopsis "Camera stack and framework")
231 (description "LibCamera is a complex camera support library for GNU+Linux,
232 Android, and ChromeOS.")
233 (home-page "https://libcamera.org/")
234 (license license:lgpl2.1+)))
236 (define-public libnice
244 (string-append "https://libnice.freedesktop.org/releases/"
245 name "-" version ".tar.gz"))
247 (base32 "1x3kj9b3dy9m2h6j96wgywfamas1j8k2ca43k5v82kmml9dx5asy"))))
248 (build-system meson-build-system)
249 (outputs '("out" "doc"))
251 `(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
256 (modify-phases %standard-phases
257 (add-after 'unpack 'disable-failing-test
259 (substitute* "tests/meson.build"
260 ;; ‘test-set-port-range.c:66:main: assertion failed:
261 ;; (nice_agent_gather_candidates (agent, stream1))’
262 (("'test-set-port-range'") "#"))
264 (add-after 'install 'move-docs
265 (lambda* (#:key outputs #:allow-other-keys)
266 (let* ((out (assoc-ref outputs "out"))
267 (doc (assoc-ref outputs "doc")))
268 (mkdir-p (string-append doc "/share"))
270 (string-append out "/share/gtk-doc")
271 (string-append doc "/share/gtk-doc"))
274 `(("glib:bin" ,glib "bin")
275 ("gobject-introspection" ,gobject-introspection)
277 ("pkg-config" ,pkg-config)))
279 `(("gstreamer" ,gstreamer)
280 ("gst-plugins-base" ,gst-plugins-base)
284 ("glib-networking" ,glib-networking)
286 (synopsis "GLib ICE implementation")
287 (description "LibNice is a library that implements the Interactive
288 Connectivity Establishment (ICE) standard (RFC 5245 & RFC 8445). It provides a
289 GLib-based library, libnice, as well as GStreamer elements to use it.")
290 (home-page "https://libnice.freedesktop.org/")
292 ;; This project is dual-licensed.
297 (define-public rtmpdump
298 ;; There are no tags in the repository, and the project is unlikely to
299 ;; make new releases. Take a recent commit for multiple security fixes
300 ;; as well as GnuTLS compatibility.
301 (let ((commit "c5f04a58fc2aeea6296ca7c44ee4734c18401aa3")
303 (version "2.4")) ;as mentioned in README and man pages
306 (version (git-version version revision commit))
311 (url "https://git.ffmpeg.org/rtmpdump")
313 (file-name (git-file-name name version))
315 (base32 "07ias612jgmxpam9h418kvlag32da914jsnjsfyafklpnh8gdzjb"))))
316 (build-system gnu-build-system)
318 `(#:tests? #f ; no tests
321 ;; The ‘validate-runpath’ phase fails to find librtmp.so.0.
322 (string-append "LDFLAGS=-Wl,-rpath="
323 (assoc-ref %outputs "out") "/lib")
324 (string-append "prefix=" (assoc-ref %outputs "out")))
326 (modify-phases %standard-phases
327 (add-after 'unpack 'omit-static-library
329 (substitute* "librtmp/Makefile"
330 (("cp librtmp\\.a .*") ; don't install it
332 (("librtmp\\.a ") ; don't build it
335 (add-after 'unpack 'prefer-gnutls
337 (substitute* '("Makefile" "librtmp/Makefile")
342 (delete 'configure))))
346 (synopsis "Tools and library for handling RTMP streams")
347 (description "RTMPdump is a toolkit for RTMP streams. All forms of RTMP are
348 supported, including rtmp://, rtmpt://, rtmpe://, rtmpte://, and rtmps://.")
349 (home-page "https://rtmpdump.mplayerhq.hu/")
366 (url "https://github.com/Haivision/srt")
367 (commit (string-append "v" version))))
368 (file-name (git-file-name name version))
370 (base32 "01nx3a35hzq2x0dvp2n2b86phpdy1z83kdraag7aq3hmc7f8iagg"))))
371 (build-system cmake-build-system)
375 (string-append "-DCMAKE_INSTALL_BINDIR="
376 (assoc-ref %outputs "out") "/bin")
377 "-DCMAKE_INSTALL_INCLUDEDIR=include"
378 "-DENABLE_STATIC=OFF"
379 "-DENABLE_UNITTESTS=ON")))
381 `(("gtest" ,googletest)
382 ("pkg-config" ,pkg-config)
385 `(("openssl" ,openssl)))
386 (synopsis "Secure Reliable Transport")
387 (description "SRT is a transport technology that optimizes streaming
388 performance across unpredictable networks, such as the Internet.")
389 (home-page "https://www.srtalliance.org/")
390 (license license:mpl2.0)))
392 ;; FFmpeg, GStreamer, and VLC don't support SRT 1.4.2 yet.
393 (define-public srt-1.4.1
403 (url "https://github.com/Haivision/srt")
404 (commit (string-append "v" version))))
405 (file-name (git-file-name name version))
408 "01xaq44j95kbgqfl41pnybvqy0yq6wd4wdw88ckylzf0nzp977xz"))))))
410 (define-public lksctp-tools
412 (name "lksctp-tools")
419 (url "https://github.com/sctp/lksctp-tools")
420 (commit (string-append "v" version))))
421 (file-name (git-file-name name version))
423 (base32 "1x4fwzrlzvfa3vcpja97m8w5g9ir2zrh4zs7zksminrnmdrs0dsr"))))
424 (build-system gnu-build-system)
426 `(("autoconf" ,autoconf)
427 ("automake" ,automake)
429 ("pkg-config" ,pkg-config)))
431 `(("linux-headers" ,linux-libre-headers)))
432 (synopsis "Linux SCTP helper library")
433 (description "Lksctp-tools project provides a user space library for SCTP
434 (libsctp) including C language header files (netinet/sctp.h) for accessing SCTP
435 specific application programming interfaces not provided by the standard
436 sockets, and also some helper utilities around SCTP.")
437 (home-page "http://lksctp.sourceforge.net/")
445 (define-public knockd
451 (uri (string-append "https://www.zeroflux.org/proj/knock/files/knock-"
455 "193qcpsy7v51c6awhg9652l5blyz8vp6n7y6fi7l4rhh6af4ff4r"))))
456 (build-system gnu-build-system)
458 `(("libpcap" ,libpcap)))
459 (home-page "https://www.zeroflux.org/projects/knock")
460 (synopsis "Small port-knock daemon")
461 (description "@command{knockd} is a port-knock daemon. It listens to all traffic on
462 an ethernet or PPP interface, looking for special \"knock\" sequences of @dfn{port-hits}
463 (UDP/TCP packets sent to a server port). This port need not be open, since knockd listens
464 at the link-layer level.")
465 (license license:gpl2+)))
475 (url "https://github.com/nanomsg/nng")
476 (commit (string-append "v" version))))
477 (file-name (git-file-name name version))
479 (base32 "0a4jg8alh2h0rw6fb4dqpvk4hgl2a7h76mq7g34fy89qh9sgg1a4"))))
480 (build-system cmake-build-system)
483 (list "-DNNG_ENABLE_COVERAGE=ON"
484 "-DNNG_ENABLE_TLS=ON"
485 "-DBUILD_SHARED_LIBS=ON")
487 (modify-phases %standard-phases
488 (add-after 'unpack 'disable-failing-tests
490 ;; These tests require network access.
491 (substitute* "tests/CMakeLists.txt"
492 (("add_nng_test1\\(httpclient 60 NNG_SUPP_HTTP\\)") "")
493 (("add_nng_test1\\(resolv 10 NNG_STATIC_LIB\\)") "")
494 (("add_nng_test\\(tls 60\\)") ""))
499 `(("mbedtls" ,mbedtls-apache)))
500 (synopsis "Lightweight messaging library")
501 (description "NNG project is a rewrite of the scalability protocols library
502 known as libnanomsg, and adds significant new capabilities, while retaining
503 compatibility with the original. It is a lightweight, broker-less library,
504 offering a simple API to solve common recurring messaging problems, such as
505 publish/subscribe, RPC-style request/reply, or service discovery.")
506 (home-page "https://nng.nanomsg.org/")
507 (license license:expat)))
509 (define-public nanomsg
518 (url "https://github.com/nanomsg/nanomsg")
520 (file-name (git-file-name name version))
522 (base32 "01ddfzjlkf2dgijrmm3j3j8irccsnbgfvjcnwslsfaxnrmrq5s64"))))
523 (build-system cmake-build-system)
524 (outputs '("out" "doc"))
528 "-DNN_ENABLE_COVERAGE=ON")
530 (modify-phases %standard-phases
531 (add-after 'install 'move-docs
532 (lambda* (#:key outputs #:allow-other-keys)
533 (let* ((out (assoc-ref outputs "out"))
534 (doc (assoc-ref outputs "doc")))
535 (mkdir-p (string-append doc "/share/doc"))
537 (string-append out "/share/doc/nanomsg")
538 (string-append doc "/share/doc/nanomsg"))
541 `(("asciidoctor" ,ruby-asciidoctor)
542 ("pkg-config" ,pkg-config)))
543 (synopsis "Scalable socket library")
544 (description "Nanomsg is a socket library that provides several common
545 communication patterns. It aims to make the networking layer fast, scalable,
546 and easy to use. Implemented in C, it works on a wide range of operating
547 systems with no further dependencies.")
548 (home-page "https://nanomsg.org/")
549 (license (license:non-copyleft "file:///COPYING"))))
551 (define-public blueman
558 (uri (string-append "https://github.com/blueman-project/blueman/releases"
559 "/download/" version "/blueman-" version ".tar.xz"))
561 (base32 "1nk46s1s8yrlqv37sc7la05nnn7sdgqhkrcdm98qin34llwkv70x"))))
562 (build-system glib-or-gtk-build-system)
564 `(#:configure-flags (list "--enable-polkit"
565 "--without-systemdsystemunitdir" ; Not required
566 "--without-systemduserunitdir") ; Not required
568 (modify-phases %standard-phases
569 ;; Python references are not being patched in patch-phase of build,
570 ;; despite using python-wrapper as input. So we patch them manually.
571 (add-after 'unpack 'patch-python-references
572 (lambda* (#:key inputs #:allow-other-keys)
573 (with-directory-excursion "apps"
574 (substitute* '("blueman-adapters.in" "blueman-applet.in"
575 "blueman-assistant.in" "blueman-manager.in"
576 "blueman-mechanism.in" "blueman-report.in"
577 "blueman-rfcomm-watcher.in" "blueman-sendto.in"
578 "blueman-services.in" "blueman-tray.in")
579 (("@PYTHON@") (string-append (assoc-ref inputs "python")
581 ,(version-major+minor
582 (package-version python))))))
584 ;; Fix loading of external programs.
585 (add-after 'unpack 'patch-external-programs
586 (lambda* (#:key inputs #:allow-other-keys)
587 (substitute* '("apps/blueman-report.in" "blueman/main/NetConf.py"
588 "blueman/main/PPPConnection.py")
589 (("/usr/sbin/bluetoothd")
590 (string-append (assoc-ref inputs "bluez")
591 "/libexec/bluetooth/bluetoothd"))
593 (string-append (assoc-ref inputs "iptables")
596 (string-append (assoc-ref inputs "ppp")
599 ;; Fix loading of pulseaudio libraries.
600 (add-after 'unpack 'patch-pulseaudio-libraries
601 (lambda* (#:key inputs #:allow-other-keys)
602 (let* ((pulseaudio (assoc-ref inputs "pulseaudio"))
603 (pulse (string-append pulseaudio "/lib/libpulse.so.0"))
604 (pulse-glib (string-append pulseaudio
605 "/lib/libpulse-mainloop-glib.so.0")))
606 (with-directory-excursion "blueman/main"
607 (substitute* "PulseAudioUtils.py"
608 (("libpulse.so.0") pulse)
609 (("libpulse-mainloop-glib.so.0") pulse-glib)))
611 ;; Fix running of blueman programs.
612 (add-after 'glib-or-gtk-wrap 'wrap-blueman-progs
613 (lambda* (#:key outputs #:allow-other-keys)
614 (let* ((out (assoc-ref outputs "out"))
615 (bin (string-append out "/bin/blueman-"))
616 (libexec (string-append out "/libexec/blueman-"))
617 (lib (string-append out "/lib/python"
618 ,(version-major+minor
619 (package-version python))
623 (wrap-program program
624 `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,lib))
625 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))))
627 (map (lambda (prog) (string-append bin prog))
628 '("adapters" "applet" "assistant" "manager" "report"
629 "sendto" "services" "tray"))
630 (map (lambda (prog) (string-append libexec prog))
631 '("mechanism" "rfcomm-watcher"))))
634 `(("cython" ,python-cython)
635 ("glib:bin" ,glib "bin")
636 ("gobject-introspection" ,gobject-introspection)
637 ("gtk+:bin" ,gtk+ "bin")
638 ("intltool" ,intltool)
639 ("pkg-config" ,pkg-config)))
643 ("gdkpixbuf" ,gdk-pixbuf+svg)
646 ("iproute2" ,iproute)
647 ("iptables" ,iptables)
648 ("net-tools" ,net-tools)
652 ("pulseaudio" ,pulseaudio)
653 ("pycairo" ,python-pycairo)
654 ("pygobject" ,python-pygobject)
655 ("python" ,python-wrapper)
656 ("libappindicator" ,libappindicator)
657 ("libnm" ,network-manager)))
658 (synopsis "GTK+ Bluetooth manager")
659 (description "Blueman is a Bluetooth management utility using the Bluez
660 D-Bus backend. It is designed to be easy to use for most common Bluetooth
662 (home-page "https://github.com/blueman-project/blueman")
663 (license license:gpl3+)))
665 ;; The gnu.org ‘home’ for this GNU project is a directory listing with 1.6.0 as
666 ;; the latest version. The author's git repository, mentioned in the 1.6.0
667 ;; README and otherwise legit-looking, contains a proper 1.7.0 release tarball
668 ;; with many OUI updates. Use it, even though it's also several years old now.
669 (define-public macchanger
676 (uri (string-append "https://github.com/alobbs/macchanger/"
677 "releases/download/" version "/"
678 name "-" version ".tar.gz"))
680 (base32 "1gs5m0jxyprdp00w2qkbnaqm3ilkjz0q1gqdg4nzdm8g4xy73qns"))))
681 (build-system gnu-build-system)
682 (home-page "https://www.gnu.org/software/macchanger/")
683 (synopsis "Viewing and manipulating MAC addresses of network interfaces")
684 (description "GNU MAC Changer is a utility for viewing and changing MAC
685 addresses of networking devices. New addresses may be set explicitly or
686 randomly. They can include MAC addresses of the same or other hardware vendors
687 or, more generally, MAC addresses of the same category of hardware.")
688 (license license:gpl2+)))
690 (define-public miredo
696 (uri (string-append "http://www.remlab.net/files/miredo/miredo-"
700 "0j9ilig570snbmj48230hf7ms8kvcwi2wblycqrmhh85lksd49ps"))))
701 (build-system gnu-build-system)
704 (modify-phases %standard-phases
705 (add-after 'unpack 'patch-iproute2
706 (lambda* (#:key inputs #:allow-other-keys)
707 (let* ((iproute (assoc-ref inputs "iproute"))
708 (ip (string-append iproute "/sbin/ip")))
709 (substitute* "misc/client-hook.iproute"
712 ;; The checkconf test in src/ requires network access.
714 'check 'disable-checkconf-test
716 (substitute* "src/Makefile"
717 (("^TESTS = .*") "TESTS = \n"))
720 `(("iproute" ,iproute)))
721 (home-page "https://www.remlab.net/miredo/")
722 (synopsis "Teredo IPv6 tunneling software")
724 "Miredo is an implementation (client, relay, server) of the Teredo
725 specification, which provides IPv6 Internet connectivity to IPv6 enabled hosts
726 residing in IPv4-only networks, even when they are behind a NAT device.")
727 (license license:gpl2+)))
729 (define-public ndisc6
735 (uri (string-append "https://www.remlab.net/files/ndisc6/ndisc6-"
739 "07swyar1hl83zxmd7fqwb2q0c0slvrswkcfp3nz5lknrk15dmcdb"))))
740 (build-system gnu-build-system)
741 (home-page "https://www.remlab.net/ndisc6/")
742 (synopsis "IPv6 diagnostic tools")
744 "NDisc6 is a collection of tools for IPv6 networking diagnostics.
745 It includes the following programs:
748 @item @command{ndisc6}: ICMPv6 Neighbor Discovery tool.
749 @item @command{rdisc6}: ICMPv6 Router Discovery tool.
750 @item @command{tcptraceroute6}: IPv6 traceroute over TCP.
751 @item @command{traceroute6}: IPv6 traceroute over UDP.
752 @item @command{rdnssd}: Recursive DNS Servers discovery daemon.
754 ;; The user can choose version 2 or 3 of the GPL, not later versions.
755 (license (list license:gpl2 license:gpl3))))
757 (define-public parprouted
763 (uri (string-append "https://www.hazard.maks.net/parprouted/"
764 "parprouted-" version ".tar.gz"))
767 "1z6yg28i0pv20jivyy82pxb38hsryj95inhj27bs6ja1bp4l6dnn"))))
768 (build-system gnu-build-system)
770 `(#:tests? #f ;no tests
771 #:phases (modify-phases %standard-phases
772 (add-after 'unpack 'insert-absolute-iproute-reference
773 (lambda* (#:key inputs #:allow-other-keys)
774 (let* ((iproute (assoc-ref inputs "iproute"))
775 (ip (string-append iproute "/sbin/ip")))
776 (substitute* "parprouted.c"
780 (lambda* (#:key outputs #:allow-other-keys)
781 (let* ((out (assoc-ref outputs "out"))
782 (sbin (string-append out "/sbin"))
783 (man8 (string-append out "/share/man/man8")))
784 ;; No configure script; hijack the phase to make
785 ;; the necessary arrangements.
786 (setenv "CC" ,(cc-for-target))
787 (for-each mkdir-p (list sbin man8))
788 (substitute* "Makefile"
789 (("/usr/local/sbin") sbin)
790 (("/usr/local/man/man8") man8))
793 `(("iproute" ,iproute)))
794 (home-page "https://www.hazard.maks.net/parprouted/")
795 (synopsis "Proxy ARP requests to other interfaces")
797 "@command{parprouted} is a daemon for transparent IP (Layer@tie{}3)
798 proxy ARP bridging. Unlike standard bridging, proxy ARP bridging can bridge
799 Ethernet networks behind wireless nodes. Normal layer@tie{}2 bridging does
800 not work between wireless nodes because wireless does not know about MAC
801 addresses used in the wired Ethernet networks. This daemon can also be
802 useful for making transparent firewalls.")
803 (license license:gpl2)))
812 "http://www.dest-unreach.org/socat/download/socat-"
816 "1z7xgnwiqpcv1j6aghhj9nqbx7cg3gpc4n9j7vi9hm7nhv5788wp"))))
817 (build-system gnu-build-system)
818 (arguments '(#:tests? #f)) ; no test suite
819 (inputs `(("openssl" ,openssl)))
820 (home-page "http://www.dest-unreach.org/socat/")
822 "Open bidirectional communication channels from the command line")
824 "socat is a relay for bidirectional data transfer between two independent
825 data channels---files, pipes, devices, sockets, etc. It can create
826 \"listening\" sockets, named pipes, and pseudo terminals.
828 socat can be used, for instance, as TCP port forwarder, as a shell interface
829 to UNIX sockets, IPv6 relay, for redirecting TCP oriented programs to a serial
830 line, to logically connect serial lines on different computers, or to
831 establish a relatively secure environment (su and chroot) for running client
832 or server shell scripts with network connections.")
833 (license license:gpl2)))
835 (define-public tcp-wrappers
837 (name "tcp-wrappers")
842 "ftp://ftp.porcupine.org/pub/security/tcp_wrappers_"
846 "0p9ilj4v96q32klavx0phw9va21fjp8vpk11nbh6v2ppxnnxfhwm"))))
847 (build-system gnu-build-system)
850 (modify-phases %standard-phases
851 (delete 'configure) ; there is no configure script
852 (delete 'check) ; there are no tests
856 ;; Upstream doesn't generate a shared library. So we have to do it.
857 (setenv "CC" "gcc -fno-builtin -fPIC")
858 (substitute* "Makefile"
859 (("^(all[^\n]*)" line) (string-append line " libwrap.so\n
860 libwrap.so: $(LIB_OBJ)\n
861 \tgcc -shared $^ -o $@\n")))
862 ;; Deal with some gcc breakage.
863 (substitute* "percent_m.c"
864 (("extern char .sys_errlist.*;") ""))
865 (substitute* "scaffold.c"
866 (("extern char .malloc.*;") ""))
867 ;; This, believe it or not, is the recommended way to build!
868 (invoke "make" "REAL_DAEMON_DIR=/etc" "linux")))
869 ;; There is no make install stage, so we have to do it ourselves.
872 (let ((out (assoc-ref %outputs "out"))
873 (man-pages `("hosts_access.3"
881 (headers `("tcpd.h"))
882 (bins `("safe_finger"
889 (install-file x (string-append out "/include")))
893 (install-file x (string-append out "/share/man/man"
894 (string-take-right x 1))))
898 (install-file x (string-append out "/lib/")))
902 (install-file x (string-append out "/bin/")))
905 (home-page "http://www.porcupine.org")
906 (synopsis "Monitor and filter incoming requests for network services")
907 (description "With this package you can monitor and filter incoming requests for
908 network services. It includes a library which may be used by daemons to
909 transparently check connection attempts against an access control list.")
910 (license (license:non-copyleft "file://DISCLAIMER"
911 "See the file DISCLAIMER in the distribution."))))
913 (define-public zeromq
919 (uri (string-append "https://github.com/zeromq/libzmq/releases"
920 "/download/v" version "/zeromq-" version ".tar.gz"))
923 "18km71p77jm1w7wly2a5mxvphjb0f2l6s08cg382x55f6zdqb4lx"))))
924 (build-system gnu-build-system)
925 (arguments '(#:configure-flags '("--disable-static")))
926 (home-page "https://zeromq.org")
927 (synopsis "Library for message-based applications")
929 "The 0MQ lightweight messaging kernel is a library which extends the
930 standard socket interfaces with features traditionally provided by specialized
931 messaging middle-ware products. 0MQ sockets provide an abstraction of
932 asynchronous message queues, multiple messaging patterns, message
933 filtering (subscriptions), seamless access to multiple transport protocols and
935 (license license:lgpl3+)))
944 "https://github.com/zeromq/" name
945 "/releases/download/v" version
946 "/" name "-" version ".tar.gz"))
949 "1szciz62sk3fm4ga9qjpxz0n0lazvphm32km95bq92ncng12kayg"))))
950 (build-system gnu-build-system)
952 '(#:configure-flags '("--enable-drafts")
953 #:phases (modify-phases %standard-phases
954 (add-before 'check 'patch-tests
956 (substitute* "src/czmq_selftest.c"
957 ;; Disable the zproc test, which fails on some hardware
958 ;; (see: https://github.com/zeromq/czmq/issues/2007).
959 (("\\{ \"zproc\", zproc_test.*")
961 ;; Also disable the zarmour test, which fails as well
962 ;; (see: https://github.com/zeromq/czmq/issues/2125).
963 (("\\{ \"zarmour\", zarmour_test.*")
967 `(("zeromq" ,zeromq)))
968 (home-page "https://zeromq.org")
969 (synopsis "High-level C bindings for ØMQ")
971 "czmq provides bindings for the ØMQ core API that hides the differences
972 between different versions of ØMQ.")
973 (license license:mpl2.0)))
975 (define-public cppzmq
982 (url "https://github.com/zeromq/cppzmq")
983 (commit (string-append "v" version))))
986 "19acx2bzi4n6fdnfgkja1nds7m1bwg8lw5vfcijrx9fv75pa7m8h"))
987 (file-name (git-file-name name version))))
988 (build-system cmake-build-system)
990 '(;; FIXME: The test suite requires downloading Catch and custom
991 ;; CMake targets, and refuses to use the system version.
992 ;; See <https://github.com/zeromq/cppzmq/issues/334>.
994 #:configure-flags '("-DCPPZMQ_BUILD_TESTS=OFF")))
996 `(("pkg-config" ,pkg-config)))
998 `(("zeromq" ,zeromq)))
999 (home-page "https://zeromq.org")
1000 (synopsis "C++ bindings for the ØMQ messaging library")
1002 "This package provides header-only C++ bindings for ØMQ. The header
1003 files contain direct mappings of the abstractions provided by the ØMQ C API.")
1004 (license license:expat)))
1006 (define-public libnatpmp
1009 (version "20150609")
1013 "http://miniupnp.free.fr/files/"
1014 name "-" version ".tar.gz"))
1017 "1c1n8n7mp0amsd6vkz32n8zj3vnsckv308bb7na0dg0r8969rap1"))))
1018 (build-system gnu-build-system)
1021 (modify-phases %standard-phases
1023 (delete 'check)) ; no tests
1025 (let* ((target ,(%current-target-system))
1027 (string-append target "-gcc")
1030 (string-append "CC=" gcc)
1031 (string-append "INSTALLPREFIX=" (assoc-ref %outputs "out"))
1032 (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib")))))
1033 (home-page "http://miniupnp.free.fr/libnatpmp.html")
1034 (synopsis "C library implementing NAT-PMP")
1036 "@code{libnatpmp} is a portable and asynchronous implementation of
1037 the Network Address Translation - Port Mapping Protocol (NAT-PMP)
1038 written in the C programming language.")
1039 (license license:bsd-3)))
1041 (define-public librdkafka
1048 (url "https://github.com/edenhill/librdkafka")
1049 (commit (string-append "v" version))))
1050 (file-name (git-file-name name version))
1053 "05mgrdzacn9kdpr68r5j0cvsvl54s52glnsc1ww9rcxx6p7hq1ly"))))
1054 (build-system gnu-build-system)
1057 (modify-phases %standard-phases
1059 ;; its custom configure script doesn't understand 'CONFIG_SHELL'.
1060 (lambda* (#:key outputs #:allow-other-keys)
1061 (let ((out (assoc-ref outputs "out")))
1062 ;; librdkafka++.so lacks RUNPATH for librdkafka.so
1064 (string-append "-Wl,-rpath=" out "/lib"))
1065 (invoke "./configure"
1066 (string-append "--prefix=" out))))))))
1068 `(("python" ,python-wrapper)))
1070 `(("zlib" ,zlib))) ; in the Libs.private field of rdkafka.pc
1071 (home-page "https://github.com/edenhill/librdkafka")
1072 (synopsis "Apache Kafka C/C++ client library")
1074 "librdkafka is a C library implementation of the Apache Kafka protocol,
1075 containing both Producer and Consumer support.")
1076 (license license:bsd-2)))
1078 (define-public libndp
1084 (uri (string-append "https://libndp.org/files/"
1085 "libndp-" version ".tar.gz"))
1088 "1dlinhl39va00v55qygjc9ap77yqf7xvn4rwmvdr49xhzzxhlj1c"))))
1089 (build-system gnu-build-system)
1090 (home-page "https://libndp.org/")
1091 (synopsis "Library for Neighbor Discovery Protocol")
1093 "libndp contains a library which provides a wrapper for IPv6 Neighbor
1094 Discovery Protocol. It also provides a tool named ndptool for sending and
1095 receiving NDP messages.")
1096 (license license:lgpl2.1+)))
1098 (define-public ethtool
1104 (uri (string-append "mirror://kernel.org/software/network/"
1105 "ethtool/ethtool-" version ".tar.xz"))
1108 "1kygjg6g90017k53b8342i59cpwgidalqpa3gdilqyrhm6b56zc1"))))
1109 (build-system gnu-build-system)
1111 `(("pkg-config" ,pkg-config)))
1113 `(("libmnl" ,libmnl)))
1114 (home-page "https://www.kernel.org/pub/software/network/ethtool/")
1115 (synopsis "Display or change Ethernet device settings")
1117 "ethtool can be used to query and change settings such as speed,
1118 auto-negotiation and checksum offload on many network devices, especially
1120 (license license:gpl2)))
1122 (define-public ifstatus
1128 (uri (string-append "mirror://sourceforge/ifstatus/ifstatus/"
1129 "ifstatus%20v" version "/ifstatus-v"
1133 "045cbsq9ps32j24v8y5hpyqxnqn9mpaf3mgvirlhgpqyb9jsia0c"))
1134 (modules '((guix build utils)))
1137 (substitute* "Main.h"
1138 (("#include <stdio.h>")
1139 "#include <stdio.h>\n#include <stdlib.h>"))
1141 (build-system gnu-build-system)
1143 '(#:tests? #f ; no "check" target
1145 (modify-phases %standard-phases
1146 (delete 'configure) ; no configure script
1148 (lambda* (#:key outputs #:allow-other-keys)
1149 (let* ((out (assoc-ref outputs "out"))
1150 (bin (string-append out "/bin")))
1152 (copy-file "ifstatus"
1153 (string-append bin "/ifstatus")))
1155 (inputs `(("ncurses" ,ncurses)))
1156 (home-page "http://ifstatus.sourceforge.net/graphic/index.html")
1157 (synopsis "Text based network interface status monitor")
1159 "IFStatus is a simple, easy-to-use program for displaying commonly
1160 needed/wanted real-time traffic statistics of multiple network
1161 interfaces, with a simple and efficient view on the command line. It is
1162 intended as a substitute for the PPPStatus and EthStatus projects.")
1163 (license license:gpl2+)))
1165 (define-public iputils
1168 (version "20190709")
1169 (home-page "https://github.com/iputils/iputils")
1172 (uri (git-reference (url home-page)
1173 (commit (string-append "s" version))))
1174 (file-name (git-file-name name version))
1175 (patches (search-patches "iputils-libcap-compat.patch"))
1178 "04bp4af15adp79ipxmiakfp0ij6hx5qam266flzbr94pr8z8l693"))))
1179 (build-system meson-build-system)
1181 `(#:configure-flags '("-DBUILD_RARPD=true")
1183 (modify-phases %standard-phases
1184 (add-after 'unpack 'fix-docbook-url
1185 (lambda* (#:key inputs #:allow-other-keys)
1186 (let* ((docbook-xsl (assoc-ref inputs "docbook-xsl"))
1187 (uri (string-append docbook-xsl "/xml/xsl/docbook-xsl-"
1188 ,(package-version docbook-xsl))))
1192 (("http://docbook\\.sourceforge\\.net/release/xsl-ns/current")
1194 (cons "doc/meson.build"
1195 (find-files "doc" "\\.xsl$")))
1198 `(("gettext" ,gettext-minimal)
1199 ("pkg-config" ,pkg-config)
1200 ("docbook-xsl" ,docbook-xsl)
1201 ("docbook-xml" ,docbook-xml-5)
1202 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
1203 ("xsltproc" ,libxslt)))
1205 `(("libcap" ,libcap)
1206 ("libidn2" ,libidn2)
1207 ("openssl" ,openssl)))
1208 (synopsis "Collection of network utilities")
1210 "This package contains a variety of tools for dealing with network
1211 configuration, troubleshooting, or servers. Utilities included are:
1214 @item @command{arping}: Ping hosts using the @dfn{Address Resolution Protocol}.
1215 @item @command{clockdiff}: Compute time difference between network hosts
1216 using ICMP TSTAMP messages.
1217 @item @command{ninfod}: Daemon that responds to IPv6 Node Information Queries.
1218 @item @command{ping}: Use ICMP ECHO messages to measure round-trip delays
1219 and packet loss across network paths.
1220 @item @command{rarpd}: Answer RARP requests from clients.
1221 @item @command{rdisc}: Populate network routing tables with information from
1222 the ICMP router discovery protocol.
1223 @item @command{tftpd}: Trivial file transfer protocol server.
1224 @item @command{tracepath}: Trace network path to an IPv4 or IPv6 address and
1225 discover MTU along the way.
1227 ;; The various utilities are covered by different licenses, see LICENSE
1229 (license (list license:gpl2+ ;arping, rarpd, tracepath
1230 license:bsd-3 ;clockdiff, ninfod, ping, tftpd
1231 (license:non-copyleft
1232 "https://spdx.org/licenses/Rdisc.html"
1233 "Sun Microsystems license, see rdisc.c for details")))))
1235 (define-public nload
1241 (uri (string-append "mirror://sourceforge/nload/nload/" version
1242 "/nload-" version ".tar.gz"))
1245 "1rb9skch2kgqzigf19x8bzk211jdfjfdkrcvaqyj89jy2pkm3h61"))))
1246 (build-system gnu-build-system)
1247 (inputs `(("ncurses" ,ncurses)))
1248 (home-page "http://www.roland-riegel.de/nload/")
1249 (synopsis "Realtime console network usage monitor")
1251 "Nload is a console application which monitors network traffic and
1252 bandwidth usage in real time. It visualizes the in- and outgoing traffic using
1253 two graphs, and provides additional info like total amount of transferred data
1254 and min/max network usage.")
1255 (license license:gpl2+)))
1257 (define-public iodine
1263 (uri (string-append "http://code.kryo.se/" name "/"
1264 name "-" version ".tar.gz"))
1267 "0gh17kcxxi37k65zm4gqsvbk3aw7yphcs3c02pn1c4s2y6n40axd"))))
1268 (build-system gnu-build-system)
1271 (modify-phases %standard-phases
1273 (add-before 'build 'fix-ifconfig-path
1274 ;; This package works only with the net-tools version of ifconfig.
1275 (lambda* (#:key inputs #:allow-other-keys)
1276 (substitute* "src/tun.c"
1278 (string-append (assoc-ref inputs "net-tools") "/bin/")))
1280 (add-before 'check 'delete-failing-tests
1281 ;; Avoid https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802105.
1283 (substitute* "tests/common.c"
1284 (("tcase_add_test\\(tc, \
1285 test_parse_format_ipv(4(|_listen_all|_mapped_ipv6)|6)\\);")
1288 #:make-flags (list "CC=gcc"
1289 (string-append "prefix=" (assoc-ref %outputs "out")))
1290 #:test-target "test"))
1291 (inputs `(("net-tools" ,net-tools)
1293 (native-inputs `(("check" ,check-0.14)
1294 ("pkg-config" ,pkg-config)))
1295 (home-page "https://code.kryo.se/iodine/")
1296 (synopsis "Tunnel IPv4 data through a DNS server")
1297 (description "Iodine tunnels IPv4 data through a DNS server. This
1298 can be useful in different situations where internet access is firewalled, but
1299 DNS queries are allowed. The bandwidth is asymmetrical, with limited upstream
1300 and up to 1 Mbit/s downstream.")
1301 ;; src/md5.[ch] is released under the zlib license
1302 (license (list license:isc license:zlib))))
1304 (define-public whois
1311 (uri (string-append "mirror://debian/pool/main/w/whois/"
1312 "whois_" version ".tar.xz"))
1314 (base32 "0kpi981zjczvdcxfcq455c529vlaxa73x8kbm530z5b01h0fk8fb"))))
1315 (build-system gnu-build-system)
1317 `(#:tests? #f ; no test suite
1318 #:make-flags (list "CC=gcc"
1319 (string-append "prefix=" (assoc-ref %outputs "out")))
1321 (modify-phases %standard-phases
1322 (delete 'configure) ; no configure script
1323 (add-before 'build 'setenv
1325 (setenv "HAVE_ICONV" "1")
1328 `(("libidn2" ,libidn2)))
1330 `(("gettext" ,gettext-minimal)
1332 ("pkg-config" ,pkg-config)))
1333 (synopsis "Intelligent client for the WHOIS directory service")
1335 "whois searches for an object in a @dfn{WHOIS} (RFC 3912) database.
1336 It is commonly used to look up the registered users or assignees of an Internet
1337 resource, such as a domain name, an IP address block, or an autonomous system.
1338 It can automatically select the appropriate server for most queries.
1340 For historical reasons, this package also includes @command{mkpasswd}, which
1341 encrypts passwords using @code{crypt(3)} and is unrelated to the Expect command
1343 (home-page "https://github.com/rfc1036/whois")
1344 (license license:gpl2+)))
1346 (define-public wireshark
1353 (uri (string-append "https://www.wireshark.org/download/src/wireshark-"
1356 (base32 "1i548w6zv6ni5n22rs90a12aakyq811493dxmadlcsj2krr6i66y"))))
1357 (build-system cmake-build-system)
1360 (modify-phases %standard-phases
1361 (add-after 'unpack 'remove-failing-test
1362 ;; Skip test suite failing with "Program reassemble_test is not
1363 ;; available" and alike errors. Also skip test suite failing with
1364 ;; "AssertionError: Program extcap/sdjournal is not available"
1367 (substitute* "CMakeLists.txt"
1368 (("suite_unittests" all) (string-append "# " all))
1369 (("suite_extcaps" all) (string-append "# " all)))
1371 ;; Build process chokes during `validate-runpath' phase.
1373 ;; Errors are like the following:
1374 ;; "/gnu/store/...wireshark-3.0.0/lib/wireshark/plugins/3.0/epan/ethercat.so:
1375 ;; error: depends on 'libwireshark.so.12', which cannot be found in
1376 ;; RUNPATH". That is, "/gnu/store/...wireshark-3.0.0./lib" doesn't
1377 ;; belong to RUNPATH.
1379 ;; That’s not a problem in practice because "ethercat.so" is a plugin,
1380 ;; so it’s dlopen’d by a process that already provides "libwireshark".
1381 ;; For now, we disable this phase.
1382 #:validate-runpath? #f))
1384 `(("c-ares" ,c-ares)
1388 ("libgcrypt" ,libgcrypt)
1390 ("libpcap" ,libpcap)
1392 ("libxml2" ,libxml2)
1394 ("lua" ,lua-5.2) ;Lua 5.3 unsupported
1397 ("qtmultimedia" ,qtmultimedia)
1404 ("doxygen" ,doxygen)
1406 ("gettext" ,gettext-minimal)
1408 ("pkg-config" ,pkg-config)
1409 ("python" ,python-wrapper)
1410 ("qttools" ,qttools)))
1411 (synopsis "Network traffic analyzer")
1412 (description "Wireshark is a network protocol analyzer, or @dfn{packet
1413 sniffer}, that lets you capture and interactively browse the contents of
1415 (home-page "https://www.wireshark.org/")
1416 (license license:gpl2+)))
1418 (define-public fping
1425 (uri (string-append "https://fping.org/dist/fping-"
1428 (base32 "1f2prmii4fyl44cfykp40hp4jjhicrhddh9v3dfs11j6nsww0f7d"))))
1429 (build-system gnu-build-system)
1430 (home-page "https://fping.org/")
1431 (synopsis "Send ICMP ECHO_REQUEST packets to network hosts")
1433 "fping is a ping-like program which uses @acronym{ICMP, Internet Control
1434 Message Protocol} echo requests to determine if a target host is responding.
1436 @command{fping} differs from @command{ping} in that you can specify any number
1437 of targets on the command line, or specify a file containing the lists of
1438 targets to ping. Instead of sending to one target until it times out or
1439 replies, fping will send out a ping packet and move on to the next target in a
1440 round-robin fashion.")
1441 (license license:expat)))
1443 (define-public gandi.cli
1450 (uri (pypi-uri name version))
1452 (base32 "110wc9zgxsrvw4yzp21p0ian5lcf7vhcpxhnmsc4fg9pzl2bwxd5"))))
1453 (build-system python-build-system)
1456 (modify-phases %standard-phases
1457 (add-after 'unpack 'embed-store-file-names
1459 (substitute* (list "gandi/cli/modules/cert.py"
1460 "gandi/cli/tests/commands/test_certificate.py")
1461 (("openssl") (which "openssl")))
1463 (add-after 'install 'install-documentation
1464 ;; The included man page may be outdated but we install it anyway,
1465 ;; since it's mentioned in 'gandi --help' and better than nothing.
1466 (lambda* (#:key outputs #:allow-other-keys)
1467 (let* ((out (assoc-ref outputs "out"))
1468 (man1 (string-append out "/share/man/man1")))
1470 (with-output-to-file (string-append man1 "/gandi.1")
1472 (invoke "rst2man.py" "gandicli.man.rst")))
1475 `(("python-docutils" ,python-docutils) ; for rst2man.py
1476 ("python-pytest-cov" ,python-pytest-cov)
1477 ("python-tox" ,python-tox)))
1479 `(("openssl" ,openssl)
1480 ("python-click" ,python-click)
1481 ("python-ipy" ,python-ipy)
1482 ("python-pyyaml" ,python-pyyaml)
1483 ("python-requests" ,python-requests)))
1484 (home-page "https://cli.gandi.net")
1485 (synopsis "Command-line interface to the Gandi.net Web API")
1487 "This package provides a command-line client (@command{gandi}) to buy,
1488 manage, and delete Internet resources from Gandi.net such as domain names,
1489 virtual machines, and certificates.")
1490 (license license:gpl3+)))
1492 (define-public go-netns
1493 (let ((commit "13995c7128ccc8e51e9a6bd2b551020a27180abd")
1497 (version (git-version "0.0.0" revision commit))
1501 (url "https://github.com/vishvananda/netns")
1503 (file-name (git-file-name name version))
1506 "1zk6w8158qi4niva5rijchbv9ixgmijsgqshh54wdaav4xrhjshn"))))
1507 (build-system go-build-system)
1509 `(#:import-path "github.com/vishvananda/netns"
1510 #:tests? #f)) ;tests require root privileges
1511 (home-page "https://github.com/vishvananda/netns")
1512 (synopsis "Simple network namespace handling for Go")
1513 (description "The netns package provides a simple interface for
1514 handling network namespaces in Go.")
1515 (license license:asl2.0))))
1517 (define-public go-sctp
1518 ;; docker-libnetwork-cmd-proxy requires this exact commit.
1519 ;; This commit is mentioned in docker-libnetwork-cmd-proxy's vendor.conf.
1520 (let ((commit "6e2cb1366111dcf547c13531e3a263a067715847")
1524 (version (git-version "0.0.0" revision commit))
1528 (url "https://github.com/ishidawataru/sctp")
1530 (file-name (git-file-name name version))
1533 "1ba90fmpdwxa1ba4hrsjhi3gfy3pwmz7x8amw1p5dc9p5a7nnqrb"))))
1534 (build-system go-build-system)
1536 `(#:tests? #f ; Test suite is flakey.
1537 #:import-path "github.com/ishidawataru/sctp"))
1538 (home-page "https://github.com/ishidawataru/sctp")
1539 (synopsis "SCTP library for the Go programming language")
1540 (description "This library provides methods for using the stream control
1541 transmission protocol (SCTP) in a Go application.")
1542 (license license:asl2.0))))
1544 (define-public httping
1551 (uri (string-append "https://www.vanheusden.com/httping/httping-"
1555 "1y7sbgkhgadmd93x1zafqc4yp26ssiv16ni5bbi9vmvvdl55m29y"))))
1556 (build-system gnu-build-system)
1558 `(("gettext" ,gettext-minimal)))
1561 ("ncurses" ,ncurses)
1562 ("openssl" ,openssl)))
1564 `(#:make-flags (list "CC=gcc"
1565 (string-append "DESTDIR=" (assoc-ref %outputs "out"))
1567 #:tests? #f)) ; no tests
1568 (home-page "https://www.vanheusden.com/httping/")
1569 (synopsis "Web server latency and throughput monitor")
1571 "httping measures how long it takes to connect to a web server, send an
1572 HTTP(S) request, and receive the reply headers. It is somewhat similar to
1573 @command{ping}, but can be used even in cases where ICMP traffic is blocked
1574 by firewalls or when you want to monitor the response time of the actual web
1575 application stack itself.")
1576 (license license:gpl2))) ; with permission to link with OpenSSL
1578 (define-public httpstat
1586 (url "https://github.com/reorx/httpstat")
1588 (file-name (git-file-name name version))
1591 "18k2glnyzxlmry19ijmndim2vqqn3c86smd7xc3haw6k7qafifx1"))))
1592 (build-system python-build-system)
1593 (inputs `(("curl" ,curl)))
1596 (modify-phases %standard-phases
1597 (add-before 'build 'fix-curl-path
1598 (lambda* (#:key inputs #:allow-other-keys)
1599 (substitute* "httpstat.py"
1600 (("ENV_CURL_BIN.get\\('curl'\\)")
1601 (string-append "ENV_CURL_BIN.get('"
1602 (assoc-ref inputs "curl")
1604 ;; "curl -w time_*" units seems to have
1605 ;; changed from seconds to nanoseconds.
1606 (("d\\[k\\] \\* 1000") "d[k] / 1000"))
1608 (home-page "https://github.com/reorx/httpstat")
1609 (synopsis "Visualize curl statistics")
1611 "@command{httpstat} is a tool to visualize statistics from the
1612 @command{curl} HTTP client. It acts as a wrapper for @command{curl} and
1613 prints timing information for each step of the HTTP request (DNS lookup,
1614 TCP connection, TLS handshake and so on) in the terminal.")
1615 (license license:expat)))
1617 (define-public squid
1624 (uri (string-append "http://www.squid-cache.org/Versions/v4/squid-"
1627 (base32 "1q1ywpic6s7dfjj3cwzcfgscc4zq0aih462gyas7j1z683ss14b8"))))
1628 (build-system gnu-build-system)
1631 ;; disable -march=native in build for reproducibility; see
1632 ;; https://wiki.squid-cache.org/KnowledgeBase/IllegalInstructionError
1633 (list "--disable-arch-native")
1635 (modify-phases %standard-phases
1636 (add-before 'build 'fix-true-path
1637 (lambda* (#:key inputs #:allow-other-keys)
1638 (substitute* "test-suite/testheaders.sh"
1640 (string-append (assoc-ref inputs "coreutils")
1645 ("openldap" ,openldap)
1646 ("linux-pam" ,linux-pam)
1648 ("cyrus-sasl" ,cyrus-sasl)
1650 ("libxml2" ,libxml2)
1651 ("openssl" ,openssl)))
1653 `(("cppunit" ,cppunit)
1654 ("pkg-config" ,pkg-config)))
1655 (synopsis "Web caching proxy")
1656 (description "Squid is a caching proxy for the Web supporting HTTP, HTTPS,
1657 FTP, and more. It reduces bandwidth and improves response times by caching and
1658 reusing frequently-requested web pages.")
1659 (home-page "http://www.squid-cache.org/")
1660 (license license:gpl2+)))
1662 (define-public bwm-ng
1670 (url "https://github.com/vgropp/bwm-ng")
1671 (commit (string-append "v" version))))
1672 (file-name (git-file-name name version))
1674 (base32 "0k906wb4pw3dcqpcwnni78lahzi3bva483f8c17sjykic7as4y5n"))))
1675 (build-system gnu-build-system)
1678 (modify-phases %standard-phases
1679 (add-after 'unpack 'disable-premature-./configure
1681 (substitute* "autogen.sh"
1682 (("\\$srcdir/configure")
1686 `(("autoconf" ,autoconf)
1687 ("automake" ,automake)))
1689 `(("ncurses" ,ncurses)))
1690 (synopsis "Console based live network and disk I/O bandwidth monitor")
1691 (description "Bandwidth Monitor NG is a small and simple console based
1692 live network and disk I/O bandwidth monitor.")
1693 (home-page "https://www.gropp.org/?id=projects&sub=bwm-ng")
1694 (license license:gpl2)))
1696 (define-public aircrack-ng
1698 (name "aircrack-ng")
1703 (uri (string-append "https://download.aircrack-ng.org/aircrack-ng-"
1706 (base32 "0ix2k64qg7x3w0bzdsbk1m50kcpq1ws59g3zkwiafvpwdr4gs2sg"))))
1707 (build-system gnu-build-system)
1709 `(("autoconf" ,autoconf)
1710 ("automake" ,automake)
1711 ("libtool" ,libtool)
1712 ("pkg-config" ,pkg-config)
1715 `(("libgcrypt" ,libgcrypt)
1717 ("libpcap" ,libpcap)
1718 ("ethtool" ,ethtool)
1724 (list "--with-experimental=yes" ; build wesside-ng, etc.
1725 "--with-gcrypt") ; openssl's the default
1726 #:phases (modify-phases %standard-phases
1727 (add-before 'bootstrap 'patch-evalrev
1729 ;; Called by ./autogen.sh below, before the default
1730 ;; ‘patch-shebangs’ phase has had a chance to run.
1731 (substitute* "evalrev"
1735 (add-after 'build 'absolutize-tools
1736 (lambda* (#:key inputs #:allow-other-keys)
1737 (let ((ethtool (string-append (assoc-ref inputs "ethtool")
1739 (substitute* "scripts/airmon-ng"
1741 (string-append ethtool " ")))
1743 (home-page "https://www.aircrack-ng.org")
1744 (synopsis "Assess WiFi network security")
1746 "Aircrack-ng is a complete suite of tools to assess WiFi network
1747 security. It focuses on different areas of WiFi security: monitoring,
1748 attacking, testing, and cracking. All tools are command-line driven, which
1749 allows for heavy scripting.")
1750 (license (list license:gpl2+ license:bsd-3))))
1752 (define-public pixiewps
1759 "https://github.com/wiire-a/pixiewps/releases/"
1760 "download/v" version "/" name "-" version ".tar.xz"))
1763 "07nym6bqml0k9v29vnj003nrgnwrywgjvnljb7cdpsvnwilhbp64"))))
1764 (build-system gnu-build-system)
1768 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1770 (modify-phases %standard-phases
1771 (delete 'configure)) ; no configure script
1772 #:tests? #f)) ; there are no tests
1773 (home-page "https://github.com/wiire-a/pixiewps/")
1774 (synopsis "Offline brute-force tool for Wi-Fi Protected Setup")
1775 (description "Pixiewps implements the pixie-dust attack to brute
1776 force the Wi-Fi Protected Setup (WPS) PIN by exploiting the low or
1777 non-existing entropy of some access points.")
1778 (license license:gpl3+)))
1780 (define-public reaver
1787 "https://github.com/t6x/reaver-wps-fork-t6x/releases/"
1788 "download/v" version "/reaver-" version ".tar.xz"))
1791 "00k7mc81ifv0wma7k4v18mj498badbw5yls6c28qin3d1gda0ag3"))))
1792 (build-system gnu-build-system)
1795 ;; Save session files to current directory instead of /var.
1796 (list "--enable-savetocurrent"
1797 "--localstatedir=/tmp/dummy") ; prevent creating /var during install
1799 (modify-phases %standard-phases
1800 (add-before 'configure 'change-directory
1804 (add-after 'install 'install-doc
1805 (lambda* (#:key outputs #:allow-other-keys)
1807 (let* ((out (assoc-ref outputs "out"))
1808 (doc (string-append out "/share/doc/" ,name "-" ,version))
1809 (man1 (string-append out "/share/man/man1")))
1810 (for-each (lambda (file) (install-file file doc))
1811 (find-files "." "README.*"))
1812 (install-file "reaver.1" man1)
1814 #:tests? #f)) ; there are no tests
1816 `(("libpcap" ,libpcap)))
1818 `(("aircrack-ng" ,aircrack-ng)
1819 ("pixiewps" ,pixiewps)))
1820 (home-page "https://github.com/t6x/reaver-wps-fork-t6x/")
1821 (synopsis "Attack tool for Wi-Fi Protected Setup")
1822 (description "Reaver performs a brute force attack against an access
1823 point's Wi-Fi Protected Setup (WPS) PIN. Once the PIN is found, the WPA
1824 passphrase can be recovered and the AP's wireless settings can be
1826 (license license:gpl2+)))
1828 (define-public perl-danga-socket
1830 (name "perl-danga-socket")
1835 (uri (string-append "mirror://cpan/authors/id/N/NM/NML/"
1836 "Danga-Socket-" version ".tar.gz"))
1838 (base32 "0x4bvirmf0kphks19jwgva00zz73zx344218dfaiv8gigrw3yg4m"))))
1839 (build-system perl-build-system)
1841 `(("perl-test-tcp" ,perl-test-tcp)))
1843 `(("perl-sys-syscall" ,perl-sys-syscall)))
1844 (home-page "https://metacpan.org/release/Danga-Socket")
1845 (synopsis "Event loop and event-driven async socket base class")
1847 "Danga::Socket is an abstract base class for objects backed by a socket
1848 which provides the basic framework for event-driven asynchronous IO, designed
1849 to be fast. Danga::Socket is both a base class for objects, and an event
1851 (license license:perl-license)))
1853 (define-public perl-data-validate-ip
1855 (name "perl-data-validate-ip")
1861 "mirror://cpan/authors/id/D/DR/DROLSKY/Data-Validate-IP-"
1864 (base32 "1mmppyzsh1w2z2h86kvzqxy56wxgs62a3kf8nvcnz76bblir5ap1"))))
1865 (build-system perl-build-system)
1867 `(("perl-test-requires" ,perl-test-requires)))
1869 `(("perl-netaddr-ip" ,perl-netaddr-ip)))
1870 (home-page "https://metacpan.org/release/Data-Validate-IP")
1871 (synopsis "IPv4 and IPv6 validation methods")
1873 "This module provides several IP address validation subroutines that both
1874 validate and untaint their input. This includes both basic validation
1875 (@code{is_ipv4()} and @code{is_ipv6()}) and special cases like checking whether
1876 an address belongs to a specific network or whether an address is public or
1877 private (reserved).")
1878 (license license:perl-license)))
1880 (define-public perl-net-dns
1882 (name "perl-net-dns")
1889 (string-append "https://www.net-dns.org/download/Net-DNS-"
1891 (string-append "mirror://cpan/authors/id/N/NL/NLNETLABS/Net-DNS-"
1892 version ".tar.gz")))
1894 (base32 "0kh2qbhxv005pqb35mdk2bld7cg7xnxl12qvdwv30sgd91aqica7"))))
1895 (build-system perl-build-system)
1897 `(("perl-digest-hmac" ,perl-digest-hmac)))
1898 (home-page "https://www.net-dns.org/")
1900 "Perl Interface to the Domain Name System")
1901 (description "Net::DNS is the Perl Interface to the Domain Name System.")
1902 (license license:x11)))
1904 (define-public perl-socket6
1906 (name "perl-socket6")
1912 "mirror://cpan/authors/id/U/UM/UMEMOTO/Socket6-"
1917 "054izici8klfxs8hr5rljib28plijpsfymy99xbzdp047bx1b2a6"))))
1918 (build-system perl-build-system)
1921 (modify-phases %standard-phases
1923 (lambda* (#:key outputs #:allow-other-keys)
1924 (let* ((out (assoc-ref outputs "out"))
1925 (args `("Makefile.PL"
1926 ,(string-append "PREFIX=" out)
1927 "INSTALLDIRS=site")))
1928 (setenv "CONFIG_SHELL" (which "sh"))
1929 (apply invoke "perl" args)))))))
1930 (home-page "https://metacpan.org/release/Socket6")
1932 "IPv6 related part of the C socket.h defines and structure manipulators for Perl")
1933 (description "Socket6 binds the IPv6 related part of the C socket header
1934 definitions and structure manipulators for Perl.")
1935 (license license:bsd-3)))
1937 (define-public perl-net-dns-resolver-programmable
1939 (name "perl-net-dns-resolver-programmable")
1945 "mirror://cpan/authors/id/J/JM/JMEHNLE/net-dns-resolver-programmable/"
1946 "Net-DNS-Resolver-Programmable-v" version ".tar.gz"))
1949 "1v3nl2kaj4fs55n1617n53q8sa3mir06898vpy1rq98zjih24h4d"))
1951 (search-patches "perl-net-dns-resolver-programmable-fix.patch"))))
1952 (build-system perl-build-system)
1954 `(("perl-module-build" ,perl-module-build)))
1955 (inputs `(("perl-net-dns" ,perl-net-dns)))
1957 "https://metacpan.org/release/Net-DNS-Resolver-Programmable")
1959 "Programmable DNS resolver class for offline emulation of DNS")
1960 (description "Net::DNS::Resolver::Programmable is a programmable DNS resolver for
1961 offline emulation of DNS.")
1962 (license license:perl-license)))
1964 (define-public perl-net-dns-resolver-mock
1966 (name "perl-net-dns-resolver-mock")
1967 (version "1.20171219")
1971 "mirror://cpan/authors/id/M/MB/MBRADSHAW/"
1972 "Net-DNS-Resolver-Mock-" version ".tar.gz"))
1975 "0m3rxpkv1b9121srvbqkrgzg4m8mnydiydqv34in1i1ixwrl6jn9"))))
1976 (build-system perl-build-system)
1978 `(("perl-net-dns" ,perl-net-dns)))
1979 (home-page "https://metacpan.org/release/Net-DNS-Resolver-Mock")
1980 (synopsis "Mock DNS Resolver object for testing")
1982 "Net::DNS::Resolver::Mock is a subclass of Net::DNS::Resolver, but returns
1983 static data from any provided DNS zone file instead of querying the network.
1984 It is intended primarily for use in testing.")
1985 (license license:perl-license)))
1987 (define-public perl-netaddr-ip
1989 (name "perl-netaddr-ip")
1995 "mirror://cpan/authors/id/M/MI/MIKER/NetAddr-IP-"
2000 "1rx0dinrz9fk9qcg4rwqq5n1dm3xv2arymixpclcv2q2nzgq4npc"))))
2001 (build-system perl-build-system)
2004 (modify-phases %standard-phases
2006 (lambda* (#:key outputs #:allow-other-keys)
2007 (let* ((out (assoc-ref outputs "out"))
2008 (args `("Makefile.PL"
2009 ,(string-append "PREFIX=" out)
2010 "INSTALLDIRS=site")))
2011 (setenv "CONFIG_SHELL" (which "sh"))
2012 (apply invoke "perl" args)))))))
2014 "https://metacpan.org/release/NetAddr-IP")
2016 "Manages IPv4 and IPv6 addresses and subnets")
2017 (description "NetAddr::IP manages IPv4 and IPv6 addresses and subsets.")
2018 (license license:perl-license)))
2020 (define-public perl-net-patricia
2022 (name "perl-net-patricia")
2028 "mirror://cpan/authors/id/G/GR/GRUBER/Net-Patricia-"
2033 "0ln5f57vc8388kyh9vhx2infrdzfhbpgyby74h1qsnhwds95m0vh"))))
2034 (build-system perl-build-system)
2037 (modify-phases %standard-phases
2038 (add-after 'unpack 'dont-link-with-nsl ; Borrowed from Debian.
2040 (substitute* "Makefile.PL"
2044 `(("perl-net-cidr-lite" ,perl-net-cidr-lite)
2045 ("perl-socket6" ,perl-socket6)))
2047 "https://metacpan.org/release/Net-Patricia")
2049 "Patricia Trie Perl module for fast IP address lookups")
2051 "Net::Patricia does IP address lookups quickly in Perl.")
2052 ;; The bindings are licensed under GPL2 or later.
2053 ;; libpatricia is licensed under 2-clause BSD.
2054 (license (list license:gpl2+ license:bsd-2))))
2056 (define-public perl-net-cidr-lite
2058 (name "perl-net-cidr-lite")
2064 "mirror://cpan/authors/id/D/DO/DOUGW/Net-CIDR-Lite-"
2069 "14shj73zbqmfjbp0qz1fs9j4p2dpvz5hfkm4qfdjbydflbl2b8fg"))))
2070 (build-system perl-build-system)
2072 "https://metacpan.org/release/Net-CIDR-Lite")
2074 "Perl extension for merging IPv4 or IPv6 CIDR addresses")
2075 (description "Net::CIDR::Lite merges IPv4 or IPv6 CIDR addresses.")
2076 (license license:gpl1+)))
2078 (define-public perl-io-socket-inet6
2080 (name "perl-io-socket-inet6")
2086 "mirror://cpan/authors/id/S/SH/SHLOMIF/IO-Socket-INET6-"
2091 "1fqypz6qa5rw2d5y2zq7f49frwra0aln13nhq5gi514j2zx21q45"))))
2092 (build-system perl-build-system)
2094 `(("perl-module-build" ,perl-module-build)
2095 ("perl-test-pod" ,perl-test-pod)
2096 ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
2097 (inputs `(("perl-socket6" ,perl-socket6)))
2098 (arguments `(;; Need network socket API
2101 "https://metacpan.org/release/IO-Socket-INET6")
2103 "Perl object interface for AF_INET/AF_INET6 domain sockets")
2104 (description "IO::Socket::INET6 is an interface for AF_INET/AF_INET6 domain
2106 (license license:perl-license)))
2108 (define-public libproxy
2114 (uri (string-append "https://github.com/libproxy/libproxy/"
2115 "releases/download/" version "/libproxy-"
2119 "0kvdrazlzwia876w988cmlypp253gwy6idlh8mjk958c29jb8kb5"))))
2120 (build-system cmake-build-system)
2122 `(("pkg-config" ,pkg-config)))
2128 (modify-phases %standard-phases
2131 (invoke "ctest" "-E" "url-test"))))))
2132 (synopsis "Library providing automatic proxy configuration management")
2133 (description "Libproxy handles the details of HTTP/HTTPS proxy
2134 configuration for applications across all scenarios. Applications using
2135 libproxy only have to specify which proxy to use.")
2136 (home-page "https://libproxy.github.io/libproxy")
2137 (license license:lgpl2.1+)))
2139 (define-public proxychains-ng
2141 (name "proxychains-ng")
2146 (uri (string-append "http://ftp.barfooze.de/pub/sabotage/tarballs/"
2147 "proxychains-ng-" version ".tar.xz"))
2149 (base32 "1bmhfbl1bzc87vl0xwr1wh5xvslfyc41nl2hqzhbj258p0sy004x"))))
2150 (build-system gnu-build-system)
2152 `(#:tests? #f ; there are no tests
2154 (modify-phases %standard-phases
2155 (add-after 'unpack 'fix-configure-script
2157 ;; The configure script is very intolerant to unknown arguments,
2158 ;; such as "CONFIG_SHELL".
2159 (substitute* "configure"
2160 (("\\*\\) break ;;" line)
2161 (string-append "[A-Z]*) shift ;;\n"
2164 (add-before 'configure 'set-up-environment
2168 (synopsis "Redirect any TCP connection through a proxy or proxy chain")
2169 (description "Proxychains-ng is a preloader which hooks calls to sockets
2170 in dynamically linked programs and redirects them through one or more SOCKS or
2172 (home-page "https://github.com/rofl0r/proxychains-ng")
2173 (license license:gpl2+)))
2182 (uri (string-append "http://enet.bespin.org/download/"
2183 "enet-" version ".tar.gz"))
2185 (base32 "1p6f9mby86af6cs7pv6h48032ip9g32c05cb7d9mimam8lchz3x3"))))
2186 (build-system gnu-build-system)
2188 `(("pkg-config" ,pkg-config)))
2189 (synopsis "Network communication layer on top of UDP")
2191 "ENet's purpose is to provide a relatively thin, simple and robust network
2192 communication layer on top of UDP. The primary feature it provides is optional
2193 reliable, in-order delivery of packets. ENet omits certain higher level
2194 networking features such as authentication, server discovery, encryption, or
2195 other similar tasks that are particularly application specific so that the
2196 library remains flexible, portable, and easily embeddable.")
2197 (home-page "http://enet.bespin.org")
2198 (license license:expat)))
2208 (url "https://github.com/yrutschle/sslh")
2209 (commit (string-append "v" version))))
2210 (file-name (git-file-name name version))
2212 (base32 "19h32dn0076p3s7dn35qi5yp2xvnxw9sqphppmn72vyb8caxvw1z"))))
2213 (build-system gnu-build-system)
2215 `(;; Test dependencies.
2218 ("perl-conf-libconfig" ,perl-conf-libconfig)
2219 ("perl-io-socket-inet6" ,perl-io-socket-inet6)
2220 ("perl-socket6" ,perl-socket6)
2221 ("psmisc" ,psmisc))) ; for ‘killall’
2223 `(("libcap" ,libcap)
2224 ("libconfig" ,libconfig)
2226 ("tcp-wrappers" ,tcp-wrappers)))
2229 (modify-phases %standard-phases
2230 (delete 'configure) ; no configure script
2231 (add-before 'check 'fix-tests
2234 (("\"/tmp") "$ENV{\"TMPDIR\"} . \"")
2235 ;; The Guix build environment lacks ‘ip6-localhost’.
2236 (("ip6-localhost") "localhost"))
2238 ;; Many of these files are mentioned in the man page. Install them.
2239 (add-after 'install 'install-documentation
2240 (lambda* (#:key outputs #:allow-other-keys)
2241 (let* ((out (assoc-ref outputs "out"))
2242 (doc (string-append out "/share/doc/sslh")))
2243 (install-file "README.md" doc)
2246 (install-file file (string-append doc "/examples")))
2247 (append (find-files "." "\\.cfg")
2248 (find-files "scripts"))))
2250 #:make-flags (list "CC=gcc"
2253 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2254 #:test-target "test"))
2255 (home-page "https://www.rutschle.net/tech/sslh/README.html")
2256 (synopsis "Applicative network protocol demultiplexer")
2258 "sslh is a network protocol demultiplexer. It acts like a switchboard,
2259 accepting connections from clients on one port and forwarding them to different
2260 servers based on the contents of the first received data packet. Detection of
2261 common protocols like HTTP(S), SSL, SSH, OpenVPN, tinc, and XMPP is already
2262 implemented, but any other protocol that matches a regular expression can be
2263 added. sslh's name comes from its original application of serving both SSH and
2264 HTTPS on port 443, allowing SSH connections from inside corporate firewalls
2265 that block port 22.")
2266 (license (list license:bsd-2 ; tls.[ch]
2267 license:gpl2+)))) ; everything else
2269 (define-public iperf
2275 (uri (string-append "http://downloads.es.net/pub/iperf"
2276 "/iperf-" version ".tar.gz"))
2279 "0f601avdmzpwsa3lbi0ppjhkrdipm5wifhhxy5czf99370k3mdi4"))))
2280 (build-system gnu-build-system)
2281 (synopsis "TCP, UDP and SCTP bandwidth measurement tool")
2283 "iPerf is a tool to measure achievable bandwidth on IP networks. It
2284 supports tuning of various parameters related to timing, buffers and
2285 protocols (TCP, UDP, SCTP with IPv4 and IPv6). For each test it reports
2286 the bandwidth, loss, and other parameters.")
2287 (home-page "https://software.es.net/iperf/")
2288 (license (list license:bsd-3 ; Main distribution.
2289 license:ncsa ; src/{units,iperf_locale,tcp_window_size}.c
2290 license:expat ; src/{cjson,net}.[ch]
2291 license:public-domain)))) ; src/portable_endian.h
2293 (define-public nethogs
2301 (url "https://github.com/raboof/nethogs")
2302 (commit (string-append "v" version))))
2305 (base32 "0sn1sdp86akwlm4r1vmkxjjl50c0xaisk91bbz57z7kcsaphxna9")
2307 (file-name (git-file-name name version))))
2308 (build-system gnu-build-system)
2310 `(("libpcap" ,libpcap)
2311 ("ncurses" ,ncurses)))
2313 `(#:make-flags `("CC=gcc"
2314 ,(string-append "PREFIX=" %output)
2315 ,(string-append "VERSION=" ,version))
2317 (modify-phases %standard-phases
2318 (delete 'configure)))) ; no ./configure script.
2319 (home-page "https://github.com/raboof/nethogs")
2320 (synopsis "Per-process bandwidth monitor")
2321 (description "NetHogs is a small 'net top' tool for Linux. Instead of
2322 breaking the traffic down per protocol or per subnet, like most tools do, it
2323 groups bandwidth by process.
2325 NetHogs does not rely on a special kernel module to be loaded. If there's
2326 suddenly a lot of network traffic, you can fire up NetHogs and immediately see
2327 which PID is causing this. This makes it easy to identify programs that have
2328 gone wild and are suddenly taking up your bandwidth.")
2329 (license license:gpl2+)))
2331 (define-public nzbget
2338 (uri (string-append "https://github.com/nzbget/nzbget/releases"
2339 "/download/v" version
2340 "/nzbget-" version "-src.tar.gz"))
2343 "0lwd0pfrs4a5ms193hgz2qiyf7grrc925dw6y0nfc0gkp27db9b5"))
2344 (modules '((guix build utils)))
2346 ;; Reported upstream as <https://github.com/nzbget/nzbget/pull/414>.
2348 (substitute* "daemon/connect/TlsSocket.cpp"
2349 (("gnutls_certificate-verification_status_print")
2350 "gnutls_certificate_verification_status_print"))
2355 (string-append "--with-libcurses-includes="
2356 (assoc-ref %build-inputs "ncurses") "/include")
2357 (string-append "--with-libcurses-libraries="
2358 (assoc-ref %build-inputs "ncurses") "/lib")
2359 (string-append "--with-tlslib=GnuTLS"))))
2360 (build-system gnu-build-system)
2361 (inputs `(("gnutls" ,gnutls)
2362 ("libxml2" ,libxml2)
2363 ("ncurses" ,ncurses)
2365 (native-inputs `(("pkg-config" ,pkg-config)))
2366 (home-page "https://github.com/nzbget/nzbget")
2367 (synopsis "Usenet binary file downloader")
2369 "NZBGet is a binary newsgrabber, which downloads files from Usenet based
2370 on information given in @code{nzb} files. NZBGet can be used in standalone
2371 and in server/client modes. In standalone mode, you pass NZBGet @command{nzb}
2372 files as command-line parameters and it downloads them and exits. NZBGet also
2373 contains a Web interface. Its server can be controlled through remote
2374 procedure calls (RPCs).")
2375 (license license:gpl2+)))
2377 (define-public openvswitch
2379 (name "openvswitch")
2384 "https://www.openvswitch.org/releases/openvswitch-"
2388 "0cd5vmfr6zwgcnkwys6rag6cmz68v0librpaplianv734xs74pyx"))))
2389 (build-system gnu-build-system)
2391 '(;; FIXME: many tests fail with:
2393 ;; test -e $OVS_RUNDIR/ovs-vswitchd.pid
2394 ;; ovs-appctl -t ovs-vswitchd exit
2399 "--localstatedir=/var"
2400 "--with-dbdir=/var/lib/openvswitch")
2402 (modify-phases %standard-phases
2406 ;; Don't try to create directories under /var.
2414 ("pkg-config" ,pkg-config)
2415 ("python" ,python-wrapper)
2417 ("util-linux" ,util-linux)))
2419 `(("libcap-ng" ,libcap-ng)
2420 ("openssl" ,openssl)))
2421 (synopsis "Virtual network switch")
2422 (home-page "https://www.openvswitch.org/")
2424 "Open vSwitch is a multilayer virtual switch. It is designed to enable
2425 massive network automation through programmatic extension, while still
2426 supporting standard management interfaces and protocols (e.g. NetFlow, sFlow,
2427 IPFIX, RSPAN, CLI, LACP, 802.1ag).")
2428 (license ; see debian/copyright for detail
2429 (list license:lgpl2.1 ; xenserver and utilities/bugtool
2430 license:gpl2 ; datapath
2431 license:bsd-2 license:bsd-3
2432 license:asl2.0)))) ; all other
2434 (define-public python-ipy
2440 (uri (pypi-uri "IPy" version))
2443 "08d6kcacj67mvh0b6y765ipccy6gi4w2ndd4v1l3im2qm1cgcarg"))))
2444 (build-system python-build-system)
2445 (home-page "https://github.com/autocracy/python-ipy/")
2446 (synopsis "Python class and tools for handling IP addresses and networks")
2447 (description "The @code{IP} class allows a comfortable parsing and
2448 handling for most notations in use for IPv4 and IPv6 addresses and
2450 (license license:bsd-3)))
2452 (define-public python2-ipy
2453 (package-with-python2 python-ipy))
2455 (define-public speedtest-cli
2457 (name "speedtest-cli")
2463 (url "https://github.com/sivel/speedtest-cli")
2464 (commit (string-append "v" version))))
2465 (file-name (git-file-name name version))
2467 (base32 "1456yly6iym2c9bl6pi4sz8xbw34bm2dxm1vzpydsd6jazwpmy26"))))
2468 (build-system python-build-system)
2469 (home-page "https://github.com/sivel/speedtest-cli")
2470 (synopsis "Internet bandwidth tester")
2472 "Command line interface for testing internet bandwidth using
2474 (license license:asl2.0)))
2476 (define-public tftp-hpa
2482 (uri (string-append "mirror://kernel.org/software/"
2483 "network/tftp/tftp-hpa/tftp-hpa-" version
2487 "12vidchglhyc20znq5wdsbhi9mqg90jnl7qr9qs8hbvaz4fkdvmg"))))
2488 (build-system gnu-build-system)
2489 (arguments `(#:tests? #f)) ; no test target
2490 (synopsis "HPA's tftp client")
2492 "This is a tftp client derived from OpenBSD tftp with some extra options
2493 added and bugs fixed. The source includes readline support but it is not
2494 enabled due to license conflicts between the BSD advertising clause and the GPL.")
2495 (home-page "https://git.kernel.org/cgit/network/tftp/tftp-hpa.git/about/")
2496 ;; Some source files are distributed under a 3-clause BSD license, and
2497 ;; others under a 4-clause BSD license. Refer to the files in the source
2498 ;; distribution for clarification.
2499 (license (list license:bsd-3 license:bsd-4))))
2501 (define-public pidentd
2509 (url "https://github.com/ptrrkssn/pidentd")
2510 (commit (string-append "v" version))))
2511 (file-name (git-file-name name version))
2514 "1k4rr0b4ygxssbnsykzjvz4hjhazzz4j5arlilyc1iq7b1wzsk7i"))))
2515 (build-system gnu-build-system)
2517 `(#:tests? #f)) ; No tests are included
2519 `(("openssl" ,openssl-1.0))) ;for the DES library
2520 (home-page "https://www.lysator.liu.se/~pen/pidentd/")
2521 (synopsis "Small Ident Daemon")
2523 "@dfn{Pidentd} (Peter's Ident Daemon) is an identd, which implements a
2524 identification server. Pidentd looks up specific TCP/IP connections and
2525 returns the user name and other information about the connection.")
2526 (license license:public-domain)))
2528 (define-public spiped
2534 (uri (string-append "https://www.tarsnap.com/spiped/spiped-"
2538 "04rpnc53whfky7pp2m9h35gwzwn6788pnl6c1qd576mpknbqjw4d"))))
2539 (build-system gnu-build-system)
2541 '(#:test-target "test"
2542 #:make-flags (let* ((out (assoc-ref %outputs "out"))
2543 (bindir (string-append out "/bin"))
2544 (man1dir (string-append out "/share/man/man1")))
2545 (list "CC=gcc" ; It tries to invoke `c99`.
2546 (string-append "BINDIR=" bindir)
2547 (string-append "MAN1DIR=" man1dir)))
2549 (modify-phases %standard-phases
2550 (add-after 'unpack 'patch-command-invocations
2552 (substitute* '("Makefile"
2553 "libcperciva/cpusupport/Build/cpusupport.sh"
2554 "libcperciva/POSIX/posix-cflags.sh"
2555 "libcperciva/POSIX/posix-l.sh")
2556 (("command -p") ""))
2558 (delete 'configure) ; No ./configure script.
2559 (add-after 'install 'install-more-docs
2560 (lambda* (#:key outputs #:allow-other-keys)
2561 (let* ((out (assoc-ref %outputs "out"))
2562 (misc (string-append out "/share/doc/spiped")))
2563 (install-file "DESIGN.md" misc)
2566 `(("procps" ,procps))) ; `ps` is used by the test suite.
2568 `(("openssl" ,openssl)))
2569 (home-page "https://www.tarsnap.com/spiped.html")
2570 (synopsis "Create secure pipes between sockets")
2571 (description "Spiped (pronounced \"ess-pipe-dee\") is a utility for creating
2572 symmetrically encrypted and authenticated pipes between socket addresses, so
2573 that one may connect to one address (e.g., a UNIX socket on localhost) and
2574 transparently have a connection established to another address (e.g., a UNIX
2575 socket on a different system). This is similar to 'ssh -L' functionality, but
2576 does not use SSH and requires a pre-shared symmetric key.")
2577 (license license:bsd-2)))
2579 (define-public quagga
2585 (uri (string-append "mirror://savannah/quagga/quagga-"
2589 "1lsksqxij5f1llqn86pkygrf5672kvrqn1kvxghi169hqf1c0r73"))
2591 (search-patches "quagga-reproducible-build.patch"))))
2592 (build-system gnu-build-system)
2593 (native-inputs `(("pkg-config" ,pkg-config)
2595 ("dejagnu" ,dejagnu)))
2596 (inputs `(("readline" ,readline)
2597 ("c-ares" ,c-ares)))
2598 (synopsis "Routing Software Suite")
2599 (description "Quagga is a routing software suite, providing implementations
2600 of OSPFv2, OSPFv3, RIP v1 and v2, RIPng and BGP-4 for Unix platforms.
2602 The Quagga architecture consists of a core daemon, @command{zebra}, which
2603 acts as an abstraction layer to the underlying Unix kernel and presents the
2604 Zserv API over a Unix or TCP stream to Quagga clients. It is these Zserv
2605 clients which typically implement a routing protocol and communicate routing
2606 updates to the zebra daemon.")
2607 (home-page "https://www.nongnu.org/quagga/")
2608 (license license:gpl2+)))
2610 (define-public thc-ipv6
2611 (let ((revision "0")
2612 (commit "4bb72573e0950ce6f8ca2800a10748477020029e"))
2615 (version (git-version "3.4" revision commit))
2619 (url "https://github.com/vanhauser-thc/thc-ipv6")
2621 (file-name (git-file-name name version))
2624 "1x5i6vbsddqc2yks7r1a2fw2fk16qxvd6hpzh1lykjfpkal8fdir"))))
2625 (build-system gnu-build-system)
2627 `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2628 #:tests? #f ; No test suite.
2630 (modify-phases %standard-phases
2631 (delete 'configure) ; No ./configure script.
2632 (add-before 'build 'patch-paths
2634 (substitute* "Makefile"
2635 (("/bin/echo") "echo"))
2637 (add-after 'install 'install-more-docs
2638 (lambda* (#:key outputs #:allow-other-keys)
2639 (let* ((out (assoc-ref outputs "out"))
2640 (doc (string-append out "/share/thc-ipv6/doc")))
2641 (install-file "README" doc)
2642 (install-file "HOWTO-INJECT" doc)
2644 ;; TODO Add libnetfilter-queue once packaged.
2646 `(("libpcap" ,libpcap)
2647 ("openssl" ,openssl)
2649 (home-page "https://github.com/vanhauser-thc/thc-ipv6")
2650 (synopsis "IPv6 security research toolkit")
2651 (description "The THC IPv6 Toolkit provides command-line tools and a library
2652 for researching IPv6 implementations and deployments. It requires Linux 2.6 or
2653 newer and only works on Ethernet network interfaces.")
2654 ;; AGPL 3 with exception for linking with OpenSSL. See the 'LICENSE' file in
2655 ;; the source distribution for more information.
2656 (license license:agpl3))))
2665 (uri (string-append "https://github.com/tgraf/bmon/releases/download/v"
2666 version "/bmon-" version ".tar.gz"))
2669 "0ylzriv4pwh76344abzl1w219x188gshbycbna35gsyfp09c7z82"))))
2670 (build-system gnu-build-system)
2672 `(("libconfuse" ,libconfuse)
2674 ("ncurses" ,ncurses)))
2676 `(("pkg-config" ,pkg-config)))
2677 (synopsis "Bandwidth monitor")
2678 (description "bmon is a monitoring and debugging tool to capture
2679 networking-related statistics and prepare them visually in a human-friendly
2680 way. It features various output methods including an interactive curses user
2681 interface and a programmable text output for scripting.")
2682 (home-page "https://github.com/tgraf/bmon")
2683 ;; README.md mentions both the 2-clause BSD and expat licenses, but all
2684 ;; the source files only have expat license headers. Upstream has been
2685 ;; contacted for clarification: https://github.com/tgraf/bmon/issues/59
2686 ;; Update the license field when upstream responds.
2687 (license (list license:bsd-2
2690 (define-public libnet
2697 (uri (string-append "https://github.com/libnet/libnet/releases/download"
2698 "/v" version "/libnet-" version ".tar.gz"))
2701 "19ys9vxk6fg70yzzdxsphfr0rwzgxxhr9b3ykhpg7rfray0qd96a"))))
2702 (build-system gnu-build-system)
2705 (modify-phases %standard-phases
2706 (add-before 'build 'build-doc
2707 (lambda* (#:key make-flags #:allow-other-keys)
2708 (apply invoke "make" "-C" "doc" "doc"
2711 `(;; To build the documentation, Doxygen and Perl is required.
2712 ("doxygen" ,doxygen)
2714 (home-page "https://github.com/libnet/libnet")
2715 (synopsis "Framework for low-level network packet construction")
2717 "Libnet provides a fairly portable framework for network packet
2718 construction and injection. It features portable packet creation interfaces
2719 at the IP layer and link layer, as well as a host of supplementary
2720 functionality. Using libnet, quick and simple packet assembly applications
2721 can be whipped up with little effort.")
2722 (license license:bsd-2)))
2731 (uri (string-append "ftp://ftp.bitwizard.nl/mtr/"
2732 "mtr-" version ".tar.gz"))
2734 (base32 "1glxvlqskcmjkxlqk9i12hcfaxb389cx2n8ji7776gmix3aq4z1z"))))
2735 (build-system gnu-build-system)
2737 `(("libcap" ,libcap)
2738 ("ncurses" ,ncurses)))
2740 `(#:tests? #f)) ; tests require network access
2741 (home-page "https://www.bitwizard.nl/mtr/")
2742 (synopsis "Network diagnostic tool")
2744 "@acronym{mtr, My TraceRoute} combines the functionality of the
2745 @command{traceroute} and @command{ping} programs in a single network diagnostic
2746 tool. @command{mtr} can use several network protocols to detect intermediate
2747 routers (or @dfn{hops}) between the local host and a user-specified destination.
2748 It then continually measures the response time and packet loss at each hop, and
2749 displays the results in real time.")
2750 (license license:gpl2+)))
2752 (define-public strongswan
2759 (uri (string-append "https://download.strongswan.org/strongswan-"
2760 version ".tar.bz2"))
2762 (base32 "0g2m08gmgdi3qvvqz6zy7n16np53sp232xd0rdc2vdhk73img6id"))))
2763 (build-system gnu-build-system)
2766 (modify-phases %standard-phases
2767 (add-before 'build 'patch-command-file-names
2768 (lambda* (#:key inputs #:allow-other-keys)
2769 (substitute* "src/libstrongswan/utils/process.c"
2771 (string-append (assoc-ref inputs "bash") "/bin/sh")))
2773 (substitute* "src/libstrongswan/tests/suites/test_process.c"
2774 (("/bin/sh") (which "sh"))
2775 (("/bin/echo") (which "echo"))
2776 (("cat") (which "cat")))
2778 (add-before 'check 'set-up-test-environment
2779 (lambda* (#:key inputs #:allow-other-keys)
2780 (setenv "TZDIR" (string-append (assoc-ref inputs "tzdata")
2785 ;; Disable bsd-4 licensed plugins.
2787 "--disable-blowfish")))
2791 ("libgcrypt" ,libgcrypt)
2792 ("openssl" ,openssl)))
2794 `(("coreutils" ,coreutils)
2795 ("tzdata" ,tzdata-for-tests)))
2796 (synopsis "IKEv1/v2 keying daemon")
2797 (description "StrongSwan is an IPsec implementation originally based upon
2798 the FreeS/WAN project. It contains support for IKEv1, IKEv2, MOBIKE, IPv6,
2800 (home-page "https://strongswan.org/")
2804 ;; src/libcharon/plugins/dnscert/*
2805 ;; src/libcharon/plugins/ext_auth/*
2806 ;; src/libcharon/plugins/vici/ruby/*
2807 ;; src/libcharon/plugins/xauth_pam/xauth_pam_listener.[ch]
2811 ;; src/libstrongswan/plugins/sha3/sha3_keccak.c
2812 license:public-domain
2813 ;; src/libstrongswan/plugins/pkcs11/pkcs11.h
2814 (license:non-copyleft
2815 "file://src/libstrongswan/plugins/pkcs11/pkcs11.h"
2816 "pkcs11 contains a unknown permissive license. View the specific
2817 file for more details.")
2818 ;; These files are not included in the
2819 ;; build, they are disabled through
2820 ;; options to ./configure
2822 ;; src/libstrongswan/plugins/blowfish/bf_enc.c
2823 ;; src/libstrongswan/plugins/blowfish/bf_locl.h
2824 ;; src/libstrongswan/plugins/blowfish/bf_pi.h
2825 ;; src/libstrongswan/plugins/blowfish/bf_skey.c
2826 ;; src/libstrongswan/plugins/blowfish/blowfish_crypter.c
2827 ;; src/libstrongswan/plugins/des/des_crypter.c
2830 (define-public amule
2837 (url "https://github.com/amule-project/amule")
2839 (file-name (git-file-name name version))
2842 "010wxm6g9f92x6fympj501zbnjka32rzbx0sk3a2y4zpih5d2nsn"))
2843 ;; Patch for adopting crypto++ >= 6.0.
2844 (patches (search-patches "amule-crypto-6.patch"))))
2845 (build-system gnu-build-system)
2848 (modify-phases %standard-phases
2849 (delete 'bootstrap) ; bootstrap phase runs too early.
2850 (add-after 'patch-source-shebangs 'autogen
2852 (invoke "sh" "autogen.sh")
2866 "--enable-amule-gui"
2867 "--enable-amule-daemon"
2868 "--enable-webserver"
2869 "--with-denoise-level=0")))
2871 `(("autoconf" ,autoconf)
2872 ("automake" ,automake)
2873 ("gettext-minimal" ,gettext-minimal)
2877 ("crypto++" ,crypto++)
2879 ("wxwidgets-gtk2" ,wxwidgets-gtk2)))
2880 (home-page "http://amule.org/")
2881 (synopsis "Peer-to-peer client for the eD2K and Kademlia networks")
2883 "aMule is an eMule-like client for the eD2k and Kademlia peer-to-peer
2884 file sharing networks. It includes a graphical user interface (GUI), a daemon
2885 allowing you to run a client with no graphical interface, and a Web GUI for
2886 remote access. The @command{amulecmd} command allows you to control aMule
2888 (license license:gpl2+)))
2897 (string-append "https://github.com/zeromq/zyre/releases/download/v"
2898 version "/" name "-" version ".tar.gz"))
2901 "0qz2730bng1gs9xbqxhkw88qbsmszgmmrl2g9k6xrg6r3bqvsdc7"))))
2902 (build-system gnu-build-system)
2903 (inputs `(("zeromq" ,zeromq)
2905 ("libsodium" ,libsodium)))
2906 (synopsis "Framework for proximity-based peer-to-peer applications")
2907 (description "Zyre provides reliable group messaging over local area
2908 networks using zeromq. It has these key characteristics:
2911 @item Zyre needs no administration or configuration.
2912 @item Peers may join and leave the network at any time.
2913 @item Peers talk to each other without any central brokers or servers.
2914 @item Peers can talk directly to each other.
2915 @item Peers can join groups, and then talk to groups.
2916 @item Zyre is reliable, and loses no messages even when the network is heavily loaded.
2917 @item Zyre is fast and has low latency, requiring no consensus protocols.
2918 @item Zyre is designed for WiFi networks, yet also works well on Ethernet networks.
2920 (home-page "https://github.com/zeromq/zyre")
2921 (license license:mpl2.0)))
2923 (define-public libsocketcan
2925 (name "libsocketcan")
2930 (url "https://git.pengutronix.de/cgit/tools/libsocketcan")
2931 (commit (string-append "v" version))))
2932 (file-name (git-file-name name version))
2935 "17z2y2r9xkixhr9bxr50m77fh710afl30s7jdhbxrvf56vmal2jr"))))
2936 (build-system gnu-build-system)
2938 `(("autoconf" ,autoconf)
2939 ("automake" ,automake)
2940 ("libtool" ,libtool)))
2941 (home-page "https://git.pengutronix.de/cgit/tools/libsocketcan")
2942 (synopsis "SocketCAN user-space library")
2943 (description "This library allows controlling basic functions in SocketCAN
2944 from user-space. It requires a kernel built with SocketCAN support.")
2945 (license license:lgpl2.1+)))
2947 (define-public can-utils
2950 (version "2020.02.04")
2954 (url "https://github.com/linux-can/can-utils")
2955 (commit (string-append "v" version))))
2956 (file-name (git-file-name name version))
2959 "1a3j1mmnb7pvgc8r7zzp6sdp7903in2hna6bmpraxln7cwlzn4l6"))))
2960 (build-system gnu-build-system)
2962 `(#:tests? #f ; No tests exist.
2963 #:make-flags (list "CC=gcc"
2964 (string-append "PREFIX="
2965 (assoc-ref %outputs "out")))
2967 (modify-phases %standard-phases
2969 (delete 'configure))))
2970 (home-page "https://github.com/linux-can/can-utils")
2971 (synopsis "CAN utilities")
2972 (description "This package provides CAN utilities in the following areas:
2975 @item Basic tools to display, record, generate and replay CAN traffic
2976 @item CAN access via IP sockets
2977 @item CAN in-kernel gateway configuration
2978 @item CAN bus measurement and testing
2979 @item ISO-TP (ISO15765-2:2016 - this means messages with a body larger than
2981 @item Log file converters
2982 @item Serial Line Discipline configuration for slcan driver
2984 ;; Either BSD-3 or GPL-2 can be used.
2985 (license (list license:bsd-3 license:gpl2))))
2994 (uri (string-append "mirror://sourceforge/asio/asio/"
2995 version " (Stable)/asio-" version ".tar.bz2"))
2997 (base32 "1akray4l3hgahmb92sbvsqg128c7g7s92jrkf1sp1fjnfjrxq9sf"))))
2998 (build-system gnu-build-system)
3001 ("openssl" ,openssl)))
3005 (string-append "--with-boost=" (assoc-ref %build-inputs "boost"))
3006 (string-append "--with-openssl=" (assoc-ref %build-inputs "openssl")))))
3007 (home-page "https://think-async.com/Asio")
3008 (synopsis "C++ library for ASynchronous network I/O")
3009 (description "Asio is a cross-platform C++ library for network and
3010 low-level I/O programming that provides developers with a consistent
3011 asynchronous model using a modern C++ approach.")
3012 (license license:boost1.0)))
3014 (define-public shadowsocks
3015 ;; There are some security fixes after the last release.
3016 (let* ((commit "e332ec93e9c90f1cbee676b022bf2c5d5b7b1239")
3018 (version (git-version "2.8.2" revision commit)))
3020 (name "shadowsocks")
3022 (home-page "https://github.com/shadowsocks/shadowsocks")
3030 "1idd9b4f2pnhcpk1bh030hqg5zq25gkwxd53xi3c0cj242w7sp2j"))
3031 (file-name (git-file-name name version))))
3033 `(("openssl" ,openssl)))
3036 (modify-phases %standard-phases
3037 (add-after 'unpack 'patch-crypto-paths
3038 (lambda* (#:key inputs #:allow-other-keys)
3039 (substitute* "shadowsocks/shell.py"
3040 (("config\\.get\\('libopenssl', None\\)")
3041 (format #f "config.get('libopenssl', ~s)"
3043 (assoc-ref inputs "openssl")
3044 "/lib/libssl.so")))))))))
3045 (build-system python-build-system)
3046 (synopsis "Fast tunnel proxy that helps you bypass firewalls")
3048 "This package is a fast tunnel proxy that helps you bypass firewalls.
3052 @item TCP & UDP support
3053 @item User management API
3055 @item Workers and graceful restart
3056 @item Destination IP blacklist
3058 (license license:asl2.0))))
3060 (define-public net-snmp
3066 (uri (string-append "mirror://sourceforge/net-snmp/net-snmp/"
3067 version "/net-snmp-" version ".tar.gz"))
3070 "0wb0vyafpspw3mcifkjjmf17r1r80kjvslycscb8nvaxz1k3lc04"))
3071 (modules '((guix build utils)))
3074 ;; Drop bundled libraries.
3075 (delete-file-recursively "snmplib/openssl")
3077 (build-system gnu-build-system)
3079 `(#:test-target "test"
3080 ;; XXX: With parallel build enabled, Perl modules may not get linked with
3081 ;; libnetsnmp. See e.g. <https://bugzilla.novell.com/show_bug.cgi?id=819497>.
3082 #:parallel-build? #f
3084 (list (string-append "LDFLAGS=-Wl,-rpath="
3085 (assoc-ref %outputs "out")
3087 "--with-logfile=/var/log/snmpd.log"
3088 (string-append "--with-openssl="
3089 (assoc-ref %build-inputs "openssl")))
3091 (modify-phases %standard-phases
3092 (add-after 'unpack 'patch-tests
3093 (lambda* (#:key inputs #:allow-other-keys)
3094 (substitute* "testing/fulltests/support/simple_TESTCONF.sh"
3096 (string-append "NETSTAT=\"" (which "netstat") "\"")))
3097 (substitute* '("testing/fulltests/default/T065agentextend_simple"
3098 "testing/fulltests/default/T115agentxperl_simple")
3099 (("/usr/bin/env") (which "env")))
3100 (substitute* "testing/fulltests/default/T065agentextend_sh_simple"
3101 (("/bin/sh") (which "sh")))
3102 ;; These tests require network access.
3103 (for-each delete-file
3104 '("testing/fulltests/default/T070com2sec_simple"
3105 "testing/fulltests/default/T071com2sec6_simple"))
3107 (add-after 'unpack 'patch-Makefile.PL
3108 (lambda* (#:key outputs #:allow-other-keys)
3109 (substitute* "Makefile.in"
3110 (("Makefile.PL -NET")
3111 (string-append "Makefile.PL PREFIX="
3112 (assoc-ref outputs "out")
3113 " INSTALLDIRS=site" " NO_PERLLOCAL=1"
3118 ("ncurses" ,ncurses) ; for the ‘apps’
3119 ("openssl" ,openssl)
3122 `(("pkg-config" ,pkg-config)
3125 ("net-tools" ,net-tools)
3126 ("coreutils" ,coreutils)
3128 (home-page "http://www.net-snmp.org/")
3129 (synopsis "Simple Network Management Protocol library and tools")
3130 (description "The @dfn{Simple Network Management Protocol} (SNMP) is a
3131 widely used protocol for monitoring the health and welfare of network
3132 equipment (e.g. routers), computer equipment and even devices like UPSs.
3133 Net-SNMP is a suite of applications used to implement SNMP v1, SNMP v2c and
3134 SNMP v3 using both IPv4 and IPv6.")
3135 ;; This only affects OpenBSD
3136 ;; https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-8100
3137 (properties `((lint-hidden-cve . ("CVE-2015-8100"))))
3138 (license (list license:bsd-3
3139 (license:non-copyleft
3140 "http://www.net-snmp.org/about/license.html"
3141 "CMU/UCD copyright notice")))))
3143 (define-public ubridge
3151 (url "https://github.com/GNS3/ubridge")
3152 (commit (string-append "v" version))))
3153 (file-name (git-file-name name version))
3155 (base32 "0jg66jhhpv4c9340fsdp64hf9h253i8r81fknxa0gq241ripp3jn"))))
3156 (build-system gnu-build-system)
3158 `(#:tests? #f ; no tests
3160 (list ,(string-append "CC=" (cc-for-target)))
3162 (modify-phases %standard-phases
3163 (delete 'configure) ; no configure script
3164 (add-before 'install 'set-bindir
3165 (lambda* (#:key inputs outputs #:allow-other-keys)
3166 (let ((bin (string-append (assoc-ref outputs "out")
3169 (substitute* "Makefile"
3170 (("\\$\\(BINDIR\\)") bin)
3171 (("\tsetcap cap_net.*$") "")))
3174 `(("libpcap" ,libpcap)))
3175 (home-page "https://github.com/GNS3/ubridge/")
3176 (synopsis "Bridge for UDP tunnels, Ethernet, TAP and VMnet interfaces")
3177 (description "uBridge is a simple program to create user-land bridges
3178 between various technologies. Currently, bridging between UDP tunnels,
3179 Ethernet and TAP interfaces is supported. Packet capture is also supported.")
3180 (license license:gpl3+)))
3182 (define-public hcxtools
3190 (url "https://github.com/ZerBea/hcxtools")
3193 (base32 "0k2qlq9hz5zc21nyc6yrnfqzga7hydn5mm0x3rpl2fhkwl81lxcn"))
3194 (file-name (git-file-name name version))))
3195 (build-system gnu-build-system)
3198 ("libpcap" ,libpcap)
3199 ("openssl" ,openssl)
3204 (string-append "INSTALLDIR=" (assoc-ref %outputs "out") "/bin"))
3205 #:tests? #f ; no test suite
3207 (modify-phases %standard-phases
3208 (delete 'configure))))
3209 (home-page "https://github.com/ZerBea/hcxtools")
3210 (synopsis "Capture wlan traffic to hashcat and John the Ripper")
3212 "This package contains a small set of tools to capture and convert
3213 packets from wireless devices for use with hashcat or John the Ripper.")
3214 (license license:expat)))
3216 (define-public hcxdumptool
3218 (name "hcxdumptool")
3224 (url "https://github.com/ZerBea/hcxdumptool")
3227 (base32 "1b4d543y64ib92w9gcmiyjn5hz2vyjqmxk3f3yr1zk04fhw16gmf"))
3228 (file-name (git-file-name name version))))
3229 (build-system gnu-build-system)
3232 (list ,(string-append "CC=" (cc-for-target))
3233 (string-append "INSTALLDIR=" (assoc-ref %outputs "out") "/bin"))
3234 #:tests? #f ; no test suite
3236 (modify-phases %standard-phases
3237 (delete 'configure))))
3239 `(("openssl" ,openssl)))
3240 (home-page "https://github.com/ZerBea/hcxdumptool")
3241 (synopsis "Small tool to capture packets from wlan devices")
3243 "Small tool to capture packets from WLAN devices. After capturing,
3244 upload the \"uncleaned\" cap to @url{https://wpa-sec.stanev.org/?submit} to
3245 see if the access point or the client is vulnerable to a dictionary attack.
3246 Convert the cap file to hccapx format and/or to WPA-PMKID-PBKDF2
3247 hashline (16800) with @command{hcxpcaptool} from the @code{hcxtools} package
3248 and check if the WLAN key or the master key was transmitted unencrypted.")
3249 (license license:expat)))
3251 (define-public dante
3258 (uri (string-append "https://www.inet.no/dante/files/dante-"
3262 "19rqzj167q73ag20zxpvswhkk0bj56r5maf83v5016sw7vrcz5sc"))))
3263 (build-system gnu-build-system)
3265 ;; XXX: The dynamic socks library doesn't work with 'libc.so' (GNU ld
3266 ;; script). When preloading is enabled, 'sockd' failed with:
3267 ;; … Failed to open library "libc.so": …: invalid ELF header
3268 '(#:configure-flags '("--disable-preload")))
3269 (home-page "https://www.inet.no/dante/")
3270 (synopsis "SOCKS server and client")
3271 (description "Dante is a SOCKS client and server implementation. It can
3272 be installed on a machine with access to an external TCP/IP network and will
3273 allow all other machines, without direct access to that network, to be relayed
3274 through the machine the Dante server is running on. The external network will
3275 never see any machines other than the one Dante is running on.")
3276 (license (license:non-copyleft "file://LICENSE"))))
3278 (define-public restbed
3279 (let ((commit "6eb385fa9051203f28bf96cc1844bbb5a9a6481f"))
3282 (version (git-version "4.6" "1" commit))
3287 (url "https://github.com/Corvusoft/restbed/")
3289 (file-name (string-append name "-" version ".tar.gz"))
3291 (base32 "0k60i5drklqqrb4khb25fzkgz9y0sncxf1sp6lh2bm1m0gh0661n"))))
3292 (build-system cmake-build-system)
3295 ("catch" ,catch-framework)
3296 ("openssl" ,openssl)))
3300 '("-DBUILD_TESTS=NO"
3301 "-DBUILD_EXAMPLES=NO"
3303 "-DBUILD_SHARED=NO")
3305 (modify-phases %standard-phases
3306 (add-after 'unpack 'apply-patches-and-fix-paths
3307 (lambda* (#:key inputs #:allow-other-keys)
3308 (let ((asio (assoc-ref inputs "asio"))
3309 (catch (assoc-ref inputs "catch"))
3310 (openssl (assoc-ref inputs "openssl")))
3311 (substitute* "cmake/Findasio.cmake"
3312 (("(find_path\\( asio_INCLUDE asio\\.hpp HINTS ).*$" all begin)
3313 (string-append begin " \"" asio "/include\" )")))
3314 (substitute* "cmake/Findcatch.cmake"
3315 (("(find_path\\( catch_INCLUDE catch\\.hpp HINTS ).*$" all begin)
3316 (string-append begin " \"" catch "/include\" )")))
3317 (substitute* "cmake/Findopenssl.cmake"
3318 (("(find_library\\( ssl_LIBRARY ssl ssleay32 HINTS ).*$" all begin)
3319 (string-append begin " \"" openssl "/lib\" )"))
3320 (("(find_library\\( crypto_LIBRARY crypto libeay32 HINTS ).*$" all begin)
3321 (string-append begin " \"" openssl "/lib\" )"))
3322 (("(find_path\\( ssl_INCLUDE openssl/ssl\\.h HINTS ).*$" all begin)
3323 (string-append begin " \"" openssl "/include\" )")))))))))
3324 (synopsis "Asynchronous RESTful functionality to C++11 applications")
3325 (description "Restbed is a comprehensive and consistent programming
3326 model for building applications that require seamless and secure
3327 communication over HTTP.")
3328 (home-page "https://github.com/Corvusoft/restbed")
3329 (license license:agpl3+))))
3331 (define-public restinio
3338 (url "https://github.com/Stiffstream/restinio")
3339 (commit (string-append "v." version))))
3340 (file-name (git-file-name name version))
3343 "141a96hx8zhcdv121g6cs91n46kb47y040v25pnvz5f54964z7f5"))))
3344 (build-system cmake-build-system)
3345 (inputs ; TODO: Need to force-keep references on some inputs, e.g. boost.
3347 ("catch2" ,catch-framework2)
3348 ("openssl" ,openssl)
3352 ("sobjectizer" ,sobjectizer)))
3356 ("http-parser" ,http-parser)))
3358 `(#:configure-flags '("-DRESTINIO_INSTALL=on")
3359 #:tests? #f ; TODO: The tests are called from the root CMakelist, need RESTINIO_TEST=on.
3361 (modify-phases %standard-phases
3362 (add-after 'unpack 'change-directory
3364 (chdir "dev/restinio")
3366 (home-page "https://stiffstream.com/en/products/restinio.html")
3367 (synopsis "C++14 library that gives you an embedded HTTP/Websocket server")
3368 (description "RESTinio is a header-only C++14 library that gives you an embedded
3369 HTTP/Websocket server. It is based on standalone version of ASIO
3370 and targeted primarily for asynchronous processing of HTTP-requests.")
3371 (license license:bsd-3)))
3373 (define-public opendht
3380 (url "https://github.com/savoirfairelinux/opendht")
3382 (file-name (git-file-name name version))
3383 (patches (search-patches "opendht-fix-jami.patch"))
3386 "1ax26ri1ifb6s8ppd28jmanka9yf8mw3np65q2h4djhhik0phhal"))))
3387 ;; Since 2.0, the gnu-build-system does not seem to work anymore, upstream bug?
3388 (build-system cmake-build-system)
3390 `(("argon2" ,argon2)
3392 ("readline" ,readline)
3393 ("jsoncpp" ,jsoncpp)
3394 ("openssl" ,openssl) ;required for the DHT proxy
3397 `(("gnutls" ,gnutls) ;included in opendht/crypto.h
3398 ("msgpack" ,msgpack))) ;included in several installed headers
3400 `(("autoconf" ,autoconf)
3401 ("automake" ,automake)
3402 ("pkg-config" ,pkg-config)
3403 ("restinio" ,restinio) ;headers only library
3404 ("libtool" ,libtool)
3405 ("cppunit" ,cppunit)))
3407 `(#:tests? #f ; Tests require network connection.
3409 '(;; "-DOPENDHT_TESTS=on"
3410 "-DOPENDHT_TOOLS=off"
3411 "-DOPENDHT_PYTHON=off"
3412 "-DOPENDHT_PROXY_SERVER=on"
3413 "-DOPENDHT_PUSH_NOTIFICATIONS=on"
3414 "-DOPENDHT_PROXY_SERVER_IDENTITY=on"
3415 "-DOPENDHT_PROXY_CLIENT=on")))
3416 (home-page "https://github.com/savoirfairelinux/opendht/")
3417 (synopsis "Distributed Hash Table (DHT) library")
3418 (description "OpenDHT is a Distributed Hash Table (DHT) library. It may
3419 be used to manage peer-to-peer network connections as needed for real time
3421 (license license:gpl3+)))
3423 (define-public frrouting
3429 (uri (string-append "https://github.com/FRRouting/frr/releases/"
3430 "download/frr-" version "/frr-" version
3434 "0xfrvi62w8qlh46f504ka0skb7pm0g0p8vmdng4w90gsbirlzpdd"))))
3435 (build-system gnu-build-system)
3437 `(("c-ares" ,c-ares)
3439 ("readline" ,readline)))
3442 ("pkg-config" ,pkg-config)
3443 ("python" ,python-wrapper)
3444 ("python-pytest" ,python-pytest)))
3445 (home-page "https://frrouting.org/")
3446 (synopsis "IP routing protocol suite")
3447 (description "FRRouting (FRR) is an IP routing protocol suite which includes
3448 protocol daemons for BGP, IS-IS, LDP, OSPF, PIM, and RIP. ")
3449 (license license:gpl2+)))
3458 (url "https://git.kernel.org/pub/scm/network/wireless/iwd.git")
3460 (file-name (git-file-name name version))
3463 "001dikinsa6kshwscjbvwipavzwpqnpvx9fpshcn63gbvbhyd393"))))
3464 (build-system gnu-build-system)
3468 ("readline" ,readline)))
3470 `(("asciidoc" ,asciidoc)
3471 ("autoconf" ,autoconf)
3472 ("automake" ,automake)
3473 ("libtool" ,libtool)
3474 ("pkgconfig" ,pkg-config)
3476 ("openssl" ,openssl)))
3479 (let ((dbus (assoc-ref %outputs "out")))
3480 (list "--disable-systemd-service"
3481 "--enable-external-ell"
3486 "--localstatedir=/var"
3487 (string-append "--with-dbus-datadir=" dbus "/share/")
3488 (string-append "--with-dbus-busdir="
3489 dbus "/share/dbus-1/system-services")))
3491 (modify-phases %standard-phases
3492 (add-before 'bootstrap 'pre-bootstrap
3494 (substitute* "Makefile.am"
3495 ;; Test disabled because it needs the kernel module
3496 ;; 'pkcs8_key_parser' loaded.
3497 (("unit\\/test-eapol.*? ") "")
3498 ;; Don't try to 'mkdir /var'.
3499 (("\\$\\(MKDIR_P\\) -m 700") "true"))
3501 (home-page "https://git.kernel.org/pub/scm/network/wireless/iwd.git/")
3502 (synopsis "Internet Wireless Daemon")
3503 (description "iwd is a wireless daemon for Linux that aims to replace WPA
3504 Supplicant. It optimizes resource utilization by not depending on any external
3505 libraries and instead utilizing features provided by the Linux kernel to the
3506 maximum extent possible.")
3507 (license license:lgpl2.1+)))
3509 (define-public batctl
3516 (uri (string-append "https://downloads.open-mesh.org/batman/releases/batman-adv-"
3517 version "/batctl-" version ".tar.gz"))
3519 (base32 "05rrpfbpdhxn5zgdps849qls2ifis6a94cjryb60d4y1nc2n0d7w"))))
3521 `(("libnl" ,libnl)))
3523 `(("pkg-config" ,pkg-config)))
3524 (build-system gnu-build-system)
3527 ;; Batctl only has a makefile. Thus we disable tests and
3528 ;; configuration, passing in a few make-flags.
3529 #:phases (modify-phases %standard-phases (delete 'configure))
3531 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3532 (string-append "PKG_CONFIG=" (assoc-ref %build-inputs "pkg-config")
3535 (home-page "https://www.open-mesh.org/projects/batman-adv/wiki/Wiki")
3536 (synopsis "Management tool for the mesh networking BATMAN protocol")
3537 (description "This package provides a control tool for the
3538 B.A.T.M.A.N. mesh networking routing protocol provided by the Linux kernel
3539 module @code{batman-adv}, for Layer 2.")
3540 (license license:gpl2+)))
3542 (define-public pagekite
3545 (version "1.5.2.200725")
3550 (url "https://github.com/pagekite/PyPagekite")
3551 (commit (string-append "v" version))))
3552 (file-name (git-file-name name version))
3554 (base32 "0lig1i42bn9isw848vnml5qhcaa04x1dr2hb075bm0a3439kv3rr"))))
3555 (build-system python-build-system)
3558 (modify-phases %standard-phases
3559 (add-after 'install 'install-man-page
3560 (lambda* (#:key inputs outputs #:allow-other-keys)
3561 (let* ((out (assoc-ref outputs "out"))
3562 (man (string-append out "/share/man")))
3564 (string-append "PYTHONPATH=" (getenv "PYTHONPATH"))
3566 (install-file "doc/pagekite.1" (string-append man "/man1"))
3569 `(("python-six" ,python-six)
3570 ("python-socksipychain" ,python-socksipychain)))
3571 (home-page "https://pagekite.net/")
3572 (synopsis "Make localhost servers publicly visible")
3574 "PageKite implements a tunneled reverse proxy which makes it easy to make
3575 a service (such as an HTTP or SSH server) on localhost visible to the wider
3576 Internet, even behind NAT or restrictive firewalls. A managed front-end relay
3577 service is available at @url{https://pagekite.net/}, or you can run your own.")
3578 (license license:agpl3+)))
3580 (define-public ipcalc
3586 (uri (string-append "http://jodies.de/ipcalc-archive/"
3587 name "-" version ".tar.gz"))
3590 "12if9sm8h2ac0pgwkw835cgyqjxm6h27k4kfn2vfas9krrqwbafx"))))
3591 (inputs `(("perl" ,perl)
3594 ("tarball" ,source)))
3595 (build-system trivial-build-system) ;no Makefile.PL
3597 `(#:modules ((guix build utils))
3600 (use-modules (guix build utils))
3601 (use-modules (srfi srfi-1))
3602 (let* ((source (assoc-ref %build-inputs "source"))
3603 (perl (string-append (assoc-ref %build-inputs "perl")
3605 (tar (assoc-ref %build-inputs "tar"))
3606 (gz (assoc-ref %build-inputs "gzip"))
3607 (out (assoc-ref %outputs "out"))
3608 (bin (string-append out "/bin"))
3609 (doc (string-append out "/share/doc/ipcalc")))
3610 (setenv "PATH" (string-append gz "/bin"))
3611 (invoke (string-append tar "/bin/tar") "xvf" source)
3612 (chdir (string-append ,name "-" ,version))
3614 (install-file "ipcalc" bin)
3615 (patch-shebang (string-append bin "/ipcalc") (list perl))
3617 (synopsis "Simple IP network calculator")
3618 (description "ipcalc takes an IP address and netmask and calculates the
3619 resulting broadcast, network, Cisco wildcard mask, and host range. By giving
3620 a second netmask, you can design subnets and supernets. It is also intended
3621 to be a teaching tool and presents the subnetting results as
3622 easy-to-understand binary values.")
3623 (home-page "http://jodies.de/ipcalc")
3624 (license license:gpl2+)))
3626 (define-public tunctl
3633 (uri (string-append "mirror://sourceforge/tunctl/tunctl/" version "/"
3634 "tunctl-" version ".tar.gz"))
3636 (base32 "1zsgn7w6l2zh2q0j6qaw8wsx981qcr536qlz1lgb3b5zqr66qama"))))
3637 (build-system gnu-build-system)
3640 (modify-phases %standard-phases
3641 (delete 'bootstrap) ;there is no configure.ac file
3642 (delete 'configure) ;there is no configure script
3643 (delete 'check) ;there are no tests
3647 (invoke "make" "tunctl")))
3648 ;; TODO: Requires docbook2x to generate man page from SGML.
3650 (lambda* (#:key outputs #:allow-other-keys)
3651 (let* ((out (assoc-ref outputs "out"))
3652 (bin (string-append out "/bin")))
3653 (install-file "tunctl" bin))
3655 (home-page "http://tunctl.sourceforge.net")
3656 (synopsis "Utility to set up and maintain TUN/TAP network interfaces")
3657 (description "Tunctl is used to set up and maintain persistent TUN/TAP
3658 network interfaces, enabling user applications to simulate network traffic.
3659 Such interfaces are useful for VPN software, virtualization, emulation,
3660 simulation, and a number of other applications.")
3661 (license license:gpl2)))
3670 (uri (string-append "mirror://sourceforge/wake-on-lan/wol/"
3671 version "/wol-" version ".tar.gz"))
3673 (base32 "08i6l5lr14mh4n3qbmx6kyx7vjqvzdnh3j9yfvgjppqik2dnq270"))))
3674 (build-system gnu-build-system)
3675 (home-page "https://sourceforge.net/projects/wake-on-lan/")
3676 (synopsis "Implements Wake On LAN functionality in a small program")
3677 (description "Tool to send a magic packet to wake another host on the
3678 network. This must be enabled on the target host, usually in the BIOS.")
3679 (license license:gpl2)))
3688 (uri "mirror://sourceforge/vde/vde2/2.3.2/vde2-2.3.2.tar.gz")
3690 (base32 "14xga0ib6p1wrv3hkl4sa89yzjxv7f1vfqaxsch87j6scdm59pr2"))))
3691 (build-system gnu-build-system)
3693 `(#:parallel-build? #f)) ; Build fails if #t.
3695 `(("python" ,python)
3696 ("libpcap" ,libpcap)
3697 ("openssl" ,openssl-1.0))) ; Build fails with 1.1.
3698 (home-page "https://github.com/virtualsquare/vde-2")
3699 (synopsis "Virtual Distributed Ethernet")
3700 (description "VDE is a set of programs to provide virtual software-defined
3701 Ethernet network interface controllers across multiple virtual or
3702 physical, local or remote devices. The VDE architecture provides
3703 virtual counterparts to hardware components such as switches and
3705 (license (list license:gpl2
3706 license:lgpl2.1 ; libvdeplug
3707 (license:non-copyleft ; slirpvde
3708 "file://COPYING.slirpvde"
3709 "See COPYING.slirpvde in the distribution.")))))
3711 (define-public haproxy
3717 (uri (string-append "https://www.haproxy.org/download/"
3718 (version-major+minor version)
3719 "/src/haproxy-" version ".tar.gz"))
3722 "0fd3c1znid5a9w3gcf77b85hm2a2558w9s02c4b7xzkmivqnqbir"))))
3723 (build-system gnu-build-system)
3726 (let* ((out (assoc-ref %outputs "out")))
3727 (list (string-append "PREFIX=" out)
3728 (string-append "DOCDIR=" out "/share/" ,name)
3729 "TARGET=linux-glibc"
3734 #:tests? #f ; there are only regression tests, using varnishtest
3736 (modify-phases %standard-phases
3737 (delete 'configure))))
3740 ("openssl" ,openssl)
3743 (home-page "https://www.haproxy.org/")
3744 (synopsis "Reliable, high performance TCP/HTTP load balancer")
3745 (description "HAProxy is a free, very fast and reliable solution offering
3746 high availability, load balancing, and proxying for TCP and HTTP-based
3747 applications. It is particularly suited for web sites crawling under very
3748 high loads while needing persistence or Layer7 processing. Supporting tens of
3749 thousands of connections is clearly realistic with today's hardware.")
3750 (license (list license:gpl2+
3752 license:lgpl2.1+))))
3754 (define-public lldpd
3761 (uri (string-append "https://media.luffy.cx/files/lldpd/lldpd-"
3764 (base32 "1qc7k83zpcq27hpjv1lmgrj4la2zy1gspwk5jas43j49siwr3xqx"))
3765 (modules '((guix build utils)))
3768 ;; Drop bundled library.
3769 (delete-file-recursively "libevent")
3774 "--with-privsep-user=nobody"
3775 "--with-privsep-group=nogroup"
3776 "--localstatedir=/var"
3779 "--without-embedded-libevent"
3780 (string-append "--with-systemdsystemunitdir="
3781 (assoc-ref %outputs "out")
3782 "/lib/systemd/system"))))
3783 (build-system gnu-build-system)
3785 `(("libevent" ,libevent)
3786 ("libxml2" ,libxml2)
3787 ("openssl" ,openssl)
3788 ("readline" ,readline)))
3790 `(("pkg-config" ,pkg-config)))
3791 (home-page "https://vincentbernat.github.io/lldpd/")
3792 (synopsis "Locate neighbors of your network equipment")
3794 "The @dfn{Link Layer Discovery Protocol} (LLDP) is an industry standard
3795 protocol designed to supplant proprietary Link-Layer protocols such as EDP or
3796 CDP. The goal of LLDP is to provide an inter-vendor compatible mechanism to
3797 deliver Link-Layer notifications to adjacent network devices. @code{lldpd} is
3798 an implementation of LLDP. It also supports some proprietary protocols.")
3799 (license license:isc)))
3801 (define-public hashcash
3808 (uri (string-append "http://www.hashcash.org/source/hashcash-"
3812 "15kqaimwb2y8wvzpn73021bvay9mz1gqqfc40gk4hj6f84nz34h1"))))
3813 (build-system gnu-build-system)
3815 `(#:make-flags (list (string-append "CC=" ,(cc-for-target)))
3817 (modify-phases %standard-phases
3819 ;; No tests available.
3822 (lambda* (#:key outputs #:allow-other-keys)
3823 (let* ((outdir (assoc-ref outputs "out"))
3824 (bindir (string-append outdir "/bin"))
3825 (mandir (string-append outdir "/share/man/man1"))
3826 (docdir (string-append outdir "/share/doc/hashcash-" ,version)))
3827 ;; Install manually, as we don't need the `sha1' binary
3828 (install-file "hashcash" bindir)
3829 (install-file "hashcash.1" mandir)
3830 (install-file "README" docdir)
3831 (install-file "LICENSE" docdir)
3832 (install-file "CHANGELOG" docdir)
3834 (home-page "https://www.hashcash.org/")
3835 (synopsis "Denial-of-service countermeasure")
3836 (description "Hashcash is a proof-of-work algorithm, which has been used
3837 as a denial-of-service countermeasure technique in a number of systems.
3839 A hashcash stamp constitutes a proof-of-work which takes a parametrizable
3840 amount of work to compute for the sender. The recipient can verify received
3841 hashcash stamps efficiently.
3843 This package contains a command-line tool for computing and verifying hashcash
3845 (license license:public-domain)))
3854 (uri (string-append "mirror://sourceforge/nbd/nbd/3.20/nbd-" version
3858 "1kfnyx52nna2mnw264njk1dl2zc8m78sz031yp65mbmpi99v7qg0"))))
3859 (build-system gnu-build-system)
3863 `(("pkg-config" ,pkg-config)
3865 (home-page "https://nbd.sourceforge.io/")
3866 (synopsis "NBD client and server")
3867 (description "This package provides the NBD (Network Block Devices)
3868 client and server. It allows you to use remote block devices over a TCP/IP
3870 (license license:gpl2)))
3872 (define-public yggdrasil
3881 (url "https://github.com/yggdrasil-network/yggdrasil-go")
3882 (commit (string-append "v" version))
3884 (file-name (git-file-name name version))
3887 "0gk7gy8yq5nrnblv4imxzzm2hac4ri0hlw19ajfbc1zll5kj32gf"))
3888 (patches (search-patches "yggdrasil-extra-config.patch"))))
3889 (build-system go-build-system)
3891 '(#:import-path "github.com/yggdrasil-network/yggdrasil-go"
3892 ;; TODO: figure out how tests are run
3894 #:install-source? #f
3895 #:phases (modify-phases %standard-phases
3901 "go" "build" "-v" "-ldflags=-s -w"
3903 "github.com/yggdrasil-network/yggdrasil-go/cmd/" c)))
3904 (list "yggdrasil" "yggdrasilctl"))
3907 (lambda* (#:key outputs #:allow-other-keys)
3908 (let* ((out (assoc-ref outputs "out"))
3909 (bin (string-append out "/bin/"))
3910 (doc (string-append out "/share/doc/yggdrasil/")))
3914 (install-file f bin))
3915 (list "yggdrasil" "yggdrasilctl"))
3919 "src/github.com/yggdrasil-network/yggdrasil-go/"
3920 "doc/yggdrasil-network.github.io")
3923 ;; https://github.com/kardianos/minwinsvc is windows only
3925 `(("go-github-com-arceliar-phony" ,go-github-com-arceliar-phony)
3926 ("go-github-com-cheggaaa-pb" ,go-github-com-cheggaaa-pb)
3927 ("go-github-com-gologme-log" ,go-github-com-gologme-log)
3928 ("go-github-com-hashicorp-go-syslog" ,go-github-com-hashicorp-go-syslog)
3929 ("go-github-com-hjson-hjson-go" ,go-github-com-hjson-hjson-go)
3930 ("go-github-com-kardianos-minwinsvc" ,go-github-com-kardianos-minwinsvc)
3931 ("go-github-com-mitchellh-mapstructure"
3932 ,go-github-com-mitchellh-mapstructure)
3933 ("go-golang-org-x-crypto" ,go-golang-org-x-crypto)
3934 ("go-golang-org-x-net" ,go-golang-org-x-net)
3935 ("go-golang-org-x-text" ,go-golang-org-x-text)
3936 ("go-golang-zx2c4-com-wireguard" ,go-golang-zx2c4-com-wireguard)
3937 ("go-netlink" ,go-netlink)
3938 ("go-netns" ,go-netns)))
3939 (home-page "https://yggdrasil-network.github.io/blog.html")
3941 "Experiment in scalable routing as an encrypted IPv6 overlay network")
3943 "Yggdrasil is an early-stage implementation of a fully end-to-end encrypted
3944 IPv6 network. It is lightweight, self-arranging, supported on multiple
3945 platforms and allows pretty much any IPv6-capable application to communicate
3946 securely with other Yggdrasil nodes. Yggdrasil does not require you to have
3947 IPv6 Internet connectivity - it also works over IPv4.")
3949 ;; As a special exception to the GNU Lesser General Public License
3950 ;; version 3 ("LGPL3"), the copyright holders of this Library give you
3951 ;; permission to convey to a third party a Combined Work that links
3952 ;; statically or dynamically to this Library without providing any Minimal
3953 ;; Corresponding Source or Minimal Application Code as set out in 4d or
3954 ;; providing the installation information set out in section 4e, provided
3955 ;; that you comply with the other provisions of LGPL3 and provided that you
3956 ;; meet, for the Application the terms and conditions of the license(s)
3957 ;; which apply to the Application. Except as stated in this special
3958 ;; exception, the provisions of LGPL3 will continue to comply in full to
3959 ;; this Library. If you modify this Library, you may apply this exception
3960 ;; to your version of this Library, but you are not obliged to do so. If
3961 ;; you do not wish to do so, delete this exception statement from your
3962 ;; version. This exception does not (and cannot) modify any license terms
3963 ;; which apply to the Application, with which you must still comply