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 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 Nils Gillmann <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 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>
30 ;;; This file is part of GNU Guix.
32 ;;; GNU Guix is free software; you can redistribute it and/or modify it
33 ;;; under the terms of the GNU General Public License as published by
34 ;;; the Free Software Foundation; either version 3 of the License, or (at
35 ;;; your option) any later version.
37 ;;; GNU Guix is distributed in the hope that it will be useful, but
38 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
39 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
40 ;;; GNU General Public License for more details.
42 ;;; You should have received a copy of the GNU General Public License
43 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
45 (define-module (gnu packages networking)
46 #:use-module ((guix licenses) #:prefix license:)
47 #:use-module (guix packages)
48 #:use-module (guix download)
49 #:use-module (guix git-download)
50 #:use-module (guix build-system cmake)
51 #:use-module (guix build-system glib-or-gtk)
52 #:use-module (guix build-system gnu)
53 #:use-module (guix build-system perl)
54 #:use-module (guix build-system python)
55 #:use-module (gnu packages)
56 #:use-module (gnu packages admin)
57 #:use-module (gnu packages adns)
58 #:use-module (gnu packages algebra)
59 #:use-module (gnu packages audio)
60 #:use-module (gnu packages autotools)
61 #:use-module (gnu packages base)
62 #:use-module (gnu packages bison)
63 #:use-module (gnu packages boost)
64 #:use-module (gnu packages check)
65 #:use-module (gnu packages code)
66 #:use-module (gnu packages compression)
67 #:use-module (gnu packages crypto)
68 #:use-module (gnu packages curl)
69 #:use-module (gnu packages dejagnu)
70 #:use-module (gnu packages documentation)
71 #:use-module (gnu packages flex)
72 #:use-module (gnu packages gettext)
73 #:use-module (gnu packages glib)
74 #:use-module (gnu packages gnome)
75 #:use-module (gnu packages gnupg)
76 #:use-module (gnu packages gtk)
77 #:use-module (gnu packages image)
78 #:use-module (gnu packages libidn)
79 #:use-module (gnu packages linux)
80 #:use-module (gnu packages lua)
81 #:use-module (gnu packages multiprecision)
82 #:use-module (gnu packages kerberos)
83 #:use-module (gnu packages ncurses)
84 #:use-module (gnu packages nettle)
85 #:use-module (gnu packages password-utils)
86 #:use-module (gnu packages pcre)
87 #:use-module (gnu packages perl)
88 #:use-module (gnu packages perl-check)
89 #:use-module (gnu packages pkg-config)
90 #:use-module (gnu packages python)
91 #:use-module (gnu packages python-web)
92 #:use-module (gnu packages python-xyz)
93 #:use-module (gnu packages qt)
94 #:use-module (gnu packages readline)
95 #:use-module (gnu packages serialization)
96 #:use-module (gnu packages sqlite)
97 #:use-module (gnu packages ssh)
98 #:use-module (gnu packages textutils)
99 #:use-module (gnu packages tls)
100 #:use-module (gnu packages valgrind)
101 #:use-module (gnu packages wm)
102 #:use-module (gnu packages wxwidgets)
103 #:use-module (gnu packages xml)
104 #:use-module (ice-9 match))
106 ;; The gnu.org ‘home’ for this GNU project is a directory listing with 1.6.0 as
107 ;; the latest version. The author's git repository, mentioned in the 1.6.0
108 ;; README and otherwise legit-looking, contains a proper 1.7.0 release tarball
109 ;; with many OUI updates. Use it, even though it's also several years old now.
110 (define-public macchanger
117 (uri (string-append "https://github.com/alobbs/macchanger/"
118 "releases/download/" version "/"
119 name "-" version ".tar.gz"))
121 (base32 "1gs5m0jxyprdp00w2qkbnaqm3ilkjz0q1gqdg4nzdm8g4xy73qns"))))
122 (build-system gnu-build-system)
123 (home-page "https://www.gnu.org/software/macchanger/")
124 (synopsis "Viewing and manipulating MAC addresses of network interfaces")
125 (description "GNU MAC Changer is a utility for viewing and changing MAC
126 addresses of networking devices. New addresses may be set explicitly or
127 randomly. They can include MAC addresses of the same or other hardware vendors
128 or, more generally, MAC addresses of the same category of hardware.")
129 (license license:gpl2+)))
131 (define-public miredo
137 (uri (string-append "http://www.remlab.net/files/miredo/miredo-"
141 "0j9ilig570snbmj48230hf7ms8kvcwi2wblycqrmhh85lksd49ps"))))
142 (build-system gnu-build-system)
145 (modify-phases %standard-phases
146 ;; The checkconf test in src/ requires network access.
148 'check 'disable-checkconf-test
150 (substitute* "src/Makefile"
151 (("^TESTS = .*") "TESTS = \n"))
153 (home-page "http://www.remlab.net/miredo/")
154 (synopsis "Teredo IPv6 tunneling software")
156 "Miredo is an implementation (client, relay, server) of the Teredo
157 specification, which provides IPv6 Internet connectivity to IPv6 enabled hosts
158 residing in IPv4-only networks, even when they are behind a NAT device.")
159 (license license:gpl2+)))
168 "http://www.dest-unreach.org/socat/download/socat-"
172 "0lcj6zpra33xhgvhmz9l3cqz10v8ybafb8dd1yqkwf1rhy01ymp3"))))
173 (build-system gnu-build-system)
174 (arguments '(#:tests? #f)) ;no 'check' phase
175 (inputs `(("openssl" ,openssl)))
176 (home-page "http://www.dest-unreach.org/socat/")
178 "Open bidirectional communication channels from the command line")
180 "socat is a relay for bidirectional data transfer between two independent
181 data channels---files, pipes, devices, sockets, etc. It can create
182 \"listening\" sockets, named pipes, and pseudo terminals.
184 socat can be used, for instance, as TCP port forwarder, as a shell interface
185 to UNIX sockets, IPv6 relay, for redirecting TCP oriented programs to a serial
186 line, to logically connect serial lines on different computers, or to
187 establish a relatively secure environment (su and chroot) for running client
188 or server shell scripts with network connections.")
189 (license license:gpl2)))
191 (define-public tcp-wrappers
193 (name "tcp-wrappers")
198 "ftp://ftp.porcupine.org/pub/security/tcp_wrappers_"
202 "0p9ilj4v96q32klavx0phw9va21fjp8vpk11nbh6v2ppxnnxfhwm"))))
203 (build-system gnu-build-system)
206 (modify-phases %standard-phases
207 (delete 'configure) ; there is no configure script
208 (delete 'check) ; there are no tests
212 ;; Upstream doesn't generate a shared library. So we have to do it.
213 (setenv "CC" "gcc -fno-builtin -fPIC")
214 (substitute* "Makefile"
215 (("^(all[^\n]*)" line) (string-append line " libwrap.so\n
216 libwrap.so: $(LIB_OBJ)\n
217 \tgcc -shared $^ -o $@\n")))
218 ;; Deal with some gcc breakage.
219 (substitute* "percent_m.c"
220 (("extern char .sys_errlist.*;") ""))
221 (substitute* "scaffold.c"
222 (("extern char .malloc.*;") ""))
223 ;; This, believe it or not, is the recommended way to build!
224 (invoke "make" "REAL_DAEMON_DIR=/etc" "linux")))
225 ;; There is no make install stage, so we have to do it ourselves.
228 (let ((out (assoc-ref %outputs "out"))
229 (man-pages `("hosts_access.3"
237 (headers `("tcpd.h"))
238 (bins `("safe_finger"
245 (install-file x (string-append out "/include")))
249 (install-file x (string-append out "/share/man/man"
250 (string-take-right x 1))))
254 (install-file x (string-append out "/lib/")))
258 (install-file x (string-append out "/bin/")))
261 (home-page "http://www.porcupine.org")
262 (synopsis "Monitor and filter incoming requests for network services")
263 (description "With this package you can monitor and filter incoming requests for
264 network services. It includes a library which may be used by daemons to
265 transparently check connection attempts against an access control list.")
266 (license (license:non-copyleft "file://DISCLAIMER"
267 "See the file DISCLAIMER in the distribution."))))
270 (define-public zeromq
276 (uri (string-append "http://download.zeromq.org/zeromq-"
280 "00vvwhgcdr1lva2pavicvy92iad0hj8cf71n702hv6blw1kjj2z0"))))
281 (build-system gnu-build-system)
282 (home-page "http://zeromq.org")
283 (synopsis "Library for message-based applications")
285 "The 0MQ lightweight messaging kernel is a library which extends the
286 standard socket interfaces with features traditionally provided by specialized
287 messaging middle-ware products. 0MQ sockets provide an abstraction of
288 asynchronous message queues, multiple messaging patterns, message
289 filtering (subscriptions), seamless access to multiple transport protocols and
291 (license license:lgpl3+)))
300 "https://github.com/zeromq/" name
301 "/releases/download/v" version
302 "/" name "-" version ".tar.gz"))
305 "1h5hrcsc30fcwb032vy5gxkq4j4vv1y4dj460rfs1hhxi0cz83zh"))))
306 (build-system gnu-build-system)
308 '(;; TODO Tests fail for some reason:
310 ;; * zbeacon: OK (skipping test, no UDP broadcasting)
311 ;; E: (czmq_selftest) 18-02-24 16:25:52 No broadcast interface found, (ZSYS_INTERFACE=lo)
312 ;; make[2]: *** [Makefile:2245: check-local] Segmentation fault
313 ;; make[2]: Leaving directory '/tmp/guix-build-czmq-4.1.0.drv-0/czmq-4.1.0'
314 ;; make[1]: *** [Makefile:2032: check-am] Error 2
315 ;; make[1]: Leaving directory '/tmp/guix-build-czmq-4.1.0.drv-0/czmq-4.1.0'
316 ;; make: *** [Makefile:1588: check-recursive] Error 1
317 ;; phase `check' failed after 19.4 seconds
319 #:configure-flags '("--enable-drafts")))
321 `(("zeromq" ,zeromq)))
322 (home-page "http://zeromq.org")
323 (synopsis "High-level C bindings for ØMQ")
325 "czmq provides bindings for the ØMQ core API that hides the differences
326 between different versions of ØMQ.")
327 (license license:mpl2.0)))
329 (define-public cppzmq
331 (commit "d9f0f016c07046742738c65e1eb84722ae32d7d4"))
334 (version (string-append "4.2.2-" revision "."
335 (string-take commit 7)))
339 (url "https://github.com/zeromq/cppzmq")
343 "1gmqlm00y6xpa5m6d4ajq3ww63n2w7h4sy997wj81vcqmqx45b1f"))
344 (file-name (string-append name "-" version "-checkout"))))
345 (build-system cmake-build-system)
346 (arguments '(#:tests? #f)) ; No tests.
348 `(("pkg-config" ,pkg-config)))
350 `(("zeromq" ,zeromq)))
351 (home-page "http://zeromq.org")
352 (synopsis "C++ bindings for the ØMQ messaging library")
354 "This package provides header-only C++ bindings for ØMQ. The header
355 files contain direct mappings of the abstractions provided by the ØMQ C API.")
356 (license license:expat))))
358 (define-public librdkafka
365 "https://github.com/edenhill/librdkafka/archive/"
367 (file-name (string-append name "-" version ".tar.gz"))
370 "10ldx7g7ymmg17snzx78vy4n8ma1rjx0agzi34g15j2fk867xmas"))))
371 (build-system gnu-build-system)
374 (modify-phases %standard-phases
376 ;; its custom configure script doesn't understand 'CONFIG_SHELL'.
377 (lambda* (#:key outputs #:allow-other-keys)
378 (let ((out (assoc-ref outputs "out")))
379 ;; librdkafka++.so lacks RUNPATH for librdkafka.so
381 (string-append "-Wl,-rpath=" out "/lib"))
382 (invoke "./configure"
383 (string-append "--prefix=" out))))))))
385 `(("python" ,python-wrapper)))
387 `(("zlib" ,zlib))) ; in the Libs.private field of rdkafka.pc
388 (home-page "https://github.com/edenhill/librdkafka")
389 (synopsis "Apache Kafka C/C++ client library")
391 "librdkafka is a C library implementation of the Apache Kafka protocol,
392 containing both Producer and Consumer support.")
393 (license license:bsd-2)))
395 (define-public libndp
401 (uri (string-append "http://libndp.org/files/"
402 name "-" version ".tar.gz"))
405 "1dlinhl39va00v55qygjc9ap77yqf7xvn4rwmvdr49xhzzxhlj1c"))))
406 (build-system gnu-build-system)
407 (home-page "http://libndp.org/")
408 (synopsis "Library for Neighbor Discovery Protocol")
410 "libndp contains a library which provides a wrapper for IPv6 Neighbor
411 Discovery Protocol. It also provides a tool named ndptool for sending and
412 receiving NDP messages.")
413 (license license:lgpl2.1+)))
415 (define-public ethtool
421 (uri (string-append "mirror://kernel.org/software/network/"
422 name "/" name "-" version ".tar.xz"))
425 "11f5503mgcwjn1q4dvhjiqwnw3zmp2gbhirjvgfr71y72ys1wsy4"))))
426 (build-system gnu-build-system)
427 (home-page "https://www.kernel.org/pub/software/network/ethtool/")
428 (synopsis "Display or change Ethernet device settings")
430 "ethtool can be used to query and change settings such as speed,
431 auto-negotiation and checksum offload on many network devices, especially
433 (license license:gpl2)))
435 (define-public ifstatus
441 (uri (string-append "mirror://sourceforge/ifstatus/ifstatus/"
442 "ifstatus%20v" version "/ifstatus-v"
446 "045cbsq9ps32j24v8y5hpyqxnqn9mpaf3mgvirlhgpqyb9jsia0c"))
447 (modules '((guix build utils)))
450 (substitute* "Main.h"
451 (("#include <stdio.h>")
452 "#include <stdio.h>\n#include <stdlib.h>"))
454 (build-system gnu-build-system)
456 '(#:tests? #f ; no "check" target
458 (modify-phases %standard-phases
459 (delete 'configure) ; no configure script
461 (lambda* (#:key outputs #:allow-other-keys)
462 (let* ((out (assoc-ref outputs "out"))
463 (bin (string-append out "/bin")))
465 (copy-file "ifstatus"
466 (string-append bin "/ifstatus")))
468 (inputs `(("ncurses" ,ncurses)))
469 (home-page "http://ifstatus.sourceforge.net/graphic/index.html")
470 (synopsis "Text based network interface status monitor")
472 "IFStatus is a simple, easy-to-use program for displaying commonly
473 needed/wanted real-time traffic statistics of multiple network
474 interfaces, with a simple and efficient view on the command line. It is
475 intended as a substitute for the PPPStatus and EthStatus projects.")
476 (license license:gpl2+)))
484 (uri (string-append "mirror://sourceforge/nload/nload/" version
485 "/nload-" version ".tar.gz"))
488 "1rb9skch2kgqzigf19x8bzk211jdfjfdkrcvaqyj89jy2pkm3h61"))))
489 (build-system gnu-build-system)
490 (inputs `(("ncurses" ,ncurses)))
491 (home-page "http://www.roland-riegel.de/nload/")
492 (synopsis "Realtime console network usage monitor")
494 "Nload is a console application which monitors network traffic and
495 bandwidth usage in real time. It visualizes the in- and outgoing traffic using
496 two graphs, and provides additional info like total amount of transferred data
497 and min/max network usage.")
498 (license license:gpl2+)))
500 (define-public iodine
506 (uri (string-append "http://code.kryo.se/" name "/"
507 name "-" version ".tar.gz"))
510 "0gh17kcxxi37k65zm4gqsvbk3aw7yphcs3c02pn1c4s2y6n40axd"))))
511 (build-system gnu-build-system)
514 (modify-phases %standard-phases
516 (add-before 'build 'fix-ifconfig-path
517 ;; This package works only with the net-tools version of ifconfig.
518 (lambda* (#:key inputs #:allow-other-keys)
519 (substitute* "src/tun.c"
521 (string-append (assoc-ref inputs "net-tools") "/bin/")))
523 (add-before 'check 'delete-failing-tests
524 ;; Avoid https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802105.
526 (substitute* "tests/common.c"
527 (("tcase_add_test\\(tc, \
528 test_parse_format_ipv(4(|_listen_all|_mapped_ipv6)|6)\\);")
531 #:make-flags (list "CC=gcc"
532 (string-append "prefix=" (assoc-ref %outputs "out")))
533 #:test-target "test"))
534 (inputs `(("net-tools" ,net-tools)
536 (native-inputs `(("check" ,check)
537 ("pkg-config" ,pkg-config)))
538 (home-page "http://code.kryo.se/iodine/")
539 (synopsis "Tunnel IPv4 data through a DNS server")
540 (description "Iodine tunnels IPv4 data through a DNS server. This
541 can be useful in different situations where internet access is firewalled, but
542 DNS queries are allowed. The bandwidth is asymmetrical, with limited upstream
543 and up to 1 Mbit/s downstream.")
544 ;; src/md5.[ch] is released under the zlib license
545 (license (list license:isc license:zlib))))
554 (uri (string-append "mirror://debian/pool/main/w/whois/"
555 name "_" version ".tar.xz"))
558 "0l7chmlvsl22r5cfm6fpm999z2n3sjrnx3ha8f8kf42cn4gmkriy"))))
559 (build-system gnu-build-system)
561 `(#:tests? #f ; no test suite
562 #:make-flags (list "CC=gcc"
563 (string-append "prefix=" (assoc-ref %outputs "out")))
565 (modify-phases %standard-phases
566 (delete 'configure) ; no configure script
567 (add-before 'build 'setenv
569 (setenv "HAVE_ICONV" "1")
572 `(("libidn2" ,libidn2)))
574 `(("gettext" ,gettext-minimal)
576 ("pkg-config" ,pkg-config)))
577 (synopsis "Intelligent client for the WHOIS directory service")
579 "whois searches for an object in a @dfn{WHOIS} (RFC 3912) database.
580 It is commonly used to look up the registered users or assignees of an Internet
581 resource, such as a domain name, an IP address block, or an autonomous system.
582 It can automatically select the appropriate server for most queries.
584 For historical reasons, this package also includes @command{mkpasswd}, which
585 encrypts passwords using @code{crypt(3)} and is unrelated to the Expect command
587 (home-page "https://github.com/rfc1036/whois")
588 (license license:gpl2+)))
590 (define-public wireshark
597 (uri (string-append "https://www.wireshark.org/download/src/wireshark-"
601 "0qz8a1ays63712pq1v7nnw7c57zlqkcifq7himfv5nsv0zm36ya8"))))
602 (build-system gnu-build-system)
603 (inputs `(("c-ares" ,c-ares)
607 ("libgcrypt" ,libgcrypt)
613 ("lua" ,lua-5.2) ;Lua 5.3 unsupported
615 ("portaudio" ,portaudio)
617 ("qtmultimedia" ,qtmultimedia)
621 (native-inputs `(("perl" ,perl)
622 ("pkg-config" ,pkg-config)
623 ("python" ,python-wrapper)
624 ("qttools" ,qttools)))
627 (list (string-append "--with-c-ares=" (assoc-ref %build-inputs "c-ares"))
628 (string-append "--with-krb5=" (assoc-ref %build-inputs "krb5"))
629 (string-append "--with-libcap=" (assoc-ref %build-inputs "libcap"))
630 (string-append "--with-libssh=" (assoc-ref %build-inputs "libssh"))
631 (string-append "--with-lua=" (assoc-ref %build-inputs "lua"))
632 (string-append "--with-lz4=" (assoc-ref %build-inputs "lz4"))
633 (string-append "--with-pcap=" (assoc-ref %build-inputs "libpcap"))
634 (string-append "--with-portaudio="
635 (assoc-ref %build-inputs "portaudio"))
636 (string-append "--with-sbc=" (assoc-ref %build-inputs "sbc"))
637 (string-append "--with-snappy=" (assoc-ref %build-inputs "snappy"))
638 (string-append "--with-zlib=" (assoc-ref %build-inputs "zlib")))
640 (modify-phases %standard-phases
641 (add-after 'unpack 'patch-source
643 ;; Fix build against Qt 5.11.
644 (substitute* "ui/qt/packet_format_group_box.cpp"
645 (("#include <QStyle>") "#include <QStyle>
646 #include <QStyleOption>"))
647 (substitute* "ui/qt/time_shift_dialog.cpp"
648 (("#include <ui/time_shift.h>") "#include <ui/time_shift.h>
649 #include <QStyleOption>"))
650 (substitute* "ui/qt/wireless_frame.cpp"
651 (("#include <QProcess>") "#include <QProcess>
652 #include <QAbstractItemView>"))
654 (synopsis "Network traffic analyzer")
655 (description "Wireshark is a network protocol analyzer, or @dfn{packet
656 sniffer}, that lets you capture and interactively browse the contents of
658 (home-page "https://www.wireshark.org/")
659 (license license:gpl2+)))
668 (uri (string-append "https://fping.org/dist/fping-"
672 "0wxbvm480vij8dy4v1pi8f0c7010rx6bidg3qhsvkdf2ijhy4cr7"))))
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 "0vfzkw1avybjkf6fwqpf5m4kjz4c0qkkmj62f3jd0zx00vh5ly1d"))))
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 httping
742 (uri (string-append "https://www.vanheusden.com/httping/httping-"
746 "1y7sbgkhgadmd93x1zafqc4yp26ssiv16ni5bbi9vmvvdl55m29y"))))
747 (build-system gnu-build-system)
749 `(("gettext" ,gettext-minimal)))
753 ("openssl" ,openssl)))
755 `(#:make-flags (list "CC=gcc"
756 (string-append "DESTDIR=" (assoc-ref %outputs "out"))
758 #:tests? #f)) ; no tests
759 (home-page "https://www.vanheusden.com/httping/")
760 (synopsis "Web server latency and throughput monitor")
762 "httping measures how long it takes to connect to a web server, send an
763 HTTP(S) request, and receive the reply headers. It is somewhat similar to
764 @command{ping}, but can be used even in cases where ICMP traffic is blocked
765 by firewalls or when you want to monitor the response time of the actual web
766 application stack itself.")
767 (license license:gpl2))) ; with permission to link with OpenSSL
769 (define-public httpstat
776 (uri (pypi-uri "httpstat" version))
779 "1chw2nk56vaq87aba012a270k9na06hfx1pfbsrc3jfvlc2kb9hb"))))
780 (build-system python-build-system)
781 (inputs `(("curl" ,curl)))
784 (modify-phases %standard-phases
785 (add-before 'build 'fix-curl-path
786 (lambda* (#:key inputs #:allow-other-keys)
787 (substitute* "httpstat.py"
788 (("ENV_CURL_BIN.get\\('curl'\\)")
789 (string-append "ENV_CURL_BIN.get('"
790 (assoc-ref inputs "curl")
793 (home-page "https://github.com/reorx/httpstat")
794 (synopsis "Visualize curl statistics")
796 "@command{httpstat} is a tool to visualize statistics from the
797 @command{curl} HTTP client. It acts as a wrapper for @command{curl} and
798 prints timing information for each step of the HTTP request (DNS lookup,
799 TCP connection, TLS handshake and so on) in the terminal.")
800 (license license:expat)))
802 (define-public bwm-ng
809 (uri (string-append "https://www.gropp.org/bwm-ng/bwm-ng-"
813 "1w0dwpjjm9pqi613i8glxrgca3rdyqyp3xydzagzr5ndc34z6z02"))))
814 (build-system gnu-build-system)
815 (inputs `(("ncurses" ,ncurses)))
816 (synopsis "Console based live network and disk I/O bandwidth monitor")
817 (description "Bandwidth Monitor NG is a small and simple console based
818 live network and disk I/O bandwidth monitor.")
819 (home-page "https://www.gropp.org/?id=projects&sub=bwm-ng")
820 (license license:gpl2)))
822 (define-public aircrack-ng
829 (uri (string-append "https://download.aircrack-ng.org/aircrack-ng-"
833 "1jl30d0kibc82447fr3lgw75arik0l9729k94z76l7vl51y8mq4a"))))
834 (build-system gnu-build-system)
836 `(("autoconf" ,autoconf)
837 ("automake" ,automake)
839 ("pkg-config" ,pkg-config)
842 `(("libgcrypt" ,libgcrypt)
851 (list "--with-experimental=yes" ; build wesside-ng, etc.
852 "--with-gcrypt") ; openssl's the default
853 #:phases (modify-phases %standard-phases
854 (add-before 'bootstrap 'patch-evalrev
856 ;; Called by ./autogen.sh below, before the default
857 ;; ‘patch-shebangs’ phase has had a chance to run.
858 (substitute* "evalrev"
864 ;; Patch shebangs in generated files before running
866 (setenv "NOCONFIGURE" "please")
867 (invoke "bash" "./autogen.sh")))
868 (add-after 'build 'absolutize-tools
869 (lambda* (#:key inputs #:allow-other-keys)
870 (let ((ethtool (string-append (assoc-ref inputs "ethtool")
872 (substitute* "scripts/airmon-ng"
874 (string-append ethtool " ")))
876 (home-page "https://www.aircrack-ng.org")
877 (synopsis "Assess WiFi network security")
879 "Aircrack-ng is a complete suite of tools to assess WiFi network
880 security. It focuses on different areas of WiFi security: monitoring,
881 attacking, testing, and cracking. All tools are command-line driven, which
882 allows for heavy scripting.")
883 (license (list license:gpl2+ license:bsd-3))))
885 (define-public perl-data-validate-ip
887 (name "perl-data-validate-ip")
893 "mirror://cpan/authors/id/D/DR/DROLSKY/Data-Validate-IP-"
896 (base32 "1mmppyzsh1w2z2h86kvzqxy56wxgs62a3kf8nvcnz76bblir5ap1"))))
897 (build-system perl-build-system)
899 `(("perl-test-requires" ,perl-test-requires)))
901 `(("perl-netaddr-ip" ,perl-netaddr-ip)))
902 (home-page "https://metacpan.org/release/Data-Validate-IP")
903 (synopsis "IPv4 and IPv6 validation methods")
905 "This module provides several IP address validation subroutines that both
906 validate and untaint their input. This includes both basic validation
907 (@code{is_ipv4()} and @code{is_ipv6()}) and special cases like checking whether
908 an address belongs to a specific network or whether an address is public or
909 private (reserved).")
910 (license license:perl-license)))
912 (define-public perl-net-dns
914 (name "perl-net-dns")
921 (string-append "https://www.net-dns.org/download/Net-DNS-"
923 (string-append "mirror://cpan/authors/id/N/NL/NLNETLABS/Net-DNS-"
927 "1lx902cbvlfl63bqfdrnyavmfwbjvrfdnwgdc1dgs1wpzja19kjj"))))
928 (build-system perl-build-system)
930 `(("perl-digest-hmac" ,perl-digest-hmac)))
931 (home-page "https://www.net-dns.org/")
933 "Perl Interface to the Domain Name System")
934 (description "Net::DNS is the Perl Interface to the Domain Name System.")
935 (license license:x11)))
937 (define-public perl-socket6
939 (name "perl-socket6")
945 "mirror://cpan/authors/id/U/UM/UMEMOTO/Socket6-"
950 "054izici8klfxs8hr5rljib28plijpsfymy99xbzdp047bx1b2a6"))))
951 (build-system perl-build-system)
954 (modify-phases %standard-phases
956 (lambda* (#:key outputs #:allow-other-keys)
957 (let* ((out (assoc-ref outputs "out"))
958 (args `("Makefile.PL"
959 ,(string-append "PREFIX=" out)
960 "INSTALLDIRS=site")))
961 (setenv "CONFIG_SHELL" (which "sh"))
962 (apply invoke "perl" args)))))))
963 (home-page "https://metacpan.org/release/Socket6")
965 "IPv6 related part of the C socket.h defines and structure manipulators for Perl")
966 (description "Socket6 binds the IPv6 related part of the C socket header
967 definitions and structure manipulators for Perl.")
968 (license license:bsd-3)))
970 (define-public perl-net-dns-resolver-programmable
972 (name "perl-net-dns-resolver-programmable")
978 "mirror://cpan/authors/id/J/JM/JMEHNLE/net-dns-resolver-programmable/"
979 "Net-DNS-Resolver-Programmable-" version ".tar.gz"))
982 "1v3nl2kaj4fs55n1617n53q8sa3mir06898vpy1rq98zjih24h4d"))
984 (search-patches "perl-net-dns-resolver-programmable-fix.patch"))))
985 (build-system perl-build-system)
987 `(("perl-module-build" ,perl-module-build)))
988 (inputs `(("perl-net-dns" ,perl-net-dns)))
990 "https://metacpan.org/release/Net-DNS-Resolver-Programmable")
992 "Programmable DNS resolver class for offline emulation of DNS")
993 (description "Net::DNS::Resolver::Programmable is a programmable DNS resolver for
994 offline emulation of DNS.")
995 (license license:perl-license)))
997 (define-public perl-netaddr-ip
999 (name "perl-netaddr-ip")
1005 "mirror://cpan/authors/id/M/MI/MIKER/NetAddr-IP-"
1010 "1rx0dinrz9fk9qcg4rwqq5n1dm3xv2arymixpclcv2q2nzgq4npc"))))
1011 (build-system perl-build-system)
1014 (modify-phases %standard-phases
1016 (lambda* (#:key outputs #:allow-other-keys)
1017 (let* ((out (assoc-ref outputs "out"))
1018 (args `("Makefile.PL"
1019 ,(string-append "PREFIX=" out)
1020 "INSTALLDIRS=site")))
1021 (setenv "CONFIG_SHELL" (which "sh"))
1022 (apply invoke "perl" args)))))))
1024 "https://metacpan.org/release/NetAddr-IP")
1026 "Manages IPv4 and IPv6 addresses and subnets")
1027 (description "NetAddr::IP manages IPv4 and IPv6 addresses and subsets.")
1028 (license license:perl-license)))
1030 (define-public perl-net-patricia
1032 (name "perl-net-patricia")
1038 "mirror://cpan/authors/id/G/GR/GRUBER/Net-Patricia-"
1043 "0ln5f57vc8388kyh9vhx2infrdzfhbpgyby74h1qsnhwds95m0vh"))))
1044 (build-system perl-build-system)
1046 `(("perl-net-cidr-lite" ,perl-net-cidr-lite)
1047 ("perl-socket6" ,perl-socket6)))
1049 "https://metacpan.org/release/Net-Patricia")
1051 "Patricia Trie Perl module for fast IP address lookups")
1053 "Net::Patricia does IP address lookups quickly in Perl.")
1054 ;; The bindings are licensed under GPL2 or later.
1055 ;; libpatricia is licensed under 2-clause BSD.
1056 (license (list license:gpl2+ license:bsd-2))))
1058 (define-public perl-net-cidr-lite
1060 (name "perl-net-cidr-lite")
1066 "mirror://cpan/authors/id/D/DO/DOUGW/Net-CIDR-Lite-"
1071 "14shj73zbqmfjbp0qz1fs9j4p2dpvz5hfkm4qfdjbydflbl2b8fg"))))
1072 (build-system perl-build-system)
1074 "https://metacpan.org/release/Net-CIDR-Lite")
1076 "Perl extension for merging IPv4 or IPv6 CIDR addresses")
1077 (description "Net::CIDR::Lite merges IPv4 or IPv6 CIDR addresses.")
1078 (license license:gpl1+)))
1080 ;; TODO: Use the geolite-mirror-simple.pl script from the example
1081 ;; directory to stay current with the databases. How?
1082 (define-public perl-geo-ip
1084 (name "perl-geo-ip")
1090 "mirror://cpan/authors/id/M/MA/MAXMIND/Geo-IP-"
1095 "1fka8fr7fw6sh3xa9glhs1zjg3s2gfkhi7n7da1l2m2wblqj0c0n"))))
1096 (build-system perl-build-system)
1097 (home-page "https://metacpan.org/release/Geo-IP")
1099 "Look up location and network information by IP Address in Perl")
1100 (description "The Perl module 'Geo::IP'. It looks up location and network
1101 information by IP Address.")
1102 (license license:perl-license)))
1104 (define-public perl-io-socket-inet6
1106 (name "perl-io-socket-inet6")
1112 "mirror://cpan/authors/id/S/SH/SHLOMIF/IO-Socket-INET6-"
1117 "1fqypz6qa5rw2d5y2zq7f49frwra0aln13nhq5gi514j2zx21q45"))))
1118 (build-system perl-build-system)
1120 `(("perl-module-build" ,perl-module-build)
1121 ("perl-test-pod" ,perl-test-pod)
1122 ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
1123 (inputs `(("perl-socket6" ,perl-socket6)))
1124 (arguments `(;; Need network socket API
1127 "https://metacpan.org/release/IO-Socket-INET6")
1129 "Perl object interface for AF_INET/AF_INET6 domain sockets")
1130 (description "IO::Socket::INET6 is an interface for AF_INET/AF_INET6 domain
1132 (license license:perl-license)))
1134 (define-public libproxy
1140 (uri (string-append "https://github.com/libproxy/libproxy/"
1141 "releases/download/" version "/libproxy-"
1145 "0kvdrazlzwia876w988cmlypp253gwy6idlh8mjk958c29jb8kb5"))))
1146 (build-system cmake-build-system)
1148 `(("pkg-config" ,pkg-config)))
1152 ("network-manager" ,network-manager)))
1155 (modify-phases %standard-phases
1158 (invoke "ctest" "-E" "url-test"))))))
1159 (synopsis "Library providing automatic proxy configuration management")
1160 (description "Libproxy handles the details of HTTP/HTTPS proxy
1161 configuration for applications across all scenarios. Applications using
1162 libproxy only have to specify which proxy to use.")
1163 (home-page "https://libproxy.github.io/libproxy")
1164 (license license:lgpl2.1+)))
1166 (define-public proxychains-ng
1168 (name "proxychains-ng")
1173 (uri (string-append "http://ftp.barfooze.de/pub/sabotage/tarballs/"
1174 name "-" version ".tar.xz"))
1177 "0418fv8hgf43rzrxxlybg49jz2h6w8inndhb6v1184k4cwzjnl3p"))))
1178 (build-system gnu-build-system)
1180 `(#:tests? #f ; there are no tests
1182 (modify-phases %standard-phases
1183 (add-after 'unpack 'fix-configure-script
1185 ;; The configure script is very intolerant to unknown arguments,
1186 ;; such as "CONFIG_SHELL".
1187 (substitute* "configure"
1188 (("\\*\\) break ;;" line)
1189 (string-append "[A-Z]*) shift ;;\n"
1192 (add-before 'configure 'set-up-environment
1196 (synopsis "Redirect any TCP connection through a proxy or proxy chain")
1197 (description "Proxychains-ng is a preloader which hooks calls to sockets
1198 in dynamically linked programs and redirects them through one or more SOCKS or
1200 (home-page "https://github.com/rofl0r/proxychains-ng")
1201 (license license:gpl2+)))
1209 (uri (string-append "http://enet.bespin.org/download/"
1210 name "-" version ".tar.gz"))
1213 "0p53mnmjbm56wizwraznynx13fcibcxiqny110dp6a5a3w174q73"))))
1214 (build-system gnu-build-system)
1216 `(("pkg-config" ,pkg-config)))
1218 "Network communication layer on top of UDP")
1220 "ENet's purpose is to provide a relatively thin, simple and robust network
1221 communication layer on top of UDP. The primary feature it provides is optional
1222 reliable, in-order delivery of packets. ENet omits certain higher level
1223 networking features such as authentication, server discovery, encryption, or
1224 other similar tasks that are particularly application specific so that the
1225 library remains flexible, portable, and easily embeddable.")
1226 (home-page "http://enet.bespin.org")
1227 (license license:expat)))
1235 (uri (string-append "https://github.com/yrutschle/sslh/archive/v"
1237 (file-name (string-append name "-" version ".tar.gz"))
1240 "0pd8hifa9h0rm7vms3k6ic1k29xigrlv2idc5wgcafmb1v1243di"))))
1241 (build-system gnu-build-system)
1243 `(;; Test dependencies.
1246 ("perl-io-socket-inet6" ,perl-io-socket-inet6)
1247 ("perl-socket6" ,perl-socket6)
1249 ("valgrind" ,valgrind)))
1251 `(("libcap" ,libcap)
1252 ("libconfig" ,libconfig)
1254 ("tcp-wrappers" ,tcp-wrappers)))
1257 (modify-phases %standard-phases
1258 (delete 'configure) ; no configure script
1259 (add-before 'check 'fix-tests
1262 (("\"/tmp") "$ENV{\"TMPDIR\"} . \"")
1263 ;; The Guix build environment lacks ‘ip6-localhost’.
1264 (("ip6-localhost") "localhost"))
1266 ;; Many of these files are mentioned in the man page. Install them.
1267 (add-after 'install 'install-documentation
1268 (lambda* (#:key outputs #:allow-other-keys)
1269 (let* ((out (assoc-ref outputs "out"))
1270 (doc (string-append out "/share/doc/sslh")))
1271 (install-file "README.md" doc)
1274 (install-file file (string-append doc "/examples")))
1275 (append (find-files "." "\\.cfg")
1276 (find-files "scripts"))))
1278 #:make-flags (list "CC=gcc"
1281 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1282 #:test-target "test"))
1283 (home-page "https://www.rutschle.net/tech/sslh/README.html")
1284 (synopsis "Applicative network protocol demultiplexer")
1286 "sslh is a network protocol demultiplexer. It acts like a switchboard,
1287 accepting connections from clients on one port and forwarding them to different
1288 servers based on the contents of the first received data packet. Detection of
1289 common protocols like HTTP(S), SSL, SSH, OpenVPN, tinc, and XMPP is already
1290 implemented, but any other protocol that matches a regular expression can be
1291 added. sslh's name comes from its original application of serving both SSH and
1292 HTTPS on port 443, allowing SSH connections from inside corporate firewalls
1293 that block port 22.")
1294 (license (list license:bsd-2 ; tls.[ch]
1295 license:gpl2+)))) ; everything else
1297 (define-public iperf
1303 (uri (string-append "http://downloads.es.net/pub/iperf"
1304 "/iperf-" version ".tar.gz"))
1307 "0kvk8d0a3dcxc8fisyprbn01y8akxj4sx8ld5dh508p9dx077vx4"))))
1308 (build-system gnu-build-system)
1309 (synopsis "TCP, UDP and SCTP bandwidth measurement tool")
1311 "iPerf is a tool to measure achievable bandwidth on IP networks. It
1312 supports tuning of various parameters related to timing, buffers and
1313 protocols (TCP, UDP, SCTP with IPv4 and IPv6). For each test it reports
1314 the bandwidth, loss, and other parameters.")
1315 (home-page "http://software.es.net/iperf/")
1316 (license (list license:bsd-3 ; Main distribution.
1317 license:ncsa ; src/{units,iperf_locale,tcp_window_size}.c
1318 license:expat ; src/{cjson,net}.[ch]
1319 license:public-domain)))) ; src/portable_endian.h
1321 (define-public nethogs
1327 (uri (string-append "https://github.com/raboof/nethogs/archive/v"
1331 "1k4x8r7s4dgcb6n2rjn28h2yyij92mwm69phncl3597cdxr954va"))
1332 (file-name (string-append name "-" version ".tar.gz"))))
1333 (build-system gnu-build-system)
1335 `(("libpcap" ,libpcap)
1336 ("ncurses" ,ncurses)))
1338 `(#:make-flags `("CC=gcc"
1339 ,(string-append "PREFIX=" %output))
1341 (modify-phases %standard-phases
1342 (delete 'configure)))) ; No ./configure script.
1343 (home-page "https://github.com/raboof/nethogs")
1344 (synopsis "Per-process bandwidth monitor")
1345 (description "NetHogs is a small 'net top' tool for Linux. Instead of
1346 breaking the traffic down per protocol or per subnet, like most tools do, it
1347 groups bandwidth by process.
1349 NetHogs does not rely on a special kernel module to be loaded. If there's
1350 suddenly a lot of network traffic, you can fire up NetHogs and immediately see
1351 which PID is causing this. This makes it easy to identify programs that have
1352 gone wild and are suddenly taking up your bandwidth.")
1353 (license license:gpl2+)))
1355 (define-public nzbget
1362 (uri (string-append "https://github.com/nzbget/nzbget/archive/v"
1364 (file-name (string-append name "-" version ".tar.gz"))
1367 "0q93aqqyzccn5r9sny38499rmg846qdh9pi2v5kvf9m23v54yk60"))
1368 (modules '((guix build utils)))
1370 ;; Reported upstream as <https://github.com/nzbget/nzbget/pull/414>.
1372 (substitute* "daemon/connect/TlsSocket.cpp"
1373 (("gnutls_certificate-verification_status_print")
1374 "gnutls_certificate_verification_status_print"))
1379 (string-append "--with-libcurses-includes="
1380 (assoc-ref %build-inputs "ncurses") "/include")
1381 (string-append "--with-libcurses-libraries="
1382 (assoc-ref %build-inputs "ncurses") "/lib")
1383 (string-append "--with-tlslib=GnuTLS"))))
1384 (build-system gnu-build-system)
1385 (inputs `(("gnutls" ,gnutls)
1386 ("libxml2" ,libxml2)
1387 ("ncurses" ,ncurses)
1389 (native-inputs `(("pkg-config" ,pkg-config)))
1390 (home-page "https://github.com/nzbget/nzbget")
1391 (synopsis "Usenet binary file downloader")
1393 "NZBGet is a binary newsgrabber, which downloads files from Usenet based
1394 on information given in @code{nzb} files. NZBGet can be used in standalone
1395 and in server/client modes. In standalone mode, you pass NZBGet @command{nzb}
1396 files as command-line parameters and it downloads them and exits. NZBGet also
1397 contains a Web interface. Its server can be controlled through remote
1398 procedure calls (RPCs).")
1399 (license license:gpl2+)))
1401 (define-public openvswitch
1403 (name "openvswitch")
1408 "http://openvswitch.org/releases/openvswitch-"
1412 "14rqqhfyv49irz8ag0qbv9jn8z0bn3qzxir3r074y16p4sg4674d"))))
1413 (build-system gnu-build-system)
1415 '(;; FIXME: many tests fail with:
1417 ;; test -e $OVS_RUNDIR/ovs-vswitchd.pid
1418 ;; ovs-appctl -t ovs-vswitchd exit
1423 "--localstatedir=/var"
1424 "--with-dbdir=/var/lib/openvswitch")
1426 (modify-phases %standard-phases
1430 ;; Don't try to create directories under /var.
1438 ("pkg-config" ,pkg-config)
1439 ("python" ,python-2)
1441 ("util-linux" ,util-linux)))
1443 `(("python-six" ,python2-six)))
1445 `(("libcap-ng" ,libcap-ng)
1446 ("openssl" ,openssl)))
1447 (synopsis "Virtual network switch")
1448 (home-page "http://www.openvswitch.org/")
1450 "Open vSwitch is a multilayer virtual switch. It is designed to enable
1451 massive network automation through programmatic extension, while still
1452 supporting standard management interfaces and protocols (e.g. NetFlow, sFlow,
1453 IPFIX, RSPAN, CLI, LACP, 802.1ag).")
1454 (license ; see debian/copyright for detail
1455 (list license:lgpl2.1 ; xenserver and utilities/bugtool
1456 license:gpl2 ; datapath
1457 license:bsd-2 license:bsd-3
1458 license:asl2.0)))) ; all other
1460 (define-public python-ipy
1466 (uri (pypi-uri "IPy" version))
1469 "1f6sdrxclifky4gvkf4gvyv5hx3fjh8vzspnfrqki6qm5d9mmnk1"))))
1470 (build-system python-build-system)
1471 (home-page "https://github.com/autocracy/python-ipy/")
1472 (synopsis "Python class and tools for handling IP addresses and networks")
1473 (description "The @code{IP} class allows a comfortable parsing and
1474 handling for most notations in use for IPv4 and IPv6 addresses and
1476 (license license:bsd-3)))
1478 (define-public python2-ipy
1479 (package-with-python2 python-ipy))
1481 (define-public speedtest-cli
1483 (name "speedtest-cli")
1489 (url "https://github.com/sivel/speedtest-cli")
1490 (commit (string-append "v" version))))
1491 (file-name (git-file-name name version))
1494 "0vv2z37g2kgm2dzkfa4bhri92hs0d1acxi8z66gznsl5148q7sdi"))))
1495 (build-system python-build-system)
1496 (home-page "https://github.com/sivel/speedtest-cli")
1497 (synopsis "Internet bandwidth tester")
1499 "Command line interface for testing internet bandwidth using
1501 (license license:asl2.0)))
1503 (define-public tftp-hpa
1509 (uri (string-append "mirror://kernel.org/software/"
1510 "network/tftp/tftp-hpa/tftp-hpa-" version
1514 "12vidchglhyc20znq5wdsbhi9mqg90jnl7qr9qs8hbvaz4fkdvmg"))))
1515 (build-system gnu-build-system)
1516 (arguments `(#:tests? #f)) ; no test target
1517 (synopsis "HPA's tftp client")
1519 "This is a tftp client derived from OpenBSD tftp with some extra options
1520 added and bugs fixed. The source includes readline support but it is not
1521 enabled due to license conflicts between the BSD advertising clause and the GPL.")
1522 (home-page "http://git.kernel.org/cgit/network/tftp/tftp-hpa.git/about/")
1523 ;; Some source files are distributed under a 3-clause BSD license, and
1524 ;; others under a 4-clause BSD license. Refer to the files in the source
1525 ;; distribution for clarification.
1526 (license (list license:bsd-3 license:bsd-4))))
1528 (define-public pidentd
1535 (uri (string-append "https://github.com/ptrrkssn/pidentd/archive/"
1536 "v" version ".tar.gz"))
1537 (file-name (string-append name "-" version ".tar.gz"))
1540 "0y3kd1bkydqkpc1qdff24yswysamsqivvadjy0468qri5730izgc"))))
1541 (build-system gnu-build-system)
1543 `(#:tests? #f)) ; No tests are included
1545 `(("openssl" ,openssl))) ; For the DES library
1546 (home-page "https://www.lysator.liu.se/~pen/pidentd/")
1547 (synopsis "Small Ident Daemon")
1549 "@dfn{Pidentd} (Peter's Ident Daemon) is a identd, which implements a
1550 identification server. Pidentd looks up specific TCP/IP connections and
1551 returns the user name and other information about the connection.")
1552 (license license:public-domain)))
1554 (define-public spiped
1560 (uri (string-append "https://www.tarsnap.com/spiped/spiped-"
1564 "1r51rdcl7nib1yv3yvgd5alwlkkwmr387brqavaklb0p2bwzixz6"))))
1565 (build-system gnu-build-system)
1567 '(#:test-target "test"
1568 #:make-flags (let* ((out (assoc-ref %outputs "out"))
1569 (bindir (string-append out "/bin"))
1570 (man1dir (string-append out "/share/man/man1")))
1571 (list "CC=gcc" ; It tries to invoke `c99`.
1572 (string-append "BINDIR=" bindir)
1573 (string-append "MAN1DIR=" man1dir)))
1575 (modify-phases %standard-phases
1576 (add-after 'unpack 'patch-command-invocations
1578 (substitute* '("Makefile"
1579 "libcperciva/cpusupport/Build/cpusupport.sh"
1580 "libcperciva/POSIX/posix-cflags.sh"
1581 "libcperciva/POSIX/posix-l.sh")
1582 (("command -p") ""))
1584 (delete 'configure) ; No ./configure script.
1585 (add-after 'install 'install-more-docs
1586 (lambda* (#:key outputs #:allow-other-keys)
1587 (let* ((out (assoc-ref %outputs "out"))
1588 (misc (string-append out "/share/doc/spiped")))
1589 (install-file "DESIGN.md" misc)
1592 `(("procps" ,procps))) ; `ps` is used by the test suite.
1594 `(("openssl" ,openssl)))
1595 (home-page "https://www.tarsnap.com/spiped.html")
1596 (synopsis "Create secure pipes between sockets")
1597 (description "Spiped (pronounced \"ess-pipe-dee\") is a utility for creating
1598 symmetrically encrypted and authenticated pipes between socket addresses, so
1599 that one may connect to one address (e.g., a UNIX socket on localhost) and
1600 transparently have a connection established to another address (e.g., a UNIX
1601 socket on a different system). This is similar to 'ssh -L' functionality, but
1602 does not use SSH and requires a pre-shared symmetric key.")
1603 (license license:bsd-2)))
1605 (define-public quagga
1611 (uri (string-append "mirror://savannah/quagga/quagga-"
1615 "1lsksqxij5f1llqn86pkygrf5672kvrqn1kvxghi169hqf1c0r73"))
1617 (search-patches "quagga-reproducible-build.patch"))))
1618 (build-system gnu-build-system)
1619 (native-inputs `(("pkg-config" ,pkg-config)
1621 ("dejagnu" ,dejagnu)))
1622 (inputs `(("readline" ,readline)
1623 ("c-ares" ,c-ares)))
1624 (synopsis "Routing Software Suite")
1625 (description "Quagga is a routing software suite, providing implementations
1626 of OSPFv2, OSPFv3, RIP v1 and v2, RIPng and BGP-4 for Unix platforms.
1628 The Quagga architecture consists of a core daemon, @command{zebra}, which
1629 acts as an abstraction layer to the underlying Unix kernel and presents the
1630 Zserv API over a Unix or TCP stream to Quagga clients. It is these Zserv
1631 clients which typically implement a routing protocol and communicate routing
1632 updates to the zebra daemon.")
1633 (home-page "https://www.nongnu.org/quagga/")
1634 (license license:gpl2+)))
1636 (define-public thc-ipv6
1637 (let ((revision "0")
1638 (commit "4bb72573e0950ce6f8ca2800a10748477020029e"))
1641 (version (git-version "3.4" revision commit))
1645 (url "https://github.com/vanhauser-thc/thc-ipv6.git")
1647 (file-name (git-file-name name version))
1650 "1x5i6vbsddqc2yks7r1a2fw2fk16qxvd6hpzh1lykjfpkal8fdir"))))
1651 (build-system gnu-build-system)
1653 `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1654 #:tests? #f ; No test suite.
1656 (modify-phases %standard-phases
1657 (delete 'configure) ; No ./configure script.
1658 (add-before 'build 'patch-paths
1660 (substitute* "Makefile"
1661 (("/bin/echo") "echo"))
1663 (add-after 'install 'install-more-docs
1664 (lambda* (#:key outputs #:allow-other-keys)
1665 (let* ((out (assoc-ref outputs "out"))
1666 (doc (string-append out "/share/thc-ipv6/doc")))
1667 (install-file "README" doc)
1668 (install-file "HOWTO-INJECT" doc)
1670 ;; TODO Add libnetfilter-queue once packaged.
1672 `(("libpcap" ,libpcap)
1673 ("openssl" ,openssl)
1675 (home-page "https://github.com/vanhauser-thc/thc-ipv6")
1676 (synopsis "IPv6 security research toolkit")
1677 (description "The THC IPv6 Toolkit provides command-line tools and a library
1678 for researching IPv6 implementations and deployments. It requires Linux 2.6 or
1679 newer and only works on Ethernet network interfaces.")
1680 ;; AGPL 3 with exception for linking with OpenSSL. See the 'LICENSE' file in
1681 ;; the source distribution for more information.
1682 (license license:agpl3))))
1691 (uri (string-append "https://github.com/tgraf/bmon/releases/download/v"
1692 version "/bmon-" version ".tar.gz"))
1695 "0ylzriv4pwh76344abzl1w219x188gshbycbna35gsyfp09c7z82"))))
1696 (build-system gnu-build-system)
1698 `(("libconfuse" ,libconfuse)
1700 ("ncurses" ,ncurses)))
1702 `(("pkg-config" ,pkg-config)))
1703 (synopsis "Bandwidth monitor")
1704 (description "bmon is a monitoring and debugging tool to capture
1705 networking-related statistics and prepare them visually in a human-friendly
1706 way. It features various output methods including an interactive curses user
1707 interface and a programmable text output for scripting.")
1708 (home-page "https://github.com/tgraf/bmon")
1709 ;; README.md mentions both the 2-clause BSD and expat licenses, but all
1710 ;; the source files only have expat license headers. Upstream has been
1711 ;; contacted for clarification: https://github.com/tgraf/bmon/issues/59
1712 ;; Update the license field when upstream responds.
1713 (license (list license:bsd-2
1716 (define-public libnet
1724 (url "https://github.com/sam-github/libnet")
1725 (commit (string-append "libnet-" version))))
1726 (file-name (git-file-name name version))
1729 "0cy8w4g5rv963v4p6iq3333kxgdddx2lywp70xf62553a25xhhs4"))))
1730 (build-system gnu-build-system)
1733 (modify-phases %standard-phases
1734 (add-after 'unpack 'chdir
1735 (lambda _ (chdir "libnet") #t))
1736 (add-before 'build 'build-doc
1737 (lambda* (#:key make-flags #:allow-other-keys)
1738 (apply invoke "make" "-C" "doc" "doc"
1741 `(("autoconf" ,autoconf)
1742 ("automake" ,automake)
1743 ("libtool" ,libtool)
1744 ("doxygen" ,doxygen)))
1745 (home-page "https://sourceforge.net/projects/libnet-dev/")
1746 (synopsis "Framework for low-level network packet construction")
1748 "Libnet provides a fairly portable framework for network packet
1749 construction and injection. It features portable packet creation interfaces
1750 at the IP layer and link layer, as well as a host of supplementary
1751 functionality. Using libnet, quick and simple packet assembly applications
1752 can be whipped up with little effort.")
1753 (license license:bsd-2)))
1762 (uri (string-append "ftp://ftp.bitwizard.nl/" name "/"
1763 name "-" version ".tar.gz"))
1765 (base32 "10j3ds3p27jygys4x08kj8fi3zlsgiv72xsfazkah6plwawrv5zj"))))
1766 (build-system gnu-build-system)
1768 `(("libcap" ,libcap)
1769 ("ncurses" ,ncurses)))
1771 ;; The 0.92 release tarball still requires the ‘autoheader’ tool.
1772 `(("autoconf" ,autoconf)))
1774 `(#:tests? #f)) ; tests require network access
1775 (home-page "https://www.bitwizard.nl/mtr/")
1776 (synopsis "Network diagnostic tool")
1778 "@dfn{mtr} (My TraceRoute) combines the functionality of the
1779 @command{traceroute} and @command{ping} programs in a single network diagnostic
1780 tool. @command{mtr} can use several network protocols to detect intermediate
1781 routers (or @dfn{hops}) between the local host and a user-specified destination.
1782 It then continually measures the response time and packet loss at each hop, and
1783 displays the results in real time.")
1784 (license license:gpl2+)))
1786 (define-public strongswan
1793 (uri (string-append "https://download.strongswan.org/strongswan-"
1794 version ".tar.bz2"))
1796 (base32 "095zg7h7qwsc456sqgwb1lhhk29ac3mk5z9gm6xja1pl061driy3"))))
1797 (build-system gnu-build-system)
1800 (modify-phases %standard-phases
1801 (add-before 'build 'patch-command-file-names
1802 (lambda* (#:key inputs #:allow-other-keys)
1803 (substitute* "src/libstrongswan/utils/process.c"
1805 (string-append (assoc-ref inputs "bash") "/bin/sh")))
1807 (substitute* "src/libstrongswan/tests/suites/test_process.c"
1808 (("/bin/sh") (which "sh"))
1809 (("/bin/echo") (which "echo"))
1810 (("cat") (which "cat")))
1812 (add-before 'check 'set-up-test-environment
1813 (lambda* (#:key inputs #:allow-other-keys)
1814 (setenv "TZDIR" (string-append (assoc-ref inputs "tzdata")
1819 ;; Disable bsd-4 licensed plugins
1821 "--disable-blowfish")))
1825 ("libgcrypt" ,libgcrypt)
1826 ("openssl" ,openssl)))
1828 `(("coreutils" ,coreutils)
1829 ("tzdata" ,tzdata-for-tests)))
1830 (synopsis "IKEv1/v2 keying daemon")
1831 (description "StrongSwan is an IPsec implementation originally based upon
1832 the FreeS/WAN project. It contains support for IKEv1, IKEv2, MOBIKE, IPv6,
1834 (home-page "https://strongswan.org/")
1838 ;; src/libcharon/plugins/dnscert/*
1839 ;; src/libcharon/plugins/ext_auth/*
1840 ;; src/libcharon/plugins/vici/ruby/*
1841 ;; src/libcharon/plugins/xauth_pam/xauth_pam_listener.[ch]
1845 ;; src/libstrongswan/plugins/sha3/sha3_keccak.c
1846 license:public-domain
1847 ;; src/libstrongswan/plugins/pkcs11/pkcs11.h
1848 (license:non-copyleft
1849 "file://src/libstrongswan/plugins/pkcs11/pkcs11.h"
1850 "pkcs11 contains a unknown permissive license. View the specific
1851 file for more details.")
1852 ;; These files are not included in the
1853 ;; build, they are disabled through
1854 ;; options to ./configure
1856 ;; src/libstrongswan/plugins/blowfish/bf_enc.c
1857 ;; src/libstrongswan/plugins/blowfish/bf_locl.h
1858 ;; src/libstrongswan/plugins/blowfish/bf_pi.h
1859 ;; src/libstrongswan/plugins/blowfish/bf_skey.c
1860 ;; src/libstrongswan/plugins/blowfish/blowfish_crypter.c
1861 ;; src/libstrongswan/plugins/des/des_crypter.c
1864 (define-public amule
1871 (url "https://github.com/amule-project/amule")
1873 (file-name (git-file-name name version))
1876 "010wxm6g9f92x6fympj501zbnjka32rzbx0sk3a2y4zpih5d2nsn"))
1877 ;; Patch for adopting crypto++ >= 6.0.
1878 (patches (search-patches "amule-crypto-6.patch"))))
1879 (build-system gnu-build-system)
1882 (modify-phases %standard-phases
1883 (delete 'bootstrap) ; bootstrap phase runs too early.
1884 (add-after 'patch-source-shebangs 'autogen
1886 (invoke "sh" "autogen.sh")
1900 "--enable-amule-gui"
1901 "--enable-amule-daemon"
1902 "--enable-webserver"
1903 "--with-denoise-level=0")))
1905 `(("autoconf" ,autoconf)
1906 ("automake" ,automake)
1907 ("gettext-minimal" ,gettext-minimal)
1911 ("crypto++" ,crypto++)
1913 ("wxwidgets-gtk2" ,wxwidgets-gtk2)))
1914 (home-page "http://amule.org/")
1915 (synopsis "Peer-to-peer client for the eD2K and Kademlia networks")
1917 "aMule is an eMule-like client for the eD2k and Kademlia peer-to-peer
1918 file sharing networks. It includes a graphical user interface (GUI), a daemon
1919 allowing you to run a client with no graphical interface, and a Web GUI for
1920 remote access. The @command{amulecmd} command allows you to control aMule
1922 (license license:gpl2+)))
1931 (string-append "https://github.com/zeromq/zyre/releases/download/v"
1932 version "/" name "-" version ".tar.gz"))
1935 "0qz2730bng1gs9xbqxhkw88qbsmszgmmrl2g9k6xrg6r3bqvsdc7"))))
1936 (build-system gnu-build-system)
1937 (inputs `(("zeromq" ,zeromq)
1939 ("libsodium" ,libsodium)))
1940 (synopsis "Framework for proximity-based peer-to-peer applications")
1941 (description "Zyre provides reliable group messaging over local area
1942 networks using zeromq. It has these key characteristics:
1945 @item Zyre needs no administration or configuration.
1946 @item Peers may join and leave the network at any time.
1947 @item Peers talk to each other without any central brokers or servers.
1948 @item Peers can talk directly to each other.
1949 @item Peers can join groups, and then talk to groups.
1950 @item Zyre is reliable, and loses no messages even when the network is heavily loaded.
1951 @item Zyre is fast and has low latency, requiring no consensus protocols.
1952 @item Zyre is designed for WiFi networks, yet also works well on Ethernet networks.
1954 (home-page "https://github.com/zeromq/zyre")
1955 (license license:mpl2.0)))
1957 (define-public can-utils
1960 (version "2018.02.0")
1964 (url "https://github.com/linux-can/can-utils.git")
1965 (commit (string-append "v" version))))
1966 (file-name (git-file-name name version))
1969 "0r0zkm67bdcmbfypjr7z041d4zp0xzb379dyl8cvhmflh12fd2jb"))))
1970 (build-system gnu-build-system)
1972 `(#:tests? #f ; No tests exist.
1973 #:make-flags (list "CC=gcc"
1974 (string-append "PREFIX="
1975 (assoc-ref %outputs "out")))
1977 (modify-phases %standard-phases
1979 (delete 'configure))))
1980 (home-page "https://github.com/linux-can/can-utils")
1981 (synopsis "CAN utilities")
1982 (description "This package provides CAN utilities in the following areas:
1985 @item Basic tools to display, record, generate and replay CAN traffic
1986 @item CAN access via IP sockets
1987 @item CAN in-kernel gateway configuration
1988 @item CAN bus measurement and testing
1989 @item ISO-TP (ISO15765-2:2016 - this means messages with a body larger than
1991 @item Log file converters
1992 @item Serial Line Discipline configuration for slcan driver
1994 ;; Either BSD-3 or GPL-2 can be used.
1995 (license (list license:bsd-3 license:gpl2))))
2004 (uri (string-append "mirror://sourceforge/asio/asio/"
2005 version " (Stable)/" name "-" version ".tar.bz2"))
2008 "0nln45662kg799ykvqx5m9z9qcsmadmgg6r5najryls7x16in2d9"))))
2009 (build-system gnu-build-system)
2012 ("openssl" ,openssl)))
2016 (string-append "--with-boost=" (assoc-ref %build-inputs "boost"))
2017 (string-append "--with-openssl=" (assoc-ref %build-inputs "openssl")))))
2018 (home-page "https://think-async.com/Asio")
2019 (synopsis "C++ library for ASynchronous network I/O")
2020 (description "Asio is a cross-platform C++ library for network and
2021 low-level I/O programming that provides developers with a consistent
2022 asynchronous model using a modern C++ approach.")
2023 (license license:boost1.0)))
2025 (define-public shadowsocks
2026 ;; There are some security fixes after the last release.
2027 (let* ((commit "e332ec93e9c90f1cbee676b022bf2c5d5b7b1239")
2029 (version (git-version "2.8.2" revision commit)))
2031 (name "shadowsocks")
2033 (home-page "https://github.com/shadowsocks/shadowsocks")
2041 "1idd9b4f2pnhcpk1bh030hqg5zq25gkwxd53xi3c0cj242w7sp2j"))
2042 (file-name (git-file-name name version))))
2043 (build-system python-build-system)
2044 (synopsis "Fast tunnel proxy that helps you bypass firewalls")
2046 "This package is a fast tunnel proxy that helps you bypass firewalls.
2050 @item TCP & UDP support
2051 @item User management API
2053 @item Workers and graceful restart
2054 @item Destination IP blacklist
2056 (license license:asl2.0))))
2058 (define-public net-snmp
2064 (uri (string-append "mirror://sourceforge/net-snmp/net-snmp/"
2065 version "/net-snmp-" version ".tar.gz"))
2068 "1pvajzj9gmj56dmwix0ywmkmy2pglh6nny646hkm7ghfhh03bz5j"))
2069 (modules '((guix build utils)))
2072 ;; Drop bundled libraries.
2073 (delete-file-recursively "snmplib/openssl")
2075 (build-system gnu-build-system)
2077 `(#:test-target "test"
2078 ;; XXX: With parallel build enabled, Perl modules may not get linked with
2079 ;; libnetsnmp. See e.g. <https://bugzilla.novell.com/show_bug.cgi?id=819497>.
2080 #:parallel-build? #f
2082 (list (string-append "LDFLAGS=-Wl,-rpath="
2083 (assoc-ref %outputs "out")
2085 "--with-logfile=/var/log/snmpd.log"
2086 (string-append "--with-openssl="
2087 (assoc-ref %build-inputs "openssl")))
2089 (modify-phases %standard-phases
2090 (add-after 'unpack 'patch-tests
2091 (lambda* (#:key inputs #:allow-other-keys)
2092 (substitute* "testing/fulltests/support/simple_TESTCONF.sh"
2094 (string-append "NETSTAT=\"" (which "netstat") "\"")))
2095 (substitute* '("testing/fulltests/default/T065agentextend_simple"
2096 "testing/fulltests/default/T115agentxperl_simple")
2097 (("/usr/bin/env") (which "env")))
2098 (substitute* "testing/fulltests/default/T065agentextend_sh_simple"
2099 (("/bin/sh") (which "sh")))
2100 ;; These tests require network access.
2101 (for-each delete-file
2102 '("testing/fulltests/default/T070com2sec_simple"
2103 "testing/fulltests/default/T071com2sec6_simple"))
2105 (add-after 'unpack 'patch-Makefile.PL
2106 (lambda* (#:key outputs #:allow-other-keys)
2107 (substitute* "Makefile.in"
2108 (("Makefile.PL -NET")
2109 (string-append "Makefile.PL PREFIX="
2110 (assoc-ref outputs "out")
2111 " INSTALLDIRS=site" " NO_PERLLOCAL=1"
2116 ("openssl" ,openssl)
2118 ;; These inputs are only needed for tests.
2120 `(("net-tools" ,net-tools)
2121 ("coreutils" ,coreutils)
2123 (home-page "http://www.net-snmp.org/")
2124 (synopsis "Simple Network Management Protocol library and tools")
2125 (description "The @dfn{Simple Network Management Protocol} (SNMP) is a
2126 widely used protocol for monitoring the health and welfare of network
2127 equipment (e.g. routers), computer equipment and even devices like UPSs.
2128 Net-SNMP is a suite of applications used to implement SNMP v1, SNMP v2c and
2129 SNMP v3 using both IPv4 and IPv6.")
2130 (license (list license:bsd-3
2131 (license:non-copyleft
2132 "http://www.net-snmp.org/about/license.html"
2133 "CMU/UCD copyright notice")))))
2135 (define-public ubridge
2141 (uri (string-append "https://github.com/GNS3/ubridge/archive/v"
2143 (file-name (string-append name "-" version ".tar.gz"))
2146 "1hivb8wqkk5047bdl2vbsbcvkmam1107hx1ahy4virq2bkqki1fj"))))
2147 (build-system gnu-build-system)
2149 `(#:tests? #f ;no tests
2150 #:make-flags '("CC=gcc")
2152 (modify-phases %standard-phases
2154 (add-before 'install 'set-bindir
2155 (lambda* (#:key inputs outputs #:allow-other-keys)
2156 (let ((bin (string-append (assoc-ref outputs "out")
2159 (substitute* "Makefile"
2160 (("\\$\\(BINDIR\\)") bin)
2161 (("\tsetcap cap_net.*$") "")))
2164 `(("libpcap" ,libpcap)))
2165 (home-page "https://github.com/GNS3/ubridge/")
2166 (synopsis "Bridge for UDP tunnels, Ethernet, TAP and VMnet interfaces")
2167 (description "uBridge is a simple program to create user-land bridges
2168 between various technologies. Currently, bridging between UDP tunnels,
2169 Ethernet and TAP interfaces is supported. Packet capture is also supported.")
2170 (license license:gpl3+)))
2172 (define-public hcxtools
2173 (let* ((commit "2ecfc9a06c2028c47522ea566ccd82b2c1f94647"))
2176 (version (git-version "0.0.0" "1" commit))
2177 (home-page "https://github.com/ZerBea/hcxtools")
2185 "1hzwrpmxjxl674if0pp5iq06mdi24k7ni7bh1h20isp4s40201n3"))
2186 (file-name (git-file-name name version))))
2187 (build-system gnu-build-system)
2190 ("libpcap" ,libpcap)
2191 ("openssl" ,openssl)
2194 `(#:make-flags (list "CC=gcc"
2195 (string-append "INSTALLDIR=" (assoc-ref %outputs "out") "/bin"))
2196 #:tests? #f ;no tests
2198 (modify-phases %standard-phases
2200 (add-after 'unpack 'set-environment
2201 (lambda* (#:key inputs #:allow-other-keys)
2202 (setenv "C_INCLUDE_PATH"
2203 (string-append (assoc-ref inputs "curl")
2205 (assoc-ref inputs "libpcap")
2207 (assoc-ref inputs "openssl")
2209 (assoc-ref inputs "zlib")
2211 (getenv "C_INCLUDE_PATH")))
2213 (synopsis "Capture wlan traffic to hashcat and John the Ripper")
2215 "This package contains a small set of tools to capture and convert
2216 packets from wireless devices for use with hashcat or John the Ripper.")
2217 (license license:expat))))
2219 (define-public hcxdumptool
2220 (let* ((commit "f4799b5da82c5b030a6d99b02d1c1b9dc838ad36"))
2222 (name "hcxdumptool")
2223 (version (git-version "0.0.0" "1" commit))
2224 (home-page "https://github.com/ZerBea/hcxdumptool")
2232 "0qlsin0rws9sshn12faq4spmd0ffzssal36s71vhv6gkhhga7abl"))
2233 (file-name (git-file-name name version))))
2234 (build-system gnu-build-system)
2236 `(#:make-flags (list "CC=gcc"
2237 (string-append "INSTALLDIR=" (assoc-ref %outputs "out") "/bin"))
2238 #:tests? #f ;no tests
2240 (modify-phases %standard-phases
2241 (delete 'configure))))
2242 (synopsis "Small tool to capture packets from wlan devices")
2244 "Small tool to capture packets from WLAN devices. After capturing,
2245 upload the \"uncleaned\" cap to @url{https://wpa-sec.stanev.org/?submit} to
2246 see if the access point or the client is vulnerable to a dictionary attack.
2247 Convert the cap file to hccapx format and/or to WPA-PMKID-PBKDF2
2248 hashline (16800) with @command{hcxpcaptool} from the @code{hcxtools} package
2249 and check if the WLAN key or the master key was transmitted unencrypted.")
2250 (license license:expat))))
2252 (define-public dante
2259 (uri (string-append "https://www.inet.no/dante/files/dante-"
2263 "19rqzj167q73ag20zxpvswhkk0bj56r5maf83v5016sw7vrcz5sc"))))
2264 (build-system gnu-build-system)
2266 ;; XXX: The dynamic socks library doesn't work with 'libc.so' (GNU ld
2267 ;; script). When preloading is enabled, 'sockd' failed with:
2268 ;; … Failed to open library "libc.so": …: invalid ELF header
2269 '(#:configure-flags '("--disable-preload")))
2270 (home-page "https://www.inet.no/dante/")
2271 (synopsis "SOCKS server and client")
2272 (description "Dante is a SOCKS client and server implementation. It can
2273 be installed on a machine with access to an external TCP/IP network and will
2274 allow all other machines, without direct access to that network, to be relayed
2275 through the machine the Dante server is running on. The external network will
2276 never see any machines other than the one Dante is running on.")
2277 (license (license:non-copyleft "file://LICENSE"))))
2279 (define-public restbed
2280 (let ((commit "6eb385fa9051203f28bf96cc1844bbb5a9a6481f"))
2283 (version (git-version "4.6" "1" commit))
2288 (url "https://github.com/Corvusoft/restbed/")
2290 (file-name (string-append name "-" version ".tar.gz"))
2292 (base32 "0k60i5drklqqrb4khb25fzkgz9y0sncxf1sp6lh2bm1m0gh0661n"))))
2293 (build-system cmake-build-system)
2296 ("catch" ,catch-framework)
2297 ("openssl" ,openssl)))
2301 '("-DBUILD_TESTS=NO"
2302 "-DBUILD_EXAMPLES=NO"
2304 "-DBUILD_SHARED=NO")
2306 (modify-phases %standard-phases
2307 (add-after 'unpack 'apply-patches-and-fix-paths
2308 (lambda* (#:key inputs #:allow-other-keys)
2309 (let ((asio (assoc-ref inputs "asio"))
2310 (catch (assoc-ref inputs "catch"))
2311 (openssl (assoc-ref inputs "openssl")))
2312 (substitute* "cmake/Findasio.cmake"
2313 (("(find_path\\( asio_INCLUDE asio\\.hpp HINTS ).*$" all begin)
2314 (string-append begin " \"" asio "/include\" )")))
2315 (substitute* "cmake/Findcatch.cmake"
2316 (("(find_path\\( catch_INCLUDE catch\\.hpp HINTS ).*$" all begin)
2317 (string-append begin " \"" catch "/include\" )")))
2318 (substitute* "cmake/Findopenssl.cmake"
2319 (("(find_library\\( ssl_LIBRARY ssl ssleay32 HINTS ).*$" all begin)
2320 (string-append begin " \"" openssl "/lib\" )"))
2321 (("(find_library\\( crypto_LIBRARY crypto libeay32 HINTS ).*$" all begin)
2322 (string-append begin " \"" openssl "/lib\" )"))
2323 (("(find_path\\( ssl_INCLUDE openssl/ssl\\.h HINTS ).*$" all begin)
2324 (string-append begin " \"" openssl "/include\" )")))))))))
2325 (synopsis "Asynchronous RESTful functionality to C++11 applications")
2326 (description "Restbed is a comprehensive and consistent programming
2327 model for building applications that require seamless and secure
2328 communication over HTTP.")
2329 (home-page "https://github.com/Corvusoft/restbed")
2330 (license license:agpl3+))))
2332 (define-public opendht
2339 (url "https://github.com/savoirfairelinux/opendht.git")
2341 (file-name (git-file-name name version))
2344 "0vninb5mak27wigajslyvr05vq7wbrwqhbr4wzl2nmqcb20wmlq2"))))
2345 (build-system gnu-build-system)
2347 `(("gnutls" ,gnutls)
2349 ("readline" ,readline)
2350 ("jsoncpp" ,jsoncpp)
2351 ("restbed" ,restbed)))
2353 `(("argon2" ,argon2) ; TODO: Needed for the pkg-config .pc file to work?
2354 ("msgpack" ,msgpack))) ;included in several installed headers
2356 `(("autoconf" ,autoconf)
2357 ("pkg-config" ,pkg-config)
2358 ("automake" ,automake)
2359 ("libtool" ,libtool)))
2361 `(#:configure-flags '("--disable-tools"
2364 (home-page "https://github.com/savoirfairelinux/opendht/")
2365 (synopsis "Distributed Hash Table (DHT) library")
2366 (description "OpenDHT is a Distributed Hash Table (DHT) library. It may
2367 be used to manage peer-to-peer network connections as needed for real time
2369 (license license:gpl3+)))