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 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 Tobias Geerinckx-Rice <me@tobias.gr>
8 ;;; Copyright © 2016 John Darrington <jmd@gnu.org>
9 ;;; Copyright © 2016, 2017, 2018, 2019 Nicolas Goaziou <mail@nicolasgoaziou.fr>
10 ;;; Copyright © 2016 Eric Bavier <bavier@member.fsf.org>
11 ;;; Copyright © 2016, 2017 ng0 <ng0@n0.is>
12 ;;; Copyright © 2016, 2017, 2018 Arun Isaac <arunisaac@systemreboot.net>
13 ;;; Copyright © 2016 Benz Schenk <benz.schenk@uzh.ch>
14 ;;; Copyright © 2016, 2017 Pjotr Prins <pjotr.guix@thebird.nl>
15 ;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
16 ;;; Copyright © 2017 Leo Famulari <leo@famulari.name>
17 ;;; Copyright © 2017, 2018, 2019 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 Marius Bakke <mbakke@fastmail.com>
27 ;;; Copyright © 2018 Oleg Pykhalov <go.wigust@gmail.com>
28 ;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz>
29 ;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@gmail.com>
30 ;;; Copyright © 2019 Vasile Dumitrascu <va511e@yahoo.com>
32 ;;; This file is part of GNU Guix.
34 ;;; GNU Guix is free software; you can redistribute it and/or modify it
35 ;;; under the terms of the GNU General Public License as published by
36 ;;; the Free Software Foundation; either version 3 of the License, or (at
37 ;;; your option) any later version.
39 ;;; GNU Guix is distributed in the hope that it will be useful, but
40 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
41 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
42 ;;; GNU General Public License for more details.
44 ;;; You should have received a copy of the GNU General Public License
45 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
47 (define-module (gnu packages networking)
48 #:use-module ((guix licenses) #:prefix license:)
49 #:use-module (guix packages)
50 #:use-module (guix download)
51 #:use-module (guix git-download)
52 #:use-module (guix build-system cmake)
53 #:use-module (guix build-system glib-or-gtk)
54 #:use-module (guix build-system gnu)
55 #:use-module (guix build-system go)
56 #:use-module (guix build-system perl)
57 #:use-module (guix build-system python)
58 #:use-module (gnu packages)
59 #:use-module (gnu packages admin)
60 #:use-module (gnu packages adns)
61 #:use-module (gnu packages algebra)
62 #:use-module (gnu packages audio)
63 #:use-module (gnu packages autotools)
64 #:use-module (gnu packages base)
65 #:use-module (gnu packages bison)
66 #:use-module (gnu packages boost)
67 #:use-module (gnu packages check)
68 #:use-module (gnu packages code)
69 #:use-module (gnu packages compression)
70 #:use-module (gnu packages crypto)
71 #:use-module (gnu packages curl)
72 #:use-module (gnu packages dejagnu)
73 #:use-module (gnu packages documentation)
74 #:use-module (gnu packages flex)
75 #:use-module (gnu packages gettext)
76 #:use-module (gnu packages glib)
77 #:use-module (gnu packages gnome)
78 #:use-module (gnu packages gnupg)
79 #:use-module (gnu packages gtk)
80 #:use-module (gnu packages image)
81 #:use-module (gnu packages libidn)
82 #:use-module (gnu packages linux)
83 #:use-module (gnu packages lua)
84 #:use-module (gnu packages multiprecision)
85 #:use-module (gnu packages kerberos)
86 #:use-module (gnu packages ncurses)
87 #:use-module (gnu packages nettle)
88 #:use-module (gnu packages password-utils)
89 #:use-module (gnu packages pcre)
90 #:use-module (gnu packages perl)
91 #:use-module (gnu packages perl-check)
92 #:use-module (gnu packages pkg-config)
93 #:use-module (gnu packages python)
94 #:use-module (gnu packages python-web)
95 #:use-module (gnu packages python-xyz)
96 #:use-module (gnu packages qt)
97 #:use-module (gnu packages readline)
98 #:use-module (gnu packages serialization)
99 #:use-module (gnu packages sqlite)
100 #:use-module (gnu packages ssh)
101 #:use-module (gnu packages textutils)
102 #:use-module (gnu packages tls)
103 #:use-module (gnu packages valgrind)
104 #:use-module (gnu packages web)
105 #:use-module (gnu packages wxwidgets)
106 #:use-module (gnu packages xml)
107 #:use-module (ice-9 match))
109 ;; The gnu.org ‘home’ for this GNU project is a directory listing with 1.6.0 as
110 ;; the latest version. The author's git repository, mentioned in the 1.6.0
111 ;; README and otherwise legit-looking, contains a proper 1.7.0 release tarball
112 ;; with many OUI updates. Use it, even though it's also several years old now.
113 (define-public macchanger
120 (uri (string-append "https://github.com/alobbs/macchanger/"
121 "releases/download/" version "/"
122 name "-" version ".tar.gz"))
124 (base32 "1gs5m0jxyprdp00w2qkbnaqm3ilkjz0q1gqdg4nzdm8g4xy73qns"))))
125 (build-system gnu-build-system)
126 (home-page "https://www.gnu.org/software/macchanger/")
127 (synopsis "Viewing and manipulating MAC addresses of network interfaces")
128 (description "GNU MAC Changer is a utility for viewing and changing MAC
129 addresses of networking devices. New addresses may be set explicitly or
130 randomly. They can include MAC addresses of the same or other hardware vendors
131 or, more generally, MAC addresses of the same category of hardware.")
132 (license license:gpl2+)))
134 (define-public miredo
140 (uri (string-append "http://www.remlab.net/files/miredo/miredo-"
144 "0j9ilig570snbmj48230hf7ms8kvcwi2wblycqrmhh85lksd49ps"))))
145 (build-system gnu-build-system)
148 (modify-phases %standard-phases
149 ;; The checkconf test in src/ requires network access.
151 'check 'disable-checkconf-test
153 (substitute* "src/Makefile"
154 (("^TESTS = .*") "TESTS = \n"))
156 (home-page "http://www.remlab.net/miredo/")
157 (synopsis "Teredo IPv6 tunneling software")
159 "Miredo is an implementation (client, relay, server) of the Teredo
160 specification, which provides IPv6 Internet connectivity to IPv6 enabled hosts
161 residing in IPv4-only networks, even when they are behind a NAT device.")
162 (license license:gpl2+)))
171 "http://www.dest-unreach.org/socat/download/socat-"
175 "0jnhjijyq74g3wa4ph0am83z6vq7qna7ac0xqjma8s4197z3zmhd"))))
176 (build-system gnu-build-system)
177 (arguments '(#:tests? #f)) ;no 'check' phase
178 (inputs `(("openssl" ,openssl)))
179 (home-page "http://www.dest-unreach.org/socat/")
181 "Open bidirectional communication channels from the command line")
183 "socat is a relay for bidirectional data transfer between two independent
184 data channels---files, pipes, devices, sockets, etc. It can create
185 \"listening\" sockets, named pipes, and pseudo terminals.
187 socat can be used, for instance, as TCP port forwarder, as a shell interface
188 to UNIX sockets, IPv6 relay, for redirecting TCP oriented programs to a serial
189 line, to logically connect serial lines on different computers, or to
190 establish a relatively secure environment (su and chroot) for running client
191 or server shell scripts with network connections.")
192 (license license:gpl2)))
194 (define-public tcp-wrappers
196 (name "tcp-wrappers")
201 "ftp://ftp.porcupine.org/pub/security/tcp_wrappers_"
205 "0p9ilj4v96q32klavx0phw9va21fjp8vpk11nbh6v2ppxnnxfhwm"))))
206 (build-system gnu-build-system)
209 (modify-phases %standard-phases
210 (delete 'configure) ; there is no configure script
211 (delete 'check) ; there are no tests
215 ;; Upstream doesn't generate a shared library. So we have to do it.
216 (setenv "CC" "gcc -fno-builtin -fPIC")
217 (substitute* "Makefile"
218 (("^(all[^\n]*)" line) (string-append line " libwrap.so\n
219 libwrap.so: $(LIB_OBJ)\n
220 \tgcc -shared $^ -o $@\n")))
221 ;; Deal with some gcc breakage.
222 (substitute* "percent_m.c"
223 (("extern char .sys_errlist.*;") ""))
224 (substitute* "scaffold.c"
225 (("extern char .malloc.*;") ""))
226 ;; This, believe it or not, is the recommended way to build!
227 (invoke "make" "REAL_DAEMON_DIR=/etc" "linux")))
228 ;; There is no make install stage, so we have to do it ourselves.
231 (let ((out (assoc-ref %outputs "out"))
232 (man-pages `("hosts_access.3"
240 (headers `("tcpd.h"))
241 (bins `("safe_finger"
248 (install-file x (string-append out "/include")))
252 (install-file x (string-append out "/share/man/man"
253 (string-take-right x 1))))
257 (install-file x (string-append out "/lib/")))
261 (install-file x (string-append out "/bin/")))
264 (home-page "http://www.porcupine.org")
265 (synopsis "Monitor and filter incoming requests for network services")
266 (description "With this package you can monitor and filter incoming requests for
267 network services. It includes a library which may be used by daemons to
268 transparently check connection attempts against an access control list.")
269 (license (license:non-copyleft "file://DISCLAIMER"
270 "See the file DISCLAIMER in the distribution."))))
273 (define-public zeromq
279 (uri (string-append "http://download.zeromq.org/zeromq-"
283 "00vvwhgcdr1lva2pavicvy92iad0hj8cf71n702hv6blw1kjj2z0"))))
284 (build-system gnu-build-system)
285 (home-page "http://zeromq.org")
286 (synopsis "Library for message-based applications")
288 "The 0MQ lightweight messaging kernel is a library which extends the
289 standard socket interfaces with features traditionally provided by specialized
290 messaging middle-ware products. 0MQ sockets provide an abstraction of
291 asynchronous message queues, multiple messaging patterns, message
292 filtering (subscriptions), seamless access to multiple transport protocols and
294 (license license:lgpl3+)))
303 "https://github.com/zeromq/" name
304 "/releases/download/v" version
305 "/" name "-" version ".tar.gz"))
308 "1h5hrcsc30fcwb032vy5gxkq4j4vv1y4dj460rfs1hhxi0cz83zh"))))
309 (build-system gnu-build-system)
311 '(;; TODO Tests fail for some reason:
313 ;; * zbeacon: OK (skipping test, no UDP broadcasting)
314 ;; E: (czmq_selftest) 18-02-24 16:25:52 No broadcast interface found, (ZSYS_INTERFACE=lo)
315 ;; make[2]: *** [Makefile:2245: check-local] Segmentation fault
316 ;; make[2]: Leaving directory '/tmp/guix-build-czmq-4.1.0.drv-0/czmq-4.1.0'
317 ;; make[1]: *** [Makefile:2032: check-am] Error 2
318 ;; make[1]: Leaving directory '/tmp/guix-build-czmq-4.1.0.drv-0/czmq-4.1.0'
319 ;; make: *** [Makefile:1588: check-recursive] Error 1
320 ;; phase `check' failed after 19.4 seconds
322 #:configure-flags '("--enable-drafts")))
324 `(("zeromq" ,zeromq)))
325 (home-page "http://zeromq.org")
326 (synopsis "High-level C bindings for ØMQ")
328 "czmq provides bindings for the ØMQ core API that hides the differences
329 between different versions of ØMQ.")
330 (license license:mpl2.0)))
332 (define-public cppzmq
334 (commit "d9f0f016c07046742738c65e1eb84722ae32d7d4"))
337 (version (string-append "4.2.2-" revision "."
338 (string-take commit 7)))
342 (url "https://github.com/zeromq/cppzmq")
346 "1gmqlm00y6xpa5m6d4ajq3ww63n2w7h4sy997wj81vcqmqx45b1f"))
347 (file-name (string-append name "-" version "-checkout"))))
348 (build-system cmake-build-system)
349 (arguments '(#:tests? #f)) ; No tests.
351 `(("pkg-config" ,pkg-config)))
353 `(("zeromq" ,zeromq)))
354 (home-page "http://zeromq.org")
355 (synopsis "C++ bindings for the ØMQ messaging library")
357 "This package provides header-only C++ bindings for ØMQ. The header
358 files contain direct mappings of the abstractions provided by the ØMQ C API.")
359 (license license:expat))))
361 (define-public librdkafka
368 "https://github.com/edenhill/librdkafka/archive/"
370 (file-name (string-append name "-" version ".tar.gz"))
373 "10ldx7g7ymmg17snzx78vy4n8ma1rjx0agzi34g15j2fk867xmas"))))
374 (build-system gnu-build-system)
377 (modify-phases %standard-phases
379 ;; its custom configure script doesn't understand 'CONFIG_SHELL'.
380 (lambda* (#:key outputs #:allow-other-keys)
381 (let ((out (assoc-ref outputs "out")))
382 ;; librdkafka++.so lacks RUNPATH for librdkafka.so
384 (string-append "-Wl,-rpath=" out "/lib"))
385 (invoke "./configure"
386 (string-append "--prefix=" out))))))))
388 `(("python" ,python-wrapper)))
390 `(("zlib" ,zlib))) ; in the Libs.private field of rdkafka.pc
391 (home-page "https://github.com/edenhill/librdkafka")
392 (synopsis "Apache Kafka C/C++ client library")
394 "librdkafka is a C library implementation of the Apache Kafka protocol,
395 containing both Producer and Consumer support.")
396 (license license:bsd-2)))
398 (define-public libndp
404 (uri (string-append "http://libndp.org/files/"
405 name "-" version ".tar.gz"))
408 "1dlinhl39va00v55qygjc9ap77yqf7xvn4rwmvdr49xhzzxhlj1c"))))
409 (build-system gnu-build-system)
410 (home-page "http://libndp.org/")
411 (synopsis "Library for Neighbor Discovery Protocol")
413 "libndp contains a library which provides a wrapper for IPv6 Neighbor
414 Discovery Protocol. It also provides a tool named ndptool for sending and
415 receiving NDP messages.")
416 (license license:lgpl2.1+)))
418 (define-public ethtool
424 (uri (string-append "mirror://kernel.org/software/network/"
425 "ethtool/ethtool-" version ".tar.xz"))
428 "1j6hyr809af2m3gqm11hdfwks5kljqy1ikspq3d9rhj29qv6r2mi"))))
429 (build-system gnu-build-system)
430 (home-page "https://www.kernel.org/pub/software/network/ethtool/")
431 (synopsis "Display or change Ethernet device settings")
433 "ethtool can be used to query and change settings such as speed,
434 auto-negotiation and checksum offload on many network devices, especially
436 (license license:gpl2)))
438 (define-public ifstatus
444 (uri (string-append "mirror://sourceforge/ifstatus/ifstatus/"
445 "ifstatus%20v" version "/ifstatus-v"
449 "045cbsq9ps32j24v8y5hpyqxnqn9mpaf3mgvirlhgpqyb9jsia0c"))
450 (modules '((guix build utils)))
453 (substitute* "Main.h"
454 (("#include <stdio.h>")
455 "#include <stdio.h>\n#include <stdlib.h>"))
457 (build-system gnu-build-system)
459 '(#:tests? #f ; no "check" target
461 (modify-phases %standard-phases
462 (delete 'configure) ; no configure script
464 (lambda* (#:key outputs #:allow-other-keys)
465 (let* ((out (assoc-ref outputs "out"))
466 (bin (string-append out "/bin")))
468 (copy-file "ifstatus"
469 (string-append bin "/ifstatus")))
471 (inputs `(("ncurses" ,ncurses)))
472 (home-page "http://ifstatus.sourceforge.net/graphic/index.html")
473 (synopsis "Text based network interface status monitor")
475 "IFStatus is a simple, easy-to-use program for displaying commonly
476 needed/wanted real-time traffic statistics of multiple network
477 interfaces, with a simple and efficient view on the command line. It is
478 intended as a substitute for the PPPStatus and EthStatus projects.")
479 (license license:gpl2+)))
487 (uri (string-append "mirror://sourceforge/nload/nload/" version
488 "/nload-" version ".tar.gz"))
491 "1rb9skch2kgqzigf19x8bzk211jdfjfdkrcvaqyj89jy2pkm3h61"))))
492 (build-system gnu-build-system)
493 (inputs `(("ncurses" ,ncurses)))
494 (home-page "http://www.roland-riegel.de/nload/")
495 (synopsis "Realtime console network usage monitor")
497 "Nload is a console application which monitors network traffic and
498 bandwidth usage in real time. It visualizes the in- and outgoing traffic using
499 two graphs, and provides additional info like total amount of transferred data
500 and min/max network usage.")
501 (license license:gpl2+)))
503 (define-public iodine
509 (uri (string-append "http://code.kryo.se/" name "/"
510 name "-" version ".tar.gz"))
513 "0gh17kcxxi37k65zm4gqsvbk3aw7yphcs3c02pn1c4s2y6n40axd"))))
514 (build-system gnu-build-system)
517 (modify-phases %standard-phases
519 (add-before 'build 'fix-ifconfig-path
520 ;; This package works only with the net-tools version of ifconfig.
521 (lambda* (#:key inputs #:allow-other-keys)
522 (substitute* "src/tun.c"
524 (string-append (assoc-ref inputs "net-tools") "/bin/")))
526 (add-before 'check 'delete-failing-tests
527 ;; Avoid https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802105.
529 (substitute* "tests/common.c"
530 (("tcase_add_test\\(tc, \
531 test_parse_format_ipv(4(|_listen_all|_mapped_ipv6)|6)\\);")
534 #:make-flags (list "CC=gcc"
535 (string-append "prefix=" (assoc-ref %outputs "out")))
536 #:test-target "test"))
537 (inputs `(("net-tools" ,net-tools)
539 (native-inputs `(("check" ,check)
540 ("pkg-config" ,pkg-config)))
541 (home-page "http://code.kryo.se/iodine/")
542 (synopsis "Tunnel IPv4 data through a DNS server")
543 (description "Iodine tunnels IPv4 data through a DNS server. This
544 can be useful in different situations where internet access is firewalled, but
545 DNS queries are allowed. The bandwidth is asymmetrical, with limited upstream
546 and up to 1 Mbit/s downstream.")
547 ;; src/md5.[ch] is released under the zlib license
548 (license (list license:isc license:zlib))))
557 (uri (string-append "mirror://debian/pool/main/w/whois/"
558 name "_" version ".tar.xz"))
561 "1hqg14k0q4979a1amgms4sa1d2iiid51rra3jyqmv63hkw189ypy"))))
562 (build-system gnu-build-system)
564 `(#:tests? #f ; no test suite
565 #:make-flags (list "CC=gcc"
566 (string-append "prefix=" (assoc-ref %outputs "out")))
568 (modify-phases %standard-phases
569 (delete 'configure) ; no configure script
570 (add-before 'build 'setenv
572 (setenv "HAVE_ICONV" "1")
575 `(("libidn2" ,libidn2)))
577 `(("gettext" ,gettext-minimal)
579 ("pkg-config" ,pkg-config)))
580 (synopsis "Intelligent client for the WHOIS directory service")
582 "whois searches for an object in a @dfn{WHOIS} (RFC 3912) database.
583 It is commonly used to look up the registered users or assignees of an Internet
584 resource, such as a domain name, an IP address block, or an autonomous system.
585 It can automatically select the appropriate server for most queries.
587 For historical reasons, this package also includes @command{mkpasswd}, which
588 encrypts passwords using @code{crypt(3)} and is unrelated to the Expect command
590 (home-page "https://github.com/rfc1036/whois")
591 (license license:gpl2+)))
593 (define-public wireshark
600 (uri (string-append "https://www.wireshark.org/download/src/wireshark-"
603 (base32 "0fz5lbyiw4a27fqc4ndi1w20bpcb6wi9k7vjv29l9fhd99kca7ky"))))
604 (build-system cmake-build-system)
607 (modify-phases %standard-phases
608 (add-after 'unpack 'remove-failing-test
609 ;; Test 31/32 fails with errors like "Program reassemble_test is
610 ;; not available". Skipping it for now.
612 (substitute* "CMakeLists.txt"
613 (("suite_unittests" all) (string-append "# " all)))
615 ;; Build process chokes during `validate-runpath' phase.
617 ;; Errors are like the following:
618 ;; "/gnu/store/...wireshark-3.0.0/lib/wireshark/plugins/3.0/epan/ethercat.so:
619 ;; error: depends on 'libwireshark.so.12', which cannot be found in
620 ;; RUNPATH". That is, "/gnu/store/...wireshark-3.0.0./lib" doesn't
621 ;; belong to RUNPATH.
623 ;; That’s not a problem in practice because "ethercat.so" is a plugin,
624 ;; so it’s dlopen’d by a process that already provides "libwireshark".
625 ;; For now, we disable this phase.
626 #:validate-runpath? #f))
632 ("libgcrypt" ,libgcrypt)
638 ("lua" ,lua-5.2) ;Lua 5.3 unsupported
641 ("qtmultimedia" ,qtmultimedia)
650 ("gettext" ,gettext-minimal)
652 ("pkg-config" ,pkg-config)
653 ("python" ,python-wrapper)
654 ("qttools" ,qttools)))
655 (synopsis "Network traffic analyzer")
656 (description "Wireshark is a network protocol analyzer, or @dfn{packet
657 sniffer}, that lets you capture and interactively browse the contents of
659 (home-page "https://www.wireshark.org/")
660 (license license:gpl2+)))
669 (uri (string-append "https://fping.org/dist/fping-"
672 (base32 "0jmnf4vmr43aiwk3h2b5qdsb95gxar8gz1yli8fswnm9nrs9ccvx"))))
673 (build-system gnu-build-system)
674 (home-page "https://fping.org/")
675 (synopsis "Send ICMP ECHO_REQUEST packets to network hosts")
677 "fping is a ping like program which uses the Internet Control Message
678 Protocol (ICMP) echo request to determine if a target host is responding.
679 fping differs from ping in that you can specify any number of targets on the
680 command line, or specify a file containing the lists of targets to ping.
681 Instead of sending to one target until it times out or replies, fping will
682 send out a ping packet and move on to the next target in a round-robin
684 (license license:expat)))
686 (define-public gandi.cli
693 (uri (pypi-uri name version))
695 (base32 "110wc9zgxsrvw4yzp21p0ian5lcf7vhcpxhnmsc4fg9pzl2bwxd5"))))
696 (build-system python-build-system)
699 (modify-phases %standard-phases
700 (add-after 'unpack 'embed-store-file-names
702 (substitute* (list "gandi/cli/modules/cert.py"
703 "gandi/cli/tests/commands/test_certificate.py")
704 (("openssl") (which "openssl")))
706 (add-after 'install 'install-documentation
707 ;; The included man page may be outdated but we install it anyway,
708 ;; since it's mentioned in 'gandi --help' and better than nothing.
709 (lambda* (#:key outputs #:allow-other-keys)
710 (let* ((out (assoc-ref outputs "out"))
711 (man1 (string-append out "/share/man/man1")))
713 (with-output-to-file (string-append man1 "/gandi.1")
715 (invoke "rst2man.py" "gandicli.man.rst")))
718 `(("python-docutils" ,python-docutils) ; for rst2man.py
719 ("python-pytest-cov" ,python-pytest-cov)
720 ("python-tox" ,python-tox)))
722 `(("openssl" ,openssl)
723 ("python-click" ,python-click)
724 ("python-ipy" ,python-ipy)
725 ("python-pyyaml" ,python-pyyaml)
726 ("python-requests" ,python-requests)))
727 (home-page "https://cli.gandi.net")
728 (synopsis "Command-line interface to the Gandi.net Web API")
730 "This package provides a command-line client (@command{gandi}) to buy,
731 manage, and delete Internet resources from Gandi.net such as domain names,
732 virtual machines, and certificates.")
733 (license license:gpl3+)))
735 (define-public go-netns
736 (let ((commit "13995c7128ccc8e51e9a6bd2b551020a27180abd")
740 (version (git-version "0.0.0" revision commit))
744 (url "https://github.com/vishvananda/netns.git")
746 (file-name (git-file-name name version))
749 "1zk6w8158qi4niva5rijchbv9ixgmijsgqshh54wdaav4xrhjshn"))))
750 (build-system go-build-system)
752 `(#:import-path "github.com/vishvananda/netns"
753 #:tests? #f)) ;tests require root privileges
754 (home-page "https://github.com/vishvananda/netns")
755 (synopsis "Simple network namespace handling for Go")
756 (description "The netns package provides a simple interface for
757 handling network namespaces in Go.")
758 (license license:asl2.0))))
760 (define-public go-sctp
761 ;; docker-libnetwork-cmd-proxy requires this exact commit.
762 (let ((commit "07191f837fedd2f13d1ec7b5f885f0f3ec54b1cb")
766 (version (git-version "0.0.0" revision commit))
770 (url "https://github.com/ishidawataru/sctp.git")
772 (file-name (git-file-name name version))
775 "1mk9ncm10gwi5pn5wcw4skbyf4qg7n5qdf1mim4gf3mrckvi6g6h"))))
776 (build-system go-build-system)
778 `(#:import-path "github.com/ishidawataru/sctp"))
779 (home-page "https://github.com/ishidawataru/sctp")
780 (synopsis "SCTP library for the Go programming language")
781 (description "This library provides methods for using the stream control
782 transmission protocol (SCTP) in a Go application.")
783 (license license:asl2.0))))
785 (define-public httping
792 (uri (string-append "https://www.vanheusden.com/httping/httping-"
796 "1y7sbgkhgadmd93x1zafqc4yp26ssiv16ni5bbi9vmvvdl55m29y"))))
797 (build-system gnu-build-system)
799 `(("gettext" ,gettext-minimal)))
803 ("openssl" ,openssl)))
805 `(#:make-flags (list "CC=gcc"
806 (string-append "DESTDIR=" (assoc-ref %outputs "out"))
808 #:tests? #f)) ; no tests
809 (home-page "https://www.vanheusden.com/httping/")
810 (synopsis "Web server latency and throughput monitor")
812 "httping measures how long it takes to connect to a web server, send an
813 HTTP(S) request, and receive the reply headers. It is somewhat similar to
814 @command{ping}, but can be used even in cases where ICMP traffic is blocked
815 by firewalls or when you want to monitor the response time of the actual web
816 application stack itself.")
817 (license license:gpl2))) ; with permission to link with OpenSSL
819 (define-public httpstat
826 (uri (pypi-uri "httpstat" version))
829 "1chw2nk56vaq87aba012a270k9na06hfx1pfbsrc3jfvlc2kb9hb"))))
830 (build-system python-build-system)
831 (inputs `(("curl" ,curl)))
834 (modify-phases %standard-phases
835 (add-before 'build 'fix-curl-path
836 (lambda* (#:key inputs #:allow-other-keys)
837 (substitute* "httpstat.py"
838 (("ENV_CURL_BIN.get\\('curl'\\)")
839 (string-append "ENV_CURL_BIN.get('"
840 (assoc-ref inputs "curl")
843 (home-page "https://github.com/reorx/httpstat")
844 (synopsis "Visualize curl statistics")
846 "@command{httpstat} is a tool to visualize statistics from the
847 @command{curl} HTTP client. It acts as a wrapper for @command{curl} and
848 prints timing information for each step of the HTTP request (DNS lookup,
849 TCP connection, TLS handshake and so on) in the terminal.")
850 (license license:expat)))
852 (define-public bwm-ng
860 (url "https://github.com/vgropp/bwm-ng.git")
861 (commit (string-append "v" version))))
862 (file-name (git-file-name name version))
864 (base32 "0k906wb4pw3dcqpcwnni78lahzi3bva483f8c17sjykic7as4y5n"))))
865 (build-system gnu-build-system)
868 (modify-phases %standard-phases
869 (add-after 'unpack 'disable-premature-./configure
871 (substitute* "autogen.sh"
872 (("\\$srcdir/configure")
876 `(("autoconf" ,autoconf)
877 ("automake" ,automake)))
879 `(("ncurses" ,ncurses)))
880 (synopsis "Console based live network and disk I/O bandwidth monitor")
881 (description "Bandwidth Monitor NG is a small and simple console based
882 live network and disk I/O bandwidth monitor.")
883 (home-page "https://www.gropp.org/?id=projects&sub=bwm-ng")
884 (license license:gpl2)))
886 (define-public aircrack-ng
893 (uri (string-append "https://download.aircrack-ng.org/aircrack-ng-"
897 "0hc2x17bxk2n00z8jj5jfwq3z41681fd19n018724il0cpkjyncy"))))
898 (build-system gnu-build-system)
900 `(("autoconf" ,autoconf)
901 ("automake" ,automake)
903 ("pkg-config" ,pkg-config)
906 `(("libgcrypt" ,libgcrypt)
915 (list "--with-experimental=yes" ; build wesside-ng, etc.
916 "--with-gcrypt") ; openssl's the default
917 #:phases (modify-phases %standard-phases
918 (add-before 'bootstrap 'patch-evalrev
920 ;; Called by ./autogen.sh below, before the default
921 ;; ‘patch-shebangs’ phase has had a chance to run.
922 (substitute* "evalrev"
928 ;; Patch shebangs in generated files before running
930 (setenv "NOCONFIGURE" "please")
931 (invoke "bash" "./autogen.sh")))
932 (add-after 'build 'absolutize-tools
933 (lambda* (#:key inputs #:allow-other-keys)
934 (let ((ethtool (string-append (assoc-ref inputs "ethtool")
936 (substitute* "scripts/airmon-ng"
938 (string-append ethtool " ")))
940 (home-page "https://www.aircrack-ng.org")
941 (synopsis "Assess WiFi network security")
943 "Aircrack-ng is a complete suite of tools to assess WiFi network
944 security. It focuses on different areas of WiFi security: monitoring,
945 attacking, testing, and cracking. All tools are command-line driven, which
946 allows for heavy scripting.")
947 (license (list license:gpl2+ license:bsd-3))))
949 (define-public perl-danga-socket
951 (name "perl-danga-socket")
956 (uri (string-append "mirror://cpan/authors/id/B/BR/BRADFITZ/"
957 "Danga-Socket-" version ".tar.gz"))
960 "0nciapvxnc922ms304af0vavz1kgyr45ard8wc659k9srqar4hwf"))))
961 (build-system perl-build-system)
963 `(("perl-sys-syscall" ,perl-sys-syscall)))
964 (home-page "https://metacpan.org/release/Danga-Socket")
965 (synopsis "Event loop and event-driven async socket base class")
967 "Danga::Socket is an abstract base class for objects backed by a socket
968 which provides the basic framework for event-driven asynchronous IO, designed
969 to be fast. Danga::Socket is both a base class for objects, and an event
971 (license license:perl-license)))
973 (define-public perl-data-validate-ip
975 (name "perl-data-validate-ip")
981 "mirror://cpan/authors/id/D/DR/DROLSKY/Data-Validate-IP-"
984 (base32 "1mmppyzsh1w2z2h86kvzqxy56wxgs62a3kf8nvcnz76bblir5ap1"))))
985 (build-system perl-build-system)
987 `(("perl-test-requires" ,perl-test-requires)))
989 `(("perl-netaddr-ip" ,perl-netaddr-ip)))
990 (home-page "https://metacpan.org/release/Data-Validate-IP")
991 (synopsis "IPv4 and IPv6 validation methods")
993 "This module provides several IP address validation subroutines that both
994 validate and untaint their input. This includes both basic validation
995 (@code{is_ipv4()} and @code{is_ipv6()}) and special cases like checking whether
996 an address belongs to a specific network or whether an address is public or
997 private (reserved).")
998 (license license:perl-license)))
1000 (define-public perl-net-dns
1002 (name "perl-net-dns")
1009 (string-append "https://www.net-dns.org/download/Net-DNS-"
1011 (string-append "mirror://cpan/authors/id/N/NL/NLNETLABS/Net-DNS-"
1012 version ".tar.gz")))
1014 (base32 "06z09igd42s0kg2ps5k7vpypg77zswfryqzbyalbllvjd0mnknbz"))))
1015 (build-system perl-build-system)
1017 `(("perl-digest-hmac" ,perl-digest-hmac)))
1018 (home-page "https://www.net-dns.org/")
1020 "Perl Interface to the Domain Name System")
1021 (description "Net::DNS is the Perl Interface to the Domain Name System.")
1022 (license license:x11)))
1024 (define-public perl-socket6
1026 (name "perl-socket6")
1032 "mirror://cpan/authors/id/U/UM/UMEMOTO/Socket6-"
1037 "054izici8klfxs8hr5rljib28plijpsfymy99xbzdp047bx1b2a6"))))
1038 (build-system perl-build-system)
1041 (modify-phases %standard-phases
1043 (lambda* (#:key outputs #:allow-other-keys)
1044 (let* ((out (assoc-ref outputs "out"))
1045 (args `("Makefile.PL"
1046 ,(string-append "PREFIX=" out)
1047 "INSTALLDIRS=site")))
1048 (setenv "CONFIG_SHELL" (which "sh"))
1049 (apply invoke "perl" args)))))))
1050 (home-page "https://metacpan.org/release/Socket6")
1052 "IPv6 related part of the C socket.h defines and structure manipulators for Perl")
1053 (description "Socket6 binds the IPv6 related part of the C socket header
1054 definitions and structure manipulators for Perl.")
1055 (license license:bsd-3)))
1057 (define-public perl-net-dns-resolver-programmable
1059 (name "perl-net-dns-resolver-programmable")
1065 "mirror://cpan/authors/id/J/JM/JMEHNLE/net-dns-resolver-programmable/"
1066 "Net-DNS-Resolver-Programmable-" version ".tar.gz"))
1069 "1v3nl2kaj4fs55n1617n53q8sa3mir06898vpy1rq98zjih24h4d"))
1071 (search-patches "perl-net-dns-resolver-programmable-fix.patch"))))
1072 (build-system perl-build-system)
1074 `(("perl-module-build" ,perl-module-build)))
1075 (inputs `(("perl-net-dns" ,perl-net-dns)))
1077 "https://metacpan.org/release/Net-DNS-Resolver-Programmable")
1079 "Programmable DNS resolver class for offline emulation of DNS")
1080 (description "Net::DNS::Resolver::Programmable is a programmable DNS resolver for
1081 offline emulation of DNS.")
1082 (license license:perl-license)))
1084 (define-public perl-netaddr-ip
1086 (name "perl-netaddr-ip")
1092 "mirror://cpan/authors/id/M/MI/MIKER/NetAddr-IP-"
1097 "1rx0dinrz9fk9qcg4rwqq5n1dm3xv2arymixpclcv2q2nzgq4npc"))))
1098 (build-system perl-build-system)
1101 (modify-phases %standard-phases
1103 (lambda* (#:key outputs #:allow-other-keys)
1104 (let* ((out (assoc-ref outputs "out"))
1105 (args `("Makefile.PL"
1106 ,(string-append "PREFIX=" out)
1107 "INSTALLDIRS=site")))
1108 (setenv "CONFIG_SHELL" (which "sh"))
1109 (apply invoke "perl" args)))))))
1111 "https://metacpan.org/release/NetAddr-IP")
1113 "Manages IPv4 and IPv6 addresses and subnets")
1114 (description "NetAddr::IP manages IPv4 and IPv6 addresses and subsets.")
1115 (license license:perl-license)))
1117 (define-public perl-net-patricia
1119 (name "perl-net-patricia")
1125 "mirror://cpan/authors/id/G/GR/GRUBER/Net-Patricia-"
1130 "0ln5f57vc8388kyh9vhx2infrdzfhbpgyby74h1qsnhwds95m0vh"))))
1131 (build-system perl-build-system)
1133 `(("perl-net-cidr-lite" ,perl-net-cidr-lite)
1134 ("perl-socket6" ,perl-socket6)))
1136 "https://metacpan.org/release/Net-Patricia")
1138 "Patricia Trie Perl module for fast IP address lookups")
1140 "Net::Patricia does IP address lookups quickly in Perl.")
1141 ;; The bindings are licensed under GPL2 or later.
1142 ;; libpatricia is licensed under 2-clause BSD.
1143 (license (list license:gpl2+ license:bsd-2))))
1145 (define-public perl-net-cidr-lite
1147 (name "perl-net-cidr-lite")
1153 "mirror://cpan/authors/id/D/DO/DOUGW/Net-CIDR-Lite-"
1158 "14shj73zbqmfjbp0qz1fs9j4p2dpvz5hfkm4qfdjbydflbl2b8fg"))))
1159 (build-system perl-build-system)
1161 "https://metacpan.org/release/Net-CIDR-Lite")
1163 "Perl extension for merging IPv4 or IPv6 CIDR addresses")
1164 (description "Net::CIDR::Lite merges IPv4 or IPv6 CIDR addresses.")
1165 (license license:gpl1+)))
1167 ;; TODO: Use the geolite-mirror-simple.pl script from the example
1168 ;; directory to stay current with the databases. How?
1169 (define-public perl-geo-ip
1171 (name "perl-geo-ip")
1177 "mirror://cpan/authors/id/M/MA/MAXMIND/Geo-IP-"
1182 "1fka8fr7fw6sh3xa9glhs1zjg3s2gfkhi7n7da1l2m2wblqj0c0n"))))
1183 (build-system perl-build-system)
1184 (home-page "https://metacpan.org/release/Geo-IP")
1186 "Look up location and network information by IP Address in Perl")
1187 (description "The Perl module @code{Geo::IP}. It looks up location and
1188 network information by IP Address.")
1189 (license license:perl-license)))
1191 (define-public perl-io-socket-inet6
1193 (name "perl-io-socket-inet6")
1199 "mirror://cpan/authors/id/S/SH/SHLOMIF/IO-Socket-INET6-"
1204 "1fqypz6qa5rw2d5y2zq7f49frwra0aln13nhq5gi514j2zx21q45"))))
1205 (build-system perl-build-system)
1207 `(("perl-module-build" ,perl-module-build)
1208 ("perl-test-pod" ,perl-test-pod)
1209 ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
1210 (inputs `(("perl-socket6" ,perl-socket6)))
1211 (arguments `(;; Need network socket API
1214 "https://metacpan.org/release/IO-Socket-INET6")
1216 "Perl object interface for AF_INET/AF_INET6 domain sockets")
1217 (description "IO::Socket::INET6 is an interface for AF_INET/AF_INET6 domain
1219 (license license:perl-license)))
1221 (define-public libproxy
1227 (uri (string-append "https://github.com/libproxy/libproxy/"
1228 "releases/download/" version "/libproxy-"
1232 "0kvdrazlzwia876w988cmlypp253gwy6idlh8mjk958c29jb8kb5"))))
1233 (build-system cmake-build-system)
1235 `(("pkg-config" ,pkg-config)))
1241 (modify-phases %standard-phases
1244 (invoke "ctest" "-E" "url-test"))))))
1245 (synopsis "Library providing automatic proxy configuration management")
1246 (description "Libproxy handles the details of HTTP/HTTPS proxy
1247 configuration for applications across all scenarios. Applications using
1248 libproxy only have to specify which proxy to use.")
1249 (home-page "https://libproxy.github.io/libproxy")
1250 (license license:lgpl2.1+)))
1252 (define-public proxychains-ng
1254 (name "proxychains-ng")
1259 (uri (string-append "http://ftp.barfooze.de/pub/sabotage/tarballs/"
1260 "proxychains-ng-" version ".tar.xz"))
1262 (base32 "1bmhfbl1bzc87vl0xwr1wh5xvslfyc41nl2hqzhbj258p0sy004x"))))
1263 (build-system gnu-build-system)
1265 `(#:tests? #f ; there are no tests
1267 (modify-phases %standard-phases
1268 (add-after 'unpack 'fix-configure-script
1270 ;; The configure script is very intolerant to unknown arguments,
1271 ;; such as "CONFIG_SHELL".
1272 (substitute* "configure"
1273 (("\\*\\) break ;;" line)
1274 (string-append "[A-Z]*) shift ;;\n"
1277 (add-before 'configure 'set-up-environment
1281 (synopsis "Redirect any TCP connection through a proxy or proxy chain")
1282 (description "Proxychains-ng is a preloader which hooks calls to sockets
1283 in dynamically linked programs and redirects them through one or more SOCKS or
1285 (home-page "https://github.com/rofl0r/proxychains-ng")
1286 (license license:gpl2+)))
1294 (uri (string-append "http://enet.bespin.org/download/"
1295 "enet-" version ".tar.gz"))
1298 "0w780zc6cy8yq4cskpphx0f91lzh51vh9lwyc5ll8hhamdxgbxlq"))))
1299 (build-system gnu-build-system)
1301 `(("pkg-config" ,pkg-config)))
1302 (synopsis "Network communication layer on top of UDP")
1304 "ENet's purpose is to provide a relatively thin, simple and robust network
1305 communication layer on top of UDP. The primary feature it provides is optional
1306 reliable, in-order delivery of packets. ENet omits certain higher level
1307 networking features such as authentication, server discovery, encryption, or
1308 other similar tasks that are particularly application specific so that the
1309 library remains flexible, portable, and easily embeddable.")
1310 (home-page "http://enet.bespin.org")
1311 (license license:expat)))
1321 (url "https://github.com/yrutschle/sslh.git")
1322 (commit (string-append "v" version))))
1323 (file-name (git-file-name name version))
1325 (base32 "18zhkqlwfh6f5dg1a41a4p7p9g94dgb9nwls1ksy9r5yz174i2fx"))))
1326 (build-system gnu-build-system)
1328 `(;; Test dependencies.
1331 ("perl-conf-libconfig" ,perl-conf-libconfig)
1332 ("perl-io-socket-inet6" ,perl-io-socket-inet6)
1333 ("perl-socket6" ,perl-socket6)
1334 ("psmisc" ,psmisc))) ; for ‘killall’
1336 `(("libcap" ,libcap)
1337 ("libconfig" ,libconfig)
1339 ("tcp-wrappers" ,tcp-wrappers)))
1342 (modify-phases %standard-phases
1343 (delete 'configure) ; no configure script
1344 (add-before 'check 'fix-tests
1347 (("\"/tmp") "$ENV{\"TMPDIR\"} . \"")
1348 ;; The Guix build environment lacks ‘ip6-localhost’.
1349 (("ip6-localhost") "localhost"))
1351 ;; Many of these files are mentioned in the man page. Install them.
1352 (add-after 'install 'install-documentation
1353 (lambda* (#:key outputs #:allow-other-keys)
1354 (let* ((out (assoc-ref outputs "out"))
1355 (doc (string-append out "/share/doc/sslh")))
1356 (install-file "README.md" doc)
1359 (install-file file (string-append doc "/examples")))
1360 (append (find-files "." "\\.cfg")
1361 (find-files "scripts"))))
1363 #:make-flags (list "CC=gcc"
1366 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1367 #:test-target "test"))
1368 (home-page "https://www.rutschle.net/tech/sslh/README.html")
1369 (synopsis "Applicative network protocol demultiplexer")
1371 "sslh is a network protocol demultiplexer. It acts like a switchboard,
1372 accepting connections from clients on one port and forwarding them to different
1373 servers based on the contents of the first received data packet. Detection of
1374 common protocols like HTTP(S), SSL, SSH, OpenVPN, tinc, and XMPP is already
1375 implemented, but any other protocol that matches a regular expression can be
1376 added. sslh's name comes from its original application of serving both SSH and
1377 HTTPS on port 443, allowing SSH connections from inside corporate firewalls
1378 that block port 22.")
1379 (license (list license:bsd-2 ; tls.[ch]
1380 license:gpl2+)))) ; everything else
1382 (define-public iperf
1388 (uri (string-append "http://downloads.es.net/pub/iperf"
1389 "/iperf-" version ".tar.gz"))
1392 "0kvk8d0a3dcxc8fisyprbn01y8akxj4sx8ld5dh508p9dx077vx4"))))
1393 (build-system gnu-build-system)
1394 (synopsis "TCP, UDP and SCTP bandwidth measurement tool")
1396 "iPerf is a tool to measure achievable bandwidth on IP networks. It
1397 supports tuning of various parameters related to timing, buffers and
1398 protocols (TCP, UDP, SCTP with IPv4 and IPv6). For each test it reports
1399 the bandwidth, loss, and other parameters.")
1400 (home-page "http://software.es.net/iperf/")
1401 (license (list license:bsd-3 ; Main distribution.
1402 license:ncsa ; src/{units,iperf_locale,tcp_window_size}.c
1403 license:expat ; src/{cjson,net}.[ch]
1404 license:public-domain)))) ; src/portable_endian.h
1406 (define-public nethogs
1412 (uri (string-append "https://github.com/raboof/nethogs/archive/v"
1416 "1k4x8r7s4dgcb6n2rjn28h2yyij92mwm69phncl3597cdxr954va"))
1417 (file-name (string-append name "-" version ".tar.gz"))))
1418 (build-system gnu-build-system)
1420 `(("libpcap" ,libpcap)
1421 ("ncurses" ,ncurses)))
1423 `(#:make-flags `("CC=gcc"
1424 ,(string-append "PREFIX=" %output))
1426 (modify-phases %standard-phases
1427 (delete 'configure)))) ; No ./configure script.
1428 (home-page "https://github.com/raboof/nethogs")
1429 (synopsis "Per-process bandwidth monitor")
1430 (description "NetHogs is a small 'net top' tool for Linux. Instead of
1431 breaking the traffic down per protocol or per subnet, like most tools do, it
1432 groups bandwidth by process.
1434 NetHogs does not rely on a special kernel module to be loaded. If there's
1435 suddenly a lot of network traffic, you can fire up NetHogs and immediately see
1436 which PID is causing this. This makes it easy to identify programs that have
1437 gone wild and are suddenly taking up your bandwidth.")
1438 (license license:gpl2+)))
1440 (define-public nzbget
1447 (uri (string-append "https://github.com/nzbget/nzbget/archive/v"
1449 (file-name (string-append name "-" version ".tar.gz"))
1452 "0q93aqqyzccn5r9sny38499rmg846qdh9pi2v5kvf9m23v54yk60"))
1453 (modules '((guix build utils)))
1455 ;; Reported upstream as <https://github.com/nzbget/nzbget/pull/414>.
1457 (substitute* "daemon/connect/TlsSocket.cpp"
1458 (("gnutls_certificate-verification_status_print")
1459 "gnutls_certificate_verification_status_print"))
1464 (string-append "--with-libcurses-includes="
1465 (assoc-ref %build-inputs "ncurses") "/include")
1466 (string-append "--with-libcurses-libraries="
1467 (assoc-ref %build-inputs "ncurses") "/lib")
1468 (string-append "--with-tlslib=GnuTLS"))))
1469 (build-system gnu-build-system)
1470 (inputs `(("gnutls" ,gnutls)
1471 ("libxml2" ,libxml2)
1472 ("ncurses" ,ncurses)
1474 (native-inputs `(("pkg-config" ,pkg-config)))
1475 (home-page "https://github.com/nzbget/nzbget")
1476 (synopsis "Usenet binary file downloader")
1478 "NZBGet is a binary newsgrabber, which downloads files from Usenet based
1479 on information given in @code{nzb} files. NZBGet can be used in standalone
1480 and in server/client modes. In standalone mode, you pass NZBGet @command{nzb}
1481 files as command-line parameters and it downloads them and exits. NZBGet also
1482 contains a Web interface. Its server can be controlled through remote
1483 procedure calls (RPCs).")
1484 (license license:gpl2+)))
1486 (define-public openvswitch
1488 (name "openvswitch")
1493 "https://www.openvswitch.org/releases/openvswitch-"
1497 "1p5mv44jaslvrr1ym15smqna19y0gi4vqcsyj58625vv9bj6laf1"))))
1498 (build-system gnu-build-system)
1500 '(;; FIXME: many tests fail with:
1502 ;; test -e $OVS_RUNDIR/ovs-vswitchd.pid
1503 ;; ovs-appctl -t ovs-vswitchd exit
1508 "--localstatedir=/var"
1509 "--with-dbdir=/var/lib/openvswitch")
1511 (modify-phases %standard-phases
1515 ;; Don't try to create directories under /var.
1523 ("pkg-config" ,pkg-config)
1524 ("python" ,python-2)
1526 ("util-linux" ,util-linux)))
1528 `(("python-six" ,python2-six)))
1530 `(("libcap-ng" ,libcap-ng)
1531 ("openssl" ,openssl)))
1532 (synopsis "Virtual network switch")
1533 (home-page "https://www.openvswitch.org/")
1535 "Open vSwitch is a multilayer virtual switch. It is designed to enable
1536 massive network automation through programmatic extension, while still
1537 supporting standard management interfaces and protocols (e.g. NetFlow, sFlow,
1538 IPFIX, RSPAN, CLI, LACP, 802.1ag).")
1539 (license ; see debian/copyright for detail
1540 (list license:lgpl2.1 ; xenserver and utilities/bugtool
1541 license:gpl2 ; datapath
1542 license:bsd-2 license:bsd-3
1543 license:asl2.0)))) ; all other
1545 (define-public python-ipy
1551 (uri (pypi-uri "IPy" version))
1554 "08d6kcacj67mvh0b6y765ipccy6gi4w2ndd4v1l3im2qm1cgcarg"))))
1555 (build-system python-build-system)
1556 (home-page "https://github.com/autocracy/python-ipy/")
1557 (synopsis "Python class and tools for handling IP addresses and networks")
1558 (description "The @code{IP} class allows a comfortable parsing and
1559 handling for most notations in use for IPv4 and IPv6 addresses and
1561 (license license:bsd-3)))
1563 (define-public python2-ipy
1564 (package-with-python2 python-ipy))
1566 (define-public speedtest-cli
1568 (name "speedtest-cli")
1574 (url "https://github.com/sivel/speedtest-cli")
1575 (commit (string-append "v" version))))
1576 (file-name (git-file-name name version))
1578 (base32 "0swm7nbk99w2xf1cb0l3c8y1vm4rqw6785p5j04alyb0g98vqa4b"))))
1579 (build-system python-build-system)
1580 (home-page "https://github.com/sivel/speedtest-cli")
1581 (synopsis "Internet bandwidth tester")
1583 "Command line interface for testing internet bandwidth using
1585 (license license:asl2.0)))
1587 (define-public tftp-hpa
1593 (uri (string-append "mirror://kernel.org/software/"
1594 "network/tftp/tftp-hpa/tftp-hpa-" version
1598 "12vidchglhyc20znq5wdsbhi9mqg90jnl7qr9qs8hbvaz4fkdvmg"))))
1599 (build-system gnu-build-system)
1600 (arguments `(#:tests? #f)) ; no test target
1601 (synopsis "HPA's tftp client")
1603 "This is a tftp client derived from OpenBSD tftp with some extra options
1604 added and bugs fixed. The source includes readline support but it is not
1605 enabled due to license conflicts between the BSD advertising clause and the GPL.")
1606 (home-page "http://git.kernel.org/cgit/network/tftp/tftp-hpa.git/about/")
1607 ;; Some source files are distributed under a 3-clause BSD license, and
1608 ;; others under a 4-clause BSD license. Refer to the files in the source
1609 ;; distribution for clarification.
1610 (license (list license:bsd-3 license:bsd-4))))
1612 (define-public pidentd
1619 (uri (string-append "https://github.com/ptrrkssn/pidentd/archive/"
1620 "v" version ".tar.gz"))
1621 (file-name (string-append name "-" version ".tar.gz"))
1624 "0y3kd1bkydqkpc1qdff24yswysamsqivvadjy0468qri5730izgc"))))
1625 (build-system gnu-build-system)
1627 `(#:tests? #f)) ; No tests are included
1629 `(("openssl" ,openssl))) ; For the DES library
1630 (home-page "https://www.lysator.liu.se/~pen/pidentd/")
1631 (synopsis "Small Ident Daemon")
1633 "@dfn{Pidentd} (Peter's Ident Daemon) is a identd, which implements a
1634 identification server. Pidentd looks up specific TCP/IP connections and
1635 returns the user name and other information about the connection.")
1636 (license license:public-domain)))
1638 (define-public spiped
1644 (uri (string-append "https://www.tarsnap.com/spiped/spiped-"
1648 "1r51rdcl7nib1yv3yvgd5alwlkkwmr387brqavaklb0p2bwzixz6"))))
1649 (build-system gnu-build-system)
1651 '(#:test-target "test"
1652 #:make-flags (let* ((out (assoc-ref %outputs "out"))
1653 (bindir (string-append out "/bin"))
1654 (man1dir (string-append out "/share/man/man1")))
1655 (list "CC=gcc" ; It tries to invoke `c99`.
1656 (string-append "BINDIR=" bindir)
1657 (string-append "MAN1DIR=" man1dir)))
1659 (modify-phases %standard-phases
1660 (add-after 'unpack 'patch-command-invocations
1662 (substitute* '("Makefile"
1663 "libcperciva/cpusupport/Build/cpusupport.sh"
1664 "libcperciva/POSIX/posix-cflags.sh"
1665 "libcperciva/POSIX/posix-l.sh")
1666 (("command -p") ""))
1668 (delete 'configure) ; No ./configure script.
1669 (add-after 'install 'install-more-docs
1670 (lambda* (#:key outputs #:allow-other-keys)
1671 (let* ((out (assoc-ref %outputs "out"))
1672 (misc (string-append out "/share/doc/spiped")))
1673 (install-file "DESIGN.md" misc)
1676 `(("procps" ,procps))) ; `ps` is used by the test suite.
1678 `(("openssl" ,openssl)))
1679 (home-page "https://www.tarsnap.com/spiped.html")
1680 (synopsis "Create secure pipes between sockets")
1681 (description "Spiped (pronounced \"ess-pipe-dee\") is a utility for creating
1682 symmetrically encrypted and authenticated pipes between socket addresses, so
1683 that one may connect to one address (e.g., a UNIX socket on localhost) and
1684 transparently have a connection established to another address (e.g., a UNIX
1685 socket on a different system). This is similar to 'ssh -L' functionality, but
1686 does not use SSH and requires a pre-shared symmetric key.")
1687 (license license:bsd-2)))
1689 (define-public quagga
1695 (uri (string-append "mirror://savannah/quagga/quagga-"
1699 "1lsksqxij5f1llqn86pkygrf5672kvrqn1kvxghi169hqf1c0r73"))
1701 (search-patches "quagga-reproducible-build.patch"))))
1702 (build-system gnu-build-system)
1703 (native-inputs `(("pkg-config" ,pkg-config)
1705 ("dejagnu" ,dejagnu)))
1706 (inputs `(("readline" ,readline)
1707 ("c-ares" ,c-ares)))
1708 (synopsis "Routing Software Suite")
1709 (description "Quagga is a routing software suite, providing implementations
1710 of OSPFv2, OSPFv3, RIP v1 and v2, RIPng and BGP-4 for Unix platforms.
1712 The Quagga architecture consists of a core daemon, @command{zebra}, which
1713 acts as an abstraction layer to the underlying Unix kernel and presents the
1714 Zserv API over a Unix or TCP stream to Quagga clients. It is these Zserv
1715 clients which typically implement a routing protocol and communicate routing
1716 updates to the zebra daemon.")
1717 (home-page "https://www.nongnu.org/quagga/")
1718 (license license:gpl2+)))
1720 (define-public thc-ipv6
1721 (let ((revision "0")
1722 (commit "4bb72573e0950ce6f8ca2800a10748477020029e"))
1725 (version (git-version "3.4" revision commit))
1729 (url "https://github.com/vanhauser-thc/thc-ipv6.git")
1731 (file-name (git-file-name name version))
1734 "1x5i6vbsddqc2yks7r1a2fw2fk16qxvd6hpzh1lykjfpkal8fdir"))))
1735 (build-system gnu-build-system)
1737 `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1738 #:tests? #f ; No test suite.
1740 (modify-phases %standard-phases
1741 (delete 'configure) ; No ./configure script.
1742 (add-before 'build 'patch-paths
1744 (substitute* "Makefile"
1745 (("/bin/echo") "echo"))
1747 (add-after 'install 'install-more-docs
1748 (lambda* (#:key outputs #:allow-other-keys)
1749 (let* ((out (assoc-ref outputs "out"))
1750 (doc (string-append out "/share/thc-ipv6/doc")))
1751 (install-file "README" doc)
1752 (install-file "HOWTO-INJECT" doc)
1754 ;; TODO Add libnetfilter-queue once packaged.
1756 `(("libpcap" ,libpcap)
1757 ("openssl" ,openssl)
1759 (home-page "https://github.com/vanhauser-thc/thc-ipv6")
1760 (synopsis "IPv6 security research toolkit")
1761 (description "The THC IPv6 Toolkit provides command-line tools and a library
1762 for researching IPv6 implementations and deployments. It requires Linux 2.6 or
1763 newer and only works on Ethernet network interfaces.")
1764 ;; AGPL 3 with exception for linking with OpenSSL. See the 'LICENSE' file in
1765 ;; the source distribution for more information.
1766 (license license:agpl3))))
1775 (uri (string-append "https://github.com/tgraf/bmon/releases/download/v"
1776 version "/bmon-" version ".tar.gz"))
1779 "0ylzriv4pwh76344abzl1w219x188gshbycbna35gsyfp09c7z82"))))
1780 (build-system gnu-build-system)
1782 `(("libconfuse" ,libconfuse)
1784 ("ncurses" ,ncurses)))
1786 `(("pkg-config" ,pkg-config)))
1787 (synopsis "Bandwidth monitor")
1788 (description "bmon is a monitoring and debugging tool to capture
1789 networking-related statistics and prepare them visually in a human-friendly
1790 way. It features various output methods including an interactive curses user
1791 interface and a programmable text output for scripting.")
1792 (home-page "https://github.com/tgraf/bmon")
1793 ;; README.md mentions both the 2-clause BSD and expat licenses, but all
1794 ;; the source files only have expat license headers. Upstream has been
1795 ;; contacted for clarification: https://github.com/tgraf/bmon/issues/59
1796 ;; Update the license field when upstream responds.
1797 (license (list license:bsd-2
1800 (define-public libnet
1808 (url "https://github.com/sam-github/libnet")
1809 (commit (string-append "libnet-" version))))
1810 (file-name (git-file-name name version))
1813 "0cy8w4g5rv963v4p6iq3333kxgdddx2lywp70xf62553a25xhhs4"))))
1814 (build-system gnu-build-system)
1817 (modify-phases %standard-phases
1818 (add-after 'unpack 'chdir
1819 (lambda _ (chdir "libnet") #t))
1820 (add-before 'build 'build-doc
1821 (lambda* (#:key make-flags #:allow-other-keys)
1822 (apply invoke "make" "-C" "doc" "doc"
1825 `(("autoconf" ,autoconf)
1826 ("automake" ,automake)
1827 ("libtool" ,libtool)
1828 ("doxygen" ,doxygen)))
1829 (home-page "https://sourceforge.net/projects/libnet-dev/")
1830 (synopsis "Framework for low-level network packet construction")
1832 "Libnet provides a fairly portable framework for network packet
1833 construction and injection. It features portable packet creation interfaces
1834 at the IP layer and link layer, as well as a host of supplementary
1835 functionality. Using libnet, quick and simple packet assembly applications
1836 can be whipped up with little effort.")
1837 (license license:bsd-2)))
1846 (uri (string-append "ftp://ftp.bitwizard.nl/" name "/"
1847 name "-" version ".tar.gz"))
1849 (base32 "10j3ds3p27jygys4x08kj8fi3zlsgiv72xsfazkah6plwawrv5zj"))))
1850 (build-system gnu-build-system)
1852 `(("libcap" ,libcap)
1853 ("ncurses" ,ncurses)))
1855 ;; The 0.92 release tarball still requires the ‘autoheader’ tool.
1856 `(("autoconf" ,autoconf)))
1858 `(#:tests? #f)) ; tests require network access
1859 (home-page "https://www.bitwizard.nl/mtr/")
1860 (synopsis "Network diagnostic tool")
1862 "@dfn{mtr} (My TraceRoute) combines the functionality of the
1863 @command{traceroute} and @command{ping} programs in a single network diagnostic
1864 tool. @command{mtr} can use several network protocols to detect intermediate
1865 routers (or @dfn{hops}) between the local host and a user-specified destination.
1866 It then continually measures the response time and packet loss at each hop, and
1867 displays the results in real time.")
1868 (license license:gpl2+)))
1870 (define-public strongswan
1877 (uri (string-append "https://download.strongswan.org/strongswan-"
1878 version ".tar.bz2"))
1880 (base32 "095zg7h7qwsc456sqgwb1lhhk29ac3mk5z9gm6xja1pl061driy3"))))
1881 (build-system gnu-build-system)
1884 (modify-phases %standard-phases
1885 (add-before 'build 'patch-command-file-names
1886 (lambda* (#:key inputs #:allow-other-keys)
1887 (substitute* "src/libstrongswan/utils/process.c"
1889 (string-append (assoc-ref inputs "bash") "/bin/sh")))
1891 (substitute* "src/libstrongswan/tests/suites/test_process.c"
1892 (("/bin/sh") (which "sh"))
1893 (("/bin/echo") (which "echo"))
1894 (("cat") (which "cat")))
1896 (add-before 'check 'set-up-test-environment
1897 (lambda* (#:key inputs #:allow-other-keys)
1898 (setenv "TZDIR" (string-append (assoc-ref inputs "tzdata")
1903 ;; Disable bsd-4 licensed plugins
1905 "--disable-blowfish")))
1909 ("libgcrypt" ,libgcrypt)
1910 ("openssl" ,openssl)))
1912 `(("coreutils" ,coreutils)
1913 ("tzdata" ,tzdata-for-tests)))
1914 (synopsis "IKEv1/v2 keying daemon")
1915 (description "StrongSwan is an IPsec implementation originally based upon
1916 the FreeS/WAN project. It contains support for IKEv1, IKEv2, MOBIKE, IPv6,
1918 (home-page "https://strongswan.org/")
1922 ;; src/libcharon/plugins/dnscert/*
1923 ;; src/libcharon/plugins/ext_auth/*
1924 ;; src/libcharon/plugins/vici/ruby/*
1925 ;; src/libcharon/plugins/xauth_pam/xauth_pam_listener.[ch]
1929 ;; src/libstrongswan/plugins/sha3/sha3_keccak.c
1930 license:public-domain
1931 ;; src/libstrongswan/plugins/pkcs11/pkcs11.h
1932 (license:non-copyleft
1933 "file://src/libstrongswan/plugins/pkcs11/pkcs11.h"
1934 "pkcs11 contains a unknown permissive license. View the specific
1935 file for more details.")
1936 ;; These files are not included in the
1937 ;; build, they are disabled through
1938 ;; options to ./configure
1940 ;; src/libstrongswan/plugins/blowfish/bf_enc.c
1941 ;; src/libstrongswan/plugins/blowfish/bf_locl.h
1942 ;; src/libstrongswan/plugins/blowfish/bf_pi.h
1943 ;; src/libstrongswan/plugins/blowfish/bf_skey.c
1944 ;; src/libstrongswan/plugins/blowfish/blowfish_crypter.c
1945 ;; src/libstrongswan/plugins/des/des_crypter.c
1948 (define-public amule
1955 (url "https://github.com/amule-project/amule")
1957 (file-name (git-file-name name version))
1960 "010wxm6g9f92x6fympj501zbnjka32rzbx0sk3a2y4zpih5d2nsn"))
1961 ;; Patch for adopting crypto++ >= 6.0.
1962 (patches (search-patches "amule-crypto-6.patch"))))
1963 (build-system gnu-build-system)
1966 (modify-phases %standard-phases
1967 (delete 'bootstrap) ; bootstrap phase runs too early.
1968 (add-after 'patch-source-shebangs 'autogen
1970 (invoke "sh" "autogen.sh")
1984 "--enable-amule-gui"
1985 "--enable-amule-daemon"
1986 "--enable-webserver"
1987 "--with-denoise-level=0")))
1989 `(("autoconf" ,autoconf)
1990 ("automake" ,automake)
1991 ("gettext-minimal" ,gettext-minimal)
1995 ("crypto++" ,crypto++)
1997 ("wxwidgets-gtk2" ,wxwidgets-gtk2)))
1998 (home-page "http://amule.org/")
1999 (synopsis "Peer-to-peer client for the eD2K and Kademlia networks")
2001 "aMule is an eMule-like client for the eD2k and Kademlia peer-to-peer
2002 file sharing networks. It includes a graphical user interface (GUI), a daemon
2003 allowing you to run a client with no graphical interface, and a Web GUI for
2004 remote access. The @command{amulecmd} command allows you to control aMule
2006 (license license:gpl2+)))
2015 (string-append "https://github.com/zeromq/zyre/releases/download/v"
2016 version "/" name "-" version ".tar.gz"))
2019 "0qz2730bng1gs9xbqxhkw88qbsmszgmmrl2g9k6xrg6r3bqvsdc7"))))
2020 (build-system gnu-build-system)
2021 (inputs `(("zeromq" ,zeromq)
2023 ("libsodium" ,libsodium)))
2024 (synopsis "Framework for proximity-based peer-to-peer applications")
2025 (description "Zyre provides reliable group messaging over local area
2026 networks using zeromq. It has these key characteristics:
2029 @item Zyre needs no administration or configuration.
2030 @item Peers may join and leave the network at any time.
2031 @item Peers talk to each other without any central brokers or servers.
2032 @item Peers can talk directly to each other.
2033 @item Peers can join groups, and then talk to groups.
2034 @item Zyre is reliable, and loses no messages even when the network is heavily loaded.
2035 @item Zyre is fast and has low latency, requiring no consensus protocols.
2036 @item Zyre is designed for WiFi networks, yet also works well on Ethernet networks.
2038 (home-page "https://github.com/zeromq/zyre")
2039 (license license:mpl2.0)))
2041 (define-public can-utils
2044 (version "2018.02.0")
2048 (url "https://github.com/linux-can/can-utils.git")
2049 (commit (string-append "v" version))))
2050 (file-name (git-file-name name version))
2053 "0r0zkm67bdcmbfypjr7z041d4zp0xzb379dyl8cvhmflh12fd2jb"))))
2054 (build-system gnu-build-system)
2056 `(#:tests? #f ; No tests exist.
2057 #:make-flags (list "CC=gcc"
2058 (string-append "PREFIX="
2059 (assoc-ref %outputs "out")))
2061 (modify-phases %standard-phases
2063 (delete 'configure))))
2064 (home-page "https://github.com/linux-can/can-utils")
2065 (synopsis "CAN utilities")
2066 (description "This package provides CAN utilities in the following areas:
2069 @item Basic tools to display, record, generate and replay CAN traffic
2070 @item CAN access via IP sockets
2071 @item CAN in-kernel gateway configuration
2072 @item CAN bus measurement and testing
2073 @item ISO-TP (ISO15765-2:2016 - this means messages with a body larger than
2075 @item Log file converters
2076 @item Serial Line Discipline configuration for slcan driver
2078 ;; Either BSD-3 or GPL-2 can be used.
2079 (license (list license:bsd-3 license:gpl2))))
2088 (uri (string-append "mirror://sourceforge/asio/asio/"
2089 version " (Stable)/asio-" version ".tar.bz2"))
2091 (base32 "1akray4l3hgahmb92sbvsqg128c7g7s92jrkf1sp1fjnfjrxq9sf"))))
2092 (build-system gnu-build-system)
2095 ("openssl" ,openssl)))
2099 (string-append "--with-boost=" (assoc-ref %build-inputs "boost"))
2100 (string-append "--with-openssl=" (assoc-ref %build-inputs "openssl")))))
2101 (home-page "https://think-async.com/Asio")
2102 (synopsis "C++ library for ASynchronous network I/O")
2103 (description "Asio is a cross-platform C++ library for network and
2104 low-level I/O programming that provides developers with a consistent
2105 asynchronous model using a modern C++ approach.")
2106 (license license:boost1.0)))
2108 (define-public shadowsocks
2109 ;; There are some security fixes after the last release.
2110 (let* ((commit "e332ec93e9c90f1cbee676b022bf2c5d5b7b1239")
2112 (version (git-version "2.8.2" revision commit)))
2114 (name "shadowsocks")
2116 (home-page "https://github.com/shadowsocks/shadowsocks")
2124 "1idd9b4f2pnhcpk1bh030hqg5zq25gkwxd53xi3c0cj242w7sp2j"))
2125 (file-name (git-file-name name version))))
2126 (build-system python-build-system)
2127 (synopsis "Fast tunnel proxy that helps you bypass firewalls")
2129 "This package is a fast tunnel proxy that helps you bypass firewalls.
2133 @item TCP & UDP support
2134 @item User management API
2136 @item Workers and graceful restart
2137 @item Destination IP blacklist
2139 (license license:asl2.0))))
2141 (define-public net-snmp
2147 (uri (string-append "mirror://sourceforge/net-snmp/net-snmp/"
2148 version "/net-snmp-" version ".tar.gz"))
2151 "1pvajzj9gmj56dmwix0ywmkmy2pglh6nny646hkm7ghfhh03bz5j"))
2152 (modules '((guix build utils)))
2155 ;; Drop bundled libraries.
2156 (delete-file-recursively "snmplib/openssl")
2158 (build-system gnu-build-system)
2160 `(#:test-target "test"
2161 ;; XXX: With parallel build enabled, Perl modules may not get linked with
2162 ;; libnetsnmp. See e.g. <https://bugzilla.novell.com/show_bug.cgi?id=819497>.
2163 #:parallel-build? #f
2165 (list (string-append "LDFLAGS=-Wl,-rpath="
2166 (assoc-ref %outputs "out")
2168 "--with-logfile=/var/log/snmpd.log"
2169 (string-append "--with-openssl="
2170 (assoc-ref %build-inputs "openssl")))
2172 (modify-phases %standard-phases
2173 (add-after 'unpack 'patch-tests
2174 (lambda* (#:key inputs #:allow-other-keys)
2175 (substitute* "testing/fulltests/support/simple_TESTCONF.sh"
2177 (string-append "NETSTAT=\"" (which "netstat") "\"")))
2178 (substitute* '("testing/fulltests/default/T065agentextend_simple"
2179 "testing/fulltests/default/T115agentxperl_simple")
2180 (("/usr/bin/env") (which "env")))
2181 (substitute* "testing/fulltests/default/T065agentextend_sh_simple"
2182 (("/bin/sh") (which "sh")))
2183 ;; These tests require network access.
2184 (for-each delete-file
2185 '("testing/fulltests/default/T070com2sec_simple"
2186 "testing/fulltests/default/T071com2sec6_simple"))
2188 (add-after 'unpack 'patch-Makefile.PL
2189 (lambda* (#:key outputs #:allow-other-keys)
2190 (substitute* "Makefile.in"
2191 (("Makefile.PL -NET")
2192 (string-append "Makefile.PL PREFIX="
2193 (assoc-ref outputs "out")
2194 " INSTALLDIRS=site" " NO_PERLLOCAL=1"
2199 ("openssl" ,openssl)
2201 ;; These inputs are only needed for tests.
2203 `(("net-tools" ,net-tools)
2204 ("coreutils" ,coreutils)
2206 (home-page "http://www.net-snmp.org/")
2207 (synopsis "Simple Network Management Protocol library and tools")
2208 (description "The @dfn{Simple Network Management Protocol} (SNMP) is a
2209 widely used protocol for monitoring the health and welfare of network
2210 equipment (e.g. routers), computer equipment and even devices like UPSs.
2211 Net-SNMP is a suite of applications used to implement SNMP v1, SNMP v2c and
2212 SNMP v3 using both IPv4 and IPv6.")
2213 (license (list license:bsd-3
2214 (license:non-copyleft
2215 "http://www.net-snmp.org/about/license.html"
2216 "CMU/UCD copyright notice")))))
2218 (define-public ubridge
2226 (url "https://github.com/GNS3/ubridge.git")
2227 (commit (string-append "v" version))))
2228 (file-name (git-file-name name version))
2230 (base32 "0fl07zyall04map6v2l1bclqh8y3rrhsx61s2v0sr8b00j201jg4"))))
2231 (build-system gnu-build-system)
2233 `(#:tests? #f ; no tests
2234 #:make-flags '("CC=gcc")
2236 (modify-phases %standard-phases
2237 (delete 'configure) ; no configure script
2238 (add-before 'install 'set-bindir
2239 (lambda* (#:key inputs outputs #:allow-other-keys)
2240 (let ((bin (string-append (assoc-ref outputs "out")
2243 (substitute* "Makefile"
2244 (("\\$\\(BINDIR\\)") bin)
2245 (("\tsetcap cap_net.*$") "")))
2248 `(("libpcap" ,libpcap)))
2249 (home-page "https://github.com/GNS3/ubridge/")
2250 (synopsis "Bridge for UDP tunnels, Ethernet, TAP and VMnet interfaces")
2251 (description "uBridge is a simple program to create user-land bridges
2252 between various technologies. Currently, bridging between UDP tunnels,
2253 Ethernet and TAP interfaces is supported. Packet capture is also supported.")
2254 (license license:gpl3+)))
2256 (define-public hcxtools
2264 (url "https://github.com/ZerBea/hcxtools.git")
2267 (base32 "05sjbmv2wq3nlmammrwxqc62c4sagjjgczzddr1jcqkf6kywzkl8"))
2268 (file-name (git-file-name name version))))
2269 (build-system gnu-build-system)
2272 ("libpcap" ,libpcap)
2273 ("openssl" ,openssl)
2278 (string-append "INSTALLDIR=" (assoc-ref %outputs "out") "/bin"))
2279 #:tests? #f ; no test suite
2281 (modify-phases %standard-phases
2283 (add-after 'unpack 'set-environment
2284 (lambda* (#:key inputs #:allow-other-keys)
2285 (setenv "C_INCLUDE_PATH"
2286 (string-append (assoc-ref inputs "curl") "/include:"
2287 (assoc-ref inputs "libpcap") "/include:"
2288 (assoc-ref inputs "openssl") "/include:"
2289 (assoc-ref inputs "zlib") "/include:"
2290 (getenv "C_INCLUDE_PATH")))
2292 (home-page "https://github.com/ZerBea/hcxtools")
2293 (synopsis "Capture wlan traffic to hashcat and John the Ripper")
2295 "This package contains a small set of tools to capture and convert
2296 packets from wireless devices for use with hashcat or John the Ripper.")
2297 (license license:expat)))
2299 (define-public hcxdumptool
2301 (name "hcxdumptool")
2307 (url "https://github.com/ZerBea/hcxdumptool.git")
2310 (base32 "0xkzdvwpi6dq9wsrn882f2ljb7d5v2bvarq8gs6jm8znfx3y8hi2"))
2311 (file-name (git-file-name name version))))
2312 (build-system gnu-build-system)
2316 (string-append "INSTALLDIR=" (assoc-ref %outputs "out") "/bin"))
2317 #:tests? #f ; no test suite
2319 (modify-phases %standard-phases
2320 (delete 'configure))))
2321 (home-page "https://github.com/ZerBea/hcxdumptool")
2322 (synopsis "Small tool to capture packets from wlan devices")
2324 "Small tool to capture packets from WLAN devices. After capturing,
2325 upload the \"uncleaned\" cap to @url{https://wpa-sec.stanev.org/?submit} to
2326 see if the access point or the client is vulnerable to a dictionary attack.
2327 Convert the cap file to hccapx format and/or to WPA-PMKID-PBKDF2
2328 hashline (16800) with @command{hcxpcaptool} from the @code{hcxtools} package
2329 and check if the WLAN key or the master key was transmitted unencrypted.")
2330 (license license:expat)))
2332 (define-public dante
2339 (uri (string-append "https://www.inet.no/dante/files/dante-"
2343 "19rqzj167q73ag20zxpvswhkk0bj56r5maf83v5016sw7vrcz5sc"))))
2344 (build-system gnu-build-system)
2346 ;; XXX: The dynamic socks library doesn't work with 'libc.so' (GNU ld
2347 ;; script). When preloading is enabled, 'sockd' failed with:
2348 ;; … Failed to open library "libc.so": …: invalid ELF header
2349 '(#:configure-flags '("--disable-preload")))
2350 (home-page "https://www.inet.no/dante/")
2351 (synopsis "SOCKS server and client")
2352 (description "Dante is a SOCKS client and server implementation. It can
2353 be installed on a machine with access to an external TCP/IP network and will
2354 allow all other machines, without direct access to that network, to be relayed
2355 through the machine the Dante server is running on. The external network will
2356 never see any machines other than the one Dante is running on.")
2357 (license (license:non-copyleft "file://LICENSE"))))
2359 (define-public restbed
2360 (let ((commit "6eb385fa9051203f28bf96cc1844bbb5a9a6481f"))
2363 (version (git-version "4.6" "1" commit))
2368 (url "https://github.com/Corvusoft/restbed/")
2370 (file-name (string-append name "-" version ".tar.gz"))
2372 (base32 "0k60i5drklqqrb4khb25fzkgz9y0sncxf1sp6lh2bm1m0gh0661n"))))
2373 (build-system cmake-build-system)
2376 ("catch" ,catch-framework)
2377 ("openssl" ,openssl)))
2381 '("-DBUILD_TESTS=NO"
2382 "-DBUILD_EXAMPLES=NO"
2384 "-DBUILD_SHARED=NO")
2386 (modify-phases %standard-phases
2387 (add-after 'unpack 'apply-patches-and-fix-paths
2388 (lambda* (#:key inputs #:allow-other-keys)
2389 (let ((asio (assoc-ref inputs "asio"))
2390 (catch (assoc-ref inputs "catch"))
2391 (openssl (assoc-ref inputs "openssl")))
2392 (substitute* "cmake/Findasio.cmake"
2393 (("(find_path\\( asio_INCLUDE asio\\.hpp HINTS ).*$" all begin)
2394 (string-append begin " \"" asio "/include\" )")))
2395 (substitute* "cmake/Findcatch.cmake"
2396 (("(find_path\\( catch_INCLUDE catch\\.hpp HINTS ).*$" all begin)
2397 (string-append begin " \"" catch "/include\" )")))
2398 (substitute* "cmake/Findopenssl.cmake"
2399 (("(find_library\\( ssl_LIBRARY ssl ssleay32 HINTS ).*$" all begin)
2400 (string-append begin " \"" openssl "/lib\" )"))
2401 (("(find_library\\( crypto_LIBRARY crypto libeay32 HINTS ).*$" all begin)
2402 (string-append begin " \"" openssl "/lib\" )"))
2403 (("(find_path\\( ssl_INCLUDE openssl/ssl\\.h HINTS ).*$" all begin)
2404 (string-append begin " \"" openssl "/include\" )")))))))))
2405 (synopsis "Asynchronous RESTful functionality to C++11 applications")
2406 (description "Restbed is a comprehensive and consistent programming
2407 model for building applications that require seamless and secure
2408 communication over HTTP.")
2409 (home-page "https://github.com/Corvusoft/restbed")
2410 (license license:agpl3+))))
2412 (define-public opendht
2419 (url "https://github.com/savoirfairelinux/opendht.git")
2421 (file-name (git-file-name name version))
2424 "0vninb5mak27wigajslyvr05vq7wbrwqhbr4wzl2nmqcb20wmlq2"))))
2425 (build-system gnu-build-system)
2427 `(("gnutls" ,gnutls)
2429 ("readline" ,readline)
2430 ("jsoncpp" ,jsoncpp)
2431 ("restbed" ,restbed)))
2433 `(("argon2" ,argon2) ; TODO: Needed for the pkg-config .pc file to work?
2434 ("msgpack" ,msgpack))) ;included in several installed headers
2436 `(("autoconf" ,autoconf)
2437 ("pkg-config" ,pkg-config)
2438 ("automake" ,automake)
2439 ("libtool" ,libtool)))
2441 `(#:configure-flags '("--disable-tools"
2444 (home-page "https://github.com/savoirfairelinux/opendht/")
2445 (synopsis "Distributed Hash Table (DHT) library")
2446 (description "OpenDHT is a Distributed Hash Table (DHT) library. It may
2447 be used to manage peer-to-peer network connections as needed for real time
2449 (license license:gpl3+)))
2451 (define-public frrouting
2457 (uri (string-append "https://github.com/FRRouting/frr/releases/"
2458 "download/frr-" version "/frr-" version
2462 "0xfrvi62w8qlh46f504ka0skb7pm0g0p8vmdng4w90gsbirlzpdd"))))
2463 (build-system gnu-build-system)
2465 `(("c-ares" ,c-ares)
2467 ("readline" ,readline)))
2470 ("pkg-config" ,pkg-config)
2471 ("python" ,python-wrapper)
2472 ("python-pytest" ,python-pytest)))
2473 (home-page "https://frrouting.org/")
2474 (synopsis "IP routing protocol suite")
2475 (description "FRRouting (FRR) is an IP routing protocol suite which includes
2476 protocol daemons for BGP, IS-IS, LDP, OSPF, PIM, and RIP. ")
2477 (license license:gpl2+)))