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, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
8 ;;; Copyright © 2016 John Darrington <jmd@gnu.org>
9 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
10 ;;; Copyright © 2016 Eric Bavier <bavier@member.fsf.org>
11 ;;; Copyright © 2016, 2017 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, 2020 Efraim Flashner <efraim@flashner.co.il>
18 ;;; Copyright © 2017, 2018, 2019 Rutger Helling <rhelling@mykolab.com>
19 ;;; Copyright © 2017, 2019 Gábor Boskovits <boskovits@gmail.com>
20 ;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
21 ;;; Copyright © 2018 Adam Van Ymeren <adam@vany.ca>
22 ;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com>
23 ;;; Copyright © 2018 Tonton <tonton@riseup.net>
24 ;;; Copyright © 2018 Clément Lassieur <clement@lassieur.org>
25 ;;; Copyright © 2018 Theodoros Foradis <theodoros@foradis.org>
26 ;;; Copyright © 2018, 2020 Marius Bakke <mbakke@fastmail.com>
27 ;;; Copyright © 2018, 2020 Oleg Pykhalov <go.wigust@gmail.com>
28 ;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz>
29 ;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@gmail.com>
30 ;;; Copyright © 2019 Vasile Dumitrascu <va511e@yahoo.com>
31 ;;; Copyright © 2019 Julien Lepiller <julien@lepiller.eu>
32 ;;; Copyright © 2019 Timotej Lazar <timotej.lazar@araneo.si>
33 ;;; Copyright © 2019 Brice Waegeneire <brice@waegenei.re>
34 ;;; Copyright © 2019 Tonton <tonton@riseup.net>
35 ;;; Copyright © 2019, 2020 Alex Griffin <a@ajgrf.com>
36 ;;; Copyright © 2019 Jan Wielkiewicz <tona_kosmicznego_smiecia@interia.pl>
37 ;;; Copyright © 2019 Daniel Schaefer <git@danielschaefer.me>
38 ;;; Copyright © 2019 Diego N. Barbato <dnbarbato@posteo.de>
39 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
40 ;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
42 ;;; This file is part of GNU Guix.
44 ;;; GNU Guix is free software; you can redistribute it and/or modify it
45 ;;; under the terms of the GNU General Public License as published by
46 ;;; the Free Software Foundation; either version 3 of the License, or (at
47 ;;; your option) any later version.
49 ;;; GNU Guix is distributed in the hope that it will be useful, but
50 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
51 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
52 ;;; GNU General Public License for more details.
54 ;;; You should have received a copy of the GNU General Public License
55 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
57 (define-module (gnu packages networking)
58 #:use-module ((guix licenses) #:prefix license:)
59 #:use-module (guix packages)
60 #:use-module (guix download)
61 #:use-module (guix git-download)
62 #:use-module (guix build-system cmake)
63 #:use-module (guix build-system glib-or-gtk)
64 #:use-module (guix build-system gnu)
65 #:use-module (guix build-system go)
66 #:use-module (guix build-system perl)
67 #:use-module (guix build-system python)
68 #:use-module (guix build-system trivial)
69 #:use-module (guix utils)
70 #:use-module (gnu packages)
71 #:use-module (gnu packages admin)
72 #:use-module (gnu packages adns)
73 #:use-module (gnu packages algebra)
74 #:use-module (gnu packages audio)
75 #:use-module (gnu packages autotools)
76 #:use-module (gnu packages base)
77 #:use-module (gnu packages bison)
78 #:use-module (gnu packages boost)
79 #:use-module (gnu packages check)
80 #:use-module (gnu packages code)
81 #:use-module (gnu packages compression)
82 #:use-module (gnu packages cpp)
83 #:use-module (gnu packages crypto)
84 #:use-module (gnu packages curl)
85 #:use-module (gnu packages cyrus-sasl)
86 #:use-module (gnu packages dejagnu)
87 #:use-module (gnu packages documentation)
88 #:use-module (gnu packages flex)
89 #:use-module (gnu packages gettext)
90 #:use-module (gnu packages glib)
91 #:use-module (gnu packages gnome)
92 #:use-module (gnu packages gnupg)
93 #:use-module (gnu packages gtk)
94 #:use-module (gnu packages image)
95 #:use-module (gnu packages libidn)
96 #:use-module (gnu packages linux)
97 #:use-module (gnu packages lua)
98 #:use-module (gnu packages multiprecision)
99 #:use-module (gnu packages kerberos)
100 #:use-module (gnu packages ncurses)
101 #:use-module (gnu packages nettle)
102 #:use-module (gnu packages openldap)
103 #:use-module (gnu packages password-utils)
104 #:use-module (gnu packages pcre)
105 #:use-module (gnu packages perl)
106 #:use-module (gnu packages perl-check)
107 #:use-module (gnu packages pkg-config)
108 #:use-module (gnu packages polkit)
109 #:use-module (gnu packages pretty-print)
110 #:use-module (gnu packages pulseaudio)
111 #:use-module (gnu packages python)
112 #:use-module (gnu packages python-web)
113 #:use-module (gnu packages python-xyz)
114 #:use-module (gnu packages qt)
115 #:use-module (gnu packages readline)
116 #:use-module (gnu packages serialization)
117 #:use-module (gnu packages sqlite)
118 #:use-module (gnu packages ssh)
119 #:use-module (gnu packages textutils)
120 #:use-module (gnu packages tls)
121 #:use-module (gnu packages valgrind)
122 #:use-module (gnu packages web)
123 #:use-module (gnu packages wxwidgets)
124 #:use-module (gnu packages xml)
125 #:use-module (ice-9 match))
127 (define-public blueman
135 (string-append "https://github.com/blueman-project/blueman/releases/"
136 "download/2.1.2/blueman-2.1.2.tar.gz"))
138 (base32 "0wamxdw36c8i3aqwmja5q70fajqwd7inpkvlpkldd54wdxbcd38d"))))
139 (build-system glib-or-gtk-build-system)
144 "--disable-appindicator" ; Deprecated
145 "--with-systemdsystemunitdir=no" ; Not required
146 "--with-systemduserunitdir=no"))) ; Not required
148 `(("cython" ,python-cython)
149 ("glib:bin" ,glib "bin")
150 ("gtk+:bin" ,gtk+ "bin")
151 ("intltool" ,intltool)
153 ("pkg-config" ,pkg-config)))
155 `(("adwaita-icon-theme" ,adwaita-icon-theme)
158 ("gdkpixbuf" ,gdk-pixbuf)
161 ("iproute2" ,iproute)
162 ("net-tools" ,net-tools)
165 ("pulseaudio" ,pulseaudio)
166 ("pycairo" ,python-pycairo)
167 ("pygobject" ,python-pygobject)
168 ("python" ,python-wrapper)
170 (synopsis "GTK+ Bluetooth manager")
171 (description "Blueman is a Bluetooth management utility using the Bluez
172 D-Bus backend. It is designed to be easy to use for most common Bluetooth
174 (home-page "https://github.com/blueman-project/blueman")
175 (license license:gpl3+)))
177 ;; The gnu.org ‘home’ for this GNU project is a directory listing with 1.6.0 as
178 ;; the latest version. The author's git repository, mentioned in the 1.6.0
179 ;; README and otherwise legit-looking, contains a proper 1.7.0 release tarball
180 ;; with many OUI updates. Use it, even though it's also several years old now.
181 (define-public macchanger
188 (uri (string-append "https://github.com/alobbs/macchanger/"
189 "releases/download/" version "/"
190 name "-" version ".tar.gz"))
192 (base32 "1gs5m0jxyprdp00w2qkbnaqm3ilkjz0q1gqdg4nzdm8g4xy73qns"))))
193 (build-system gnu-build-system)
194 (home-page "https://www.gnu.org/software/macchanger/")
195 (synopsis "Viewing and manipulating MAC addresses of network interfaces")
196 (description "GNU MAC Changer is a utility for viewing and changing MAC
197 addresses of networking devices. New addresses may be set explicitly or
198 randomly. They can include MAC addresses of the same or other hardware vendors
199 or, more generally, MAC addresses of the same category of hardware.")
200 (license license:gpl2+)))
202 (define-public miredo
208 (uri (string-append "http://www.remlab.net/files/miredo/miredo-"
212 "0j9ilig570snbmj48230hf7ms8kvcwi2wblycqrmhh85lksd49ps"))))
213 (build-system gnu-build-system)
216 (modify-phases %standard-phases
217 ;; The checkconf test in src/ requires network access.
219 'check 'disable-checkconf-test
221 (substitute* "src/Makefile"
222 (("^TESTS = .*") "TESTS = \n"))
224 (home-page "https://www.remlab.net/miredo/")
225 (synopsis "Teredo IPv6 tunneling software")
227 "Miredo is an implementation (client, relay, server) of the Teredo
228 specification, which provides IPv6 Internet connectivity to IPv6 enabled hosts
229 residing in IPv4-only networks, even when they are behind a NAT device.")
230 (license license:gpl2+)))
239 "http://www.dest-unreach.org/socat/download/socat-"
243 "1z7xgnwiqpcv1j6aghhj9nqbx7cg3gpc4n9j7vi9hm7nhv5788wp"))))
244 (build-system gnu-build-system)
245 (arguments '(#:tests? #f)) ; no test suite
246 (inputs `(("openssl" ,openssl)))
247 (home-page "http://www.dest-unreach.org/socat/")
249 "Open bidirectional communication channels from the command line")
251 "socat is a relay for bidirectional data transfer between two independent
252 data channels---files, pipes, devices, sockets, etc. It can create
253 \"listening\" sockets, named pipes, and pseudo terminals.
255 socat can be used, for instance, as TCP port forwarder, as a shell interface
256 to UNIX sockets, IPv6 relay, for redirecting TCP oriented programs to a serial
257 line, to logically connect serial lines on different computers, or to
258 establish a relatively secure environment (su and chroot) for running client
259 or server shell scripts with network connections.")
260 (license license:gpl2)))
262 (define-public tcp-wrappers
264 (name "tcp-wrappers")
269 "ftp://ftp.porcupine.org/pub/security/tcp_wrappers_"
273 "0p9ilj4v96q32klavx0phw9va21fjp8vpk11nbh6v2ppxnnxfhwm"))))
274 (build-system gnu-build-system)
277 (modify-phases %standard-phases
278 (delete 'configure) ; there is no configure script
279 (delete 'check) ; there are no tests
283 ;; Upstream doesn't generate a shared library. So we have to do it.
284 (setenv "CC" "gcc -fno-builtin -fPIC")
285 (substitute* "Makefile"
286 (("^(all[^\n]*)" line) (string-append line " libwrap.so\n
287 libwrap.so: $(LIB_OBJ)\n
288 \tgcc -shared $^ -o $@\n")))
289 ;; Deal with some gcc breakage.
290 (substitute* "percent_m.c"
291 (("extern char .sys_errlist.*;") ""))
292 (substitute* "scaffold.c"
293 (("extern char .malloc.*;") ""))
294 ;; This, believe it or not, is the recommended way to build!
295 (invoke "make" "REAL_DAEMON_DIR=/etc" "linux")))
296 ;; There is no make install stage, so we have to do it ourselves.
299 (let ((out (assoc-ref %outputs "out"))
300 (man-pages `("hosts_access.3"
308 (headers `("tcpd.h"))
309 (bins `("safe_finger"
316 (install-file x (string-append out "/include")))
320 (install-file x (string-append out "/share/man/man"
321 (string-take-right x 1))))
325 (install-file x (string-append out "/lib/")))
329 (install-file x (string-append out "/bin/")))
332 (home-page "http://www.porcupine.org")
333 (synopsis "Monitor and filter incoming requests for network services")
334 (description "With this package you can monitor and filter incoming requests for
335 network services. It includes a library which may be used by daemons to
336 transparently check connection attempts against an access control list.")
337 (license (license:non-copyleft "file://DISCLAIMER"
338 "See the file DISCLAIMER in the distribution."))))
341 (define-public zeromq
347 (uri (string-append "https://github.com/zeromq/libzmq/releases"
348 "/download/v" version "/zeromq-" version ".tar.gz"))
351 "0qzp80ky4y2k7k1ya09v9gkivvfbz2km813snrb8jhnn634bbmzb"))))
352 (build-system gnu-build-system)
353 (home-page "https://zeromq.org")
354 (synopsis "Library for message-based applications")
356 "The 0MQ lightweight messaging kernel is a library which extends the
357 standard socket interfaces with features traditionally provided by specialized
358 messaging middle-ware products. 0MQ sockets provide an abstraction of
359 asynchronous message queues, multiple messaging patterns, message
360 filtering (subscriptions), seamless access to multiple transport protocols and
362 (license license:lgpl3+)))
371 "https://github.com/zeromq/" name
372 "/releases/download/v" version
373 "/" name "-" version ".tar.gz"))
376 "1szciz62sk3fm4ga9qjpxz0n0lazvphm32km95bq92ncng12kayg"))))
377 (build-system gnu-build-system)
379 '(#:configure-flags '("--enable-drafts")
380 #:phases (modify-phases %standard-phases
381 (add-before 'check 'patch-tests
383 ;; XXX FIXME: Disable the zproc test, which fails on some
384 ;; hardware: <https://github.com/zeromq/czmq/issues/2007>.
385 (substitute* "src/czmq_selftest.c"
386 (("\\{ \"zproc\", zproc_test.*")
390 `(("zeromq" ,zeromq)))
391 (home-page "http://zeromq.org")
392 (synopsis "High-level C bindings for ØMQ")
394 "czmq provides bindings for the ØMQ core API that hides the differences
395 between different versions of ØMQ.")
396 (license license:mpl2.0)))
398 (define-public cppzmq
405 (url "https://github.com/zeromq/cppzmq")
406 (commit (string-append "v" version))))
409 "19acx2bzi4n6fdnfgkja1nds7m1bwg8lw5vfcijrx9fv75pa7m8h"))
410 (file-name (git-file-name name version))))
411 (build-system cmake-build-system)
413 '(;; FIXME: The test suite requires downloading Catch and custom
414 ;; CMake targets, and refuses to use the system version.
415 ;; See <https://github.com/zeromq/cppzmq/issues/334>.
417 #:configure-flags '("-DCPPZMQ_BUILD_TESTS=OFF")))
419 `(("pkg-config" ,pkg-config)))
421 `(("zeromq" ,zeromq)))
422 (home-page "http://zeromq.org")
423 (synopsis "C++ bindings for the ØMQ messaging library")
425 "This package provides header-only C++ bindings for ØMQ. The header
426 files contain direct mappings of the abstractions provided by the ØMQ C API.")
427 (license license:expat)))
429 (define-public librdkafka
436 "https://github.com/edenhill/librdkafka/archive/"
438 (file-name (string-append name "-" version ".tar.gz"))
441 "10ldx7g7ymmg17snzx78vy4n8ma1rjx0agzi34g15j2fk867xmas"))))
442 (build-system gnu-build-system)
445 (modify-phases %standard-phases
447 ;; its custom configure script doesn't understand 'CONFIG_SHELL'.
448 (lambda* (#:key outputs #:allow-other-keys)
449 (let ((out (assoc-ref outputs "out")))
450 ;; librdkafka++.so lacks RUNPATH for librdkafka.so
452 (string-append "-Wl,-rpath=" out "/lib"))
453 (invoke "./configure"
454 (string-append "--prefix=" out))))))))
456 `(("python" ,python-wrapper)))
458 `(("zlib" ,zlib))) ; in the Libs.private field of rdkafka.pc
459 (home-page "https://github.com/edenhill/librdkafka")
460 (synopsis "Apache Kafka C/C++ client library")
462 "librdkafka is a C library implementation of the Apache Kafka protocol,
463 containing both Producer and Consumer support.")
464 (license license:bsd-2)))
466 (define-public libndp
472 (uri (string-append "http://libndp.org/files/"
473 name "-" version ".tar.gz"))
476 "1dlinhl39va00v55qygjc9ap77yqf7xvn4rwmvdr49xhzzxhlj1c"))))
477 (build-system gnu-build-system)
478 (home-page "http://libndp.org/")
479 (synopsis "Library for Neighbor Discovery Protocol")
481 "libndp contains a library which provides a wrapper for IPv6 Neighbor
482 Discovery Protocol. It also provides a tool named ndptool for sending and
483 receiving NDP messages.")
484 (license license:lgpl2.1+)))
486 (define-public ethtool
492 (uri (string-append "mirror://kernel.org/software/network/"
493 "ethtool/ethtool-" version ".tar.xz"))
496 "0srbqp4a3x9ryrbm5q854375y04ni8j0bmsrl89nmsyn4x4ixy12"))))
497 (build-system gnu-build-system)
498 (home-page "https://www.kernel.org/pub/software/network/ethtool/")
499 (synopsis "Display or change Ethernet device settings")
501 "ethtool can be used to query and change settings such as speed,
502 auto-negotiation and checksum offload on many network devices, especially
504 (license license:gpl2)))
506 (define-public ifstatus
512 (uri (string-append "mirror://sourceforge/ifstatus/ifstatus/"
513 "ifstatus%20v" version "/ifstatus-v"
517 "045cbsq9ps32j24v8y5hpyqxnqn9mpaf3mgvirlhgpqyb9jsia0c"))
518 (modules '((guix build utils)))
521 (substitute* "Main.h"
522 (("#include <stdio.h>")
523 "#include <stdio.h>\n#include <stdlib.h>"))
525 (build-system gnu-build-system)
527 '(#:tests? #f ; no "check" target
529 (modify-phases %standard-phases
530 (delete 'configure) ; no configure script
532 (lambda* (#:key outputs #:allow-other-keys)
533 (let* ((out (assoc-ref outputs "out"))
534 (bin (string-append out "/bin")))
536 (copy-file "ifstatus"
537 (string-append bin "/ifstatus")))
539 (inputs `(("ncurses" ,ncurses)))
540 (home-page "http://ifstatus.sourceforge.net/graphic/index.html")
541 (synopsis "Text based network interface status monitor")
543 "IFStatus is a simple, easy-to-use program for displaying commonly
544 needed/wanted real-time traffic statistics of multiple network
545 interfaces, with a simple and efficient view on the command line. It is
546 intended as a substitute for the PPPStatus and EthStatus projects.")
547 (license license:gpl2+)))
555 (uri (string-append "mirror://sourceforge/nload/nload/" version
556 "/nload-" version ".tar.gz"))
559 "1rb9skch2kgqzigf19x8bzk211jdfjfdkrcvaqyj89jy2pkm3h61"))))
560 (build-system gnu-build-system)
561 (inputs `(("ncurses" ,ncurses)))
562 (home-page "http://www.roland-riegel.de/nload/")
563 (synopsis "Realtime console network usage monitor")
565 "Nload is a console application which monitors network traffic and
566 bandwidth usage in real time. It visualizes the in- and outgoing traffic using
567 two graphs, and provides additional info like total amount of transferred data
568 and min/max network usage.")
569 (license license:gpl2+)))
571 (define-public iodine
577 (uri (string-append "http://code.kryo.se/" name "/"
578 name "-" version ".tar.gz"))
581 "0gh17kcxxi37k65zm4gqsvbk3aw7yphcs3c02pn1c4s2y6n40axd"))))
582 (build-system gnu-build-system)
585 (modify-phases %standard-phases
587 (add-before 'build 'fix-ifconfig-path
588 ;; This package works only with the net-tools version of ifconfig.
589 (lambda* (#:key inputs #:allow-other-keys)
590 (substitute* "src/tun.c"
592 (string-append (assoc-ref inputs "net-tools") "/bin/")))
594 (add-before 'check 'delete-failing-tests
595 ;; Avoid https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802105.
597 (substitute* "tests/common.c"
598 (("tcase_add_test\\(tc, \
599 test_parse_format_ipv(4(|_listen_all|_mapped_ipv6)|6)\\);")
602 #:make-flags (list "CC=gcc"
603 (string-append "prefix=" (assoc-ref %outputs "out")))
604 #:test-target "test"))
605 (inputs `(("net-tools" ,net-tools)
607 (native-inputs `(("check" ,check)
608 ("pkg-config" ,pkg-config)))
609 (home-page "https://code.kryo.se/iodine/")
610 (synopsis "Tunnel IPv4 data through a DNS server")
611 (description "Iodine tunnels IPv4 data through a DNS server. This
612 can be useful in different situations where internet access is firewalled, but
613 DNS queries are allowed. The bandwidth is asymmetrical, with limited upstream
614 and up to 1 Mbit/s downstream.")
615 ;; src/md5.[ch] is released under the zlib license
616 (license (list license:isc license:zlib))))
625 (uri (string-append "mirror://debian/pool/main/w/whois/"
626 "whois_" version ".tar.xz"))
628 (base32 "0kpi981zjczvdcxfcq455c529vlaxa73x8kbm530z5b01h0fk8fb"))))
629 (build-system gnu-build-system)
631 `(#:tests? #f ; no test suite
632 #:make-flags (list "CC=gcc"
633 (string-append "prefix=" (assoc-ref %outputs "out")))
635 (modify-phases %standard-phases
636 (delete 'configure) ; no configure script
637 (add-before 'build 'setenv
639 (setenv "HAVE_ICONV" "1")
642 `(("libidn2" ,libidn2)))
644 `(("gettext" ,gettext-minimal)
646 ("pkg-config" ,pkg-config)))
647 (synopsis "Intelligent client for the WHOIS directory service")
649 "whois searches for an object in a @dfn{WHOIS} (RFC 3912) database.
650 It is commonly used to look up the registered users or assignees of an Internet
651 resource, such as a domain name, an IP address block, or an autonomous system.
652 It can automatically select the appropriate server for most queries.
654 For historical reasons, this package also includes @command{mkpasswd}, which
655 encrypts passwords using @code{crypt(3)} and is unrelated to the Expect command
657 (home-page "https://github.com/rfc1036/whois")
658 (license license:gpl2+)))
660 (define-public wireshark
667 (uri (string-append "https://www.wireshark.org/download/src/wireshark-"
670 (base32 "1fpsfjrap7j84sy728yhcr2gad9nq3n5gq03mwrmxnc6ijwf81zh"))))
671 (build-system cmake-build-system)
674 (modify-phases %standard-phases
675 (add-after 'unpack 'remove-failing-test
676 ;; Test 31/32 fails with errors like "Program reassemble_test is
677 ;; not available". Skipping it for now.
679 (substitute* "CMakeLists.txt"
680 (("suite_unittests" all) (string-append "# " all)))
682 ;; Build process chokes during `validate-runpath' phase.
684 ;; Errors are like the following:
685 ;; "/gnu/store/...wireshark-3.0.0/lib/wireshark/plugins/3.0/epan/ethercat.so:
686 ;; error: depends on 'libwireshark.so.12', which cannot be found in
687 ;; RUNPATH". That is, "/gnu/store/...wireshark-3.0.0./lib" doesn't
688 ;; belong to RUNPATH.
690 ;; That’s not a problem in practice because "ethercat.so" is a plugin,
691 ;; so it’s dlopen’d by a process that already provides "libwireshark".
692 ;; For now, we disable this phase.
693 #:validate-runpath? #f))
699 ("libgcrypt" ,libgcrypt)
705 ("lua" ,lua-5.2) ;Lua 5.3 unsupported
708 ("qtmultimedia" ,qtmultimedia)
717 ("gettext" ,gettext-minimal)
719 ("pkg-config" ,pkg-config)
720 ("python" ,python-wrapper)
721 ("qttools" ,qttools)))
722 (synopsis "Network traffic analyzer")
723 (description "Wireshark is a network protocol analyzer, or @dfn{packet
724 sniffer}, that lets you capture and interactively browse the contents of
726 (home-page "https://www.wireshark.org/")
727 (license license:gpl2+)))
736 (uri (string-append "https://fping.org/dist/fping-"
739 (base32 "0jmnf4vmr43aiwk3h2b5qdsb95gxar8gz1yli8fswnm9nrs9ccvx"))))
740 (build-system gnu-build-system)
741 (home-page "https://fping.org/")
742 (synopsis "Send ICMP ECHO_REQUEST packets to network hosts")
744 "fping is a ping like program which uses the Internet Control Message
745 Protocol (ICMP) echo request to determine if a target host is responding.
746 fping differs from ping in that you can specify any number of targets on the
747 command line, or specify a file containing the lists of targets to ping.
748 Instead of sending to one target until it times out or replies, fping will
749 send out a ping packet and move on to the next target in a round-robin
751 (license license:expat)))
753 (define-public gandi.cli
760 (uri (pypi-uri name version))
762 (base32 "110wc9zgxsrvw4yzp21p0ian5lcf7vhcpxhnmsc4fg9pzl2bwxd5"))))
763 (build-system python-build-system)
766 (modify-phases %standard-phases
767 (add-after 'unpack 'embed-store-file-names
769 (substitute* (list "gandi/cli/modules/cert.py"
770 "gandi/cli/tests/commands/test_certificate.py")
771 (("openssl") (which "openssl")))
773 (add-after 'install 'install-documentation
774 ;; The included man page may be outdated but we install it anyway,
775 ;; since it's mentioned in 'gandi --help' and better than nothing.
776 (lambda* (#:key outputs #:allow-other-keys)
777 (let* ((out (assoc-ref outputs "out"))
778 (man1 (string-append out "/share/man/man1")))
780 (with-output-to-file (string-append man1 "/gandi.1")
782 (invoke "rst2man.py" "gandicli.man.rst")))
785 `(("python-docutils" ,python-docutils) ; for rst2man.py
786 ("python-pytest-cov" ,python-pytest-cov)
787 ("python-tox" ,python-tox)))
789 `(("openssl" ,openssl)
790 ("python-click" ,python-click)
791 ("python-ipy" ,python-ipy)
792 ("python-pyyaml" ,python-pyyaml)
793 ("python-requests" ,python-requests)))
794 (home-page "https://cli.gandi.net")
795 (synopsis "Command-line interface to the Gandi.net Web API")
797 "This package provides a command-line client (@command{gandi}) to buy,
798 manage, and delete Internet resources from Gandi.net such as domain names,
799 virtual machines, and certificates.")
800 (license license:gpl3+)))
802 (define-public go-netns
803 (let ((commit "13995c7128ccc8e51e9a6bd2b551020a27180abd")
807 (version (git-version "0.0.0" revision commit))
811 (url "https://github.com/vishvananda/netns.git")
813 (file-name (git-file-name name version))
816 "1zk6w8158qi4niva5rijchbv9ixgmijsgqshh54wdaav4xrhjshn"))))
817 (build-system go-build-system)
819 `(#:import-path "github.com/vishvananda/netns"
820 #:tests? #f)) ;tests require root privileges
821 (home-page "https://github.com/vishvananda/netns")
822 (synopsis "Simple network namespace handling for Go")
823 (description "The netns package provides a simple interface for
824 handling network namespaces in Go.")
825 (license license:asl2.0))))
827 (define-public go-sctp
828 ;; docker-libnetwork-cmd-proxy requires this exact commit.
829 (let ((commit "07191f837fedd2f13d1ec7b5f885f0f3ec54b1cb")
833 (version (git-version "0.0.0" revision commit))
837 (url "https://github.com/ishidawataru/sctp.git")
839 (file-name (git-file-name name version))
842 "1mk9ncm10gwi5pn5wcw4skbyf4qg7n5qdf1mim4gf3mrckvi6g6h"))))
843 (build-system go-build-system)
845 `(#:import-path "github.com/ishidawataru/sctp"))
846 (home-page "https://github.com/ishidawataru/sctp")
847 (synopsis "SCTP library for the Go programming language")
848 (description "This library provides methods for using the stream control
849 transmission protocol (SCTP) in a Go application.")
850 (license license:asl2.0))))
852 (define-public httping
859 (uri (string-append "https://www.vanheusden.com/httping/httping-"
863 "1y7sbgkhgadmd93x1zafqc4yp26ssiv16ni5bbi9vmvvdl55m29y"))))
864 (build-system gnu-build-system)
866 `(("gettext" ,gettext-minimal)))
870 ("openssl" ,openssl)))
872 `(#:make-flags (list "CC=gcc"
873 (string-append "DESTDIR=" (assoc-ref %outputs "out"))
875 #:tests? #f)) ; no tests
876 (home-page "https://www.vanheusden.com/httping/")
877 (synopsis "Web server latency and throughput monitor")
879 "httping measures how long it takes to connect to a web server, send an
880 HTTP(S) request, and receive the reply headers. It is somewhat similar to
881 @command{ping}, but can be used even in cases where ICMP traffic is blocked
882 by firewalls or when you want to monitor the response time of the actual web
883 application stack itself.")
884 (license license:gpl2))) ; with permission to link with OpenSSL
886 (define-public httpstat
893 (uri (pypi-uri "httpstat" version))
896 "1chw2nk56vaq87aba012a270k9na06hfx1pfbsrc3jfvlc2kb9hb"))))
897 (build-system python-build-system)
898 (inputs `(("curl" ,curl)))
901 (modify-phases %standard-phases
902 (add-before 'build 'fix-curl-path
903 (lambda* (#:key inputs #:allow-other-keys)
904 (substitute* "httpstat.py"
905 (("ENV_CURL_BIN.get\\('curl'\\)")
906 (string-append "ENV_CURL_BIN.get('"
907 (assoc-ref inputs "curl")
910 (home-page "https://github.com/reorx/httpstat")
911 (synopsis "Visualize curl statistics")
913 "@command{httpstat} is a tool to visualize statistics from the
914 @command{curl} HTTP client. It acts as a wrapper for @command{curl} and
915 prints timing information for each step of the HTTP request (DNS lookup,
916 TCP connection, TLS handshake and so on) in the terminal.")
917 (license license:expat)))
926 (uri (string-append "http://www.squid-cache.org/Versions/v4/squid-"
929 (base32 "07sz0adv8nkhy797675bpra7lvdkwjq9isw1ddgylhlazl511w4q"))))
930 (build-system gnu-build-system)
933 (modify-phases %standard-phases
934 (add-before 'build 'fix-true-path
935 (lambda* (#:key inputs #:allow-other-keys)
936 (substitute* "test-suite/testheaders.sh"
938 (string-append (assoc-ref inputs "coreutils")
943 ("openldap" ,openldap)
944 ("linux-pam" ,linux-pam)
946 ("cyrus-sasl" ,cyrus-sasl)
949 ("openssl" ,openssl)))
951 `(("cppunit" ,cppunit)
952 ("pkg-config" ,pkg-config)))
953 (synopsis "Web caching proxy")
954 (description "Squid is a caching proxy for the Web supporting HTTP, HTTPS,
955 FTP, and more. It reduces bandwidth and improves response times by caching and
956 reusing frequently-requested web pages.")
957 (home-page "http://www.squid-cache.org/")
958 (license license:gpl2+)))
960 (define-public bwm-ng
968 (url "https://github.com/vgropp/bwm-ng.git")
969 (commit (string-append "v" version))))
970 (file-name (git-file-name name version))
972 (base32 "0k906wb4pw3dcqpcwnni78lahzi3bva483f8c17sjykic7as4y5n"))))
973 (build-system gnu-build-system)
976 (modify-phases %standard-phases
977 (add-after 'unpack 'disable-premature-./configure
979 (substitute* "autogen.sh"
980 (("\\$srcdir/configure")
984 `(("autoconf" ,autoconf)
985 ("automake" ,automake)))
987 `(("ncurses" ,ncurses)))
988 (synopsis "Console based live network and disk I/O bandwidth monitor")
989 (description "Bandwidth Monitor NG is a small and simple console based
990 live network and disk I/O bandwidth monitor.")
991 (home-page "https://www.gropp.org/?id=projects&sub=bwm-ng")
992 (license license:gpl2)))
994 (define-public aircrack-ng
1001 (uri (string-append "https://download.aircrack-ng.org/aircrack-ng-"
1004 (base32 "0ix2k64qg7x3w0bzdsbk1m50kcpq1ws59g3zkwiafvpwdr4gs2sg"))))
1005 (build-system gnu-build-system)
1007 `(("autoconf" ,autoconf)
1008 ("automake" ,automake)
1009 ("libtool" ,libtool)
1010 ("pkg-config" ,pkg-config)
1013 `(("libgcrypt" ,libgcrypt)
1015 ("libpcap" ,libpcap)
1016 ("ethtool" ,ethtool)
1022 (list "--with-experimental=yes" ; build wesside-ng, etc.
1023 "--with-gcrypt") ; openssl's the default
1024 #:phases (modify-phases %standard-phases
1025 (add-before 'bootstrap 'patch-evalrev
1027 ;; Called by ./autogen.sh below, before the default
1028 ;; ‘patch-shebangs’ phase has had a chance to run.
1029 (substitute* "evalrev"
1035 ;; Patch shebangs in generated files before running
1037 (setenv "NOCONFIGURE" "please")
1038 (invoke "bash" "./autogen.sh")))
1039 (add-after 'build 'absolutize-tools
1040 (lambda* (#:key inputs #:allow-other-keys)
1041 (let ((ethtool (string-append (assoc-ref inputs "ethtool")
1043 (substitute* "scripts/airmon-ng"
1045 (string-append ethtool " ")))
1047 (home-page "https://www.aircrack-ng.org")
1048 (synopsis "Assess WiFi network security")
1050 "Aircrack-ng is a complete suite of tools to assess WiFi network
1051 security. It focuses on different areas of WiFi security: monitoring,
1052 attacking, testing, and cracking. All tools are command-line driven, which
1053 allows for heavy scripting.")
1054 (license (list license:gpl2+ license:bsd-3))))
1056 (define-public pixiewps
1063 "https://github.com/wiire-a/pixiewps/releases/"
1064 "download/v" version "/" name "-" version ".tar.xz"))
1067 "07nym6bqml0k9v29vnj003nrgnwrywgjvnljb7cdpsvnwilhbp64"))))
1068 (build-system gnu-build-system)
1072 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1074 (modify-phases %standard-phases
1075 (delete 'configure)) ; no configure script
1076 #:tests? #f)) ; there are no tests
1077 (home-page "https://github.com/wiire-a/pixiewps/")
1078 (synopsis "Offline brute-force tool for Wi-Fi Protected Setup")
1079 (description "Pixiewps implements the pixie-dust attack to brute
1080 force the Wi-Fi Protected Setup (WPS) PIN by exploiting the low or
1081 non-existing entropy of some access points.")
1082 (license license:gpl3+)))
1084 (define-public reaver
1091 "https://github.com/t6x/reaver-wps-fork-t6x/releases/"
1092 "download/v" version "/reaver-" version ".tar.xz"))
1095 "00k7mc81ifv0wma7k4v18mj498badbw5yls6c28qin3d1gda0ag3"))))
1096 (build-system gnu-build-system)
1099 ;; Save session files to current directory instead of /var.
1100 (list "--enable-savetocurrent"
1101 "--localstatedir=/tmp/dummy") ; prevent creating /var during install
1103 (modify-phases %standard-phases
1104 (add-before 'configure 'change-directory
1108 (add-after 'install 'install-doc
1109 (lambda* (#:key outputs #:allow-other-keys)
1111 (let* ((out (assoc-ref outputs "out"))
1112 (doc (string-append out "/share/doc/" ,name "-" ,version))
1113 (man1 (string-append out "/share/man/man1")))
1114 (for-each (lambda (file) (install-file file doc))
1115 (find-files "." "README.*"))
1116 (install-file "reaver.1" man1)
1118 #:tests? #f)) ; there are no tests
1120 `(("libpcap" ,libpcap)))
1122 `(("aircrack-ng" ,aircrack-ng)
1123 ("pixiewps" ,pixiewps)))
1124 (home-page "https://github.com/t6x/reaver-wps-fork-t6x/")
1125 (synopsis "Attack tool for Wi-Fi Protected Setup")
1126 (description "Reaver performs a brute force attack against an access
1127 point's Wi-Fi Protected Setup (WPS) PIN. Once the PIN is found, the WPA
1128 passphrase can be recovered and the AP's wireless settings can be
1130 (license license:gpl2+)))
1132 (define-public perl-danga-socket
1134 (name "perl-danga-socket")
1139 (uri (string-append "mirror://cpan/authors/id/N/NM/NML/"
1140 "Danga-Socket-" version ".tar.gz"))
1142 (base32 "0x4bvirmf0kphks19jwgva00zz73zx344218dfaiv8gigrw3yg4m"))))
1143 (build-system perl-build-system)
1145 `(("perl-test-tcp" ,perl-test-tcp)))
1147 `(("perl-sys-syscall" ,perl-sys-syscall)))
1148 (home-page "https://metacpan.org/release/Danga-Socket")
1149 (synopsis "Event loop and event-driven async socket base class")
1151 "Danga::Socket is an abstract base class for objects backed by a socket
1152 which provides the basic framework for event-driven asynchronous IO, designed
1153 to be fast. Danga::Socket is both a base class for objects, and an event
1155 (license license:perl-license)))
1157 (define-public perl-data-validate-ip
1159 (name "perl-data-validate-ip")
1165 "mirror://cpan/authors/id/D/DR/DROLSKY/Data-Validate-IP-"
1168 (base32 "1mmppyzsh1w2z2h86kvzqxy56wxgs62a3kf8nvcnz76bblir5ap1"))))
1169 (build-system perl-build-system)
1171 `(("perl-test-requires" ,perl-test-requires)))
1173 `(("perl-netaddr-ip" ,perl-netaddr-ip)))
1174 (home-page "https://metacpan.org/release/Data-Validate-IP")
1175 (synopsis "IPv4 and IPv6 validation methods")
1177 "This module provides several IP address validation subroutines that both
1178 validate and untaint their input. This includes both basic validation
1179 (@code{is_ipv4()} and @code{is_ipv6()}) and special cases like checking whether
1180 an address belongs to a specific network or whether an address is public or
1181 private (reserved).")
1182 (license license:perl-license)))
1184 (define-public perl-net-dns
1186 (name "perl-net-dns")
1193 (string-append "https://www.net-dns.org/download/Net-DNS-"
1195 (string-append "mirror://cpan/authors/id/N/NL/NLNETLABS/Net-DNS-"
1196 version ".tar.gz")))
1198 (base32 "0yknrsh0wqr9s43c0wf3dyzrsi2r7k0v75hay74gqkq850xy3vyx"))))
1199 (build-system perl-build-system)
1201 `(("perl-digest-hmac" ,perl-digest-hmac)))
1202 (home-page "https://www.net-dns.org/")
1204 "Perl Interface to the Domain Name System")
1205 (description "Net::DNS is the Perl Interface to the Domain Name System.")
1206 (license license:x11)))
1208 (define-public perl-socket6
1210 (name "perl-socket6")
1216 "mirror://cpan/authors/id/U/UM/UMEMOTO/Socket6-"
1221 "054izici8klfxs8hr5rljib28plijpsfymy99xbzdp047bx1b2a6"))))
1222 (build-system perl-build-system)
1225 (modify-phases %standard-phases
1227 (lambda* (#:key outputs #:allow-other-keys)
1228 (let* ((out (assoc-ref outputs "out"))
1229 (args `("Makefile.PL"
1230 ,(string-append "PREFIX=" out)
1231 "INSTALLDIRS=site")))
1232 (setenv "CONFIG_SHELL" (which "sh"))
1233 (apply invoke "perl" args)))))))
1234 (home-page "https://metacpan.org/release/Socket6")
1236 "IPv6 related part of the C socket.h defines and structure manipulators for Perl")
1237 (description "Socket6 binds the IPv6 related part of the C socket header
1238 definitions and structure manipulators for Perl.")
1239 (license license:bsd-3)))
1241 (define-public perl-net-dns-resolver-programmable
1243 (name "perl-net-dns-resolver-programmable")
1249 "mirror://cpan/authors/id/J/JM/JMEHNLE/net-dns-resolver-programmable/"
1250 "Net-DNS-Resolver-Programmable-" version ".tar.gz"))
1253 "1v3nl2kaj4fs55n1617n53q8sa3mir06898vpy1rq98zjih24h4d"))
1255 (search-patches "perl-net-dns-resolver-programmable-fix.patch"))))
1256 (build-system perl-build-system)
1258 `(("perl-module-build" ,perl-module-build)))
1259 (inputs `(("perl-net-dns" ,perl-net-dns)))
1261 "https://metacpan.org/release/Net-DNS-Resolver-Programmable")
1263 "Programmable DNS resolver class for offline emulation of DNS")
1264 (description "Net::DNS::Resolver::Programmable is a programmable DNS resolver for
1265 offline emulation of DNS.")
1266 (license license:perl-license)))
1268 (define-public perl-net-dns-resolver-mock
1270 (name "perl-net-dns-resolver-mock")
1271 (version "1.20171219")
1275 "mirror://cpan/authors/id/M/MB/MBRADSHAW/"
1276 "Net-DNS-Resolver-Mock-" version ".tar.gz"))
1279 "0m3rxpkv1b9121srvbqkrgzg4m8mnydiydqv34in1i1ixwrl6jn9"))))
1280 (build-system perl-build-system)
1282 `(("perl-net-dns" ,perl-net-dns)))
1283 (home-page "https://metacpan.org/release/Net-DNS-Resolver-Mock")
1284 (synopsis "Mock DNS Resolver object for testing")
1286 "Net::DNS::Resolver::Mock is a subclass of Net::DNS::Resolver, but returns
1287 static data from any provided DNS zone file instead of querying the network.
1288 It is intended primarily for use in testing.")
1289 (license license:perl-license)))
1291 (define-public perl-netaddr-ip
1293 (name "perl-netaddr-ip")
1299 "mirror://cpan/authors/id/M/MI/MIKER/NetAddr-IP-"
1304 "1rx0dinrz9fk9qcg4rwqq5n1dm3xv2arymixpclcv2q2nzgq4npc"))))
1305 (build-system perl-build-system)
1308 (modify-phases %standard-phases
1310 (lambda* (#:key outputs #:allow-other-keys)
1311 (let* ((out (assoc-ref outputs "out"))
1312 (args `("Makefile.PL"
1313 ,(string-append "PREFIX=" out)
1314 "INSTALLDIRS=site")))
1315 (setenv "CONFIG_SHELL" (which "sh"))
1316 (apply invoke "perl" args)))))))
1318 "https://metacpan.org/release/NetAddr-IP")
1320 "Manages IPv4 and IPv6 addresses and subnets")
1321 (description "NetAddr::IP manages IPv4 and IPv6 addresses and subsets.")
1322 (license license:perl-license)))
1324 (define-public perl-net-patricia
1326 (name "perl-net-patricia")
1332 "mirror://cpan/authors/id/G/GR/GRUBER/Net-Patricia-"
1337 "0ln5f57vc8388kyh9vhx2infrdzfhbpgyby74h1qsnhwds95m0vh"))))
1338 (build-system perl-build-system)
1341 (modify-phases %standard-phases
1342 (add-after 'unpack 'dont-link-with-nsl ; Borrowed from Debian.
1344 (substitute* "Makefile.PL"
1348 `(("perl-net-cidr-lite" ,perl-net-cidr-lite)
1349 ("perl-socket6" ,perl-socket6)))
1351 "https://metacpan.org/release/Net-Patricia")
1353 "Patricia Trie Perl module for fast IP address lookups")
1355 "Net::Patricia does IP address lookups quickly in Perl.")
1356 ;; The bindings are licensed under GPL2 or later.
1357 ;; libpatricia is licensed under 2-clause BSD.
1358 (license (list license:gpl2+ license:bsd-2))))
1360 (define-public perl-net-cidr-lite
1362 (name "perl-net-cidr-lite")
1368 "mirror://cpan/authors/id/D/DO/DOUGW/Net-CIDR-Lite-"
1373 "14shj73zbqmfjbp0qz1fs9j4p2dpvz5hfkm4qfdjbydflbl2b8fg"))))
1374 (build-system perl-build-system)
1376 "https://metacpan.org/release/Net-CIDR-Lite")
1378 "Perl extension for merging IPv4 or IPv6 CIDR addresses")
1379 (description "Net::CIDR::Lite merges IPv4 or IPv6 CIDR addresses.")
1380 (license license:gpl1+)))
1382 ;; TODO: Use the geolite-mirror-simple.pl script from the example
1383 ;; directory to stay current with the databases. How?
1384 (define-public perl-geo-ip
1386 (name "perl-geo-ip")
1392 "mirror://cpan/authors/id/M/MA/MAXMIND/Geo-IP-"
1397 "1fka8fr7fw6sh3xa9glhs1zjg3s2gfkhi7n7da1l2m2wblqj0c0n"))))
1398 (build-system perl-build-system)
1399 (home-page "https://metacpan.org/release/Geo-IP")
1401 "Look up location and network information by IP Address in Perl")
1402 (description "The Perl module @code{Geo::IP}. It looks up location and
1403 network information by IP Address.")
1404 (license license:perl-license)))
1406 (define-public perl-io-socket-inet6
1408 (name "perl-io-socket-inet6")
1414 "mirror://cpan/authors/id/S/SH/SHLOMIF/IO-Socket-INET6-"
1419 "1fqypz6qa5rw2d5y2zq7f49frwra0aln13nhq5gi514j2zx21q45"))))
1420 (build-system perl-build-system)
1422 `(("perl-module-build" ,perl-module-build)
1423 ("perl-test-pod" ,perl-test-pod)
1424 ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
1425 (inputs `(("perl-socket6" ,perl-socket6)))
1426 (arguments `(;; Need network socket API
1429 "https://metacpan.org/release/IO-Socket-INET6")
1431 "Perl object interface for AF_INET/AF_INET6 domain sockets")
1432 (description "IO::Socket::INET6 is an interface for AF_INET/AF_INET6 domain
1434 (license license:perl-license)))
1436 (define-public libproxy
1442 (uri (string-append "https://github.com/libproxy/libproxy/"
1443 "releases/download/" version "/libproxy-"
1447 "0kvdrazlzwia876w988cmlypp253gwy6idlh8mjk958c29jb8kb5"))))
1448 (build-system cmake-build-system)
1450 `(("pkg-config" ,pkg-config)))
1456 (modify-phases %standard-phases
1459 (invoke "ctest" "-E" "url-test"))))))
1460 (synopsis "Library providing automatic proxy configuration management")
1461 (description "Libproxy handles the details of HTTP/HTTPS proxy
1462 configuration for applications across all scenarios. Applications using
1463 libproxy only have to specify which proxy to use.")
1464 (home-page "https://libproxy.github.io/libproxy")
1465 (license license:lgpl2.1+)))
1467 (define-public proxychains-ng
1469 (name "proxychains-ng")
1474 (uri (string-append "http://ftp.barfooze.de/pub/sabotage/tarballs/"
1475 "proxychains-ng-" version ".tar.xz"))
1477 (base32 "1bmhfbl1bzc87vl0xwr1wh5xvslfyc41nl2hqzhbj258p0sy004x"))))
1478 (build-system gnu-build-system)
1480 `(#:tests? #f ; there are no tests
1482 (modify-phases %standard-phases
1483 (add-after 'unpack 'fix-configure-script
1485 ;; The configure script is very intolerant to unknown arguments,
1486 ;; such as "CONFIG_SHELL".
1487 (substitute* "configure"
1488 (("\\*\\) break ;;" line)
1489 (string-append "[A-Z]*) shift ;;\n"
1492 (add-before 'configure 'set-up-environment
1496 (synopsis "Redirect any TCP connection through a proxy or proxy chain")
1497 (description "Proxychains-ng is a preloader which hooks calls to sockets
1498 in dynamically linked programs and redirects them through one or more SOCKS or
1500 (home-page "https://github.com/rofl0r/proxychains-ng")
1501 (license license:gpl2+)))
1509 (uri (string-append "http://enet.bespin.org/download/"
1510 "enet-" version ".tar.gz"))
1513 "0w780zc6cy8yq4cskpphx0f91lzh51vh9lwyc5ll8hhamdxgbxlq"))))
1514 (build-system gnu-build-system)
1516 `(("pkg-config" ,pkg-config)))
1517 (synopsis "Network communication layer on top of UDP")
1519 "ENet's purpose is to provide a relatively thin, simple and robust network
1520 communication layer on top of UDP. The primary feature it provides is optional
1521 reliable, in-order delivery of packets. ENet omits certain higher level
1522 networking features such as authentication, server discovery, encryption, or
1523 other similar tasks that are particularly application specific so that the
1524 library remains flexible, portable, and easily embeddable.")
1525 (home-page "http://enet.bespin.org")
1526 (license license:expat)))
1536 (url "https://github.com/yrutschle/sslh.git")
1537 (commit (string-append "v" version))))
1538 (file-name (git-file-name name version))
1540 (base32 "18zhkqlwfh6f5dg1a41a4p7p9g94dgb9nwls1ksy9r5yz174i2fx"))))
1541 (build-system gnu-build-system)
1543 `(;; Test dependencies.
1546 ("perl-conf-libconfig" ,perl-conf-libconfig)
1547 ("perl-io-socket-inet6" ,perl-io-socket-inet6)
1548 ("perl-socket6" ,perl-socket6)
1549 ("psmisc" ,psmisc))) ; for ‘killall’
1551 `(("libcap" ,libcap)
1552 ("libconfig" ,libconfig)
1554 ("tcp-wrappers" ,tcp-wrappers)))
1557 (modify-phases %standard-phases
1558 (delete 'configure) ; no configure script
1559 (add-before 'check 'fix-tests
1562 (("\"/tmp") "$ENV{\"TMPDIR\"} . \"")
1563 ;; The Guix build environment lacks ‘ip6-localhost’.
1564 (("ip6-localhost") "localhost"))
1566 ;; Many of these files are mentioned in the man page. Install them.
1567 (add-after 'install 'install-documentation
1568 (lambda* (#:key outputs #:allow-other-keys)
1569 (let* ((out (assoc-ref outputs "out"))
1570 (doc (string-append out "/share/doc/sslh")))
1571 (install-file "README.md" doc)
1574 (install-file file (string-append doc "/examples")))
1575 (append (find-files "." "\\.cfg")
1576 (find-files "scripts"))))
1578 #:make-flags (list "CC=gcc"
1581 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1582 #:test-target "test"))
1583 (home-page "https://www.rutschle.net/tech/sslh/README.html")
1584 (synopsis "Applicative network protocol demultiplexer")
1586 "sslh is a network protocol demultiplexer. It acts like a switchboard,
1587 accepting connections from clients on one port and forwarding them to different
1588 servers based on the contents of the first received data packet. Detection of
1589 common protocols like HTTP(S), SSL, SSH, OpenVPN, tinc, and XMPP is already
1590 implemented, but any other protocol that matches a regular expression can be
1591 added. sslh's name comes from its original application of serving both SSH and
1592 HTTPS on port 443, allowing SSH connections from inside corporate firewalls
1593 that block port 22.")
1594 (license (list license:bsd-2 ; tls.[ch]
1595 license:gpl2+)))) ; everything else
1597 (define-public iperf
1603 (uri (string-append "http://downloads.es.net/pub/iperf"
1604 "/iperf-" version ".tar.gz"))
1607 "033is7b5grfbiil98jxlz4ixp9shm44x6hy8flpsyz1i4h108inq"))))
1608 (build-system gnu-build-system)
1609 (synopsis "TCP, UDP and SCTP bandwidth measurement tool")
1611 "iPerf is a tool to measure achievable bandwidth on IP networks. It
1612 supports tuning of various parameters related to timing, buffers and
1613 protocols (TCP, UDP, SCTP with IPv4 and IPv6). For each test it reports
1614 the bandwidth, loss, and other parameters.")
1615 (home-page "https://software.es.net/iperf/")
1616 (license (list license:bsd-3 ; Main distribution.
1617 license:ncsa ; src/{units,iperf_locale,tcp_window_size}.c
1618 license:expat ; src/{cjson,net}.[ch]
1619 license:public-domain)))) ; src/portable_endian.h
1621 (define-public nethogs
1627 (uri (string-append "https://github.com/raboof/nethogs/archive/v"
1631 "1k4x8r7s4dgcb6n2rjn28h2yyij92mwm69phncl3597cdxr954va"))
1632 (file-name (string-append name "-" version ".tar.gz"))))
1633 (build-system gnu-build-system)
1635 `(("libpcap" ,libpcap)
1636 ("ncurses" ,ncurses)))
1638 `(#:make-flags `("CC=gcc"
1639 ,(string-append "PREFIX=" %output))
1641 (modify-phases %standard-phases
1642 (delete 'configure)))) ; No ./configure script.
1643 (home-page "https://github.com/raboof/nethogs")
1644 (synopsis "Per-process bandwidth monitor")
1645 (description "NetHogs is a small 'net top' tool for Linux. Instead of
1646 breaking the traffic down per protocol or per subnet, like most tools do, it
1647 groups bandwidth by process.
1649 NetHogs does not rely on a special kernel module to be loaded. If there's
1650 suddenly a lot of network traffic, you can fire up NetHogs and immediately see
1651 which PID is causing this. This makes it easy to identify programs that have
1652 gone wild and are suddenly taking up your bandwidth.")
1653 (license license:gpl2+)))
1655 (define-public nzbget
1662 (uri (string-append "https://github.com/nzbget/nzbget/archive/v"
1664 (file-name (string-append name "-" version ".tar.gz"))
1667 "0l3dzxz7d7jf6cyach41zirvsx1x0vs4nh053c0miycv7zjyrly7"))
1668 (modules '((guix build utils)))
1670 ;; Reported upstream as <https://github.com/nzbget/nzbget/pull/414>.
1672 (substitute* "daemon/connect/TlsSocket.cpp"
1673 (("gnutls_certificate-verification_status_print")
1674 "gnutls_certificate_verification_status_print"))
1679 (string-append "--with-libcurses-includes="
1680 (assoc-ref %build-inputs "ncurses") "/include")
1681 (string-append "--with-libcurses-libraries="
1682 (assoc-ref %build-inputs "ncurses") "/lib")
1683 (string-append "--with-tlslib=GnuTLS"))))
1684 (build-system gnu-build-system)
1685 (inputs `(("gnutls" ,gnutls)
1686 ("libxml2" ,libxml2)
1687 ("ncurses" ,ncurses)
1689 (native-inputs `(("pkg-config" ,pkg-config)))
1690 (home-page "https://github.com/nzbget/nzbget")
1691 (synopsis "Usenet binary file downloader")
1693 "NZBGet is a binary newsgrabber, which downloads files from Usenet based
1694 on information given in @code{nzb} files. NZBGet can be used in standalone
1695 and in server/client modes. In standalone mode, you pass NZBGet @command{nzb}
1696 files as command-line parameters and it downloads them and exits. NZBGet also
1697 contains a Web interface. Its server can be controlled through remote
1698 procedure calls (RPCs).")
1699 (license license:gpl2+)))
1701 (define-public openvswitch
1703 (name "openvswitch")
1708 "https://www.openvswitch.org/releases/openvswitch-"
1712 "1y78ix5inhhcvicbvyy2ij38am1215nr55vydhab3d4065q45z8k"))))
1713 (build-system gnu-build-system)
1715 '(;; FIXME: many tests fail with:
1717 ;; test -e $OVS_RUNDIR/ovs-vswitchd.pid
1718 ;; ovs-appctl -t ovs-vswitchd exit
1723 "--localstatedir=/var"
1724 "--with-dbdir=/var/lib/openvswitch")
1726 (modify-phases %standard-phases
1730 ;; Don't try to create directories under /var.
1738 ("pkg-config" ,pkg-config)
1739 ("python" ,python-2)
1741 ("util-linux" ,util-linux)))
1743 `(("python-six" ,python2-six)))
1745 `(("libcap-ng" ,libcap-ng)
1746 ("openssl" ,openssl)))
1747 (synopsis "Virtual network switch")
1748 (home-page "https://www.openvswitch.org/")
1750 "Open vSwitch is a multilayer virtual switch. It is designed to enable
1751 massive network automation through programmatic extension, while still
1752 supporting standard management interfaces and protocols (e.g. NetFlow, sFlow,
1753 IPFIX, RSPAN, CLI, LACP, 802.1ag).")
1754 (license ; see debian/copyright for detail
1755 (list license:lgpl2.1 ; xenserver and utilities/bugtool
1756 license:gpl2 ; datapath
1757 license:bsd-2 license:bsd-3
1758 license:asl2.0)))) ; all other
1760 (define-public python-ipy
1766 (uri (pypi-uri "IPy" version))
1769 "08d6kcacj67mvh0b6y765ipccy6gi4w2ndd4v1l3im2qm1cgcarg"))))
1770 (build-system python-build-system)
1771 (home-page "https://github.com/autocracy/python-ipy/")
1772 (synopsis "Python class and tools for handling IP addresses and networks")
1773 (description "The @code{IP} class allows a comfortable parsing and
1774 handling for most notations in use for IPv4 and IPv6 addresses and
1776 (license license:bsd-3)))
1778 (define-public python2-ipy
1779 (package-with-python2 python-ipy))
1781 (define-public speedtest-cli
1783 (name "speedtest-cli")
1789 (url "https://github.com/sivel/speedtest-cli")
1790 (commit (string-append "v" version))))
1791 (file-name (git-file-name name version))
1793 (base32 "1456yly6iym2c9bl6pi4sz8xbw34bm2dxm1vzpydsd6jazwpmy26"))))
1794 (build-system python-build-system)
1795 (home-page "https://github.com/sivel/speedtest-cli")
1796 (synopsis "Internet bandwidth tester")
1798 "Command line interface for testing internet bandwidth using
1800 (license license:asl2.0)))
1802 (define-public tftp-hpa
1808 (uri (string-append "mirror://kernel.org/software/"
1809 "network/tftp/tftp-hpa/tftp-hpa-" version
1813 "12vidchglhyc20znq5wdsbhi9mqg90jnl7qr9qs8hbvaz4fkdvmg"))))
1814 (build-system gnu-build-system)
1815 (arguments `(#:tests? #f)) ; no test target
1816 (synopsis "HPA's tftp client")
1818 "This is a tftp client derived from OpenBSD tftp with some extra options
1819 added and bugs fixed. The source includes readline support but it is not
1820 enabled due to license conflicts between the BSD advertising clause and the GPL.")
1821 (home-page "https://git.kernel.org/cgit/network/tftp/tftp-hpa.git/about/")
1822 ;; Some source files are distributed under a 3-clause BSD license, and
1823 ;; others under a 4-clause BSD license. Refer to the files in the source
1824 ;; distribution for clarification.
1825 (license (list license:bsd-3 license:bsd-4))))
1827 (define-public pidentd
1834 (uri (string-append "https://github.com/ptrrkssn/pidentd/archive/"
1835 "v" version ".tar.gz"))
1836 (file-name (string-append name "-" version ".tar.gz"))
1839 "0y3kd1bkydqkpc1qdff24yswysamsqivvadjy0468qri5730izgc"))))
1840 (build-system gnu-build-system)
1842 `(#:tests? #f)) ; No tests are included
1844 `(("openssl" ,openssl-1.0))) ;for the DES library
1845 (home-page "https://www.lysator.liu.se/~pen/pidentd/")
1846 (synopsis "Small Ident Daemon")
1848 "@dfn{Pidentd} (Peter's Ident Daemon) is a identd, which implements a
1849 identification server. Pidentd looks up specific TCP/IP connections and
1850 returns the user name and other information about the connection.")
1851 (license license:public-domain)))
1853 (define-public spiped
1859 (uri (string-append "https://www.tarsnap.com/spiped/spiped-"
1863 "1r51rdcl7nib1yv3yvgd5alwlkkwmr387brqavaklb0p2bwzixz6"))))
1864 (build-system gnu-build-system)
1866 '(#:test-target "test"
1867 #:make-flags (let* ((out (assoc-ref %outputs "out"))
1868 (bindir (string-append out "/bin"))
1869 (man1dir (string-append out "/share/man/man1")))
1870 (list "CC=gcc" ; It tries to invoke `c99`.
1871 (string-append "BINDIR=" bindir)
1872 (string-append "MAN1DIR=" man1dir)))
1874 (modify-phases %standard-phases
1875 (add-after 'unpack 'patch-command-invocations
1877 (substitute* '("Makefile"
1878 "libcperciva/cpusupport/Build/cpusupport.sh"
1879 "libcperciva/POSIX/posix-cflags.sh"
1880 "libcperciva/POSIX/posix-l.sh")
1881 (("command -p") ""))
1883 (delete 'configure) ; No ./configure script.
1884 (add-after 'install 'install-more-docs
1885 (lambda* (#:key outputs #:allow-other-keys)
1886 (let* ((out (assoc-ref %outputs "out"))
1887 (misc (string-append out "/share/doc/spiped")))
1888 (install-file "DESIGN.md" misc)
1891 `(("procps" ,procps))) ; `ps` is used by the test suite.
1893 `(("openssl" ,openssl)))
1894 (home-page "https://www.tarsnap.com/spiped.html")
1895 (synopsis "Create secure pipes between sockets")
1896 (description "Spiped (pronounced \"ess-pipe-dee\") is a utility for creating
1897 symmetrically encrypted and authenticated pipes between socket addresses, so
1898 that one may connect to one address (e.g., a UNIX socket on localhost) and
1899 transparently have a connection established to another address (e.g., a UNIX
1900 socket on a different system). This is similar to 'ssh -L' functionality, but
1901 does not use SSH and requires a pre-shared symmetric key.")
1902 (license license:bsd-2)))
1904 (define-public quagga
1910 (uri (string-append "mirror://savannah/quagga/quagga-"
1914 "1lsksqxij5f1llqn86pkygrf5672kvrqn1kvxghi169hqf1c0r73"))
1916 (search-patches "quagga-reproducible-build.patch"))))
1917 (build-system gnu-build-system)
1918 (native-inputs `(("pkg-config" ,pkg-config)
1920 ("dejagnu" ,dejagnu)))
1921 (inputs `(("readline" ,readline)
1922 ("c-ares" ,c-ares)))
1923 (synopsis "Routing Software Suite")
1924 (description "Quagga is a routing software suite, providing implementations
1925 of OSPFv2, OSPFv3, RIP v1 and v2, RIPng and BGP-4 for Unix platforms.
1927 The Quagga architecture consists of a core daemon, @command{zebra}, which
1928 acts as an abstraction layer to the underlying Unix kernel and presents the
1929 Zserv API over a Unix or TCP stream to Quagga clients. It is these Zserv
1930 clients which typically implement a routing protocol and communicate routing
1931 updates to the zebra daemon.")
1932 (home-page "https://www.nongnu.org/quagga/")
1933 (license license:gpl2+)))
1935 (define-public thc-ipv6
1936 (let ((revision "0")
1937 (commit "4bb72573e0950ce6f8ca2800a10748477020029e"))
1940 (version (git-version "3.4" revision commit))
1944 (url "https://github.com/vanhauser-thc/thc-ipv6.git")
1946 (file-name (git-file-name name version))
1949 "1x5i6vbsddqc2yks7r1a2fw2fk16qxvd6hpzh1lykjfpkal8fdir"))))
1950 (build-system gnu-build-system)
1952 `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1953 #:tests? #f ; No test suite.
1955 (modify-phases %standard-phases
1956 (delete 'configure) ; No ./configure script.
1957 (add-before 'build 'patch-paths
1959 (substitute* "Makefile"
1960 (("/bin/echo") "echo"))
1962 (add-after 'install 'install-more-docs
1963 (lambda* (#:key outputs #:allow-other-keys)
1964 (let* ((out (assoc-ref outputs "out"))
1965 (doc (string-append out "/share/thc-ipv6/doc")))
1966 (install-file "README" doc)
1967 (install-file "HOWTO-INJECT" doc)
1969 ;; TODO Add libnetfilter-queue once packaged.
1971 `(("libpcap" ,libpcap)
1972 ("openssl" ,openssl)
1974 (home-page "https://github.com/vanhauser-thc/thc-ipv6")
1975 (synopsis "IPv6 security research toolkit")
1976 (description "The THC IPv6 Toolkit provides command-line tools and a library
1977 for researching IPv6 implementations and deployments. It requires Linux 2.6 or
1978 newer and only works on Ethernet network interfaces.")
1979 ;; AGPL 3 with exception for linking with OpenSSL. See the 'LICENSE' file in
1980 ;; the source distribution for more information.
1981 (license license:agpl3))))
1990 (uri (string-append "https://github.com/tgraf/bmon/releases/download/v"
1991 version "/bmon-" version ".tar.gz"))
1994 "0ylzriv4pwh76344abzl1w219x188gshbycbna35gsyfp09c7z82"))))
1995 (build-system gnu-build-system)
1997 `(("libconfuse" ,libconfuse)
1999 ("ncurses" ,ncurses)))
2001 `(("pkg-config" ,pkg-config)))
2002 (synopsis "Bandwidth monitor")
2003 (description "bmon is a monitoring and debugging tool to capture
2004 networking-related statistics and prepare them visually in a human-friendly
2005 way. It features various output methods including an interactive curses user
2006 interface and a programmable text output for scripting.")
2007 (home-page "https://github.com/tgraf/bmon")
2008 ;; README.md mentions both the 2-clause BSD and expat licenses, but all
2009 ;; the source files only have expat license headers. Upstream has been
2010 ;; contacted for clarification: https://github.com/tgraf/bmon/issues/59
2011 ;; Update the license field when upstream responds.
2012 (license (list license:bsd-2
2015 (define-public libnet
2023 (url "https://github.com/sam-github/libnet")
2024 (commit (string-append "libnet-" version))))
2025 (file-name (git-file-name name version))
2028 "0cy8w4g5rv963v4p6iq3333kxgdddx2lywp70xf62553a25xhhs4"))))
2029 (build-system gnu-build-system)
2032 (modify-phases %standard-phases
2033 (add-after 'unpack 'chdir
2034 (lambda _ (chdir "libnet") #t))
2035 (add-before 'build 'build-doc
2036 (lambda* (#:key make-flags #:allow-other-keys)
2037 (apply invoke "make" "-C" "doc" "doc"
2040 `(("autoconf" ,autoconf)
2041 ("automake" ,automake)
2042 ("libtool" ,libtool)
2043 ("doxygen" ,doxygen)))
2044 (home-page "https://sourceforge.net/projects/libnet-dev/")
2045 (synopsis "Framework for low-level network packet construction")
2047 "Libnet provides a fairly portable framework for network packet
2048 construction and injection. It features portable packet creation interfaces
2049 at the IP layer and link layer, as well as a host of supplementary
2050 functionality. Using libnet, quick and simple packet assembly applications
2051 can be whipped up with little effort.")
2052 (license license:bsd-2)))
2061 (uri (string-append "ftp://ftp.bitwizard.nl/mtr/"
2062 "mtr-" version ".tar.gz"))
2064 (base32 "03gid8g4r6a9r40855s4345xm1bylj2kfqkicjwxpmvvccyng712"))))
2065 (build-system gnu-build-system)
2067 `(("libcap" ,libcap)
2068 ("ncurses" ,ncurses)))
2070 `(#:tests? #f)) ; tests require network access
2071 (home-page "https://www.bitwizard.nl/mtr/")
2072 (synopsis "Network diagnostic tool")
2074 "@acronym{mtr, My TraceRoute} combines the functionality of the
2075 @command{traceroute} and @command{ping} programs in a single network diagnostic
2076 tool. @command{mtr} can use several network protocols to detect intermediate
2077 routers (or @dfn{hops}) between the local host and a user-specified destination.
2078 It then continually measures the response time and packet loss at each hop, and
2079 displays the results in real time.")
2080 (license license:gpl2+)))
2082 (define-public strongswan
2089 (uri (string-append "https://download.strongswan.org/strongswan-"
2090 version ".tar.bz2"))
2092 (base32 "0g2m08gmgdi3qvvqz6zy7n16np53sp232xd0rdc2vdhk73img6id"))))
2093 (build-system gnu-build-system)
2096 (modify-phases %standard-phases
2097 (add-before 'build 'patch-command-file-names
2098 (lambda* (#:key inputs #:allow-other-keys)
2099 (substitute* "src/libstrongswan/utils/process.c"
2101 (string-append (assoc-ref inputs "bash") "/bin/sh")))
2103 (substitute* "src/libstrongswan/tests/suites/test_process.c"
2104 (("/bin/sh") (which "sh"))
2105 (("/bin/echo") (which "echo"))
2106 (("cat") (which "cat")))
2108 (add-before 'check 'set-up-test-environment
2109 (lambda* (#:key inputs #:allow-other-keys)
2110 (setenv "TZDIR" (string-append (assoc-ref inputs "tzdata")
2115 ;; Disable bsd-4 licensed plugins.
2117 "--disable-blowfish")))
2121 ("libgcrypt" ,libgcrypt)
2122 ("openssl" ,openssl)))
2124 `(("coreutils" ,coreutils)
2125 ("tzdata" ,tzdata-for-tests)))
2126 (synopsis "IKEv1/v2 keying daemon")
2127 (description "StrongSwan is an IPsec implementation originally based upon
2128 the FreeS/WAN project. It contains support for IKEv1, IKEv2, MOBIKE, IPv6,
2130 (home-page "https://strongswan.org/")
2134 ;; src/libcharon/plugins/dnscert/*
2135 ;; src/libcharon/plugins/ext_auth/*
2136 ;; src/libcharon/plugins/vici/ruby/*
2137 ;; src/libcharon/plugins/xauth_pam/xauth_pam_listener.[ch]
2141 ;; src/libstrongswan/plugins/sha3/sha3_keccak.c
2142 license:public-domain
2143 ;; src/libstrongswan/plugins/pkcs11/pkcs11.h
2144 (license:non-copyleft
2145 "file://src/libstrongswan/plugins/pkcs11/pkcs11.h"
2146 "pkcs11 contains a unknown permissive license. View the specific
2147 file for more details.")
2148 ;; These files are not included in the
2149 ;; build, they are disabled through
2150 ;; options to ./configure
2152 ;; src/libstrongswan/plugins/blowfish/bf_enc.c
2153 ;; src/libstrongswan/plugins/blowfish/bf_locl.h
2154 ;; src/libstrongswan/plugins/blowfish/bf_pi.h
2155 ;; src/libstrongswan/plugins/blowfish/bf_skey.c
2156 ;; src/libstrongswan/plugins/blowfish/blowfish_crypter.c
2157 ;; src/libstrongswan/plugins/des/des_crypter.c
2160 (define-public amule
2167 (url "https://github.com/amule-project/amule")
2169 (file-name (git-file-name name version))
2172 "010wxm6g9f92x6fympj501zbnjka32rzbx0sk3a2y4zpih5d2nsn"))
2173 ;; Patch for adopting crypto++ >= 6.0.
2174 (patches (search-patches "amule-crypto-6.patch"))))
2175 (build-system gnu-build-system)
2178 (modify-phases %standard-phases
2179 (delete 'bootstrap) ; bootstrap phase runs too early.
2180 (add-after 'patch-source-shebangs 'autogen
2182 (invoke "sh" "autogen.sh")
2196 "--enable-amule-gui"
2197 "--enable-amule-daemon"
2198 "--enable-webserver"
2199 "--with-denoise-level=0")))
2201 `(("autoconf" ,autoconf)
2202 ("automake" ,automake)
2203 ("gettext-minimal" ,gettext-minimal)
2207 ("crypto++" ,crypto++)
2209 ("wxwidgets-gtk2" ,wxwidgets-gtk2)))
2210 (home-page "http://amule.org/")
2211 (synopsis "Peer-to-peer client for the eD2K and Kademlia networks")
2213 "aMule is an eMule-like client for the eD2k and Kademlia peer-to-peer
2214 file sharing networks. It includes a graphical user interface (GUI), a daemon
2215 allowing you to run a client with no graphical interface, and a Web GUI for
2216 remote access. The @command{amulecmd} command allows you to control aMule
2218 (license license:gpl2+)))
2227 (string-append "https://github.com/zeromq/zyre/releases/download/v"
2228 version "/" name "-" version ".tar.gz"))
2231 "0qz2730bng1gs9xbqxhkw88qbsmszgmmrl2g9k6xrg6r3bqvsdc7"))))
2232 (build-system gnu-build-system)
2234 `(;; Ensure the kernel headers are treated as system headers to suppress
2235 ;; harmless -Werror=pedantic warnings.
2236 #:make-flags (list (string-append "C_INCLUDE_PATH="
2237 (assoc-ref %build-inputs "kernel-headers")
2239 (inputs `(("zeromq" ,zeromq)
2241 ("libsodium" ,libsodium)))
2242 (synopsis "Framework for proximity-based peer-to-peer applications")
2243 (description "Zyre provides reliable group messaging over local area
2244 networks using zeromq. It has these key characteristics:
2247 @item Zyre needs no administration or configuration.
2248 @item Peers may join and leave the network at any time.
2249 @item Peers talk to each other without any central brokers or servers.
2250 @item Peers can talk directly to each other.
2251 @item Peers can join groups, and then talk to groups.
2252 @item Zyre is reliable, and loses no messages even when the network is heavily loaded.
2253 @item Zyre is fast and has low latency, requiring no consensus protocols.
2254 @item Zyre is designed for WiFi networks, yet also works well on Ethernet networks.
2256 (home-page "https://github.com/zeromq/zyre")
2257 (license license:mpl2.0)))
2259 (define-public can-utils
2262 (version "2018.02.0")
2266 (url "https://github.com/linux-can/can-utils.git")
2267 (commit (string-append "v" version))))
2268 (file-name (git-file-name name version))
2271 "0r0zkm67bdcmbfypjr7z041d4zp0xzb379dyl8cvhmflh12fd2jb"))))
2272 (build-system gnu-build-system)
2274 `(#:tests? #f ; No tests exist.
2275 #:make-flags (list "CC=gcc"
2276 (string-append "PREFIX="
2277 (assoc-ref %outputs "out")))
2279 (modify-phases %standard-phases
2281 (delete 'configure))))
2282 (home-page "https://github.com/linux-can/can-utils")
2283 (synopsis "CAN utilities")
2284 (description "This package provides CAN utilities in the following areas:
2287 @item Basic tools to display, record, generate and replay CAN traffic
2288 @item CAN access via IP sockets
2289 @item CAN in-kernel gateway configuration
2290 @item CAN bus measurement and testing
2291 @item ISO-TP (ISO15765-2:2016 - this means messages with a body larger than
2293 @item Log file converters
2294 @item Serial Line Discipline configuration for slcan driver
2296 ;; Either BSD-3 or GPL-2 can be used.
2297 (license (list license:bsd-3 license:gpl2))))
2306 (uri (string-append "mirror://sourceforge/asio/asio/"
2307 version " (Stable)/asio-" version ".tar.bz2"))
2309 (base32 "1akray4l3hgahmb92sbvsqg128c7g7s92jrkf1sp1fjnfjrxq9sf"))))
2310 (build-system gnu-build-system)
2313 ("openssl" ,openssl)))
2317 (string-append "--with-boost=" (assoc-ref %build-inputs "boost"))
2318 (string-append "--with-openssl=" (assoc-ref %build-inputs "openssl")))))
2319 (home-page "https://think-async.com/Asio")
2320 (synopsis "C++ library for ASynchronous network I/O")
2321 (description "Asio is a cross-platform C++ library for network and
2322 low-level I/O programming that provides developers with a consistent
2323 asynchronous model using a modern C++ approach.")
2324 (license license:boost1.0)))
2326 (define-public shadowsocks
2327 ;; There are some security fixes after the last release.
2328 (let* ((commit "e332ec93e9c90f1cbee676b022bf2c5d5b7b1239")
2330 (version (git-version "2.8.2" revision commit)))
2332 (name "shadowsocks")
2334 (home-page "https://github.com/shadowsocks/shadowsocks")
2342 "1idd9b4f2pnhcpk1bh030hqg5zq25gkwxd53xi3c0cj242w7sp2j"))
2343 (file-name (git-file-name name version))))
2344 (build-system python-build-system)
2345 (synopsis "Fast tunnel proxy that helps you bypass firewalls")
2347 "This package is a fast tunnel proxy that helps you bypass firewalls.
2351 @item TCP & UDP support
2352 @item User management API
2354 @item Workers and graceful restart
2355 @item Destination IP blacklist
2357 (license license:asl2.0))))
2359 (define-public net-snmp
2365 (uri (string-append "mirror://sourceforge/net-snmp/net-snmp/"
2366 version "/net-snmp-" version ".tar.gz"))
2369 "1pvajzj9gmj56dmwix0ywmkmy2pglh6nny646hkm7ghfhh03bz5j"))
2370 (modules '((guix build utils)))
2373 ;; Drop bundled libraries.
2374 (delete-file-recursively "snmplib/openssl")
2376 (build-system gnu-build-system)
2378 `(#:test-target "test"
2379 ;; XXX: With parallel build enabled, Perl modules may not get linked with
2380 ;; libnetsnmp. See e.g. <https://bugzilla.novell.com/show_bug.cgi?id=819497>.
2381 #:parallel-build? #f
2383 (list (string-append "LDFLAGS=-Wl,-rpath="
2384 (assoc-ref %outputs "out")
2386 "--with-logfile=/var/log/snmpd.log"
2387 (string-append "--with-openssl="
2388 (assoc-ref %build-inputs "openssl")))
2390 (modify-phases %standard-phases
2391 (add-after 'unpack 'patch-tests
2392 (lambda* (#:key inputs #:allow-other-keys)
2393 (substitute* "testing/fulltests/support/simple_TESTCONF.sh"
2395 (string-append "NETSTAT=\"" (which "netstat") "\"")))
2396 (substitute* '("testing/fulltests/default/T065agentextend_simple"
2397 "testing/fulltests/default/T115agentxperl_simple")
2398 (("/usr/bin/env") (which "env")))
2399 (substitute* "testing/fulltests/default/T065agentextend_sh_simple"
2400 (("/bin/sh") (which "sh")))
2401 ;; These tests require network access.
2402 (for-each delete-file
2403 '("testing/fulltests/default/T070com2sec_simple"
2404 "testing/fulltests/default/T071com2sec6_simple"))
2406 (add-after 'unpack 'patch-Makefile.PL
2407 (lambda* (#:key outputs #:allow-other-keys)
2408 (substitute* "Makefile.in"
2409 (("Makefile.PL -NET")
2410 (string-append "Makefile.PL PREFIX="
2411 (assoc-ref outputs "out")
2412 " INSTALLDIRS=site" " NO_PERLLOCAL=1"
2417 ("openssl" ,openssl)
2419 ;; These inputs are only needed for tests.
2421 `(("net-tools" ,net-tools)
2422 ("coreutils" ,coreutils)
2424 (home-page "http://www.net-snmp.org/")
2425 (synopsis "Simple Network Management Protocol library and tools")
2426 (description "The @dfn{Simple Network Management Protocol} (SNMP) is a
2427 widely used protocol for monitoring the health and welfare of network
2428 equipment (e.g. routers), computer equipment and even devices like UPSs.
2429 Net-SNMP is a suite of applications used to implement SNMP v1, SNMP v2c and
2430 SNMP v3 using both IPv4 and IPv6.")
2431 ;; This only affects OpenBSD
2432 ;; https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-8100
2433 (properties `((lint-hidden-cve . ("CVE-2015-8100"))))
2434 (license (list license:bsd-3
2435 (license:non-copyleft
2436 "http://www.net-snmp.org/about/license.html"
2437 "CMU/UCD copyright notice")))))
2439 (define-public ubridge
2447 (url "https://github.com/GNS3/ubridge.git")
2448 (commit (string-append "v" version))))
2449 (file-name (git-file-name name version))
2451 (base32 "1bind7ylgxs743vfdmpdrpp4iamy461bc3i7nxza91kj7hyyjz6h"))))
2452 (build-system gnu-build-system)
2454 `(#:tests? #f ; no tests
2455 #:make-flags '("CC=gcc")
2457 (modify-phases %standard-phases
2458 (delete 'configure) ; no configure script
2459 (add-before 'install 'set-bindir
2460 (lambda* (#:key inputs outputs #:allow-other-keys)
2461 (let ((bin (string-append (assoc-ref outputs "out")
2464 (substitute* "Makefile"
2465 (("\\$\\(BINDIR\\)") bin)
2466 (("\tsetcap cap_net.*$") "")))
2469 `(("libpcap" ,libpcap)))
2470 (home-page "https://github.com/GNS3/ubridge/")
2471 (synopsis "Bridge for UDP tunnels, Ethernet, TAP and VMnet interfaces")
2472 (description "uBridge is a simple program to create user-land bridges
2473 between various technologies. Currently, bridging between UDP tunnels,
2474 Ethernet and TAP interfaces is supported. Packet capture is also supported.")
2475 (license license:gpl3+)))
2477 (define-public hcxtools
2485 (url "https://github.com/ZerBea/hcxtools.git")
2488 (base32 "0k2qlq9hz5zc21nyc6yrnfqzga7hydn5mm0x3rpl2fhkwl81lxcn"))
2489 (file-name (git-file-name name version))))
2490 (build-system gnu-build-system)
2493 ("libpcap" ,libpcap)
2494 ("openssl" ,openssl)
2499 (string-append "INSTALLDIR=" (assoc-ref %outputs "out") "/bin"))
2500 #:tests? #f ; no test suite
2502 (modify-phases %standard-phases
2504 (add-after 'unpack 'set-environment
2505 (lambda* (#:key inputs #:allow-other-keys)
2506 (setenv "C_INCLUDE_PATH"
2507 (string-append (assoc-ref inputs "curl") "/include:"
2508 (assoc-ref inputs "libpcap") "/include:"
2509 (assoc-ref inputs "openssl") "/include:"
2510 (assoc-ref inputs "zlib") "/include"))
2512 (home-page "https://github.com/ZerBea/hcxtools")
2513 (synopsis "Capture wlan traffic to hashcat and John the Ripper")
2515 "This package contains a small set of tools to capture and convert
2516 packets from wireless devices for use with hashcat or John the Ripper.")
2517 (license license:expat)))
2519 (define-public hcxdumptool
2521 (name "hcxdumptool")
2527 (url "https://github.com/ZerBea/hcxdumptool.git")
2530 (base32 "0pg1pvg029gm4rj0fj5kcsjb32hixgn4cxsgiir7spkmacf1qm4q"))
2531 (file-name (git-file-name name version))))
2532 (build-system gnu-build-system)
2536 (string-append "INSTALLDIR=" (assoc-ref %outputs "out") "/bin"))
2537 #:tests? #f ; no test suite
2539 (modify-phases %standard-phases
2540 (delete 'configure))))
2541 (home-page "https://github.com/ZerBea/hcxdumptool")
2542 (synopsis "Small tool to capture packets from wlan devices")
2544 "Small tool to capture packets from WLAN devices. After capturing,
2545 upload the \"uncleaned\" cap to @url{https://wpa-sec.stanev.org/?submit} to
2546 see if the access point or the client is vulnerable to a dictionary attack.
2547 Convert the cap file to hccapx format and/or to WPA-PMKID-PBKDF2
2548 hashline (16800) with @command{hcxpcaptool} from the @code{hcxtools} package
2549 and check if the WLAN key or the master key was transmitted unencrypted.")
2550 (license license:expat)))
2552 (define-public dante
2559 (uri (string-append "https://www.inet.no/dante/files/dante-"
2563 "19rqzj167q73ag20zxpvswhkk0bj56r5maf83v5016sw7vrcz5sc"))))
2564 (build-system gnu-build-system)
2566 ;; XXX: The dynamic socks library doesn't work with 'libc.so' (GNU ld
2567 ;; script). When preloading is enabled, 'sockd' failed with:
2568 ;; … Failed to open library "libc.so": …: invalid ELF header
2569 '(#:configure-flags '("--disable-preload")))
2570 (home-page "https://www.inet.no/dante/")
2571 (synopsis "SOCKS server and client")
2572 (description "Dante is a SOCKS client and server implementation. It can
2573 be installed on a machine with access to an external TCP/IP network and will
2574 allow all other machines, without direct access to that network, to be relayed
2575 through the machine the Dante server is running on. The external network will
2576 never see any machines other than the one Dante is running on.")
2577 (license (license:non-copyleft "file://LICENSE"))))
2579 (define-public restbed
2580 (let ((commit "6eb385fa9051203f28bf96cc1844bbb5a9a6481f"))
2583 (version (git-version "4.6" "1" commit))
2588 (url "https://github.com/Corvusoft/restbed/")
2590 (file-name (string-append name "-" version ".tar.gz"))
2592 (base32 "0k60i5drklqqrb4khb25fzkgz9y0sncxf1sp6lh2bm1m0gh0661n"))))
2593 (build-system cmake-build-system)
2596 ("catch" ,catch-framework)
2597 ("openssl" ,openssl)))
2601 '("-DBUILD_TESTS=NO"
2602 "-DBUILD_EXAMPLES=NO"
2604 "-DBUILD_SHARED=NO")
2606 (modify-phases %standard-phases
2607 (add-after 'unpack 'apply-patches-and-fix-paths
2608 (lambda* (#:key inputs #:allow-other-keys)
2609 (let ((asio (assoc-ref inputs "asio"))
2610 (catch (assoc-ref inputs "catch"))
2611 (openssl (assoc-ref inputs "openssl")))
2612 (substitute* "cmake/Findasio.cmake"
2613 (("(find_path\\( asio_INCLUDE asio\\.hpp HINTS ).*$" all begin)
2614 (string-append begin " \"" asio "/include\" )")))
2615 (substitute* "cmake/Findcatch.cmake"
2616 (("(find_path\\( catch_INCLUDE catch\\.hpp HINTS ).*$" all begin)
2617 (string-append begin " \"" catch "/include\" )")))
2618 (substitute* "cmake/Findopenssl.cmake"
2619 (("(find_library\\( ssl_LIBRARY ssl ssleay32 HINTS ).*$" all begin)
2620 (string-append begin " \"" openssl "/lib\" )"))
2621 (("(find_library\\( crypto_LIBRARY crypto libeay32 HINTS ).*$" all begin)
2622 (string-append begin " \"" openssl "/lib\" )"))
2623 (("(find_path\\( ssl_INCLUDE openssl/ssl\\.h HINTS ).*$" all begin)
2624 (string-append begin " \"" openssl "/include\" )")))))))))
2625 (synopsis "Asynchronous RESTful functionality to C++11 applications")
2626 (description "Restbed is a comprehensive and consistent programming
2627 model for building applications that require seamless and secure
2628 communication over HTTP.")
2629 (home-page "https://github.com/Corvusoft/restbed")
2630 (license license:agpl3+))))
2632 (define-public restinio
2639 (url "https://github.com/Stiffstream/restinio.git")
2640 (commit (string-append "v." version))))
2641 (file-name (git-file-name name version))
2644 "1c25kpx652nng8m1sqf5an2c3c4g3k6zj85mkkaxzk88iwfzq1s8"))))
2645 (build-system cmake-build-system)
2646 (inputs ; TODO: Need to force-keep references on some inputs, e.g. boost.
2648 ("catch2" ,catch-framework2)
2649 ("openssl" ,openssl)
2653 ("sobjectizer" ,sobjectizer)))
2657 ("http-parser", http-parser)))
2659 `(#:configure-flags '("-DRESTINIO_INSTALL=on")
2660 #:tests? #f ; TODO: The tests are called from the root CMakelist, need RESTINIO_TEST=on.
2662 (modify-phases %standard-phases
2663 (add-after 'unpack 'change-directory
2665 (chdir "dev/restinio")
2667 (home-page "https://stiffstream.com/en/products/restinio.html")
2668 (synopsis "C++14 library that gives you an embedded HTTP/Websocket server")
2669 (description "RESTinio is a header-only C++14 library that gives you an embedded
2670 HTTP/Websocket server. It is based on standalone version of ASIO
2671 and targeted primarily for asynchronous processing of HTTP-requests.")
2672 (license license:bsd-3)))
2674 (define-public opendht
2677 (version "2.0.0beta2")
2681 (url "https://github.com/savoirfairelinux/opendht.git")
2683 (file-name (git-file-name name version))
2686 "02ix0rvvyhq22gd5djcq84qz08ji7ln93faf23b27zjzni2klzv5"))))
2687 ;; Since 2.0, the gnu-build-system does not seem to work anymore, upstream bug?
2688 (build-system cmake-build-system)
2690 `(("gnutls" ,gnutls)
2692 ("readline" ,readline)
2693 ("jsoncpp" ,jsoncpp)
2694 ("openssl" ,openssl)
2697 `(("argon2" ,argon2) ; TODO: Needed for the pkg-config .pc file to work?
2698 ("msgpack" ,msgpack))) ;included in several installed headers
2700 `(("autoconf" ,autoconf)
2701 ("pkg-config" ,pkg-config)
2702 ("restinio" ,restinio)
2703 ("automake" ,automake)
2704 ("libtool" ,libtool)
2705 ("cppunit" ,cppunit)))
2707 `(#:tests? #f ; Tests require network connection.
2709 '(;; "-DOPENDHT_TESTS=on"
2710 "-DOPENDHT_TOOLS=off"
2711 "-DOPENDHT_PYTHON=off"
2712 "-DOPENDHT_PROXY_SERVER=on"
2713 "-DOPENDHT_PUSH_NOTIFICATIONS=on"
2714 "-DOPENDHT_PROXY_SERVER_IDENTITY=on"
2715 "-DOPENDHT_PROXY_CLIENT=on")))
2716 (home-page "https://github.com/savoirfairelinux/opendht/")
2717 (synopsis "Distributed Hash Table (DHT) library")
2718 (description "OpenDHT is a Distributed Hash Table (DHT) library. It may
2719 be used to manage peer-to-peer network connections as needed for real time
2721 (license license:gpl3+)))
2723 (define-public frrouting
2729 (uri (string-append "https://github.com/FRRouting/frr/releases/"
2730 "download/frr-" version "/frr-" version
2734 "0xfrvi62w8qlh46f504ka0skb7pm0g0p8vmdng4w90gsbirlzpdd"))))
2735 (build-system gnu-build-system)
2737 `(("c-ares" ,c-ares)
2739 ("readline" ,readline)))
2742 ("pkg-config" ,pkg-config)
2743 ("python" ,python-wrapper)
2744 ("python-pytest" ,python-pytest)))
2745 (home-page "https://frrouting.org/")
2746 (synopsis "IP routing protocol suite")
2747 (description "FRRouting (FRR) is an IP routing protocol suite which includes
2748 protocol daemons for BGP, IS-IS, LDP, OSPF, PIM, and RIP. ")
2749 (license license:gpl2+)))
2758 (url "https://git.kernel.org/pub/scm/network/wireless/iwd.git")
2760 (file-name (git-file-name name version))
2763 "001dikinsa6kshwscjbvwipavzwpqnpvx9fpshcn63gbvbhyd393"))))
2764 (build-system gnu-build-system)
2768 ("readline" ,readline)))
2770 `(("asciidoc" ,asciidoc)
2771 ("autoconf" ,autoconf)
2772 ("automake" ,automake)
2773 ("libtool" ,libtool)
2774 ("pkgconfig" ,pkg-config)
2776 ("openssl" ,openssl)))
2779 (let ((dbus (assoc-ref %outputs "out")))
2780 (list "--disable-systemd-service"
2781 "--enable-external-ell"
2786 "--localstatedir=/var"
2787 (string-append "--with-dbus-datadir=" dbus "/share/")
2788 (string-append "--with-dbus-busdir="
2789 dbus "/share/dbus-1/system-services")))
2791 (modify-phases %standard-phases
2792 (add-before 'bootstrap 'pre-bootstrap
2794 (substitute* "Makefile.am"
2795 ;; Test disabled because it needs the kernel module
2796 ;; 'pkcs8_key_parser' loaded.
2797 (("unit\\/test-eapol.*? ") "")
2798 ;; Don't try to 'mkdir /var'.
2799 (("\\$\\(MKDIR_P\\) -m 700") "true"))
2801 (home-page "https://git.kernel.org/pub/scm/network/wireless/iwd.git/")
2802 (synopsis "Internet Wireless Daemon")
2803 (description "iwd is a wireless daemon for Linux that aims to replace WPA
2804 Supplicant. It optimizes resource utilization by not depending on any external
2805 libraries and instead utilizing features provided by the Linux kernel to the
2806 maximum extent possible.")
2807 (license license:lgpl2.1+)))
2809 (define-public batctl
2816 (uri (string-append "https://downloads.open-mesh.org/batman/releases/batman-adv-"
2817 version "/batctl-" version ".tar.gz"))
2819 (base32 "01414ywhlb2b9ng9d5kd5rr1s7wzvi234j8hj6ra2spn92qykvv0"))))
2821 `(("libnl" ,libnl)))
2823 `(("pkg-config" ,pkg-config)))
2824 (build-system gnu-build-system)
2827 ;; Batctl only has a makefile. Thus we disable tests and
2828 ;; configuration, passing in a few make-flags.
2829 #:phases (modify-phases %standard-phases (delete 'configure))
2831 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2832 (string-append "PKG_CONFIG=" (assoc-ref %build-inputs "pkg-config")
2835 (home-page "https://www.open-mesh.org/projects/batman-adv/wiki/Wiki")
2836 (synopsis "Management tool for the mesh networking BATMAN protocol")
2837 (description "This package provides a control tool for the
2838 B.A.T.M.A.N. mesh networking routing protocol provided by the Linux kernel
2839 module @code{batman-adv}, for Layer 2.")
2840 (license license:gpl2+)))
2842 (define-public pagekite
2845 (version "1.5.0.200327")
2850 (url "https://github.com/pagekite/PyPagekite.git")
2851 (commit (string-append "v" version))))
2852 (file-name (git-file-name name version))
2854 (base32 "1vw7kjwxqd3qvm7kpxgjzl6797y0i1f16yfkfad84qpx2ij0gvdm"))))
2855 (build-system python-build-system)
2858 (modify-phases %standard-phases
2859 (add-after 'install 'install-man-page
2860 (lambda* (#:key inputs outputs #:allow-other-keys)
2861 (let* ((out (assoc-ref outputs "out"))
2862 (man (string-append out "/share/man")))
2864 (string-append "PYTHONPATH=" (getenv "PYTHONPATH"))
2866 (install-file "doc/pagekite.1" (string-append man "/man1"))
2869 `(("python-six" ,python-six)
2870 ("python-socksipychain" ,python-socksipychain)))
2871 (home-page "https://pagekite.net/")
2872 (synopsis "Make localhost servers publicly visible")
2874 "PageKite implements a tunneled reverse proxy which makes it easy to make
2875 a service (such as an HTTP or SSH server) on localhost visible to the wider
2876 Internet, even behind NAT or restrictive firewalls. A managed front-end relay
2877 service is available at @url{https://pagekite.net/}, or you can run your own.")
2878 (license license:agpl3+)))
2880 (define-public ipcalc
2886 (uri (string-append "http://jodies.de/ipcalc-archive/"
2887 name "-" version ".tar.gz"))
2890 "12if9sm8h2ac0pgwkw835cgyqjxm6h27k4kfn2vfas9krrqwbafx"))))
2891 (inputs `(("perl" ,perl)
2894 ("tarball" ,source)))
2895 (build-system trivial-build-system) ;no Makefile.PL
2897 `(#:modules ((guix build utils))
2900 (use-modules (guix build utils))
2901 (use-modules (srfi srfi-1))
2902 (let* ((source (assoc-ref %build-inputs "source"))
2903 (perl (string-append (assoc-ref %build-inputs "perl")
2905 (tar (assoc-ref %build-inputs "tar"))
2906 (gz (assoc-ref %build-inputs "gzip"))
2907 (out (assoc-ref %outputs "out"))
2908 (bin (string-append out "/bin"))
2909 (doc (string-append out "/share/doc/ipcalc")))
2910 (setenv "PATH" (string-append gz "/bin"))
2911 (invoke (string-append tar "/bin/tar") "xvf" source)
2912 (chdir (string-append ,name "-" ,version))
2914 (install-file "ipcalc" bin)
2915 (patch-shebang (string-append bin "/ipcalc") (list perl))
2917 (synopsis "Simple IP network calculator")
2918 (description "ipcalc takes an IP address and netmask and calculates the
2919 resulting broadcast, network, Cisco wildcard mask, and host range. By giving
2920 a second netmask, you can design subnets and supernets. It is also intended
2921 to be a teaching tool and presents the subnetting results as
2922 easy-to-understand binary values.")
2923 (home-page "http://jodies.de/ipcalc")
2924 (license license:gpl2+)))
2926 (define-public tunctl
2933 (uri (string-append "mirror://sourceforge/tunctl/tunctl/" version "/"
2934 "tunctl-" version ".tar.gz"))
2936 (base32 "1zsgn7w6l2zh2q0j6qaw8wsx981qcr536qlz1lgb3b5zqr66qama"))))
2937 (build-system gnu-build-system)
2940 (modify-phases %standard-phases
2941 (delete 'bootstrap) ;there is no configure.ac file
2942 (delete 'configure) ;there is no configure script
2943 (delete 'check) ;there are no tests
2947 (invoke "make" "tunctl")))
2948 ;; TODO: Requires docbook2x to generate man page from SGML.
2950 (lambda* (#:key outputs #:allow-other-keys)
2951 (let* ((out (assoc-ref outputs "out"))
2952 (bin (string-append out "/bin")))
2953 (install-file "tunctl" bin))
2955 (home-page "http://tunctl.sourceforge.net")
2956 (synopsis "Utility to set up and maintain TUN/TAP network interfaces")
2957 (description "Tunctl is used to set up and maintain persistent TUN/TAP
2958 network interfaces, enabling user applications to simulate network traffic.
2959 Such interfaces are useful for VPN software, virtualization, emulation,
2960 simulation, and a number of other applications.")
2961 (license license:gpl2)))
2970 (uri (string-append "mirror://sourceforge/wake-on-lan/wol/"
2971 version "/wol-" version ".tar.gz"))
2973 (base32 "08i6l5lr14mh4n3qbmx6kyx7vjqvzdnh3j9yfvgjppqik2dnq270"))))
2974 (build-system gnu-build-system)
2975 (home-page "https://sourceforge.net/projects/wake-on-lan/")
2976 (synopsis "Implements Wake On LAN functionality in a small program")
2977 (description "Tool to send a magic packet to wake another host on the
2978 network. This must be enabled on the target host, usually in the BIOS.")
2979 (license license:gpl2)))
2988 (uri "mirror://sourceforge/vde/vde2/2.3.2/vde2-2.3.2.tar.gz")
2990 (base32 "14xga0ib6p1wrv3hkl4sa89yzjxv7f1vfqaxsch87j6scdm59pr2"))))
2991 (build-system gnu-build-system)
2993 `(#:parallel-build? #f)) ; Build fails if #t.
2995 `(("python" ,python)
2996 ("libpcap" ,libpcap)
2997 ("openssl" ,openssl-1.0))) ; Build fails with 1.1.
2998 (home-page "https://github.com/virtualsquare/vde-2")
2999 (synopsis "Virtual Distributed Ethernet")
3000 (description "VDE is a set of programs to provide virtual software-defined
3001 Ethernet network interface controllers across multiple virtual or
3002 physical, local or remote devices. The VDE architecture provides
3003 virtual counterparts to hardware components such as switches and
3005 (license (list license:gpl2
3006 license:lgpl2.1 ; libvdeplug
3007 (license:non-copyleft ; slirpvde
3008 "file://COPYING.slirpvde"
3009 "See COPYING.slirpvde in the distribution.")))))
3011 (define-public haproxy
3017 (uri (string-append "https://www.haproxy.org/download/"
3018 (version-major+minor version)
3019 "/src/haproxy-" version ".tar.gz"))
3022 "0n8bw3d6gikr8c56ycrvksp1sl0b4yfzp19867cxkl3l0daqwrxv"))))
3023 (build-system gnu-build-system)
3026 (let* ((out (assoc-ref %outputs "out")))
3027 (list (string-append "PREFIX=" out)
3028 (string-append "DOCDIR=" out "/share/" ,name)
3029 "TARGET=linux-glibc"
3034 #:tests? #f ; there are only regression tests, using varnishtest
3036 (modify-phases %standard-phases
3037 (delete 'configure))))
3040 ("openssl" ,openssl)
3043 (home-page "https://www.haproxy.org/")
3044 (synopsis "Reliable, high performance TCP/HTTP load balancer")
3045 (description "HAProxy is a free, very fast and reliable solution offering
3046 high availability, load balancing, and proxying for TCP and HTTP-based
3047 applications. It is particularly suited for web sites crawling under very
3048 high loads while needing persistence or Layer7 processing. Supporting tens of
3049 thousands of connections is clearly realistic with today's hardware.")
3050 (license (list license:gpl2+
3052 license:lgpl2.1+))))