gnu: ruby-pandoc-ruby: Use pandoc instead of ghc-pandoc.
[jackhill/guix/guix.git] / gnu / packages / networking.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014, 2017, 2018 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2015, 2016, 2017, 2018, 2020 Ricardo Wurmus <rekado@elephly.net>
4 ;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
5 ;;; Copyright © 2015, 2016, 2017 Stefan Reichör <stefan@xsteve.at>
6 ;;; Copyright © 2016 Raimon Grau <raimonster@gmail.com>
7 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
8 ;;; Copyright © 2016 John Darrington <jmd@gnu.org>
9 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
10 ;;; Copyright © 2016 Eric Bavier <bavier@member.fsf.org>
11 ;;; Copyright © 2016, 2017 Nikita <nikita@n0.is>
12 ;;; Copyright © 2016, 2017, 2018 Arun Isaac <arunisaac@systemreboot.net>
13 ;;; Copyright © 2016 Benz Schenk <benz.schenk@uzh.ch>
14 ;;; Copyright © 2016, 2017 Pjotr Prins <pjotr.guix@thebird.nl>
15 ;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
16 ;;; Copyright © 2017 Leo Famulari <leo@famulari.name>
17 ;;; Copyright © 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
18 ;;; Copyright © 2017, 2018, 2019 Rutger Helling <rhelling@mykolab.com>
19 ;;; Copyright © 2017, 2019 Gábor Boskovits <boskovits@gmail.com>
20 ;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
21 ;;; Copyright © 2018 Adam Van Ymeren <adam@vany.ca>
22 ;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com>
23 ;;; Copyright © 2018 Tonton <tonton@riseup.net>
24 ;;; Copyright © 2018 Clément Lassieur <clement@lassieur.org>
25 ;;; Copyright © 2018 Theodoros Foradis <theodoros@foradis.org>
26 ;;; Copyright © 2018, 2020 Marius Bakke <mbakke@fastmail.com>
27 ;;; Copyright © 2018, 2020 Oleg Pykhalov <go.wigust@gmail.com>
28 ;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz>
29 ;;; Copyright © 2019, 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
30 ;;; Copyright © 2019 Vasile Dumitrascu <va511e@yahoo.com>
31 ;;; Copyright © 2019 Julien Lepiller <julien@lepiller.eu>
32 ;;; Copyright © 2019 Timotej Lazar <timotej.lazar@araneo.si>
33 ;;; Copyright © 2019 Brice Waegeneire <brice@waegenei.re>
34 ;;; Copyright © 2019 Tonton <tonton@riseup.net>
35 ;;; Copyright © 2019, 2020 Alex Griffin <a@ajgrf.com>
36 ;;; Copyright © 2019, 2020 Jan Wielkiewicz <tona_kosmicznego_smiecia@interia.pl>
37 ;;; Copyright © 2019 Daniel Schaefer <git@danielschaefer.me>
38 ;;; Copyright © 2019 Diego N. Barbato <dnbarbato@posteo.de>
39 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
40 ;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
41 ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
42 ;;;
43 ;;; This file is part of GNU Guix.
44 ;;;
45 ;;; GNU Guix is free software; you can redistribute it and/or modify it
46 ;;; under the terms of the GNU General Public License as published by
47 ;;; the Free Software Foundation; either version 3 of the License, or (at
48 ;;; your option) any later version.
49 ;;;
50 ;;; GNU Guix is distributed in the hope that it will be useful, but
51 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
52 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
53 ;;; GNU General Public License for more details.
54 ;;;
55 ;;; You should have received a copy of the GNU General Public License
56 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
57
58 (define-module (gnu packages networking)
59 #:use-module ((guix licenses) #:prefix license:)
60 #:use-module (guix packages)
61 #:use-module (guix download)
62 #:use-module (guix git-download)
63 #:use-module (guix build-system cmake)
64 #:use-module (guix build-system glib-or-gtk)
65 #:use-module (guix build-system gnu)
66 #:use-module (guix build-system go)
67 #:use-module (guix build-system meson)
68 #:use-module (guix build-system perl)
69 #:use-module (guix build-system python)
70 #:use-module (guix build-system trivial)
71 #:use-module (guix utils)
72 #:use-module (gnu packages)
73 #:use-module (gnu packages admin)
74 #:use-module (gnu packages adns)
75 #:use-module (gnu packages algebra)
76 #:use-module (gnu packages audio)
77 #:use-module (gnu packages autogen)
78 #:use-module (gnu packages autotools)
79 #:use-module (gnu packages base)
80 #:use-module (gnu packages bison)
81 #:use-module (gnu packages boost)
82 #:use-module (gnu packages check)
83 #:use-module (gnu packages code)
84 #:use-module (gnu packages compression)
85 #:use-module (gnu packages cpp)
86 #:use-module (gnu packages crypto)
87 #:use-module (gnu packages curl)
88 #:use-module (gnu packages cyrus-sasl)
89 #:use-module (gnu packages dejagnu)
90 #:use-module (gnu packages docbook)
91 #:use-module (gnu packages documentation)
92 #:use-module (gnu packages flex)
93 #:use-module (gnu packages freedesktop)
94 #:use-module (gnu packages gettext)
95 #:use-module (gnu packages glib)
96 #:use-module (gnu packages gnome)
97 #:use-module (gnu packages gnupg)
98 #:use-module (gnu packages graphviz)
99 #:use-module (gnu packages gstreamer)
100 #:use-module (gnu packages gtk)
101 #:use-module (gnu packages image)
102 #:use-module (gnu packages libevent)
103 #:use-module (gnu packages libidn)
104 #:use-module (gnu packages linux)
105 #:use-module (gnu packages lua)
106 #:use-module (gnu packages multiprecision)
107 #:use-module (gnu packages kerberos)
108 #:use-module (gnu packages ncurses)
109 #:use-module (gnu packages nettle)
110 #:use-module (gnu packages openldap)
111 #:use-module (gnu packages onc-rpc)
112 #:use-module (gnu packages password-utils)
113 #:use-module (gnu packages pcre)
114 #:use-module (gnu packages perl)
115 #:use-module (gnu packages perl-check)
116 #:use-module (gnu packages pkg-config)
117 #:use-module (gnu packages polkit)
118 #:use-module (gnu packages pretty-print)
119 #:use-module (gnu packages pulseaudio)
120 #:use-module (gnu packages python)
121 #:use-module (gnu packages python-web)
122 #:use-module (gnu packages python-xyz)
123 #:use-module (gnu packages qt)
124 #:use-module (gnu packages readline)
125 #:use-module (gnu packages ruby)
126 #:use-module (gnu packages samba)
127 #:use-module (gnu packages serialization)
128 #:use-module (gnu packages shells)
129 #:use-module (gnu packages sphinx)
130 #:use-module (gnu packages sqlite)
131 #:use-module (gnu packages ssh)
132 #:use-module (gnu packages tcl)
133 #:use-module (gnu packages textutils)
134 #:use-module (gnu packages tls)
135 #:use-module (gnu packages valgrind)
136 #:use-module (gnu packages version-control)
137 #:use-module (gnu packages web)
138 #:use-module (gnu packages wxwidgets)
139 #:use-module (gnu packages xml)
140 #:use-module (ice-9 match))
141
142 ;; This package does not have a release yet.
143 ;; But this is required to provide a feature in PipeWire.
144 (define-public libcamera
145 (package
146 (name "libcamera")
147 (version "0.0.0")
148 (source
149 (origin
150 (method git-fetch)
151 (uri
152 (git-reference
153 (url "git://linuxtv.org/libcamera.git")
154 (commit "74c8b508338ccdd0780aa1e067a1e8fcb9ee326b")))
155 (file-name
156 (git-file-name name version))
157 (sha256
158 (base32 "0d9lp8b9gyxh4jwfh55kp8zl1xyyg32z684v3y29378zpksncss1"))))
159 (build-system meson-build-system)
160 (outputs '("out" "doc"))
161 (arguments
162 `(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
163 #:configure-flags
164 (list
165 "-Dv4l2=true")
166 #:phases
167 (modify-phases %standard-phases
168 (add-after 'unpack 'disable-failing-tests
169 (lambda _
170 (substitute* "test/meson.build"
171 (("\\['list-cameras', 'list-cameras.cpp'\\],")
172 ""))
173 #t))
174 (add-after 'install 'move-doc
175 (lambda* (#:key outputs #:allow-other-keys)
176 (let* ((out (assoc-ref outputs "out"))
177 (doc (assoc-ref outputs "doc")))
178 (mkdir-p (string-append doc "/share"))
179 (rename-file
180 (string-append out "/share/doc")
181 (string-append doc "/share/doc"))
182 #t))))))
183 (native-inputs
184 `(("dot" ,graphviz)
185 ("doxygen" ,doxygen)
186 ("pkg-config" ,pkg-config)
187 ("python" ,python-wrapper)
188 ("sphinx" ,python-sphinx)
189 ("yaml" ,python-pyyaml)))
190 (inputs
191 `(("boost" ,boost)
192 ("glib" ,glib)
193 ("gstreamer" ,gst-plugins-base)
194 ("gnutls" ,gnutls)
195 ("libtiff" ,libtiff)
196 ("openssl" ,openssl)
197 ("qt5" ,qtbase)
198 ("udev" ,eudev)))
199 (synopsis "Camera stack and framework")
200 (description "LibCamera is a complex camera support library for GNU+Linux,
201 Android, and ChromeOS.")
202 (home-page "https://libcamera.org/")
203 (license license:lgpl2.1+)))
204
205 (define-public libnice
206 (package
207 (name "libnice")
208 (version "0.1.17")
209 (source
210 (origin
211 (method url-fetch)
212 (uri
213 (string-append "https://libnice.freedesktop.org/releases/"
214 name "-" version ".tar.gz"))
215 (sha256
216 (base32 "09lm0rxwvbr53svi3inaharlq96iwbs3s6957z69qp4bqpga0lhr"))))
217 (build-system meson-build-system)
218 (outputs '("out" "doc"))
219 (arguments
220 `(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
221 #:configure-flags
222 (list
223 "-Dgtk_doc=enabled")
224 #:phases
225 (modify-phases %standard-phases
226 (add-after 'install 'move-docs
227 (lambda* (#:key outputs #:allow-other-keys)
228 (let* ((out (assoc-ref outputs "out"))
229 (doc (assoc-ref outputs "doc")))
230 (mkdir-p (string-append doc "/share"))
231 (rename-file
232 (string-append out "/share/gtk-doc")
233 (string-append doc "/share/gtk-doc"))
234 #t))))))
235 (native-inputs
236 `(("glib:bin" ,glib "bin")
237 ("gobject-introspection" ,gobject-introspection)
238 ("gtk-doc" ,gtk-doc)
239 ("pkg-config" ,pkg-config)))
240 (inputs
241 `(("gnutls" ,gnutls)
242 ("gstreamer" ,gstreamer)
243 ("gst-plugins-base" ,gst-plugins-base)
244 ("libnsl" ,libnsl)))
245 (propagated-inputs
246 `(("glib" ,glib)
247 ("glib-networking" ,glib-networking)))
248 (synopsis "GLib ICE implementation")
249 (description "LibNice is a library that implements the Interactive
250 Connectivity Establishment (ICE) standard (RFC 5245 & RFC 8445). It provides a
251 GLib-based library, libnice, as well as GStreamer elements to use it.")
252 (home-page "https://libnice.freedesktop.org/")
253 (license
254 ;; This project is dual-licensed.
255 (list
256 license:lgpl2.1+
257 license:mpl1.1))))
258
259 (define-public rtmpdump
260 (package
261 (name "rtmpdump")
262 (version "2.4")
263 (source
264 (origin
265 (method git-fetch)
266 (uri (git-reference
267 (url "https://git.ffmpeg.org/rtmpdump")
268 (commit "c28f1bab7822de97353849e7787b59e50bbb1428")))
269 (file-name (git-file-name name version))
270 (sha256
271 (base32 "1n3kdip83nvvs4sin30zpcdr5q711mqhq2lxrv5vgbc6lskpwzlj"))))
272 (build-system gnu-build-system)
273 (arguments
274 `(#:tests? #f ; no tests
275 #:make-flags
276 (list
277 ;; The ‘validate-runpath’ phase fails to find librtmp.so.0.
278 (string-append "LDFLAGS=-Wl,-rpath="
279 (assoc-ref %outputs "out") "/lib")
280 (string-append "prefix=" (assoc-ref %outputs "out")))
281 #:phases
282 (modify-phases %standard-phases
283 (add-after 'unpack 'omit-static-library
284 (lambda _
285 (substitute* "librtmp/Makefile"
286 (("cp librtmp\\.a .*") ; don't install it
287 "")
288 (("librtmp\\.a ") ; don't build it
289 ""))
290 #t))
291 (delete 'configure))))
292 (inputs
293 `(("openssl" ,openssl-1.0)
294 ("zlib" ,zlib)))
295 (synopsis "Tools and library for handling RTMP streams")
296 (description "RTMPdump is a toolkit for RTMP streams. All forms of RTMP are
297 supported, including rtmp://, rtmpt://, rtmpe://, rtmpte://, and rtmps://.")
298 (home-page "https://rtmpdump.mplayerhq.hu/")
299 (license
300 (list
301 ;; Library.
302 license:lgpl2.1+
303 ;; Others.
304 license:gpl2+))))
305
306 (define-public srt
307 (package
308 (name "srt")
309 (version "1.4.1")
310 (source
311 (origin
312 (method git-fetch)
313 (uri
314 (git-reference
315 (url "https://github.com/Haivision/srt.git")
316 (commit (string-append "v" version))))
317 (file-name (git-file-name name version))
318 (sha256
319 (base32 "01xaq44j95kbgqfl41pnybvqy0yq6wd4wdw88ckylzf0nzp977xz"))))
320 (build-system cmake-build-system)
321 (arguments
322 `(#:configure-flags
323 (list
324 (string-append "-DCMAKE_INSTALL_BINDIR="
325 (assoc-ref %outputs "out") "/bin")
326 (string-append "-DCMAKE_INSTALL_LIBDIR="
327 (assoc-ref %outputs "out") "/lib")
328 (string-append "-DINSTALL_SHARED_DIR="
329 (assoc-ref %outputs "out") "/lib")
330 (string-append "-DCMAKE_INSTALL_INCLUDEDIR="
331 (assoc-ref %outputs "out") "/include")
332 "-DENABLE_UNITTESTS=ON"
333 "-DENABLE_CODE_COVERAGE=ON")))
334 (native-inputs
335 `(("git" ,git-minimal)
336 ("gtest" ,googletest)
337 ("pkg-config" ,pkg-config)
338 ("tclsh" ,tcl)))
339 (propagated-inputs
340 `(("openssl" ,openssl)))
341 (synopsis "Secure Reliable Transport")
342 (description "SRT is a transport technology that optimizes streaming
343 performance across unpredictable networks, such as the Internet.")
344 (home-page "https://www.srtalliance.org/")
345 (license license:mpl2.0)))
346
347 (define-public lksctp-tools
348 (package
349 (name "lksctp-tools")
350 (version "1.0.18")
351 (source
352 (origin
353 (method git-fetch)
354 (uri
355 (git-reference
356 (url "https://github.com/sctp/lksctp-tools.git")
357 (commit (string-append "v" version))))
358 (file-name (git-file-name name version))
359 (sha256
360 (base32 "1x4fwzrlzvfa3vcpja97m8w5g9ir2zrh4zs7zksminrnmdrs0dsr"))))
361 (build-system gnu-build-system)
362 (native-inputs
363 `(("autoconf" ,autoconf)
364 ("automake" ,automake)
365 ("libtool" ,libtool)
366 ("pkg-config" ,pkg-config)))
367 (inputs
368 `(("linux-headers" ,linux-libre-headers)))
369 (synopsis "Linux SCTP helper library")
370 (description "Lksctp-tools project provides a user space library for SCTP
371 (libsctp) including C language header files (netinet/sctp.h) for accessing SCTP
372 specific application programming interfaces not provided by the standard
373 sockets, and also some helper utilities around SCTP.")
374 (home-page "http://lksctp.sourceforge.net/")
375 (license
376 (list
377 ;; Library.
378 license:lgpl2.1+
379 ;; Others.
380 license:gpl2+))))
381
382 (define-public knockd
383 (package
384 (name "knockd")
385 (version "0.7")
386 (source (origin
387 (method url-fetch)
388 (uri (string-append "https://www.zeroflux.org/proj/knock/files/knock-"
389 version ".tar.gz"))
390 (sha256
391 (base32
392 "193qcpsy7v51c6awhg9652l5blyz8vp6n7y6fi7l4rhh6af4ff4r"))))
393 (build-system gnu-build-system)
394 (inputs
395 `(("libpcap" ,libpcap)))
396 (home-page "https://www.zeroflux.org/projects/knock")
397 (synopsis "Small port-knock daemon")
398 (description "@command{knockd} is a port-knock daemon. It listens to all traffic on
399 an ethernet or PPP interface, looking for special \"knock\" sequences of @dfn{port-hits}
400 (UDP/TCP packets sent to a server port). This port need not be open, since knockd listens
401 at the link-layer level.")
402 (license license:gpl2+)))
403
404 (define-public nng
405 (package
406 (name "nng")
407 (version "1.3.2")
408 (source
409 (origin
410 (method git-fetch)
411 (uri (git-reference
412 (url "https://github.com/nanomsg/nng.git")
413 (commit (string-append "v" version))))
414 (file-name (git-file-name name version))
415 (sha256
416 (base32 "0a4jg8alh2h0rw6fb4dqpvk4hgl2a7h76mq7g34fy89qh9sgg1a4"))))
417 (build-system cmake-build-system)
418 (arguments
419 `(#:configure-flags
420 (list "-DNNG_ENABLE_COVERAGE=ON"
421 "-DNNG_ENABLE_TLS=ON")
422 #:phases
423 (modify-phases %standard-phases
424 (add-after 'unpack 'disable-failing-tests
425 (lambda _
426 ;; These tests require network access.
427 (substitute* "tests/CMakeLists.txt"
428 (("add_nng_test1\\(httpclient 60 NNG_SUPP_HTTP\\)") "")
429 (("add_nng_test1\\(resolv 10 NNG_STATIC_LIB\\)") "")
430 (("add_nng_test\\(tls 60\\)") ""))
431 #t)))))
432 (native-inputs
433 `(("ksh" ,oksh)))
434 (inputs
435 `(("mbedtls" ,mbedtls-apache)))
436 (synopsis "Lightweight messaging library")
437 (description "NNG project is a rewrite of the scalability protocols library
438 known as libnanomsg, and adds significant new capabilities, while retaining
439 compatibility with the original. It is a lightweight, broker-less library,
440 offering a simple API to solve common recurring messaging problems, such as
441 publish/subscribe, RPC-style request/reply, or service discovery.")
442 (home-page "https://nng.nanomsg.org/")
443 (license license:expat)))
444
445 (define-public nanomsg
446 (package
447 (name "nanomsg")
448 (version "1.1.5")
449 (source
450 (origin
451 (method git-fetch)
452 (uri
453 (git-reference
454 (url "https://github.com/nanomsg/nanomsg.git")
455 (commit version)))
456 (file-name (git-file-name name version))
457 (sha256
458 (base32 "01ddfzjlkf2dgijrmm3j3j8irccsnbgfvjcnwslsfaxnrmrq5s64"))))
459 (build-system cmake-build-system)
460 (outputs '("out" "doc"))
461 (arguments
462 `(#:configure-flags
463 (list
464 "-DNN_ENABLE_COVERAGE=ON")
465 #:phases
466 (modify-phases %standard-phases
467 (add-after 'install 'move-docs
468 (lambda* (#:key outputs #:allow-other-keys)
469 (let* ((out (assoc-ref outputs "out"))
470 (doc (assoc-ref outputs "doc")))
471 (mkdir-p (string-append doc "/share/doc"))
472 (rename-file
473 (string-append out "/share/doc/nanomsg")
474 (string-append doc "/share/doc/nanomsg"))
475 #t))))))
476 (native-inputs
477 `(("asciidoctor" ,ruby-asciidoctor)
478 ("pkg-config" ,pkg-config)))
479 (synopsis "Scalable socket library")
480 (description "Nanomsg is a socket library that provides several common
481 communication patterns. It aims to make the networking layer fast, scalable,
482 and easy to use. Implemented in C, it works on a wide range of operating
483 systems with no further dependencies.")
484 (home-page "https://nanomsg.org/")
485 (license (license:non-copyleft "file:///COPYING"))))
486
487 (define-public blueman
488 (package
489 (name "blueman")
490 (version "2.1.3")
491 (source
492 (origin
493 (method url-fetch)
494 (uri (string-append "https://github.com/blueman-project/blueman/releases"
495 "/download/" version "/blueman-" version ".tar.xz"))
496 (sha256
497 (base32 "1pngqbwapbvywhkmflapqvs0wa0af7d1a87wy56l5hg2r462xl1v"))))
498 (build-system glib-or-gtk-build-system)
499 (arguments
500 `(#:configure-flags (list "--enable-polkit"
501 "--without-systemdsystemunitdir" ; Not required
502 "--without-systemduserunitdir") ; Not required
503 #:phases
504 (modify-phases %standard-phases
505 ;; Python references are not being patched in patch-phase of build,
506 ;; despite using python-wrapper as input. So we patch them manually.
507 (add-after 'unpack 'patch-python-references
508 (lambda* (#:key inputs #:allow-other-keys)
509 (with-directory-excursion "apps"
510 (substitute* '("blueman-adapters.in" "blueman-applet.in"
511 "blueman-assistant.in" "blueman-manager.in"
512 "blueman-mechanism.in" "blueman-report.in"
513 "blueman-rfcomm-watcher.in" "blueman-sendto.in"
514 "blueman-services.in" "blueman-tray.in")
515 (("@PYTHON@") (string-append (assoc-ref inputs "python")
516 "/bin/python"
517 ,(version-major+minor
518 (package-version python))))))
519 #t))
520 ;; Fix loading of external programs.
521 (add-after 'unpack 'patch-external-programs
522 (lambda* (#:key inputs #:allow-other-keys)
523 (substitute* '("apps/blueman-report.in" "blueman/main/NetConf.py"
524 "blueman/main/PPPConnection.py")
525 (("/usr/sbin/bluetoothd")
526 (string-append (assoc-ref inputs "bluez")
527 "/libexec/bluetooth/bluetoothd"))
528 (("/sbin/iptables")
529 (string-append (assoc-ref inputs "iptables")
530 "/sbin/iptables"))
531 (("/usr/sbin/pppd")
532 (string-append (assoc-ref inputs "ppp")
533 "/sbin/pppd")))
534 #t))
535 ;; Fix loading of pulseaudio libraries.
536 (add-after 'unpack 'patch-pulseaudio-libraries
537 (lambda* (#:key inputs #:allow-other-keys)
538 (let* ((pulseaudio (assoc-ref inputs "pulseaudio"))
539 (pulse (string-append pulseaudio "/lib/libpulse.so.0"))
540 (pulse-glib (string-append pulseaudio
541 "/lib/libpulse-mainloop-glib.so.0")))
542 (with-directory-excursion "blueman/main"
543 (substitute* "PulseAudioUtils.py"
544 (("libpulse.so.0") pulse)
545 (("libpulse-mainloop-glib.so.0") pulse-glib)))
546 #t)))
547 ;; Fix running of blueman programs.
548 (add-after 'glib-or-gtk-wrap 'wrap-blueman-progs
549 (lambda* (#:key outputs #:allow-other-keys)
550 (let* ((out (assoc-ref outputs "out"))
551 (bin (string-append out "/bin/blueman-"))
552 (libexec (string-append out "/libexec/blueman-"))
553 (lib (string-append out "/lib/python"
554 ,(version-major+minor
555 (package-version python))
556 "/site-packages")))
557 (for-each
558 (lambda (program)
559 (wrap-program program
560 `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,lib))
561 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))))
562 (append
563 (map (lambda (prog) (string-append bin prog))
564 '("adapters" "applet" "assistant" "manager" "report"
565 "sendto" "services" "tray"))
566 (map (lambda (prog) (string-append libexec prog))
567 '("mechanism" "rfcomm-watcher"))))
568 #t))))))
569 (native-inputs
570 `(("cython" ,python-cython)
571 ("glib:bin" ,glib "bin")
572 ("gobject-introspection" ,gobject-introspection)
573 ("gtk+:bin" ,gtk+ "bin")
574 ("intltool" ,intltool)
575 ("pkg-config" ,pkg-config)))
576 (inputs
577 `(("bluez" ,bluez)
578 ("dbus" ,dbus)
579 ("gdkpixbuf" ,gdk-pixbuf+svg)
580 ("glib" ,glib)
581 ("gtk+" ,gtk+)
582 ("iproute2" ,iproute)
583 ("iptables" ,iptables)
584 ("net-tools" ,net-tools)
585 ("pango" ,pango)
586 ("polkit" ,polkit)
587 ("ppp" ,ppp)
588 ("pulseaudio" ,pulseaudio)
589 ("pycairo" ,python-pycairo)
590 ("pygobject" ,python-pygobject)
591 ("python" ,python-wrapper)
592 ("libappindicator" ,libappindicator)
593 ("libnm" ,network-manager)))
594 (synopsis "GTK+ Bluetooth manager")
595 (description "Blueman is a Bluetooth management utility using the Bluez
596 D-Bus backend. It is designed to be easy to use for most common Bluetooth
597 tasks.")
598 (home-page "https://github.com/blueman-project/blueman")
599 (license license:gpl3+)))
600
601 ;; The gnu.org ‘home’ for this GNU project is a directory listing with 1.6.0 as
602 ;; the latest version. The author's git repository, mentioned in the 1.6.0
603 ;; README and otherwise legit-looking, contains a proper 1.7.0 release tarball
604 ;; with many OUI updates. Use it, even though it's also several years old now.
605 (define-public macchanger
606 (package
607 (name "macchanger")
608 (version "1.7.0")
609 (source
610 (origin
611 (method url-fetch)
612 (uri (string-append "https://github.com/alobbs/macchanger/"
613 "releases/download/" version "/"
614 name "-" version ".tar.gz"))
615 (sha256
616 (base32 "1gs5m0jxyprdp00w2qkbnaqm3ilkjz0q1gqdg4nzdm8g4xy73qns"))))
617 (build-system gnu-build-system)
618 (home-page "https://www.gnu.org/software/macchanger/")
619 (synopsis "Viewing and manipulating MAC addresses of network interfaces")
620 (description "GNU MAC Changer is a utility for viewing and changing MAC
621 addresses of networking devices. New addresses may be set explicitly or
622 randomly. They can include MAC addresses of the same or other hardware vendors
623 or, more generally, MAC addresses of the same category of hardware.")
624 (license license:gpl2+)))
625
626 (define-public miredo
627 (package
628 (name "miredo")
629 (version "1.2.6")
630 (source (origin
631 (method url-fetch)
632 (uri (string-append "http://www.remlab.net/files/miredo/miredo-"
633 version ".tar.xz"))
634 (sha256
635 (base32
636 "0j9ilig570snbmj48230hf7ms8kvcwi2wblycqrmhh85lksd49ps"))))
637 (build-system gnu-build-system)
638 (arguments
639 '(#:phases
640 (modify-phases %standard-phases
641 ;; The checkconf test in src/ requires network access.
642 (add-before
643 'check 'disable-checkconf-test
644 (lambda _
645 (substitute* "src/Makefile"
646 (("^TESTS = .*") "TESTS = \n"))
647 #t)))))
648 (home-page "https://www.remlab.net/miredo/")
649 (synopsis "Teredo IPv6 tunneling software")
650 (description
651 "Miredo is an implementation (client, relay, server) of the Teredo
652 specification, which provides IPv6 Internet connectivity to IPv6 enabled hosts
653 residing in IPv4-only networks, even when they are behind a NAT device.")
654 (license license:gpl2+)))
655
656 (define-public ndisc6
657 (package
658 (name "ndisc6")
659 (version "1.0.4")
660 (source (origin
661 (method url-fetch)
662 (uri (string-append "https://www.remlab.net/files/ndisc6/ndisc6-"
663 version ".tar.bz2"))
664 (sha256
665 (base32
666 "07swyar1hl83zxmd7fqwb2q0c0slvrswkcfp3nz5lknrk15dmcdb"))))
667 (build-system gnu-build-system)
668 (home-page "https://www.remlab.net/ndisc6/")
669 (synopsis "IPv6 diagnostic tools")
670 (description
671 "NDisc6 is a collection of tools for IPv6 networking diagnostics.
672 It includes the following programs:
673
674 @itemize
675 @item @command{ndisc6}: ICMPv6 Neighbor Discovery tool.
676 @item @command{rdisc6}: ICMPv6 Router Discovery tool.
677 @item @command{tcptraceroute6}: IPv6 traceroute over TCP.
678 @item @command{traceroute6}: IPv6 traceroute over UDP.
679 @item @command{rdnssd}: Recursive DNS Servers discovery daemon.
680 @end itemize")
681 ;; The user can choose version 2 or 3 of the GPL, not later versions.
682 (license (list license:gpl2 license:gpl3))))
683
684 (define-public parprouted
685 (package
686 (name "parprouted")
687 (version "0.7")
688 (source (origin
689 (method url-fetch)
690 (uri (string-append "https://www.hazard.maks.net/parprouted/"
691 "parprouted-" version ".tar.gz"))
692 (sha256
693 (base32
694 "1z6yg28i0pv20jivyy82pxb38hsryj95inhj27bs6ja1bp4l6dnn"))))
695 (build-system gnu-build-system)
696 (arguments
697 `(#:tests? #f ;no tests
698 #:phases (modify-phases %standard-phases
699 (add-after 'unpack 'insert-absolute-iproute-reference
700 (lambda* (#:key inputs #:allow-other-keys)
701 (let* ((iproute (assoc-ref inputs "iproute"))
702 (ip (string-append iproute "/sbin/ip")))
703 (substitute* "parprouted.c"
704 (("/sbin/ip") ip))
705 #t)))
706 (replace 'configure
707 (lambda* (#:key outputs #:allow-other-keys)
708 (let* ((out (assoc-ref outputs "out"))
709 (sbin (string-append out "/sbin"))
710 (man8 (string-append out "/share/man/man8")))
711 ;; No configure script; hijack the phase to make
712 ;; the necessary arrangements.
713 (setenv "CC" ,(cc-for-target))
714 (for-each mkdir-p (list sbin man8))
715 (substitute* "Makefile"
716 (("/usr/local/sbin") sbin)
717 (("/usr/local/man/man8") man8))
718 #t))))))
719 (inputs
720 `(("iproute" ,iproute)))
721 (home-page "https://www.hazard.maks.net/parprouted/")
722 (synopsis "Proxy ARP requests to other interfaces")
723 (description
724 "@command{parprouted} is a daemon for transparent IP (Layer@tie{}3)
725 proxy ARP bridging. Unlike standard bridging, proxy ARP bridging can bridge
726 Ethernet networks behind wireless nodes. Normal layer@tie{}2 bridging does
727 not work between wireless nodes because wireless does not know about MAC
728 addresses used in the wired Ethernet networks. This daemon can also be
729 useful for making transparent firewalls.")
730 (license license:gpl2)))
731
732 (define-public socat
733 (package
734 (name "socat")
735 (version "1.7.3.4")
736 (source (origin
737 (method url-fetch)
738 (uri (string-append
739 "http://www.dest-unreach.org/socat/download/socat-"
740 version ".tar.bz2"))
741 (sha256
742 (base32
743 "1z7xgnwiqpcv1j6aghhj9nqbx7cg3gpc4n9j7vi9hm7nhv5788wp"))))
744 (build-system gnu-build-system)
745 (arguments '(#:tests? #f)) ; no test suite
746 (inputs `(("openssl" ,openssl)))
747 (home-page "http://www.dest-unreach.org/socat/")
748 (synopsis
749 "Open bidirectional communication channels from the command line")
750 (description
751 "socat is a relay for bidirectional data transfer between two independent
752 data channels---files, pipes, devices, sockets, etc. It can create
753 \"listening\" sockets, named pipes, and pseudo terminals.
754
755 socat can be used, for instance, as TCP port forwarder, as a shell interface
756 to UNIX sockets, IPv6 relay, for redirecting TCP oriented programs to a serial
757 line, to logically connect serial lines on different computers, or to
758 establish a relatively secure environment (su and chroot) for running client
759 or server shell scripts with network connections.")
760 (license license:gpl2)))
761
762 (define-public tcp-wrappers
763 (package
764 (name "tcp-wrappers")
765 (version "7.6")
766 (source (origin
767 (method url-fetch)
768 (uri (string-append
769 "ftp://ftp.porcupine.org/pub/security/tcp_wrappers_"
770 version ".tar.gz"))
771 (sha256
772 (base32
773 "0p9ilj4v96q32klavx0phw9va21fjp8vpk11nbh6v2ppxnnxfhwm"))))
774 (build-system gnu-build-system)
775 (arguments
776 `(#:phases
777 (modify-phases %standard-phases
778 (delete 'configure) ; there is no configure script
779 (delete 'check) ; there are no tests
780 (replace 'build
781 (lambda _
782 (chmod "." #o755)
783 ;; Upstream doesn't generate a shared library. So we have to do it.
784 (setenv "CC" "gcc -fno-builtin -fPIC")
785 (substitute* "Makefile"
786 (("^(all[^\n]*)" line) (string-append line " libwrap.so\n
787 libwrap.so: $(LIB_OBJ)\n
788 \tgcc -shared $^ -o $@\n")))
789 ;; Deal with some gcc breakage.
790 (substitute* "percent_m.c"
791 (("extern char .sys_errlist.*;") ""))
792 (substitute* "scaffold.c"
793 (("extern char .malloc.*;") ""))
794 ;; This, believe it or not, is the recommended way to build!
795 (invoke "make" "REAL_DAEMON_DIR=/etc" "linux")))
796 ;; There is no make install stage, so we have to do it ourselves.
797 (replace 'install
798 (lambda _
799 (let ((out (assoc-ref %outputs "out"))
800 (man-pages `("hosts_access.3"
801 "hosts_access.5"
802 "hosts_options.5"
803 "tcpd.8"
804 "tcpdchk.8"
805 "tcpdmatch.8"))
806 (libs `("libwrap.a"
807 "libwrap.so"))
808 (headers `("tcpd.h"))
809 (bins `("safe_finger"
810 "tcpd"
811 "tcpdchk"
812 "tcpdmatch"
813 "try-from")))
814 (for-each
815 (lambda (x)
816 (install-file x (string-append out "/include")))
817 headers)
818 (for-each
819 (lambda (x)
820 (install-file x (string-append out "/share/man/man"
821 (string-take-right x 1))))
822 man-pages)
823 (for-each
824 (lambda (x)
825 (install-file x (string-append out "/lib/")))
826 libs)
827 (for-each
828 (lambda (x)
829 (install-file x (string-append out "/bin/")))
830 bins))
831 #t)))))
832 (home-page "http://www.porcupine.org")
833 (synopsis "Monitor and filter incoming requests for network services")
834 (description "With this package you can monitor and filter incoming requests for
835 network services. It includes a library which may be used by daemons to
836 transparently check connection attempts against an access control list.")
837 (license (license:non-copyleft "file://DISCLAIMER"
838 "See the file DISCLAIMER in the distribution."))))
839
840
841 (define-public zeromq
842 (package
843 (name "zeromq")
844 (version "4.3.2")
845 (source (origin
846 (method url-fetch)
847 (uri (string-append "https://github.com/zeromq/libzmq/releases"
848 "/download/v" version "/zeromq-" version ".tar.gz"))
849 (sha256
850 (base32
851 "0qzp80ky4y2k7k1ya09v9gkivvfbz2km813snrb8jhnn634bbmzb"))))
852 (build-system gnu-build-system)
853 (home-page "https://zeromq.org")
854 (synopsis "Library for message-based applications")
855 (description
856 "The 0MQ lightweight messaging kernel is a library which extends the
857 standard socket interfaces with features traditionally provided by specialized
858 messaging middle-ware products. 0MQ sockets provide an abstraction of
859 asynchronous message queues, multiple messaging patterns, message
860 filtering (subscriptions), seamless access to multiple transport protocols and
861 more.")
862 (license license:lgpl3+)))
863
864 (define-public czmq
865 (package
866 (name "czmq")
867 (version "4.2.0")
868 (source (origin
869 (method url-fetch)
870 (uri (string-append
871 "https://github.com/zeromq/" name
872 "/releases/download/v" version
873 "/" name "-" version ".tar.gz"))
874 (sha256
875 (base32
876 "1szciz62sk3fm4ga9qjpxz0n0lazvphm32km95bq92ncng12kayg"))))
877 (build-system gnu-build-system)
878 (arguments
879 '(#:configure-flags '("--enable-drafts")
880 #:phases (modify-phases %standard-phases
881 (add-before 'check 'patch-tests
882 (lambda _
883 ;; XXX FIXME: Disable the zproc test, which fails on some
884 ;; hardware: <https://github.com/zeromq/czmq/issues/2007>.
885 (substitute* "src/czmq_selftest.c"
886 (("\\{ \"zproc\", zproc_test.*")
887 ""))
888 #t)))))
889 (inputs
890 `(("zeromq" ,zeromq)))
891 (home-page "https://zeromq.org")
892 (synopsis "High-level C bindings for ØMQ")
893 (description
894 "czmq provides bindings for the ØMQ core API that hides the differences
895 between different versions of ØMQ.")
896 (license license:mpl2.0)))
897
898 (define-public cppzmq
899 (package
900 (name "cppzmq")
901 (version "4.6.0")
902 (source (origin
903 (method git-fetch)
904 (uri (git-reference
905 (url "https://github.com/zeromq/cppzmq")
906 (commit (string-append "v" version))))
907 (sha256
908 (base32
909 "19acx2bzi4n6fdnfgkja1nds7m1bwg8lw5vfcijrx9fv75pa7m8h"))
910 (file-name (git-file-name name version))))
911 (build-system cmake-build-system)
912 (arguments
913 '(;; FIXME: The test suite requires downloading Catch and custom
914 ;; CMake targets, and refuses to use the system version.
915 ;; See <https://github.com/zeromq/cppzmq/issues/334>.
916 #:tests? #f
917 #:configure-flags '("-DCPPZMQ_BUILD_TESTS=OFF")))
918 (native-inputs
919 `(("pkg-config" ,pkg-config)))
920 (inputs
921 `(("zeromq" ,zeromq)))
922 (home-page "https://zeromq.org")
923 (synopsis "C++ bindings for the ØMQ messaging library")
924 (description
925 "This package provides header-only C++ bindings for ØMQ. The header
926 files contain direct mappings of the abstractions provided by the ØMQ C API.")
927 (license license:expat)))
928
929 (define-public libnatpmp
930 (package
931 (name "libnatpmp")
932 (version "20150609")
933 (source (origin
934 (method url-fetch)
935 (uri (string-append
936 "http://miniupnp.free.fr/files/"
937 name "-" version ".tar.gz"))
938 (sha256
939 (base32
940 "1c1n8n7mp0amsd6vkz32n8zj3vnsckv308bb7na0dg0r8969rap1"))))
941 (build-system gnu-build-system)
942 (arguments
943 `(#:phases
944 (modify-phases %standard-phases
945 (delete 'configure)
946 (delete 'check)) ; no tests
947 #:make-flags
948 (let* ((target ,(%current-target-system))
949 (gcc (if target
950 (string-append target "-gcc")
951 "gcc")))
952 (list
953 (string-append "CC=" gcc)
954 (string-append "INSTALLPREFIX=" (assoc-ref %outputs "out"))
955 (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib")))))
956 (home-page "http://miniupnp.free.fr/libnatpmp.html")
957 (synopsis "C library implementing NAT-PMP")
958 (description
959 "@code{libnatpmp} is a portable and asynchronous implementation of
960 the Network Address Translation - Port Mapping Protocol (NAT-PMP)
961 written in the C programming language.")
962 (license license:bsd-3)))
963
964 (define-public librdkafka
965 (package
966 (name "librdkafka")
967 (version "1.4.2")
968 (source (origin
969 (method git-fetch)
970 (uri (git-reference
971 (url "https://github.com/edenhill/librdkafka")
972 (commit (string-append "v" version))))
973 (file-name (git-file-name name version))
974 (sha256
975 (base32
976 "05mgrdzacn9kdpr68r5j0cvsvl54s52glnsc1ww9rcxx6p7hq1ly"))))
977 (build-system gnu-build-system)
978 (arguments
979 '(#:phases
980 (modify-phases %standard-phases
981 (replace 'configure
982 ;; its custom configure script doesn't understand 'CONFIG_SHELL'.
983 (lambda* (#:key outputs #:allow-other-keys)
984 (let ((out (assoc-ref outputs "out")))
985 ;; librdkafka++.so lacks RUNPATH for librdkafka.so
986 (setenv "LDFLAGS"
987 (string-append "-Wl,-rpath=" out "/lib"))
988 (invoke "./configure"
989 (string-append "--prefix=" out))))))))
990 (native-inputs
991 `(("python" ,python-wrapper)))
992 (propagated-inputs
993 `(("zlib" ,zlib))) ; in the Libs.private field of rdkafka.pc
994 (home-page "https://github.com/edenhill/librdkafka")
995 (synopsis "Apache Kafka C/C++ client library")
996 (description
997 "librdkafka is a C library implementation of the Apache Kafka protocol,
998 containing both Producer and Consumer support.")
999 (license license:bsd-2)))
1000
1001 (define-public libndp
1002 (package
1003 (name "libndp")
1004 (version "1.7")
1005 (source (origin
1006 (method url-fetch)
1007 (uri (string-append "https://libndp.org/files/"
1008 "libndp-" version ".tar.gz"))
1009 (sha256
1010 (base32
1011 "1dlinhl39va00v55qygjc9ap77yqf7xvn4rwmvdr49xhzzxhlj1c"))))
1012 (build-system gnu-build-system)
1013 (home-page "https://libndp.org/")
1014 (synopsis "Library for Neighbor Discovery Protocol")
1015 (description
1016 "libndp contains a library which provides a wrapper for IPv6 Neighbor
1017 Discovery Protocol. It also provides a tool named ndptool for sending and
1018 receiving NDP messages.")
1019 (license license:lgpl2.1+)))
1020
1021 (define-public ethtool
1022 (package
1023 (name "ethtool")
1024 (version "5.8")
1025 (source (origin
1026 (method url-fetch)
1027 (uri (string-append "mirror://kernel.org/software/network/"
1028 "ethtool/ethtool-" version ".tar.xz"))
1029 (sha256
1030 (base32
1031 "0ikmz36bdfwxscsfcgjmyzg70hwr8i3wpdhcp1vmk3q4ip858frg"))))
1032 (build-system gnu-build-system)
1033 (native-inputs
1034 `(("pkg-config" ,pkg-config)))
1035 (inputs
1036 `(("libmnl" ,libmnl)))
1037 (home-page "https://www.kernel.org/pub/software/network/ethtool/")
1038 (synopsis "Display or change Ethernet device settings")
1039 (description
1040 "ethtool can be used to query and change settings such as speed,
1041 auto-negotiation and checksum offload on many network devices, especially
1042 Ethernet devices.")
1043 (license license:gpl2)))
1044
1045 (define-public ifstatus
1046 (package
1047 (name "ifstatus")
1048 (version "1.1.0")
1049 (source (origin
1050 (method url-fetch)
1051 (uri (string-append "mirror://sourceforge/ifstatus/ifstatus/"
1052 "ifstatus%20v" version "/ifstatus-v"
1053 version ".tar.gz"))
1054 (sha256
1055 (base32
1056 "045cbsq9ps32j24v8y5hpyqxnqn9mpaf3mgvirlhgpqyb9jsia0c"))
1057 (modules '((guix build utils)))
1058 (snippet
1059 '(begin
1060 (substitute* "Main.h"
1061 (("#include <stdio.h>")
1062 "#include <stdio.h>\n#include <stdlib.h>"))
1063 #t))))
1064 (build-system gnu-build-system)
1065 (arguments
1066 '(#:tests? #f ; no "check" target
1067 #:phases
1068 (modify-phases %standard-phases
1069 (delete 'configure) ; no configure script
1070 (replace 'install
1071 (lambda* (#:key outputs #:allow-other-keys)
1072 (let* ((out (assoc-ref outputs "out"))
1073 (bin (string-append out "/bin")))
1074 (mkdir-p bin)
1075 (copy-file "ifstatus"
1076 (string-append bin "/ifstatus")))
1077 #t)))))
1078 (inputs `(("ncurses" ,ncurses)))
1079 (home-page "http://ifstatus.sourceforge.net/graphic/index.html")
1080 (synopsis "Text based network interface status monitor")
1081 (description
1082 "IFStatus is a simple, easy-to-use program for displaying commonly
1083 needed/wanted real-time traffic statistics of multiple network
1084 interfaces, with a simple and efficient view on the command line. It is
1085 intended as a substitute for the PPPStatus and EthStatus projects.")
1086 (license license:gpl2+)))
1087
1088 (define-public iputils
1089 (package
1090 (name "iputils")
1091 (version "20190709")
1092 (home-page "https://github.com/iputils/iputils")
1093 (source (origin
1094 (method git-fetch)
1095 (uri (git-reference (url home-page)
1096 (commit (string-append "s" version))))
1097 (file-name (git-file-name name version))
1098 (patches (search-patches "iputils-libcap-compat.patch"))
1099 (sha256
1100 (base32
1101 "04bp4af15adp79ipxmiakfp0ij6hx5qam266flzbr94pr8z8l693"))))
1102 (build-system meson-build-system)
1103 (arguments
1104 `(#:configure-flags '("-DBUILD_RARPD=true")
1105 #:phases
1106 (modify-phases %standard-phases
1107 (add-after 'unpack 'fix-docbook-url
1108 (lambda* (#:key inputs #:allow-other-keys)
1109 (let* ((docbook-xsl (assoc-ref inputs "docbook-xsl"))
1110 (uri (string-append docbook-xsl "/xml/xsl/docbook-xsl-"
1111 ,(package-version docbook-xsl))))
1112 (for-each
1113 (lambda (file)
1114 (substitute* file
1115 (("http://docbook\\.sourceforge\\.net/release/xsl-ns/current")
1116 uri)))
1117 (cons "doc/meson.build"
1118 (find-files "doc" "\\.xsl$")))
1119 #t))))))
1120 (native-inputs
1121 `(("gettext" ,gettext-minimal)
1122 ("pkg-config" ,pkg-config)
1123 ("docbook-xsl" ,docbook-xsl)
1124 ("docbook-xml" ,docbook-xml-5)
1125 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
1126 ("xsltproc" ,libxslt)))
1127 (inputs
1128 `(("libcap" ,libcap)
1129 ("libidn2" ,libidn2)
1130 ("openssl" ,openssl)))
1131 (synopsis "Collection of network utilities")
1132 (description
1133 "This package contains a variety of tools for dealing with network
1134 configuration, troubleshooting, or servers. Utilities included are:
1135
1136 @itemize @bullet
1137 @item @command{arping}: Ping hosts using the @dfn{Address Resolution Protocol}.
1138 @item @command{clockdiff}: Compute time difference between network hosts
1139 using ICMP TSTAMP messages.
1140 @item @command{ninfod}: Daemon that responds to IPv6 Node Information Queries.
1141 @item @command{ping}: Use ICMP ECHO messages to measure round-trip delays
1142 and packet loss across network paths.
1143 @item @command{rarpd}: Answer RARP requests from clients.
1144 @item @command{rdisc}: Populate network routing tables with information from
1145 the ICMP router discovery protocol.
1146 @item @command{tftpd}: Trivial file transfer protocol server.
1147 @item @command{tracepath}: Trace network path to an IPv4 or IPv6 address and
1148 discover MTU along the way.
1149 @end itemize")
1150 ;; The various utilities are covered by different licenses, see LICENSE
1151 ;; for details.
1152 (license (list license:gpl2+ ;arping, rarpd, tracepath
1153 license:bsd-3 ;clockdiff, ninfod, ping, tftpd
1154 (license:non-copyleft
1155 "https://spdx.org/licenses/Rdisc.html"
1156 "Sun Microsystems license, see rdisc.c for details")))))
1157
1158 (define-public nload
1159 (package
1160 (name "nload")
1161 (version "0.7.4")
1162 (source (origin
1163 (method url-fetch)
1164 (uri (string-append "mirror://sourceforge/nload/nload/" version
1165 "/nload-" version ".tar.gz"))
1166 (sha256
1167 (base32
1168 "1rb9skch2kgqzigf19x8bzk211jdfjfdkrcvaqyj89jy2pkm3h61"))))
1169 (build-system gnu-build-system)
1170 (inputs `(("ncurses" ,ncurses)))
1171 (home-page "http://www.roland-riegel.de/nload/")
1172 (synopsis "Realtime console network usage monitor")
1173 (description
1174 "Nload is a console application which monitors network traffic and
1175 bandwidth usage in real time. It visualizes the in- and outgoing traffic using
1176 two graphs, and provides additional info like total amount of transferred data
1177 and min/max network usage.")
1178 (license license:gpl2+)))
1179
1180 (define-public iodine
1181 (package
1182 (name "iodine")
1183 (version "0.7.0")
1184 (source (origin
1185 (method url-fetch)
1186 (uri (string-append "http://code.kryo.se/" name "/"
1187 name "-" version ".tar.gz"))
1188 (sha256
1189 (base32
1190 "0gh17kcxxi37k65zm4gqsvbk3aw7yphcs3c02pn1c4s2y6n40axd"))))
1191 (build-system gnu-build-system)
1192 (arguments
1193 '(#:phases
1194 (modify-phases %standard-phases
1195 (delete 'configure)
1196 (add-before 'build 'fix-ifconfig-path
1197 ;; This package works only with the net-tools version of ifconfig.
1198 (lambda* (#:key inputs #:allow-other-keys)
1199 (substitute* "src/tun.c"
1200 (("PATH=[^ ]* ")
1201 (string-append (assoc-ref inputs "net-tools") "/bin/")))
1202 #t))
1203 (add-before 'check 'delete-failing-tests
1204 ;; Avoid https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802105.
1205 (lambda _
1206 (substitute* "tests/common.c"
1207 (("tcase_add_test\\(tc, \
1208 test_parse_format_ipv(4(|_listen_all|_mapped_ipv6)|6)\\);")
1209 ""))
1210 #t)))
1211 #:make-flags (list "CC=gcc"
1212 (string-append "prefix=" (assoc-ref %outputs "out")))
1213 #:test-target "test"))
1214 (inputs `(("net-tools" ,net-tools)
1215 ("zlib" ,zlib)))
1216 (native-inputs `(("check" ,check)
1217 ("pkg-config" ,pkg-config)))
1218 (home-page "https://code.kryo.se/iodine/")
1219 (synopsis "Tunnel IPv4 data through a DNS server")
1220 (description "Iodine tunnels IPv4 data through a DNS server. This
1221 can be useful in different situations where internet access is firewalled, but
1222 DNS queries are allowed. The bandwidth is asymmetrical, with limited upstream
1223 and up to 1 Mbit/s downstream.")
1224 ;; src/md5.[ch] is released under the zlib license
1225 (license (list license:isc license:zlib))))
1226
1227 (define-public whois
1228 (package
1229 (name "whois")
1230 (version "5.5.6")
1231 (source
1232 (origin
1233 (method url-fetch)
1234 (uri (string-append "mirror://debian/pool/main/w/whois/"
1235 "whois_" version ".tar.xz"))
1236 (sha256
1237 (base32 "0kpi981zjczvdcxfcq455c529vlaxa73x8kbm530z5b01h0fk8fb"))))
1238 (build-system gnu-build-system)
1239 (arguments
1240 `(#:tests? #f ; no test suite
1241 #:make-flags (list "CC=gcc"
1242 (string-append "prefix=" (assoc-ref %outputs "out")))
1243 #:phases
1244 (modify-phases %standard-phases
1245 (delete 'configure) ; no configure script
1246 (add-before 'build 'setenv
1247 (lambda _
1248 (setenv "HAVE_ICONV" "1")
1249 #t)))))
1250 (inputs
1251 `(("libidn2" ,libidn2)))
1252 (native-inputs
1253 `(("gettext" ,gettext-minimal)
1254 ("perl" ,perl)
1255 ("pkg-config" ,pkg-config)))
1256 (synopsis "Intelligent client for the WHOIS directory service")
1257 (description
1258 "whois searches for an object in a @dfn{WHOIS} (RFC 3912) database.
1259 It is commonly used to look up the registered users or assignees of an Internet
1260 resource, such as a domain name, an IP address block, or an autonomous system.
1261 It can automatically select the appropriate server for most queries.
1262
1263 For historical reasons, this package also includes @command{mkpasswd}, which
1264 encrypts passwords using @code{crypt(3)} and is unrelated to the Expect command
1265 of the same name.")
1266 (home-page "https://github.com/rfc1036/whois")
1267 (license license:gpl2+)))
1268
1269 (define-public wireshark
1270 (package
1271 (name "wireshark")
1272 (version "3.2.6")
1273 (source
1274 (origin
1275 (method url-fetch)
1276 (uri (string-append "https://www.wireshark.org/download/src/wireshark-"
1277 version ".tar.xz"))
1278 (sha256
1279 (base32 "1wmlbrym6l5fkvic596yx74jz1pn4pfjihsx341fxv5w76zfxcgb"))))
1280 (build-system cmake-build-system)
1281 (arguments
1282 `(#:phases
1283 (modify-phases %standard-phases
1284 (add-after 'unpack 'remove-failing-test
1285 ;; Test 31/32 fails with errors like "Program reassemble_test is
1286 ;; not available". Skipping it for now.
1287 (lambda _
1288 (substitute* "CMakeLists.txt"
1289 (("suite_unittests" all) (string-append "# " all)))
1290 #t)))
1291 ;; Build process chokes during `validate-runpath' phase.
1292 ;;
1293 ;; Errors are like the following:
1294 ;; "/gnu/store/...wireshark-3.0.0/lib/wireshark/plugins/3.0/epan/ethercat.so:
1295 ;; error: depends on 'libwireshark.so.12', which cannot be found in
1296 ;; RUNPATH". That is, "/gnu/store/...wireshark-3.0.0./lib" doesn't
1297 ;; belong to RUNPATH.
1298 ;;
1299 ;; That’s not a problem in practice because "ethercat.so" is a plugin,
1300 ;; so it’s dlopen’d by a process that already provides "libwireshark".
1301 ;; For now, we disable this phase.
1302 #:validate-runpath? #f))
1303 (inputs
1304 `(("c-ares" ,c-ares)
1305 ("glib" ,glib)
1306 ("gnutls" ,gnutls)
1307 ("libcap" ,libcap)
1308 ("libgcrypt" ,libgcrypt)
1309 ("libnl" ,libnl)
1310 ("libpcap" ,libpcap)
1311 ("libssh" ,libssh)
1312 ("libxml2" ,libxml2)
1313 ("lz4" ,lz4)
1314 ("lua" ,lua-5.2) ;Lua 5.3 unsupported
1315 ("krb5" ,mit-krb5)
1316 ("qtbase" ,qtbase)
1317 ("qtmultimedia" ,qtmultimedia)
1318 ("qtsvg" ,qtsvg)
1319 ("sbc" ,sbc)
1320 ("snappy" ,snappy)
1321 ("zlib" ,zlib)))
1322 (native-inputs
1323 `(("bison" ,bison)
1324 ("doxygen" ,doxygen)
1325 ("flex" ,flex)
1326 ("gettext" ,gettext-minimal)
1327 ("perl" ,perl)
1328 ("pkg-config" ,pkg-config)
1329 ("python" ,python-wrapper)
1330 ("qttools" ,qttools)))
1331 (synopsis "Network traffic analyzer")
1332 (description "Wireshark is a network protocol analyzer, or @dfn{packet
1333 sniffer}, that lets you capture and interactively browse the contents of
1334 network frames.")
1335 (home-page "https://www.wireshark.org/")
1336 (license license:gpl2+)))
1337
1338 (define-public fping
1339 (package
1340 (name "fping")
1341 (version "5.0")
1342 (source
1343 (origin
1344 (method url-fetch)
1345 (uri (string-append "https://fping.org/dist/fping-"
1346 version ".tar.gz"))
1347 (sha256
1348 (base32 "1f2prmii4fyl44cfykp40hp4jjhicrhddh9v3dfs11j6nsww0f7d"))))
1349 (build-system gnu-build-system)
1350 (home-page "https://fping.org/")
1351 (synopsis "Send ICMP ECHO_REQUEST packets to network hosts")
1352 (description
1353 "fping is a ping-like program which uses @acronym{ICMP, Internet Control
1354 Message Protocol} echo requests to determine if a target host is responding.
1355
1356 @command{fping} differs from @command{ping} in that you can specify any number
1357 of targets on the command line, or specify a file containing the lists of
1358 targets to ping. Instead of sending to one target until it times out or
1359 replies, fping will send out a ping packet and move on to the next target in a
1360 round-robin fashion.")
1361 (license license:expat)))
1362
1363 (define-public gandi.cli
1364 (package
1365 (name "gandi.cli")
1366 (version "1.5")
1367 (source
1368 (origin
1369 (method url-fetch)
1370 (uri (pypi-uri name version))
1371 (sha256
1372 (base32 "110wc9zgxsrvw4yzp21p0ian5lcf7vhcpxhnmsc4fg9pzl2bwxd5"))))
1373 (build-system python-build-system)
1374 (arguments
1375 `(#:phases
1376 (modify-phases %standard-phases
1377 (add-after 'unpack 'embed-store-file-names
1378 (lambda _
1379 (substitute* (list "gandi/cli/modules/cert.py"
1380 "gandi/cli/tests/commands/test_certificate.py")
1381 (("openssl") (which "openssl")))
1382 #t))
1383 (add-after 'install 'install-documentation
1384 ;; The included man page may be outdated but we install it anyway,
1385 ;; since it's mentioned in 'gandi --help' and better than nothing.
1386 (lambda* (#:key outputs #:allow-other-keys)
1387 (let* ((out (assoc-ref outputs "out"))
1388 (man1 (string-append out "/share/man/man1")))
1389 (mkdir-p man1)
1390 (with-output-to-file (string-append man1 "/gandi.1")
1391 (lambda _
1392 (invoke "rst2man.py" "gandicli.man.rst")))
1393 #t))))))
1394 (native-inputs
1395 `(("python-docutils" ,python-docutils) ; for rst2man.py
1396 ("python-pytest-cov" ,python-pytest-cov)
1397 ("python-tox" ,python-tox)))
1398 (inputs
1399 `(("openssl" ,openssl)
1400 ("python-click" ,python-click)
1401 ("python-ipy" ,python-ipy)
1402 ("python-pyyaml" ,python-pyyaml)
1403 ("python-requests" ,python-requests)))
1404 (home-page "https://cli.gandi.net")
1405 (synopsis "Command-line interface to the Gandi.net Web API")
1406 (description
1407 "This package provides a command-line client (@command{gandi}) to buy,
1408 manage, and delete Internet resources from Gandi.net such as domain names,
1409 virtual machines, and certificates.")
1410 (license license:gpl3+)))
1411
1412 (define-public go-netns
1413 (let ((commit "13995c7128ccc8e51e9a6bd2b551020a27180abd")
1414 (revision "1"))
1415 (package
1416 (name "go-netns")
1417 (version (git-version "0.0.0" revision commit))
1418 (source (origin
1419 (method git-fetch)
1420 (uri (git-reference
1421 (url "https://github.com/vishvananda/netns")
1422 (commit commit)))
1423 (file-name (git-file-name name version))
1424 (sha256
1425 (base32
1426 "1zk6w8158qi4niva5rijchbv9ixgmijsgqshh54wdaav4xrhjshn"))))
1427 (build-system go-build-system)
1428 (arguments
1429 `(#:import-path "github.com/vishvananda/netns"
1430 #:tests? #f)) ;tests require root privileges
1431 (home-page "https://github.com/vishvananda/netns")
1432 (synopsis "Simple network namespace handling for Go")
1433 (description "The netns package provides a simple interface for
1434 handling network namespaces in Go.")
1435 (license license:asl2.0))))
1436
1437 (define-public go-sctp
1438 ;; docker-libnetwork-cmd-proxy requires this exact commit.
1439 (let ((commit "07191f837fedd2f13d1ec7b5f885f0f3ec54b1cb")
1440 (revision "1"))
1441 (package
1442 (name "go-sctp")
1443 (version (git-version "0.0.0" revision commit))
1444 (source (origin
1445 (method git-fetch)
1446 (uri (git-reference
1447 (url "https://github.com/ishidawataru/sctp")
1448 (commit commit)))
1449 (file-name (git-file-name name version))
1450 (sha256
1451 (base32
1452 "1mk9ncm10gwi5pn5wcw4skbyf4qg7n5qdf1mim4gf3mrckvi6g6h"))))
1453 (build-system go-build-system)
1454 (arguments
1455 `(#:import-path "github.com/ishidawataru/sctp"))
1456 (home-page "https://github.com/ishidawataru/sctp")
1457 (synopsis "SCTP library for the Go programming language")
1458 (description "This library provides methods for using the stream control
1459 transmission protocol (SCTP) in a Go application.")
1460 (license license:asl2.0))))
1461
1462 (define-public httping
1463 (package
1464 (name "httping")
1465 (version "2.5")
1466 (source
1467 (origin
1468 (method url-fetch)
1469 (uri (string-append "https://www.vanheusden.com/httping/httping-"
1470 version ".tgz"))
1471 (sha256
1472 (base32
1473 "1y7sbgkhgadmd93x1zafqc4yp26ssiv16ni5bbi9vmvvdl55m29y"))))
1474 (build-system gnu-build-system)
1475 (native-inputs
1476 `(("gettext" ,gettext-minimal)))
1477 (inputs
1478 `(("fftw" ,fftw)
1479 ("ncurses" ,ncurses)
1480 ("openssl" ,openssl)))
1481 (arguments
1482 `(#:make-flags (list "CC=gcc"
1483 (string-append "DESTDIR=" (assoc-ref %outputs "out"))
1484 "PREFIX=")
1485 #:tests? #f)) ; no tests
1486 (home-page "https://www.vanheusden.com/httping/")
1487 (synopsis "Web server latency and throughput monitor")
1488 (description
1489 "httping measures how long it takes to connect to a web server, send an
1490 HTTP(S) request, and receive the reply headers. It is somewhat similar to
1491 @command{ping}, but can be used even in cases where ICMP traffic is blocked
1492 by firewalls or when you want to monitor the response time of the actual web
1493 application stack itself.")
1494 (license license:gpl2))) ; with permission to link with OpenSSL
1495
1496 (define-public httpstat
1497 (package
1498 (name "httpstat")
1499 (version "1.2.1")
1500 (source
1501 (origin
1502 (method url-fetch)
1503 (uri (pypi-uri "httpstat" version))
1504 (sha256
1505 (base32
1506 "1chw2nk56vaq87aba012a270k9na06hfx1pfbsrc3jfvlc2kb9hb"))))
1507 (build-system python-build-system)
1508 (inputs `(("curl" ,curl)))
1509 (arguments
1510 '(#:phases
1511 (modify-phases %standard-phases
1512 (add-before 'build 'fix-curl-path
1513 (lambda* (#:key inputs #:allow-other-keys)
1514 (substitute* "httpstat.py"
1515 (("ENV_CURL_BIN.get\\('curl'\\)")
1516 (string-append "ENV_CURL_BIN.get('"
1517 (assoc-ref inputs "curl")
1518 "/bin/curl')")))
1519 #t)))))
1520 (home-page "https://github.com/reorx/httpstat")
1521 (synopsis "Visualize curl statistics")
1522 (description
1523 "@command{httpstat} is a tool to visualize statistics from the
1524 @command{curl} HTTP client. It acts as a wrapper for @command{curl} and
1525 prints timing information for each step of the HTTP request (DNS lookup,
1526 TCP connection, TLS handshake and so on) in the terminal.")
1527 (license license:expat)))
1528
1529 (define-public squid
1530 (package
1531 (name "squid")
1532 (version "4.13")
1533 (source
1534 (origin
1535 (method url-fetch)
1536 (uri (string-append "http://www.squid-cache.org/Versions/v4/squid-"
1537 version ".tar.xz"))
1538 (sha256
1539 (base32 "1q1ywpic6s7dfjj3cwzcfgscc4zq0aih462gyas7j1z683ss14b8"))))
1540 (build-system gnu-build-system)
1541 (arguments
1542 '(#:phases
1543 (modify-phases %standard-phases
1544 (add-before 'build 'fix-true-path
1545 (lambda* (#:key inputs #:allow-other-keys)
1546 (substitute* "test-suite/testheaders.sh"
1547 (("/bin/true")
1548 (string-append (assoc-ref inputs "coreutils")
1549 "/bin/true")))
1550 #t)))))
1551 (inputs
1552 `(("perl" ,perl)
1553 ("openldap" ,openldap)
1554 ("linux-pam" ,linux-pam)
1555 ("libcap" ,libcap)
1556 ("cyrus-sasl" ,cyrus-sasl)
1557 ("expat" ,expat)
1558 ("libxml2" ,libxml2)
1559 ("openssl" ,openssl)))
1560 (native-inputs
1561 `(("cppunit" ,cppunit)
1562 ("pkg-config" ,pkg-config)))
1563 (synopsis "Web caching proxy")
1564 (description "Squid is a caching proxy for the Web supporting HTTP, HTTPS,
1565 FTP, and more. It reduces bandwidth and improves response times by caching and
1566 reusing frequently-requested web pages.")
1567 (home-page "http://www.squid-cache.org/")
1568 (license license:gpl2+)))
1569
1570 (define-public bwm-ng
1571 (package
1572 (name "bwm-ng")
1573 (version "0.6.2")
1574 (source
1575 (origin
1576 (method git-fetch)
1577 (uri (git-reference
1578 (url "https://github.com/vgropp/bwm-ng")
1579 (commit (string-append "v" version))))
1580 (file-name (git-file-name name version))
1581 (sha256
1582 (base32 "0k906wb4pw3dcqpcwnni78lahzi3bva483f8c17sjykic7as4y5n"))))
1583 (build-system gnu-build-system)
1584 (arguments
1585 `(#:phases
1586 (modify-phases %standard-phases
1587 (add-after 'unpack 'disable-premature-./configure
1588 (lambda _
1589 (substitute* "autogen.sh"
1590 (("\\$srcdir/configure")
1591 "true"))
1592 #t)))))
1593 (native-inputs
1594 `(("autoconf" ,autoconf)
1595 ("automake" ,automake)))
1596 (inputs
1597 `(("ncurses" ,ncurses)))
1598 (synopsis "Console based live network and disk I/O bandwidth monitor")
1599 (description "Bandwidth Monitor NG is a small and simple console based
1600 live network and disk I/O bandwidth monitor.")
1601 (home-page "https://www.gropp.org/?id=projects&sub=bwm-ng")
1602 (license license:gpl2)))
1603
1604 (define-public aircrack-ng
1605 (package
1606 (name "aircrack-ng")
1607 (version "1.6")
1608 (source
1609 (origin
1610 (method url-fetch)
1611 (uri (string-append "https://download.aircrack-ng.org/aircrack-ng-"
1612 version ".tar.gz"))
1613 (sha256
1614 (base32 "0ix2k64qg7x3w0bzdsbk1m50kcpq1ws59g3zkwiafvpwdr4gs2sg"))))
1615 (build-system gnu-build-system)
1616 (native-inputs
1617 `(("autoconf" ,autoconf)
1618 ("automake" ,automake)
1619 ("libtool" ,libtool)
1620 ("pkg-config" ,pkg-config)
1621 ("which" ,which)))
1622 (inputs
1623 `(("libgcrypt" ,libgcrypt)
1624 ("libnl" ,libnl)
1625 ("libpcap" ,libpcap)
1626 ("ethtool" ,ethtool)
1627 ("pcre" ,pcre)
1628 ("sqlite" ,sqlite)
1629 ("zlib" ,zlib)))
1630 (arguments
1631 `(#:configure-flags
1632 (list "--with-experimental=yes" ; build wesside-ng, etc.
1633 "--with-gcrypt") ; openssl's the default
1634 #:phases (modify-phases %standard-phases
1635 (add-before 'bootstrap 'patch-evalrev
1636 (lambda _
1637 ;; Called by ./autogen.sh below, before the default
1638 ;; ‘patch-shebangs’ phase has had a chance to run.
1639 (substitute* "evalrev"
1640 (("/bin/sh")
1641 (which "sh")))
1642 #t))
1643 (add-after 'build 'absolutize-tools
1644 (lambda* (#:key inputs #:allow-other-keys)
1645 (let ((ethtool (string-append (assoc-ref inputs "ethtool")
1646 "/sbin/ethtool")))
1647 (substitute* "scripts/airmon-ng"
1648 (("ethtool ")
1649 (string-append ethtool " ")))
1650 #t))))))
1651 (home-page "https://www.aircrack-ng.org")
1652 (synopsis "Assess WiFi network security")
1653 (description
1654 "Aircrack-ng is a complete suite of tools to assess WiFi network
1655 security. It focuses on different areas of WiFi security: monitoring,
1656 attacking, testing, and cracking. All tools are command-line driven, which
1657 allows for heavy scripting.")
1658 (license (list license:gpl2+ license:bsd-3))))
1659
1660 (define-public pixiewps
1661 (package
1662 (name "pixiewps")
1663 (version "1.4.2")
1664 (source (origin
1665 (method url-fetch)
1666 (uri (string-append
1667 "https://github.com/wiire-a/pixiewps/releases/"
1668 "download/v" version "/" name "-" version ".tar.xz"))
1669 (sha256
1670 (base32
1671 "07nym6bqml0k9v29vnj003nrgnwrywgjvnljb7cdpsvnwilhbp64"))))
1672 (build-system gnu-build-system)
1673 (arguments
1674 '(#:make-flags
1675 (list "CC=gcc"
1676 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1677 #:phases
1678 (modify-phases %standard-phases
1679 (delete 'configure)) ; no configure script
1680 #:tests? #f)) ; there are no tests
1681 (home-page "https://github.com/wiire-a/pixiewps/")
1682 (synopsis "Offline brute-force tool for Wi-Fi Protected Setup")
1683 (description "Pixiewps implements the pixie-dust attack to brute
1684 force the Wi-Fi Protected Setup (WPS) PIN by exploiting the low or
1685 non-existing entropy of some access points.")
1686 (license license:gpl3+)))
1687
1688 (define-public reaver
1689 (package
1690 (name "reaver")
1691 (version "1.6.6")
1692 (source (origin
1693 (method url-fetch)
1694 (uri (string-append
1695 "https://github.com/t6x/reaver-wps-fork-t6x/releases/"
1696 "download/v" version "/reaver-" version ".tar.xz"))
1697 (sha256
1698 (base32
1699 "00k7mc81ifv0wma7k4v18mj498badbw5yls6c28qin3d1gda0ag3"))))
1700 (build-system gnu-build-system)
1701 (arguments
1702 `(#:configure-flags
1703 ;; Save session files to current directory instead of /var.
1704 (list "--enable-savetocurrent"
1705 "--localstatedir=/tmp/dummy") ; prevent creating /var during install
1706 #:phases
1707 (modify-phases %standard-phases
1708 (add-before 'configure 'change-directory
1709 (lambda _
1710 (chdir "src")
1711 #t))
1712 (add-after 'install 'install-doc
1713 (lambda* (#:key outputs #:allow-other-keys)
1714 (chdir "../docs")
1715 (let* ((out (assoc-ref outputs "out"))
1716 (doc (string-append out "/share/doc/" ,name "-" ,version))
1717 (man1 (string-append out "/share/man/man1")))
1718 (for-each (lambda (file) (install-file file doc))
1719 (find-files "." "README.*"))
1720 (install-file "reaver.1" man1)
1721 #t))))
1722 #:tests? #f)) ; there are no tests
1723 (inputs
1724 `(("libpcap" ,libpcap)))
1725 (propagated-inputs
1726 `(("aircrack-ng" ,aircrack-ng)
1727 ("pixiewps" ,pixiewps)))
1728 (home-page "https://github.com/t6x/reaver-wps-fork-t6x/")
1729 (synopsis "Attack tool for Wi-Fi Protected Setup")
1730 (description "Reaver performs a brute force attack against an access
1731 point's Wi-Fi Protected Setup (WPS) PIN. Once the PIN is found, the WPA
1732 passphrase can be recovered and the AP's wireless settings can be
1733 reconfigured.")
1734 (license license:gpl2+)))
1735
1736 (define-public perl-danga-socket
1737 (package
1738 (name "perl-danga-socket")
1739 (version "1.62")
1740 (source
1741 (origin
1742 (method url-fetch)
1743 (uri (string-append "mirror://cpan/authors/id/N/NM/NML/"
1744 "Danga-Socket-" version ".tar.gz"))
1745 (sha256
1746 (base32 "0x4bvirmf0kphks19jwgva00zz73zx344218dfaiv8gigrw3yg4m"))))
1747 (build-system perl-build-system)
1748 (native-inputs
1749 `(("perl-test-tcp" ,perl-test-tcp)))
1750 (propagated-inputs
1751 `(("perl-sys-syscall" ,perl-sys-syscall)))
1752 (home-page "https://metacpan.org/release/Danga-Socket")
1753 (synopsis "Event loop and event-driven async socket base class")
1754 (description
1755 "Danga::Socket is an abstract base class for objects backed by a socket
1756 which provides the basic framework for event-driven asynchronous IO, designed
1757 to be fast. Danga::Socket is both a base class for objects, and an event
1758 loop.")
1759 (license license:perl-license)))
1760
1761 (define-public perl-data-validate-ip
1762 (package
1763 (name "perl-data-validate-ip")
1764 (version "0.27")
1765 (source
1766 (origin
1767 (method url-fetch)
1768 (uri (string-append
1769 "mirror://cpan/authors/id/D/DR/DROLSKY/Data-Validate-IP-"
1770 version ".tar.gz"))
1771 (sha256
1772 (base32 "1mmppyzsh1w2z2h86kvzqxy56wxgs62a3kf8nvcnz76bblir5ap1"))))
1773 (build-system perl-build-system)
1774 (native-inputs
1775 `(("perl-test-requires" ,perl-test-requires)))
1776 (propagated-inputs
1777 `(("perl-netaddr-ip" ,perl-netaddr-ip)))
1778 (home-page "https://metacpan.org/release/Data-Validate-IP")
1779 (synopsis "IPv4 and IPv6 validation methods")
1780 (description
1781 "This module provides several IP address validation subroutines that both
1782 validate and untaint their input. This includes both basic validation
1783 (@code{is_ipv4()} and @code{is_ipv6()}) and special cases like checking whether
1784 an address belongs to a specific network or whether an address is public or
1785 private (reserved).")
1786 (license license:perl-license)))
1787
1788 (define-public perl-net-dns
1789 (package
1790 (name "perl-net-dns")
1791 (version "1.24")
1792 (source
1793 (origin
1794 (method url-fetch)
1795 (uri
1796 (list
1797 (string-append "https://www.net-dns.org/download/Net-DNS-"
1798 version ".tar.gz")
1799 (string-append "mirror://cpan/authors/id/N/NL/NLNETLABS/Net-DNS-"
1800 version ".tar.gz")))
1801 (sha256
1802 (base32 "0qyy5k4k0llqjjmkkfg96919gqybdc1z5fy9047n9imidjxc59hi"))))
1803 (build-system perl-build-system)
1804 (inputs
1805 `(("perl-digest-hmac" ,perl-digest-hmac)))
1806 (home-page "https://www.net-dns.org/")
1807 (synopsis
1808 "Perl Interface to the Domain Name System")
1809 (description "Net::DNS is the Perl Interface to the Domain Name System.")
1810 (license license:x11)))
1811
1812 (define-public perl-socket6
1813 (package
1814 (name "perl-socket6")
1815 (version "0.29")
1816 (source
1817 (origin
1818 (method url-fetch)
1819 (uri (string-append
1820 "mirror://cpan/authors/id/U/UM/UMEMOTO/Socket6-"
1821 version
1822 ".tar.gz"))
1823 (sha256
1824 (base32
1825 "054izici8klfxs8hr5rljib28plijpsfymy99xbzdp047bx1b2a6"))))
1826 (build-system perl-build-system)
1827 (arguments
1828 `(#:phases
1829 (modify-phases %standard-phases
1830 (replace 'configure
1831 (lambda* (#:key outputs #:allow-other-keys)
1832 (let* ((out (assoc-ref outputs "out"))
1833 (args `("Makefile.PL"
1834 ,(string-append "PREFIX=" out)
1835 "INSTALLDIRS=site")))
1836 (setenv "CONFIG_SHELL" (which "sh"))
1837 (apply invoke "perl" args)))))))
1838 (home-page "https://metacpan.org/release/Socket6")
1839 (synopsis
1840 "IPv6 related part of the C socket.h defines and structure manipulators for Perl")
1841 (description "Socket6 binds the IPv6 related part of the C socket header
1842 definitions and structure manipulators for Perl.")
1843 (license license:bsd-3)))
1844
1845 (define-public perl-net-dns-resolver-programmable
1846 (package
1847 (name "perl-net-dns-resolver-programmable")
1848 (version "0.003")
1849 (source
1850 (origin
1851 (method url-fetch)
1852 (uri (string-append
1853 "mirror://cpan/authors/id/J/JM/JMEHNLE/net-dns-resolver-programmable/"
1854 "Net-DNS-Resolver-Programmable-v" version ".tar.gz"))
1855 (sha256
1856 (base32
1857 "1v3nl2kaj4fs55n1617n53q8sa3mir06898vpy1rq98zjih24h4d"))
1858 (patches
1859 (search-patches "perl-net-dns-resolver-programmable-fix.patch"))))
1860 (build-system perl-build-system)
1861 (native-inputs
1862 `(("perl-module-build" ,perl-module-build)))
1863 (inputs `(("perl-net-dns" ,perl-net-dns)))
1864 (home-page
1865 "https://metacpan.org/release/Net-DNS-Resolver-Programmable")
1866 (synopsis
1867 "Programmable DNS resolver class for offline emulation of DNS")
1868 (description "Net::DNS::Resolver::Programmable is a programmable DNS resolver for
1869 offline emulation of DNS.")
1870 (license license:perl-license)))
1871
1872 (define-public perl-net-dns-resolver-mock
1873 (package
1874 (name "perl-net-dns-resolver-mock")
1875 (version "1.20171219")
1876 (source (origin
1877 (method url-fetch)
1878 (uri (string-append
1879 "mirror://cpan/authors/id/M/MB/MBRADSHAW/"
1880 "Net-DNS-Resolver-Mock-" version ".tar.gz"))
1881 (sha256
1882 (base32
1883 "0m3rxpkv1b9121srvbqkrgzg4m8mnydiydqv34in1i1ixwrl6jn9"))))
1884 (build-system perl-build-system)
1885 (inputs
1886 `(("perl-net-dns" ,perl-net-dns)))
1887 (home-page "https://metacpan.org/release/Net-DNS-Resolver-Mock")
1888 (synopsis "Mock DNS Resolver object for testing")
1889 (description
1890 "Net::DNS::Resolver::Mock is a subclass of Net::DNS::Resolver, but returns
1891 static data from any provided DNS zone file instead of querying the network.
1892 It is intended primarily for use in testing.")
1893 (license license:perl-license)))
1894
1895 (define-public perl-netaddr-ip
1896 (package
1897 (name "perl-netaddr-ip")
1898 (version "4.079")
1899 (source
1900 (origin
1901 (method url-fetch)
1902 (uri (string-append
1903 "mirror://cpan/authors/id/M/MI/MIKER/NetAddr-IP-"
1904 version
1905 ".tar.gz"))
1906 (sha256
1907 (base32
1908 "1rx0dinrz9fk9qcg4rwqq5n1dm3xv2arymixpclcv2q2nzgq4npc"))))
1909 (build-system perl-build-system)
1910 (arguments
1911 `(#:phases
1912 (modify-phases %standard-phases
1913 (replace 'configure
1914 (lambda* (#:key outputs #:allow-other-keys)
1915 (let* ((out (assoc-ref outputs "out"))
1916 (args `("Makefile.PL"
1917 ,(string-append "PREFIX=" out)
1918 "INSTALLDIRS=site")))
1919 (setenv "CONFIG_SHELL" (which "sh"))
1920 (apply invoke "perl" args)))))))
1921 (home-page
1922 "https://metacpan.org/release/NetAddr-IP")
1923 (synopsis
1924 "Manages IPv4 and IPv6 addresses and subnets")
1925 (description "NetAddr::IP manages IPv4 and IPv6 addresses and subsets.")
1926 (license license:perl-license)))
1927
1928 (define-public perl-net-patricia
1929 (package
1930 (name "perl-net-patricia")
1931 (version "1.22")
1932 (source
1933 (origin
1934 (method url-fetch)
1935 (uri (string-append
1936 "mirror://cpan/authors/id/G/GR/GRUBER/Net-Patricia-"
1937 version
1938 ".tar.gz"))
1939 (sha256
1940 (base32
1941 "0ln5f57vc8388kyh9vhx2infrdzfhbpgyby74h1qsnhwds95m0vh"))))
1942 (build-system perl-build-system)
1943 (arguments
1944 '(#:phases
1945 (modify-phases %standard-phases
1946 (add-after 'unpack 'dont-link-with-nsl ; Borrowed from Debian.
1947 (lambda _
1948 (substitute* "Makefile.PL"
1949 (("-lnsl") ""))
1950 #t)))))
1951 (inputs
1952 `(("perl-net-cidr-lite" ,perl-net-cidr-lite)
1953 ("perl-socket6" ,perl-socket6)))
1954 (home-page
1955 "https://metacpan.org/release/Net-Patricia")
1956 (synopsis
1957 "Patricia Trie Perl module for fast IP address lookups")
1958 (description
1959 "Net::Patricia does IP address lookups quickly in Perl.")
1960 ;; The bindings are licensed under GPL2 or later.
1961 ;; libpatricia is licensed under 2-clause BSD.
1962 (license (list license:gpl2+ license:bsd-2))))
1963
1964 (define-public perl-net-cidr-lite
1965 (package
1966 (name "perl-net-cidr-lite")
1967 (version "0.21")
1968 (source
1969 (origin
1970 (method url-fetch)
1971 (uri (string-append
1972 "mirror://cpan/authors/id/D/DO/DOUGW/Net-CIDR-Lite-"
1973 version
1974 ".tar.gz"))
1975 (sha256
1976 (base32
1977 "14shj73zbqmfjbp0qz1fs9j4p2dpvz5hfkm4qfdjbydflbl2b8fg"))))
1978 (build-system perl-build-system)
1979 (home-page
1980 "https://metacpan.org/release/Net-CIDR-Lite")
1981 (synopsis
1982 "Perl extension for merging IPv4 or IPv6 CIDR addresses")
1983 (description "Net::CIDR::Lite merges IPv4 or IPv6 CIDR addresses.")
1984 (license license:gpl1+)))
1985
1986 ;; TODO: Use the geolite-mirror-simple.pl script from the example
1987 ;; directory to stay current with the databases. How?
1988 (define-public perl-geo-ip
1989 (package
1990 (name "perl-geo-ip")
1991 (version "1.51")
1992 (source
1993 (origin
1994 (method url-fetch)
1995 (uri (string-append
1996 "mirror://cpan/authors/id/M/MA/MAXMIND/Geo-IP-"
1997 version
1998 ".tar.gz"))
1999 (sha256
2000 (base32
2001 "1fka8fr7fw6sh3xa9glhs1zjg3s2gfkhi7n7da1l2m2wblqj0c0n"))))
2002 (build-system perl-build-system)
2003 (home-page "https://metacpan.org/release/Geo-IP")
2004 (synopsis
2005 "Look up location and network information by IP Address in Perl")
2006 (description "The Perl module @code{Geo::IP}. It looks up location and
2007 network information by IP Address.")
2008 (license license:perl-license)))
2009
2010 (define-public perl-io-socket-inet6
2011 (package
2012 (name "perl-io-socket-inet6")
2013 (version "2.72")
2014 (source
2015 (origin
2016 (method url-fetch)
2017 (uri (string-append
2018 "mirror://cpan/authors/id/S/SH/SHLOMIF/IO-Socket-INET6-"
2019 version
2020 ".tar.gz"))
2021 (sha256
2022 (base32
2023 "1fqypz6qa5rw2d5y2zq7f49frwra0aln13nhq5gi514j2zx21q45"))))
2024 (build-system perl-build-system)
2025 (native-inputs
2026 `(("perl-module-build" ,perl-module-build)
2027 ("perl-test-pod" ,perl-test-pod)
2028 ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
2029 (inputs `(("perl-socket6" ,perl-socket6)))
2030 (arguments `(;; Need network socket API
2031 #:tests? #f))
2032 (home-page
2033 "https://metacpan.org/release/IO-Socket-INET6")
2034 (synopsis
2035 "Perl object interface for AF_INET/AF_INET6 domain sockets")
2036 (description "IO::Socket::INET6 is an interface for AF_INET/AF_INET6 domain
2037 sockets in Perl.")
2038 (license license:perl-license)))
2039
2040 (define-public libproxy
2041 (package
2042 (name "libproxy")
2043 (version "0.4.15")
2044 (source (origin
2045 (method url-fetch)
2046 (uri (string-append "https://github.com/libproxy/libproxy/"
2047 "releases/download/" version "/libproxy-"
2048 version ".tar.xz"))
2049 (sha256
2050 (base32
2051 "0kvdrazlzwia876w988cmlypp253gwy6idlh8mjk958c29jb8kb5"))))
2052 (build-system cmake-build-system)
2053 (native-inputs
2054 `(("pkg-config" ,pkg-config)))
2055 (inputs
2056 `(("dbus" ,dbus)
2057 ("zlib" ,zlib)))
2058 (arguments
2059 `(#:phases
2060 (modify-phases %standard-phases
2061 (replace 'check
2062 (lambda _
2063 (invoke "ctest" "-E" "url-test"))))))
2064 (synopsis "Library providing automatic proxy configuration management")
2065 (description "Libproxy handles the details of HTTP/HTTPS proxy
2066 configuration for applications across all scenarios. Applications using
2067 libproxy only have to specify which proxy to use.")
2068 (home-page "https://libproxy.github.io/libproxy")
2069 (license license:lgpl2.1+)))
2070
2071 (define-public proxychains-ng
2072 (package
2073 (name "proxychains-ng")
2074 (version "4.14")
2075 (source
2076 (origin
2077 (method url-fetch)
2078 (uri (string-append "http://ftp.barfooze.de/pub/sabotage/tarballs/"
2079 "proxychains-ng-" version ".tar.xz"))
2080 (sha256
2081 (base32 "1bmhfbl1bzc87vl0xwr1wh5xvslfyc41nl2hqzhbj258p0sy004x"))))
2082 (build-system gnu-build-system)
2083 (arguments
2084 `(#:tests? #f ; there are no tests
2085 #:phases
2086 (modify-phases %standard-phases
2087 (add-after 'unpack 'fix-configure-script
2088 (lambda _
2089 ;; The configure script is very intolerant to unknown arguments,
2090 ;; such as "CONFIG_SHELL".
2091 (substitute* "configure"
2092 (("\\*\\) break ;;" line)
2093 (string-append "[A-Z]*) shift ;;\n"
2094 line)))
2095 #t))
2096 (add-before 'configure 'set-up-environment
2097 (lambda _
2098 (setenv "CC" "gcc")
2099 #t)))))
2100 (synopsis "Redirect any TCP connection through a proxy or proxy chain")
2101 (description "Proxychains-ng is a preloader which hooks calls to sockets
2102 in dynamically linked programs and redirects them through one or more SOCKS or
2103 HTTP proxies.")
2104 (home-page "https://github.com/rofl0r/proxychains-ng")
2105 (license license:gpl2+)))
2106
2107 (define-public enet
2108 (package
2109 (name "enet")
2110 (version "1.3.16")
2111 (source
2112 (origin
2113 (method url-fetch)
2114 (uri (string-append "http://enet.bespin.org/download/"
2115 "enet-" version ".tar.gz"))
2116 (sha256
2117 (base32 "1lggc82rbzscci057dqqyhkbq4j6mr5k01hbrvn06jkzc2xpxdxv"))))
2118 (build-system gnu-build-system)
2119 (native-inputs
2120 `(("pkg-config" ,pkg-config)))
2121 (synopsis "Network communication layer on top of UDP")
2122 (description
2123 "ENet's purpose is to provide a relatively thin, simple and robust network
2124 communication layer on top of UDP. The primary feature it provides is optional
2125 reliable, in-order delivery of packets. ENet omits certain higher level
2126 networking features such as authentication, server discovery, encryption, or
2127 other similar tasks that are particularly application specific so that the
2128 library remains flexible, portable, and easily embeddable.")
2129 (home-page "http://enet.bespin.org")
2130 (license license:expat)))
2131
2132 (define-public sslh
2133 (package
2134 (name "sslh")
2135 (version "1.21c")
2136 (source
2137 (origin
2138 (method git-fetch)
2139 (uri (git-reference
2140 (url "https://github.com/yrutschle/sslh")
2141 (commit (string-append "v" version))))
2142 (file-name (git-file-name name version))
2143 (sha256
2144 (base32 "19h32dn0076p3s7dn35qi5yp2xvnxw9sqphppmn72vyb8caxvw1z"))))
2145 (build-system gnu-build-system)
2146 (native-inputs
2147 `(;; Test dependencies.
2148 ("lcov" ,lcov)
2149 ("perl" ,perl)
2150 ("perl-conf-libconfig" ,perl-conf-libconfig)
2151 ("perl-io-socket-inet6" ,perl-io-socket-inet6)
2152 ("perl-socket6" ,perl-socket6)
2153 ("psmisc" ,psmisc))) ; for ‘killall’
2154 (inputs
2155 `(("libcap" ,libcap)
2156 ("libconfig" ,libconfig)
2157 ("pcre" ,pcre)
2158 ("tcp-wrappers" ,tcp-wrappers)))
2159 (arguments
2160 '(#:phases
2161 (modify-phases %standard-phases
2162 (delete 'configure) ; no configure script
2163 (add-before 'check 'fix-tests
2164 (lambda _
2165 (substitute* "./t"
2166 (("\"/tmp") "$ENV{\"TMPDIR\"} . \"")
2167 ;; The Guix build environment lacks ‘ip6-localhost’.
2168 (("ip6-localhost") "localhost"))
2169 #t))
2170 ;; Many of these files are mentioned in the man page. Install them.
2171 (add-after 'install 'install-documentation
2172 (lambda* (#:key outputs #:allow-other-keys)
2173 (let* ((out (assoc-ref outputs "out"))
2174 (doc (string-append out "/share/doc/sslh")))
2175 (install-file "README.md" doc)
2176 (for-each
2177 (lambda (file)
2178 (install-file file (string-append doc "/examples")))
2179 (append (find-files "." "\\.cfg")
2180 (find-files "scripts"))))
2181 #t)))
2182 #:make-flags (list "CC=gcc"
2183 "USELIBCAP=1"
2184 "USELIBWRAP=1"
2185 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2186 #:test-target "test"))
2187 (home-page "https://www.rutschle.net/tech/sslh/README.html")
2188 (synopsis "Applicative network protocol demultiplexer")
2189 (description
2190 "sslh is a network protocol demultiplexer. It acts like a switchboard,
2191 accepting connections from clients on one port and forwarding them to different
2192 servers based on the contents of the first received data packet. Detection of
2193 common protocols like HTTP(S), SSL, SSH, OpenVPN, tinc, and XMPP is already
2194 implemented, but any other protocol that matches a regular expression can be
2195 added. sslh's name comes from its original application of serving both SSH and
2196 HTTPS on port 443, allowing SSH connections from inside corporate firewalls
2197 that block port 22.")
2198 (license (list license:bsd-2 ; tls.[ch]
2199 license:gpl2+)))) ; everything else
2200
2201 (define-public iperf
2202 (package
2203 (name "iperf")
2204 (version "3.9")
2205 (source (origin
2206 (method url-fetch)
2207 (uri (string-append "http://downloads.es.net/pub/iperf"
2208 "/iperf-" version ".tar.gz"))
2209 (sha256
2210 (base32
2211 "0f601avdmzpwsa3lbi0ppjhkrdipm5wifhhxy5czf99370k3mdi4"))))
2212 (build-system gnu-build-system)
2213 (synopsis "TCP, UDP and SCTP bandwidth measurement tool")
2214 (description
2215 "iPerf is a tool to measure achievable bandwidth on IP networks. It
2216 supports tuning of various parameters related to timing, buffers and
2217 protocols (TCP, UDP, SCTP with IPv4 and IPv6). For each test it reports
2218 the bandwidth, loss, and other parameters.")
2219 (home-page "https://software.es.net/iperf/")
2220 (license (list license:bsd-3 ; Main distribution.
2221 license:ncsa ; src/{units,iperf_locale,tcp_window_size}.c
2222 license:expat ; src/{cjson,net}.[ch]
2223 license:public-domain)))) ; src/portable_endian.h
2224
2225 (define-public nethogs
2226 (package
2227 (name "nethogs")
2228 (version "0.8.6")
2229 (source
2230 (origin
2231 (method git-fetch)
2232 (uri (git-reference
2233 (url "https://github.com/raboof/nethogs")
2234 (commit (string-append "v" version))))
2235 (hash
2236 (content-hash
2237 (base32 "0sn1sdp86akwlm4r1vmkxjjl50c0xaisk91bbz57z7kcsaphxna9")
2238 sha256))
2239 (file-name (git-file-name name version))))
2240 (build-system gnu-build-system)
2241 (inputs
2242 `(("libpcap" ,libpcap)
2243 ("ncurses" ,ncurses)))
2244 (arguments
2245 `(#:make-flags `("CC=gcc"
2246 ,(string-append "PREFIX=" %output)
2247 ,(string-append "VERSION=" ,version))
2248 #:phases
2249 (modify-phases %standard-phases
2250 (delete 'configure)))) ; no ./configure script.
2251 (home-page "https://github.com/raboof/nethogs")
2252 (synopsis "Per-process bandwidth monitor")
2253 (description "NetHogs is a small 'net top' tool for Linux. Instead of
2254 breaking the traffic down per protocol or per subnet, like most tools do, it
2255 groups bandwidth by process.
2256
2257 NetHogs does not rely on a special kernel module to be loaded. If there's
2258 suddenly a lot of network traffic, you can fire up NetHogs and immediately see
2259 which PID is causing this. This makes it easy to identify programs that have
2260 gone wild and are suddenly taking up your bandwidth.")
2261 (license license:gpl2+)))
2262
2263 (define-public nzbget
2264 (package
2265 (name "nzbget")
2266 (version "21.0")
2267 (source
2268 (origin
2269 (method url-fetch)
2270 (uri (string-append "https://github.com/nzbget/nzbget/releases"
2271 "/download/v" version
2272 "/nzbget-" version "-src.tar.gz"))
2273 (sha256
2274 (base32
2275 "0lwd0pfrs4a5ms193hgz2qiyf7grrc925dw6y0nfc0gkp27db9b5"))
2276 (modules '((guix build utils)))
2277 (snippet
2278 ;; Reported upstream as <https://github.com/nzbget/nzbget/pull/414>.
2279 '(begin
2280 (substitute* "daemon/connect/TlsSocket.cpp"
2281 (("gnutls_certificate-verification_status_print")
2282 "gnutls_certificate_verification_status_print"))
2283 #t))))
2284 (arguments
2285 `(#:configure-flags
2286 (list
2287 (string-append "--with-libcurses-includes="
2288 (assoc-ref %build-inputs "ncurses") "/include")
2289 (string-append "--with-libcurses-libraries="
2290 (assoc-ref %build-inputs "ncurses") "/lib")
2291 (string-append "--with-tlslib=GnuTLS"))))
2292 (build-system gnu-build-system)
2293 (inputs `(("gnutls" ,gnutls)
2294 ("libxml2" ,libxml2)
2295 ("ncurses" ,ncurses)
2296 ("zlib" ,zlib)))
2297 (native-inputs `(("pkg-config" ,pkg-config)))
2298 (home-page "https://github.com/nzbget/nzbget")
2299 (synopsis "Usenet binary file downloader")
2300 (description
2301 "NZBGet is a binary newsgrabber, which downloads files from Usenet based
2302 on information given in @code{nzb} files. NZBGet can be used in standalone
2303 and in server/client modes. In standalone mode, you pass NZBGet @command{nzb}
2304 files as command-line parameters and it downloads them and exits. NZBGet also
2305 contains a Web interface. Its server can be controlled through remote
2306 procedure calls (RPCs).")
2307 (license license:gpl2+)))
2308
2309 (define-public openvswitch
2310 (package
2311 (name "openvswitch")
2312 (version "2.13.0")
2313 (source (origin
2314 (method url-fetch)
2315 (uri (string-append
2316 "https://www.openvswitch.org/releases/openvswitch-"
2317 version ".tar.gz"))
2318 (sha256
2319 (base32
2320 "0cd5vmfr6zwgcnkwys6rag6cmz68v0librpaplianv734xs74pyx"))))
2321 (build-system gnu-build-system)
2322 (arguments
2323 '(;; FIXME: many tests fail with:
2324 ;; […]
2325 ;; test -e $OVS_RUNDIR/ovs-vswitchd.pid
2326 ;; ovs-appctl -t ovs-vswitchd exit
2327 ;; hard failure
2328 #:tests? #f
2329 #:configure-flags
2330 '("--enable-shared"
2331 "--localstatedir=/var"
2332 "--with-dbdir=/var/lib/openvswitch")
2333 #:phases
2334 (modify-phases %standard-phases
2335 (replace 'install
2336 (lambda _
2337 (invoke "make"
2338 ;; Don't try to create directories under /var.
2339 "RUNDIR=/tmp"
2340 "PKIDIR=/tmp"
2341 "LOGDIR=/tmp"
2342 "DBDIR=/tmp"
2343 "install"))))))
2344 (native-inputs
2345 `(("perl" ,perl)
2346 ("pkg-config" ,pkg-config)
2347 ("python" ,python-wrapper)
2348 ;; for testing
2349 ("util-linux" ,util-linux)))
2350 (inputs
2351 `(("libcap-ng" ,libcap-ng)
2352 ("openssl" ,openssl)))
2353 (synopsis "Virtual network switch")
2354 (home-page "https://www.openvswitch.org/")
2355 (description
2356 "Open vSwitch is a multilayer virtual switch. It is designed to enable
2357 massive network automation through programmatic extension, while still
2358 supporting standard management interfaces and protocols (e.g. NetFlow, sFlow,
2359 IPFIX, RSPAN, CLI, LACP, 802.1ag).")
2360 (license ; see debian/copyright for detail
2361 (list license:lgpl2.1 ; xenserver and utilities/bugtool
2362 license:gpl2 ; datapath
2363 license:bsd-2 license:bsd-3
2364 license:asl2.0)))) ; all other
2365
2366 (define-public python-ipy
2367 (package
2368 (name "python-ipy")
2369 (version "1.00")
2370 (source (origin
2371 (method url-fetch)
2372 (uri (pypi-uri "IPy" version))
2373 (sha256
2374 (base32
2375 "08d6kcacj67mvh0b6y765ipccy6gi4w2ndd4v1l3im2qm1cgcarg"))))
2376 (build-system python-build-system)
2377 (home-page "https://github.com/autocracy/python-ipy/")
2378 (synopsis "Python class and tools for handling IP addresses and networks")
2379 (description "The @code{IP} class allows a comfortable parsing and
2380 handling for most notations in use for IPv4 and IPv6 addresses and
2381 networks.")
2382 (license license:bsd-3)))
2383
2384 (define-public python2-ipy
2385 (package-with-python2 python-ipy))
2386
2387 (define-public speedtest-cli
2388 (package
2389 (name "speedtest-cli")
2390 (version "2.1.2")
2391 (source
2392 (origin
2393 (method git-fetch)
2394 (uri (git-reference
2395 (url "https://github.com/sivel/speedtest-cli")
2396 (commit (string-append "v" version))))
2397 (file-name (git-file-name name version))
2398 (sha256
2399 (base32 "1456yly6iym2c9bl6pi4sz8xbw34bm2dxm1vzpydsd6jazwpmy26"))))
2400 (build-system python-build-system)
2401 (home-page "https://github.com/sivel/speedtest-cli")
2402 (synopsis "Internet bandwidth tester")
2403 (description
2404 "Command line interface for testing internet bandwidth using
2405 speedtest.net.")
2406 (license license:asl2.0)))
2407
2408 (define-public tftp-hpa
2409 (package
2410 (name "tftp-hpa")
2411 (version "5.2")
2412 (source (origin
2413 (method url-fetch)
2414 (uri (string-append "mirror://kernel.org/software/"
2415 "network/tftp/tftp-hpa/tftp-hpa-" version
2416 ".tar.xz"))
2417 (sha256
2418 (base32
2419 "12vidchglhyc20znq5wdsbhi9mqg90jnl7qr9qs8hbvaz4fkdvmg"))))
2420 (build-system gnu-build-system)
2421 (arguments `(#:tests? #f)) ; no test target
2422 (synopsis "HPA's tftp client")
2423 (description
2424 "This is a tftp client derived from OpenBSD tftp with some extra options
2425 added and bugs fixed. The source includes readline support but it is not
2426 enabled due to license conflicts between the BSD advertising clause and the GPL.")
2427 (home-page "https://git.kernel.org/cgit/network/tftp/tftp-hpa.git/about/")
2428 ;; Some source files are distributed under a 3-clause BSD license, and
2429 ;; others under a 4-clause BSD license. Refer to the files in the source
2430 ;; distribution for clarification.
2431 (license (list license:bsd-3 license:bsd-4))))
2432
2433 (define-public pidentd
2434 (package
2435 (name "pidentd")
2436 (version "3.0.19")
2437 (source
2438 (origin
2439 (method git-fetch)
2440 (uri (git-reference
2441 (url "https://github.com/ptrrkssn/pidentd")
2442 (commit (string-append "v" version))))
2443 (file-name (git-file-name name version))
2444 (sha256
2445 (base32
2446 "1k4rr0b4ygxssbnsykzjvz4hjhazzz4j5arlilyc1iq7b1wzsk7i"))))
2447 (build-system gnu-build-system)
2448 (arguments
2449 `(#:tests? #f)) ; No tests are included
2450 (inputs
2451 `(("openssl" ,openssl-1.0))) ;for the DES library
2452 (home-page "https://www.lysator.liu.se/~pen/pidentd/")
2453 (synopsis "Small Ident Daemon")
2454 (description
2455 "@dfn{Pidentd} (Peter's Ident Daemon) is an identd, which implements a
2456 identification server. Pidentd looks up specific TCP/IP connections and
2457 returns the user name and other information about the connection.")
2458 (license license:public-domain)))
2459
2460 (define-public spiped
2461 (package
2462 (name "spiped")
2463 (version "1.6.1")
2464 (source (origin
2465 (method url-fetch)
2466 (uri (string-append "https://www.tarsnap.com/spiped/spiped-"
2467 version ".tgz"))
2468 (sha256
2469 (base32
2470 "04rpnc53whfky7pp2m9h35gwzwn6788pnl6c1qd576mpknbqjw4d"))))
2471 (build-system gnu-build-system)
2472 (arguments
2473 '(#:test-target "test"
2474 #:make-flags (let* ((out (assoc-ref %outputs "out"))
2475 (bindir (string-append out "/bin"))
2476 (man1dir (string-append out "/share/man/man1")))
2477 (list "CC=gcc" ; It tries to invoke `c99`.
2478 (string-append "BINDIR=" bindir)
2479 (string-append "MAN1DIR=" man1dir)))
2480 #:phases
2481 (modify-phases %standard-phases
2482 (add-after 'unpack 'patch-command-invocations
2483 (lambda _
2484 (substitute* '("Makefile"
2485 "libcperciva/cpusupport/Build/cpusupport.sh"
2486 "libcperciva/POSIX/posix-cflags.sh"
2487 "libcperciva/POSIX/posix-l.sh")
2488 (("command -p") ""))
2489 #t))
2490 (delete 'configure) ; No ./configure script.
2491 (add-after 'install 'install-more-docs
2492 (lambda* (#:key outputs #:allow-other-keys)
2493 (let* ((out (assoc-ref %outputs "out"))
2494 (misc (string-append out "/share/doc/spiped")))
2495 (install-file "DESIGN.md" misc)
2496 #t))))))
2497 (native-inputs
2498 `(("procps" ,procps))) ; `ps` is used by the test suite.
2499 (inputs
2500 `(("openssl" ,openssl)))
2501 (home-page "https://www.tarsnap.com/spiped.html")
2502 (synopsis "Create secure pipes between sockets")
2503 (description "Spiped (pronounced \"ess-pipe-dee\") is a utility for creating
2504 symmetrically encrypted and authenticated pipes between socket addresses, so
2505 that one may connect to one address (e.g., a UNIX socket on localhost) and
2506 transparently have a connection established to another address (e.g., a UNIX
2507 socket on a different system). This is similar to 'ssh -L' functionality, but
2508 does not use SSH and requires a pre-shared symmetric key.")
2509 (license license:bsd-2)))
2510
2511 (define-public quagga
2512 (package
2513 (name "quagga")
2514 (version "1.2.4")
2515 (source (origin
2516 (method url-fetch)
2517 (uri (string-append "mirror://savannah/quagga/quagga-"
2518 version ".tar.gz"))
2519 (sha256
2520 (base32
2521 "1lsksqxij5f1llqn86pkygrf5672kvrqn1kvxghi169hqf1c0r73"))
2522 (patches
2523 (search-patches "quagga-reproducible-build.patch"))))
2524 (build-system gnu-build-system)
2525 (native-inputs `(("pkg-config" ,pkg-config)
2526 ("perl" ,perl)
2527 ("dejagnu" ,dejagnu)))
2528 (inputs `(("readline" ,readline)
2529 ("c-ares" ,c-ares)))
2530 (synopsis "Routing Software Suite")
2531 (description "Quagga is a routing software suite, providing implementations
2532 of OSPFv2, OSPFv3, RIP v1 and v2, RIPng and BGP-4 for Unix platforms.
2533
2534 The Quagga architecture consists of a core daemon, @command{zebra}, which
2535 acts as an abstraction layer to the underlying Unix kernel and presents the
2536 Zserv API over a Unix or TCP stream to Quagga clients. It is these Zserv
2537 clients which typically implement a routing protocol and communicate routing
2538 updates to the zebra daemon.")
2539 (home-page "https://www.nongnu.org/quagga/")
2540 (license license:gpl2+)))
2541
2542 (define-public thc-ipv6
2543 (let ((revision "0")
2544 (commit "4bb72573e0950ce6f8ca2800a10748477020029e"))
2545 (package
2546 (name "thc-ipv6")
2547 (version (git-version "3.4" revision commit))
2548 (source (origin
2549 (method git-fetch)
2550 (uri (git-reference
2551 (url "https://github.com/vanhauser-thc/thc-ipv6")
2552 (commit commit)))
2553 (file-name (git-file-name name version))
2554 (sha256
2555 (base32
2556 "1x5i6vbsddqc2yks7r1a2fw2fk16qxvd6hpzh1lykjfpkal8fdir"))))
2557 (build-system gnu-build-system)
2558 (arguments
2559 `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2560 #:tests? #f ; No test suite.
2561 #:phases
2562 (modify-phases %standard-phases
2563 (delete 'configure) ; No ./configure script.
2564 (add-before 'build 'patch-paths
2565 (lambda _
2566 (substitute* "Makefile"
2567 (("/bin/echo") "echo"))
2568 #t))
2569 (add-after 'install 'install-more-docs
2570 (lambda* (#:key outputs #:allow-other-keys)
2571 (let* ((out (assoc-ref outputs "out"))
2572 (doc (string-append out "/share/thc-ipv6/doc")))
2573 (install-file "README" doc)
2574 (install-file "HOWTO-INJECT" doc)
2575 #t))))))
2576 ;; TODO Add libnetfilter-queue once packaged.
2577 (inputs
2578 `(("libpcap" ,libpcap)
2579 ("openssl" ,openssl)
2580 ("perl" ,perl)))
2581 (home-page "https://github.com/vanhauser-thc/thc-ipv6")
2582 (synopsis "IPv6 security research toolkit")
2583 (description "The THC IPv6 Toolkit provides command-line tools and a library
2584 for researching IPv6 implementations and deployments. It requires Linux 2.6 or
2585 newer and only works on Ethernet network interfaces.")
2586 ;; AGPL 3 with exception for linking with OpenSSL. See the 'LICENSE' file in
2587 ;; the source distribution for more information.
2588 (license license:agpl3))))
2589
2590 (define-public bmon
2591 (package
2592 (name "bmon")
2593 (version "4.0")
2594 (source
2595 (origin
2596 (method url-fetch)
2597 (uri (string-append "https://github.com/tgraf/bmon/releases/download/v"
2598 version "/bmon-" version ".tar.gz"))
2599 (sha256
2600 (base32
2601 "0ylzriv4pwh76344abzl1w219x188gshbycbna35gsyfp09c7z82"))))
2602 (build-system gnu-build-system)
2603 (inputs
2604 `(("libconfuse" ,libconfuse)
2605 ("libnl" ,libnl)
2606 ("ncurses" ,ncurses)))
2607 (native-inputs
2608 `(("pkg-config" ,pkg-config)))
2609 (synopsis "Bandwidth monitor")
2610 (description "bmon is a monitoring and debugging tool to capture
2611 networking-related statistics and prepare them visually in a human-friendly
2612 way. It features various output methods including an interactive curses user
2613 interface and a programmable text output for scripting.")
2614 (home-page "https://github.com/tgraf/bmon")
2615 ;; README.md mentions both the 2-clause BSD and expat licenses, but all
2616 ;; the source files only have expat license headers. Upstream has been
2617 ;; contacted for clarification: https://github.com/tgraf/bmon/issues/59
2618 ;; Update the license field when upstream responds.
2619 (license (list license:bsd-2
2620 license:expat))))
2621
2622 (define-public libnet
2623 (package
2624 (name "libnet")
2625 (version "1.2")
2626 (source
2627 (origin
2628 (method url-fetch)
2629 (uri (string-append "https://github.com/libnet/libnet/releases/download"
2630 "/v" version "/libnet-" version ".tar.gz"))
2631 (sha256
2632 (base32
2633 "19ys9vxk6fg70yzzdxsphfr0rwzgxxhr9b3ykhpg7rfray0qd96a"))))
2634 (build-system gnu-build-system)
2635 (arguments
2636 `(#:phases
2637 (modify-phases %standard-phases
2638 (add-before 'build 'build-doc
2639 (lambda* (#:key make-flags #:allow-other-keys)
2640 (apply invoke "make" "-C" "doc" "doc"
2641 make-flags))))))
2642 (native-inputs
2643 `(;; To build the documentation, Doxygen and Perl is required.
2644 ("doxygen" ,doxygen)
2645 ("perl" ,perl)))
2646 (home-page "https://github.com/libnet/libnet")
2647 (synopsis "Framework for low-level network packet construction")
2648 (description
2649 "Libnet provides a fairly portable framework for network packet
2650 construction and injection. It features portable packet creation interfaces
2651 at the IP layer and link layer, as well as a host of supplementary
2652 functionality. Using libnet, quick and simple packet assembly applications
2653 can be whipped up with little effort.")
2654 (license license:bsd-2)))
2655
2656 (define-public mtr
2657 (package
2658 (name "mtr")
2659 (version "0.93")
2660 (source
2661 (origin
2662 (method url-fetch)
2663 (uri (string-append "ftp://ftp.bitwizard.nl/mtr/"
2664 "mtr-" version ".tar.gz"))
2665 (sha256
2666 (base32 "03gid8g4r6a9r40855s4345xm1bylj2kfqkicjwxpmvvccyng712"))))
2667 (build-system gnu-build-system)
2668 (inputs
2669 `(("libcap" ,libcap)
2670 ("ncurses" ,ncurses)))
2671 (arguments
2672 `(#:tests? #f)) ; tests require network access
2673 (home-page "https://www.bitwizard.nl/mtr/")
2674 (synopsis "Network diagnostic tool")
2675 (description
2676 "@acronym{mtr, My TraceRoute} combines the functionality of the
2677 @command{traceroute} and @command{ping} programs in a single network diagnostic
2678 tool. @command{mtr} can use several network protocols to detect intermediate
2679 routers (or @dfn{hops}) between the local host and a user-specified destination.
2680 It then continually measures the response time and packet loss at each hop, and
2681 displays the results in real time.")
2682 (license license:gpl2+)))
2683
2684 (define-public strongswan
2685 (package
2686 (name "strongswan")
2687 (version "5.8.4")
2688 (source
2689 (origin
2690 (method url-fetch)
2691 (uri (string-append "https://download.strongswan.org/strongswan-"
2692 version ".tar.bz2"))
2693 (sha256
2694 (base32 "0g2m08gmgdi3qvvqz6zy7n16np53sp232xd0rdc2vdhk73img6id"))))
2695 (build-system gnu-build-system)
2696 (arguments
2697 `(#:phases
2698 (modify-phases %standard-phases
2699 (add-before 'build 'patch-command-file-names
2700 (lambda* (#:key inputs #:allow-other-keys)
2701 (substitute* "src/libstrongswan/utils/process.c"
2702 (("/bin/sh")
2703 (string-append (assoc-ref inputs "bash") "/bin/sh")))
2704
2705 (substitute* "src/libstrongswan/tests/suites/test_process.c"
2706 (("/bin/sh") (which "sh"))
2707 (("/bin/echo") (which "echo"))
2708 (("cat") (which "cat")))
2709 #t))
2710 (add-before 'check 'set-up-test-environment
2711 (lambda* (#:key inputs #:allow-other-keys)
2712 (setenv "TZDIR" (string-append (assoc-ref inputs "tzdata")
2713 "/share/zoneinfo"))
2714 #t)))
2715 #:configure-flags
2716 (list
2717 ;; Disable bsd-4 licensed plugins.
2718 "--disable-des"
2719 "--disable-blowfish")))
2720 (inputs
2721 `(("curl" ,curl)
2722 ("gmp" ,gmp)
2723 ("libgcrypt" ,libgcrypt)
2724 ("openssl" ,openssl)))
2725 (native-inputs
2726 `(("coreutils" ,coreutils)
2727 ("tzdata" ,tzdata-for-tests)))
2728 (synopsis "IKEv1/v2 keying daemon")
2729 (description "StrongSwan is an IPsec implementation originally based upon
2730 the FreeS/WAN project. It contains support for IKEv1, IKEv2, MOBIKE, IPv6,
2731 NAT-T and more.")
2732 (home-page "https://strongswan.org/")
2733 (license
2734 (list license:gpl2+
2735 ;; src/aikgen/*
2736 ;; src/libcharon/plugins/dnscert/*
2737 ;; src/libcharon/plugins/ext_auth/*
2738 ;; src/libcharon/plugins/vici/ruby/*
2739 ;; src/libcharon/plugins/xauth_pam/xauth_pam_listener.[ch]
2740 license:expat
2741 ;; src/inclue/sys/*
2742 license:bsd-3
2743 ;; src/libstrongswan/plugins/sha3/sha3_keccak.c
2744 license:public-domain
2745 ;; src/libstrongswan/plugins/pkcs11/pkcs11.h
2746 (license:non-copyleft
2747 "file://src/libstrongswan/plugins/pkcs11/pkcs11.h"
2748 "pkcs11 contains a unknown permissive license. View the specific
2749 file for more details.")
2750 ;; These files are not included in the
2751 ;; build, they are disabled through
2752 ;; options to ./configure
2753 ;;
2754 ;; src/libstrongswan/plugins/blowfish/bf_enc.c
2755 ;; src/libstrongswan/plugins/blowfish/bf_locl.h
2756 ;; src/libstrongswan/plugins/blowfish/bf_pi.h
2757 ;; src/libstrongswan/plugins/blowfish/bf_skey.c
2758 ;; src/libstrongswan/plugins/blowfish/blowfish_crypter.c
2759 ;; src/libstrongswan/plugins/des/des_crypter.c
2760 license:bsd-4))))
2761
2762 (define-public amule
2763 (package
2764 (name "amule")
2765 (version "2.3.2")
2766 (source (origin
2767 (method git-fetch)
2768 (uri (git-reference
2769 (url "https://github.com/amule-project/amule")
2770 (commit version)))
2771 (file-name (git-file-name name version))
2772 (sha256
2773 (base32
2774 "010wxm6g9f92x6fympj501zbnjka32rzbx0sk3a2y4zpih5d2nsn"))
2775 ;; Patch for adopting crypto++ >= 6.0.
2776 (patches (search-patches "amule-crypto-6.patch"))))
2777 (build-system gnu-build-system)
2778 (arguments
2779 `(#:phases
2780 (modify-phases %standard-phases
2781 (delete 'bootstrap) ; bootstrap phase runs too early.
2782 (add-after 'patch-source-shebangs 'autogen
2783 (lambda _
2784 (invoke "sh" "autogen.sh")
2785 #t)))
2786 #:configure-flags
2787 '("--disable-rpath"
2788 "--enable-wxcas"
2789 "--enable-cas"
2790 "--enable-alc"
2791 "--enable-alcc"
2792 "--enable-xas"
2793 "--enable-amulecmd"
2794 "--enable-geoip"
2795 "--enable-ccache"
2796 "--enable-nls"
2797 "--enable-optimize"
2798 "--enable-amule-gui"
2799 "--enable-amule-daemon"
2800 "--enable-webserver"
2801 "--with-denoise-level=0")))
2802 (native-inputs
2803 `(("autoconf" ,autoconf)
2804 ("automake" ,automake)
2805 ("gettext-minimal" ,gettext-minimal)
2806 ("perl" ,perl)))
2807 (inputs
2808 `(("zlib" ,zlib)
2809 ("crypto++" ,crypto++)
2810 ("libpng" ,libpng)
2811 ("wxwidgets-gtk2" ,wxwidgets-gtk2)))
2812 (home-page "http://amule.org/")
2813 (synopsis "Peer-to-peer client for the eD2K and Kademlia networks")
2814 (description
2815 "aMule is an eMule-like client for the eD2k and Kademlia peer-to-peer
2816 file sharing networks. It includes a graphical user interface (GUI), a daemon
2817 allowing you to run a client with no graphical interface, and a Web GUI for
2818 remote access. The @command{amulecmd} command allows you to control aMule
2819 remotely.")
2820 (license license:gpl2+)))
2821
2822 (define-public zyre
2823 (package
2824 (name "zyre")
2825 (version "2.0.0")
2826 (source (origin
2827 (method url-fetch)
2828 (uri
2829 (string-append "https://github.com/zeromq/zyre/releases/download/v"
2830 version "/" name "-" version ".tar.gz"))
2831 (sha256
2832 (base32
2833 "0qz2730bng1gs9xbqxhkw88qbsmszgmmrl2g9k6xrg6r3bqvsdc7"))))
2834 (build-system gnu-build-system)
2835 (inputs `(("zeromq" ,zeromq)
2836 ("czmq" ,czmq)
2837 ("libsodium" ,libsodium)))
2838 (synopsis "Framework for proximity-based peer-to-peer applications")
2839 (description "Zyre provides reliable group messaging over local area
2840 networks using zeromq. It has these key characteristics:
2841
2842 @itemize
2843 @item Zyre needs no administration or configuration.
2844 @item Peers may join and leave the network at any time.
2845 @item Peers talk to each other without any central brokers or servers.
2846 @item Peers can talk directly to each other.
2847 @item Peers can join groups, and then talk to groups.
2848 @item Zyre is reliable, and loses no messages even when the network is heavily loaded.
2849 @item Zyre is fast and has low latency, requiring no consensus protocols.
2850 @item Zyre is designed for WiFi networks, yet also works well on Ethernet networks.
2851 @end itemize")
2852 (home-page "https://github.com/zeromq/zyre")
2853 (license license:mpl2.0)))
2854
2855 (define-public libsocketcan
2856 (package
2857 (name "libsocketcan")
2858 (version "0.0.11")
2859 (source (origin
2860 (method git-fetch)
2861 (uri (git-reference
2862 (url "https://git.pengutronix.de/cgit/tools/libsocketcan")
2863 (commit (string-append "v" version))))
2864 (file-name (git-file-name name version))
2865 (sha256
2866 (base32
2867 "17z2y2r9xkixhr9bxr50m77fh710afl30s7jdhbxrvf56vmal2jr"))))
2868 (build-system gnu-build-system)
2869 (native-inputs
2870 `(("autoconf" ,autoconf)
2871 ("automake" ,automake)
2872 ("libtool" ,libtool)))
2873 (home-page "https://git.pengutronix.de/cgit/tools/libsocketcan")
2874 (synopsis "SocketCAN user-space library")
2875 (description "This library allows controlling basic functions in SocketCAN
2876 from user-space. It requires a kernel built with SocketCAN support.")
2877 (license license:lgpl2.1+)))
2878
2879 (define-public can-utils
2880 (package
2881 (name "can-utils")
2882 (version "2020.02.04")
2883 (source (origin
2884 (method git-fetch)
2885 (uri (git-reference
2886 (url "https://github.com/linux-can/can-utils")
2887 (commit (string-append "v" version))))
2888 (file-name (git-file-name name version))
2889 (sha256
2890 (base32
2891 "1a3j1mmnb7pvgc8r7zzp6sdp7903in2hna6bmpraxln7cwlzn4l6"))))
2892 (build-system gnu-build-system)
2893 (arguments
2894 `(#:tests? #f ; No tests exist.
2895 #:make-flags (list "CC=gcc"
2896 (string-append "PREFIX="
2897 (assoc-ref %outputs "out")))
2898 #:phases
2899 (modify-phases %standard-phases
2900 (delete 'bootstrap)
2901 (delete 'configure))))
2902 (home-page "https://github.com/linux-can/can-utils")
2903 (synopsis "CAN utilities")
2904 (description "This package provides CAN utilities in the following areas:
2905
2906 @itemize
2907 @item Basic tools to display, record, generate and replay CAN traffic
2908 @item CAN access via IP sockets
2909 @item CAN in-kernel gateway configuration
2910 @item CAN bus measurement and testing
2911 @item ISO-TP (ISO15765-2:2016 - this means messages with a body larger than
2912 eight bytes) tools
2913 @item Log file converters
2914 @item Serial Line Discipline configuration for slcan driver
2915 @end itemize")
2916 ;; Either BSD-3 or GPL-2 can be used.
2917 (license (list license:bsd-3 license:gpl2))))
2918
2919 (define-public asio
2920 (package
2921 (name "asio")
2922 (version "1.12.2")
2923 (source
2924 (origin
2925 (method url-fetch)
2926 (uri (string-append "mirror://sourceforge/asio/asio/"
2927 version " (Stable)/asio-" version ".tar.bz2"))
2928 (sha256
2929 (base32 "1akray4l3hgahmb92sbvsqg128c7g7s92jrkf1sp1fjnfjrxq9sf"))))
2930 (build-system gnu-build-system)
2931 (inputs
2932 `(("boost" ,boost)
2933 ("openssl" ,openssl)))
2934 (arguments
2935 `(#:configure-flags
2936 (list
2937 (string-append "--with-boost=" (assoc-ref %build-inputs "boost"))
2938 (string-append "--with-openssl=" (assoc-ref %build-inputs "openssl")))))
2939 (home-page "https://think-async.com/Asio")
2940 (synopsis "C++ library for ASynchronous network I/O")
2941 (description "Asio is a cross-platform C++ library for network and
2942 low-level I/O programming that provides developers with a consistent
2943 asynchronous model using a modern C++ approach.")
2944 (license license:boost1.0)))
2945
2946 (define-public shadowsocks
2947 ;; There are some security fixes after the last release.
2948 (let* ((commit "e332ec93e9c90f1cbee676b022bf2c5d5b7b1239")
2949 (revision "0")
2950 (version (git-version "2.8.2" revision commit)))
2951 (package
2952 (name "shadowsocks")
2953 (version version)
2954 (home-page "https://github.com/shadowsocks/shadowsocks")
2955 (source (origin
2956 (method git-fetch)
2957 (uri (git-reference
2958 (url home-page)
2959 (commit commit)))
2960 (sha256
2961 (base32
2962 "1idd9b4f2pnhcpk1bh030hqg5zq25gkwxd53xi3c0cj242w7sp2j"))
2963 (file-name (git-file-name name version))))
2964 (build-system python-build-system)
2965 (synopsis "Fast tunnel proxy that helps you bypass firewalls")
2966 (description
2967 "This package is a fast tunnel proxy that helps you bypass firewalls.
2968
2969 Features:
2970 @itemize
2971 @item TCP & UDP support
2972 @item User management API
2973 @item TCP Fast Open
2974 @item Workers and graceful restart
2975 @item Destination IP blacklist
2976 @end itemize")
2977 (license license:asl2.0))))
2978
2979 (define-public net-snmp
2980 (package
2981 (name "net-snmp")
2982 (version "5.9")
2983 (source (origin
2984 (method url-fetch)
2985 (uri (string-append "mirror://sourceforge/net-snmp/net-snmp/"
2986 version "/net-snmp-" version ".tar.gz"))
2987 (sha256
2988 (base32
2989 "0wb0vyafpspw3mcifkjjmf17r1r80kjvslycscb8nvaxz1k3lc04"))
2990 (modules '((guix build utils)))
2991 (snippet
2992 '(begin
2993 ;; Drop bundled libraries.
2994 (delete-file-recursively "snmplib/openssl")
2995 #t))))
2996 (build-system gnu-build-system)
2997 (arguments
2998 `(#:test-target "test"
2999 ;; XXX: With parallel build enabled, Perl modules may not get linked with
3000 ;; libnetsnmp. See e.g. <https://bugzilla.novell.com/show_bug.cgi?id=819497>.
3001 #:parallel-build? #f
3002 #:configure-flags
3003 (list (string-append "LDFLAGS=-Wl,-rpath="
3004 (assoc-ref %outputs "out")
3005 "/lib")
3006 "--with-logfile=/var/log/snmpd.log"
3007 (string-append "--with-openssl="
3008 (assoc-ref %build-inputs "openssl")))
3009 #:phases
3010 (modify-phases %standard-phases
3011 (add-after 'unpack 'patch-tests
3012 (lambda* (#:key inputs #:allow-other-keys)
3013 (substitute* "testing/fulltests/support/simple_TESTCONF.sh"
3014 (("NETSTAT=\"\"")
3015 (string-append "NETSTAT=\"" (which "netstat") "\"")))
3016 (substitute* '("testing/fulltests/default/T065agentextend_simple"
3017 "testing/fulltests/default/T115agentxperl_simple")
3018 (("/usr/bin/env") (which "env")))
3019 (substitute* "testing/fulltests/default/T065agentextend_sh_simple"
3020 (("/bin/sh") (which "sh")))
3021 ;; These tests require network access.
3022 (for-each delete-file
3023 '("testing/fulltests/default/T070com2sec_simple"
3024 "testing/fulltests/default/T071com2sec6_simple"))
3025 #t))
3026 (add-after 'unpack 'patch-Makefile.PL
3027 (lambda* (#:key outputs #:allow-other-keys)
3028 (substitute* "Makefile.in"
3029 (("Makefile.PL -NET")
3030 (string-append "Makefile.PL PREFIX="
3031 (assoc-ref outputs "out")
3032 " INSTALLDIRS=site" " NO_PERLLOCAL=1"
3033 " -NET")))
3034 #t)))))
3035 (inputs
3036 `(("libnl" ,libnl)
3037 ("ncurses" ,ncurses) ; for the ‘apps’
3038 ("openssl" ,openssl)
3039 ("perl" ,perl)))
3040 (native-inputs
3041 `(("pkg-config" ,pkg-config)
3042
3043 ;; For tests only.
3044 ("net-tools" ,net-tools)
3045 ("coreutils" ,coreutils)
3046 ("grep" ,grep)))
3047 (home-page "http://www.net-snmp.org/")
3048 (synopsis "Simple Network Management Protocol library and tools")
3049 (description "The @dfn{Simple Network Management Protocol} (SNMP) is a
3050 widely used protocol for monitoring the health and welfare of network
3051 equipment (e.g. routers), computer equipment and even devices like UPSs.
3052 Net-SNMP is a suite of applications used to implement SNMP v1, SNMP v2c and
3053 SNMP v3 using both IPv4 and IPv6.")
3054 ;; This only affects OpenBSD
3055 ;; https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-8100
3056 (properties `((lint-hidden-cve . ("CVE-2015-8100"))))
3057 (license (list license:bsd-3
3058 (license:non-copyleft
3059 "http://www.net-snmp.org/about/license.html"
3060 "CMU/UCD copyright notice")))))
3061
3062 (define-public ubridge
3063 (package
3064 (name "ubridge")
3065 (version "0.9.18")
3066 (source
3067 (origin
3068 (method git-fetch)
3069 (uri (git-reference
3070 (url "https://github.com/GNS3/ubridge")
3071 (commit (string-append "v" version))))
3072 (file-name (git-file-name name version))
3073 (sha256
3074 (base32 "0jg66jhhpv4c9340fsdp64hf9h253i8r81fknxa0gq241ripp3jn"))))
3075 (build-system gnu-build-system)
3076 (arguments
3077 `(#:tests? #f ; no tests
3078 #:make-flags
3079 (list ,(string-append "CC=" (cc-for-target)))
3080 #:phases
3081 (modify-phases %standard-phases
3082 (delete 'configure) ; no configure script
3083 (add-before 'install 'set-bindir
3084 (lambda* (#:key inputs outputs #:allow-other-keys)
3085 (let ((bin (string-append (assoc-ref outputs "out")
3086 "/bin")))
3087 (mkdir-p bin)
3088 (substitute* "Makefile"
3089 (("\\$\\(BINDIR\\)") bin)
3090 (("\tsetcap cap_net.*$") "")))
3091 #t)))))
3092 (inputs
3093 `(("libpcap" ,libpcap)))
3094 (home-page "https://github.com/GNS3/ubridge/")
3095 (synopsis "Bridge for UDP tunnels, Ethernet, TAP and VMnet interfaces")
3096 (description "uBridge is a simple program to create user-land bridges
3097 between various technologies. Currently, bridging between UDP tunnels,
3098 Ethernet and TAP interfaces is supported. Packet capture is also supported.")
3099 (license license:gpl3+)))
3100
3101 (define-public hcxtools
3102 (package
3103 (name "hcxtools")
3104 (version "5.2.0")
3105 (source
3106 (origin
3107 (method git-fetch)
3108 (uri (git-reference
3109 (url "https://github.com/ZerBea/hcxtools")
3110 (commit version)))
3111 (sha256
3112 (base32 "0k2qlq9hz5zc21nyc6yrnfqzga7hydn5mm0x3rpl2fhkwl81lxcn"))
3113 (file-name (git-file-name name version))))
3114 (build-system gnu-build-system)
3115 (inputs
3116 `(("curl" ,curl)
3117 ("libpcap" ,libpcap)
3118 ("openssl" ,openssl)
3119 ("zlib" ,zlib)))
3120 (arguments
3121 `(#:make-flags
3122 (list "CC=gcc"
3123 (string-append "INSTALLDIR=" (assoc-ref %outputs "out") "/bin"))
3124 #:tests? #f ; no test suite
3125 #:phases
3126 (modify-phases %standard-phases
3127 (delete 'configure))))
3128 (home-page "https://github.com/ZerBea/hcxtools")
3129 (synopsis "Capture wlan traffic to hashcat and John the Ripper")
3130 (description
3131 "This package contains a small set of tools to capture and convert
3132 packets from wireless devices for use with hashcat or John the Ripper.")
3133 (license license:expat)))
3134
3135 (define-public hcxdumptool
3136 (package
3137 (name "hcxdumptool")
3138 (version "6.0.6")
3139 (source
3140 (origin
3141 (method git-fetch)
3142 (uri (git-reference
3143 (url "https://github.com/ZerBea/hcxdumptool")
3144 (commit version)))
3145 (sha256
3146 (base32 "1b4d543y64ib92w9gcmiyjn5hz2vyjqmxk3f3yr1zk04fhw16gmf"))
3147 (file-name (git-file-name name version))))
3148 (build-system gnu-build-system)
3149 (arguments
3150 `(#:make-flags
3151 (list ,(string-append "CC=" (cc-for-target))
3152 (string-append "INSTALLDIR=" (assoc-ref %outputs "out") "/bin"))
3153 #:tests? #f ; no test suite
3154 #:phases
3155 (modify-phases %standard-phases
3156 (delete 'configure))))
3157 (inputs
3158 `(("openssl" ,openssl)))
3159 (home-page "https://github.com/ZerBea/hcxdumptool")
3160 (synopsis "Small tool to capture packets from wlan devices")
3161 (description
3162 "Small tool to capture packets from WLAN devices. After capturing,
3163 upload the \"uncleaned\" cap to @url{https://wpa-sec.stanev.org/?submit} to
3164 see if the access point or the client is vulnerable to a dictionary attack.
3165 Convert the cap file to hccapx format and/or to WPA-PMKID-PBKDF2
3166 hashline (16800) with @command{hcxpcaptool} from the @code{hcxtools} package
3167 and check if the WLAN key or the master key was transmitted unencrypted.")
3168 (license license:expat)))
3169
3170 (define-public dante
3171 (package
3172 (name "dante")
3173 (version "1.4.2")
3174 (source
3175 (origin
3176 (method url-fetch)
3177 (uri (string-append "https://www.inet.no/dante/files/dante-"
3178 version ".tar.gz"))
3179 (sha256
3180 (base32
3181 "19rqzj167q73ag20zxpvswhkk0bj56r5maf83v5016sw7vrcz5sc"))))
3182 (build-system gnu-build-system)
3183 (arguments
3184 ;; XXX: The dynamic socks library doesn't work with 'libc.so' (GNU ld
3185 ;; script). When preloading is enabled, 'sockd' failed with:
3186 ;; … Failed to open library "libc.so": …: invalid ELF header
3187 '(#:configure-flags '("--disable-preload")))
3188 (home-page "https://www.inet.no/dante/")
3189 (synopsis "SOCKS server and client")
3190 (description "Dante is a SOCKS client and server implementation. It can
3191 be installed on a machine with access to an external TCP/IP network and will
3192 allow all other machines, without direct access to that network, to be relayed
3193 through the machine the Dante server is running on. The external network will
3194 never see any machines other than the one Dante is running on.")
3195 (license (license:non-copyleft "file://LICENSE"))))
3196
3197 (define-public restbed
3198 (let ((commit "6eb385fa9051203f28bf96cc1844bbb5a9a6481f"))
3199 (package
3200 (name "restbed")
3201 (version (git-version "4.6" "1" commit))
3202 (source
3203 (origin
3204 (method git-fetch)
3205 (uri (git-reference
3206 (url "https://github.com/Corvusoft/restbed/")
3207 (commit commit)))
3208 (file-name (string-append name "-" version ".tar.gz"))
3209 (sha256
3210 (base32 "0k60i5drklqqrb4khb25fzkgz9y0sncxf1sp6lh2bm1m0gh0661n"))))
3211 (build-system cmake-build-system)
3212 (inputs
3213 `(("asio" ,asio)
3214 ("catch" ,catch-framework)
3215 ("openssl" ,openssl)))
3216 (arguments
3217 `(#:tests? #f
3218 #:configure-flags
3219 '("-DBUILD_TESTS=NO"
3220 "-DBUILD_EXAMPLES=NO"
3221 "-DBUILD_SSL=NO"
3222 "-DBUILD_SHARED=NO")
3223 #:phases
3224 (modify-phases %standard-phases
3225 (add-after 'unpack 'apply-patches-and-fix-paths
3226 (lambda* (#:key inputs #:allow-other-keys)
3227 (let ((asio (assoc-ref inputs "asio"))
3228 (catch (assoc-ref inputs "catch"))
3229 (openssl (assoc-ref inputs "openssl")))
3230 (substitute* "cmake/Findasio.cmake"
3231 (("(find_path\\( asio_INCLUDE asio\\.hpp HINTS ).*$" all begin)
3232 (string-append begin " \"" asio "/include\" )")))
3233 (substitute* "cmake/Findcatch.cmake"
3234 (("(find_path\\( catch_INCLUDE catch\\.hpp HINTS ).*$" all begin)
3235 (string-append begin " \"" catch "/include\" )")))
3236 (substitute* "cmake/Findopenssl.cmake"
3237 (("(find_library\\( ssl_LIBRARY ssl ssleay32 HINTS ).*$" all begin)
3238 (string-append begin " \"" openssl "/lib\" )"))
3239 (("(find_library\\( crypto_LIBRARY crypto libeay32 HINTS ).*$" all begin)
3240 (string-append begin " \"" openssl "/lib\" )"))
3241 (("(find_path\\( ssl_INCLUDE openssl/ssl\\.h HINTS ).*$" all begin)
3242 (string-append begin " \"" openssl "/include\" )")))))))))
3243 (synopsis "Asynchronous RESTful functionality to C++11 applications")
3244 (description "Restbed is a comprehensive and consistent programming
3245 model for building applications that require seamless and secure
3246 communication over HTTP.")
3247 (home-page "https://github.com/Corvusoft/restbed")
3248 (license license:agpl3+))))
3249
3250 (define-public restinio
3251 (package
3252 (name "restinio")
3253 (version "0.6.1.1")
3254 (source (origin
3255 (method git-fetch)
3256 (uri (git-reference
3257 (url "https://github.com/Stiffstream/restinio")
3258 (commit (string-append "v." version))))
3259 (file-name (git-file-name name version))
3260 (sha256
3261 (base32
3262 "141a96hx8zhcdv121g6cs91n46kb47y040v25pnvz5f54964z7f5"))))
3263 (build-system cmake-build-system)
3264 (inputs ; TODO: Need to force-keep references on some inputs, e.g. boost.
3265 `(("zlib" ,zlib)
3266 ("catch2" ,catch-framework2)
3267 ("openssl" ,openssl)
3268 ("boost" ,boost)
3269 ("pcre" ,pcre)
3270 ("pcre2" ,pcre2)
3271 ("sobjectizer" ,sobjectizer)))
3272 (propagated-inputs
3273 `(("asio", asio)
3274 ("fmt" ,fmt)
3275 ("http-parser", http-parser)))
3276 (arguments
3277 `(#:configure-flags '("-DRESTINIO_INSTALL=on")
3278 #:tests? #f ; TODO: The tests are called from the root CMakelist, need RESTINIO_TEST=on.
3279 #:phases
3280 (modify-phases %standard-phases
3281 (add-after 'unpack 'change-directory
3282 (lambda _
3283 (chdir "dev/restinio")
3284 #t)))))
3285 (home-page "https://stiffstream.com/en/products/restinio.html")
3286 (synopsis "C++14 library that gives you an embedded HTTP/Websocket server")
3287 (description "RESTinio is a header-only C++14 library that gives you an embedded
3288 HTTP/Websocket server. It is based on standalone version of ASIO
3289 and targeted primarily for asynchronous processing of HTTP-requests.")
3290 (license license:bsd-3)))
3291
3292 (define-public opendht
3293 (package
3294 (name "opendht")
3295 (version "2.1.4")
3296 (source (origin
3297 (method git-fetch)
3298 (uri (git-reference
3299 (url "https://github.com/savoirfairelinux/opendht")
3300 (commit version)))
3301 (file-name (git-file-name name version))
3302 (patches (search-patches "opendht-fix-jami.patch"))
3303 (sha256
3304 (base32
3305 "1ax26ri1ifb6s8ppd28jmanka9yf8mw3np65q2h4djhhik0phhal"))))
3306 ;; Since 2.0, the gnu-build-system does not seem to work anymore, upstream bug?
3307 (build-system cmake-build-system)
3308 (inputs
3309 `(("argon2" ,argon2)
3310 ("nettle" ,nettle)
3311 ("readline" ,readline)
3312 ("jsoncpp" ,jsoncpp)
3313 ("openssl" ,openssl) ;required for the DHT proxy
3314 ("fmt" ,fmt)))
3315 (propagated-inputs
3316 `(("gnutls" ,gnutls) ;included in opendht/crypto.h
3317 ("msgpack" ,msgpack))) ;included in several installed headers
3318 (native-inputs
3319 `(("autoconf" ,autoconf)
3320 ("automake" ,automake)
3321 ("pkg-config" ,pkg-config)
3322 ("restinio" ,restinio) ;headers only library
3323 ("libtool" ,libtool)
3324 ("cppunit" ,cppunit)))
3325 (arguments
3326 `(#:tests? #f ; Tests require network connection.
3327 #:configure-flags
3328 '(;; "-DOPENDHT_TESTS=on"
3329 "-DOPENDHT_TOOLS=off"
3330 "-DOPENDHT_PYTHON=off"
3331 "-DOPENDHT_PROXY_SERVER=on"
3332 "-DOPENDHT_PUSH_NOTIFICATIONS=on"
3333 "-DOPENDHT_PROXY_SERVER_IDENTITY=on"
3334 "-DOPENDHT_PROXY_CLIENT=on")))
3335 (home-page "https://github.com/savoirfairelinux/opendht/")
3336 (synopsis "Distributed Hash Table (DHT) library")
3337 (description "OpenDHT is a Distributed Hash Table (DHT) library. It may
3338 be used to manage peer-to-peer network connections as needed for real time
3339 communication.")
3340 (license license:gpl3+)))
3341
3342 (define-public frrouting
3343 (package
3344 (name "frrouting")
3345 (version "6.0.2")
3346 (source (origin
3347 (method url-fetch)
3348 (uri (string-append "https://github.com/FRRouting/frr/releases/"
3349 "download/frr-" version "/frr-" version
3350 ".tar.xz"))
3351 (sha256
3352 (base32
3353 "0xfrvi62w8qlh46f504ka0skb7pm0g0p8vmdng4w90gsbirlzpdd"))))
3354 (build-system gnu-build-system)
3355 (inputs
3356 `(("c-ares" ,c-ares)
3357 ("json-c" ,json-c)
3358 ("readline" ,readline)))
3359 (native-inputs
3360 `(("perl" ,perl)
3361 ("pkg-config" ,pkg-config)
3362 ("python" ,python-wrapper)
3363 ("python-pytest" ,python-pytest)))
3364 (home-page "https://frrouting.org/")
3365 (synopsis "IP routing protocol suite")
3366 (description "FRRouting (FRR) is an IP routing protocol suite which includes
3367 protocol daemons for BGP, IS-IS, LDP, OSPF, PIM, and RIP. ")
3368 (license license:gpl2+)))
3369
3370 (define-public iwd
3371 (package
3372 (name "iwd")
3373 (version "0.21")
3374 (source (origin
3375 (method git-fetch)
3376 (uri (git-reference
3377 (url "https://git.kernel.org/pub/scm/network/wireless/iwd.git")
3378 (commit version)))
3379 (file-name (git-file-name name version))
3380 (sha256
3381 (base32
3382 "001dikinsa6kshwscjbvwipavzwpqnpvx9fpshcn63gbvbhyd393"))))
3383 (build-system gnu-build-system)
3384 (inputs
3385 `(("dbus" ,dbus)
3386 ("ell" ,ell)
3387 ("readline" ,readline)))
3388 (native-inputs
3389 `(("asciidoc" ,asciidoc)
3390 ("autoconf" ,autoconf)
3391 ("automake" ,automake)
3392 ("libtool" ,libtool)
3393 ("pkgconfig" ,pkg-config)
3394 ("python" ,python)
3395 ("openssl" ,openssl)))
3396 (arguments
3397 `(#:configure-flags
3398 (let ((dbus (assoc-ref %outputs "out")))
3399 (list "--disable-systemd-service"
3400 "--enable-external-ell"
3401 "--enable-hwsim"
3402 "--enable-tools"
3403 "--enable-wired"
3404 "--enable-docs"
3405 "--localstatedir=/var"
3406 (string-append "--with-dbus-datadir=" dbus "/share/")
3407 (string-append "--with-dbus-busdir="
3408 dbus "/share/dbus-1/system-services")))
3409 #:phases
3410 (modify-phases %standard-phases
3411 (add-before 'bootstrap 'pre-bootstrap
3412 (lambda _
3413 (substitute* "Makefile.am"
3414 ;; Test disabled because it needs the kernel module
3415 ;; 'pkcs8_key_parser' loaded.
3416 (("unit\\/test-eapol.*? ") "")
3417 ;; Don't try to 'mkdir /var'.
3418 (("\\$\\(MKDIR_P\\) -m 700") "true"))
3419 #t)))))
3420 (home-page "https://git.kernel.org/pub/scm/network/wireless/iwd.git/")
3421 (synopsis "Internet Wireless Daemon")
3422 (description "iwd is a wireless daemon for Linux that aims to replace WPA
3423 Supplicant. It optimizes resource utilization by not depending on any external
3424 libraries and instead utilizing features provided by the Linux kernel to the
3425 maximum extent possible.")
3426 (license license:lgpl2.1+)))
3427
3428 (define-public batctl
3429 (package
3430 (name "batctl")
3431 (version "2020.3")
3432 (source
3433 (origin
3434 (method url-fetch)
3435 (uri (string-append "https://downloads.open-mesh.org/batman/releases/batman-adv-"
3436 version "/batctl-" version ".tar.gz"))
3437 (sha256
3438 (base32 "0r2w2v4sy6wgr7mp9lc7yj9k4ldsbsm3425rjil7p0b17zmzf4rm"))))
3439 (inputs
3440 `(("libnl" ,libnl)))
3441 (native-inputs
3442 `(("pkg-config" ,pkg-config)))
3443 (build-system gnu-build-system)
3444 (arguments
3445 `(#:tests? #f
3446 ;; Batctl only has a makefile. Thus we disable tests and
3447 ;; configuration, passing in a few make-flags.
3448 #:phases (modify-phases %standard-phases (delete 'configure))
3449 #:make-flags
3450 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3451 (string-append "PKG_CONFIG=" (assoc-ref %build-inputs "pkg-config")
3452 "/bin/pkg-config")
3453 "CC=gcc")))
3454 (home-page "https://www.open-mesh.org/projects/batman-adv/wiki/Wiki")
3455 (synopsis "Management tool for the mesh networking BATMAN protocol")
3456 (description "This package provides a control tool for the
3457 B.A.T.M.A.N. mesh networking routing protocol provided by the Linux kernel
3458 module @code{batman-adv}, for Layer 2.")
3459 (license license:gpl2+)))
3460
3461 (define-public pagekite
3462 (package
3463 (name "pagekite")
3464 (version "1.5.2.200725")
3465 (source
3466 (origin
3467 (method git-fetch)
3468 (uri (git-reference
3469 (url "https://github.com/pagekite/PyPagekite")
3470 (commit (string-append "v" version))))
3471 (file-name (git-file-name name version))
3472 (sha256
3473 (base32 "0lig1i42bn9isw848vnml5qhcaa04x1dr2hb075bm0a3439kv3rr"))))
3474 (build-system python-build-system)
3475 (arguments
3476 `(#:phases
3477 (modify-phases %standard-phases
3478 (add-after 'install 'install-man-page
3479 (lambda* (#:key inputs outputs #:allow-other-keys)
3480 (let* ((out (assoc-ref outputs "out"))
3481 (man (string-append out "/share/man")))
3482 (invoke "make"
3483 (string-append "PYTHONPATH=" (getenv "PYTHONPATH"))
3484 "doc/pagekite.1")
3485 (install-file "doc/pagekite.1" (string-append man "/man1"))
3486 #t))))))
3487 (inputs
3488 `(("python-six" ,python-six)
3489 ("python-socksipychain" ,python-socksipychain)))
3490 (home-page "https://pagekite.net/")
3491 (synopsis "Make localhost servers publicly visible")
3492 (description
3493 "PageKite implements a tunneled reverse proxy which makes it easy to make
3494 a service (such as an HTTP or SSH server) on localhost visible to the wider
3495 Internet, even behind NAT or restrictive firewalls. A managed front-end relay
3496 service is available at @url{https://pagekite.net/}, or you can run your own.")
3497 (license license:agpl3+)))
3498
3499 (define-public ipcalc
3500 (package
3501 (name "ipcalc")
3502 (version "0.41")
3503 (source (origin
3504 (method url-fetch)
3505 (uri (string-append "http://jodies.de/ipcalc-archive/"
3506 name "-" version ".tar.gz"))
3507 (sha256
3508 (base32
3509 "12if9sm8h2ac0pgwkw835cgyqjxm6h27k4kfn2vfas9krrqwbafx"))))
3510 (inputs `(("perl" ,perl)
3511 ("tar" ,tar)
3512 ("gzip" ,gzip)
3513 ("tarball" ,source)))
3514 (build-system trivial-build-system) ;no Makefile.PL
3515 (arguments
3516 `(#:modules ((guix build utils))
3517 #:builder
3518 (begin
3519 (use-modules (guix build utils))
3520 (use-modules (srfi srfi-1))
3521 (let* ((source (assoc-ref %build-inputs "source"))
3522 (perl (string-append (assoc-ref %build-inputs "perl")
3523 "/bin"))
3524 (tar (assoc-ref %build-inputs "tar"))
3525 (gz (assoc-ref %build-inputs "gzip"))
3526 (out (assoc-ref %outputs "out"))
3527 (bin (string-append out "/bin"))
3528 (doc (string-append out "/share/doc/ipcalc")))
3529 (setenv "PATH" (string-append gz "/bin"))
3530 (invoke (string-append tar "/bin/tar") "xvf" source)
3531 (chdir (string-append ,name "-" ,version))
3532
3533 (install-file "ipcalc" bin)
3534 (patch-shebang (string-append bin "/ipcalc") (list perl))
3535 #t))))
3536 (synopsis "Simple IP network calculator")
3537 (description "ipcalc takes an IP address and netmask and calculates the
3538 resulting broadcast, network, Cisco wildcard mask, and host range. By giving
3539 a second netmask, you can design subnets and supernets. It is also intended
3540 to be a teaching tool and presents the subnetting results as
3541 easy-to-understand binary values.")
3542 (home-page "http://jodies.de/ipcalc")
3543 (license license:gpl2+)))
3544
3545 (define-public tunctl
3546 (package
3547 (name "tunctl")
3548 (version "1.5")
3549 (source
3550 (origin
3551 (method url-fetch)
3552 (uri (string-append "mirror://sourceforge/tunctl/tunctl/" version "/"
3553 "tunctl-" version ".tar.gz"))
3554 (sha256
3555 (base32 "1zsgn7w6l2zh2q0j6qaw8wsx981qcr536qlz1lgb3b5zqr66qama"))))
3556 (build-system gnu-build-system)
3557 (arguments
3558 `(#:phases
3559 (modify-phases %standard-phases
3560 (delete 'bootstrap) ;there is no configure.ac file
3561 (delete 'configure) ;there is no configure script
3562 (delete 'check) ;there are no tests
3563 (replace 'build
3564 (lambda _
3565 (setenv "CC" "gcc")
3566 (invoke "make" "tunctl")))
3567 ;; TODO: Requires docbook2x to generate man page from SGML.
3568 (replace 'install
3569 (lambda* (#:key outputs #:allow-other-keys)
3570 (let* ((out (assoc-ref outputs "out"))
3571 (bin (string-append out "/bin")))
3572 (install-file "tunctl" bin))
3573 #t)))))
3574 (home-page "http://tunctl.sourceforge.net")
3575 (synopsis "Utility to set up and maintain TUN/TAP network interfaces")
3576 (description "Tunctl is used to set up and maintain persistent TUN/TAP
3577 network interfaces, enabling user applications to simulate network traffic.
3578 Such interfaces are useful for VPN software, virtualization, emulation,
3579 simulation, and a number of other applications.")
3580 (license license:gpl2)))
3581
3582 (define-public wol
3583 (package
3584 (name "wol")
3585 (version "0.7.1")
3586 (source
3587 (origin
3588 (method url-fetch)
3589 (uri (string-append "mirror://sourceforge/wake-on-lan/wol/"
3590 version "/wol-" version ".tar.gz"))
3591 (sha256
3592 (base32 "08i6l5lr14mh4n3qbmx6kyx7vjqvzdnh3j9yfvgjppqik2dnq270"))))
3593 (build-system gnu-build-system)
3594 (home-page "https://sourceforge.net/projects/wake-on-lan/")
3595 (synopsis "Implements Wake On LAN functionality in a small program")
3596 (description "Tool to send a magic packet to wake another host on the
3597 network. This must be enabled on the target host, usually in the BIOS.")
3598 (license license:gpl2)))
3599
3600 (define-public vde2
3601 (package
3602 (name "vde2")
3603 (version "2.3.2")
3604 (source
3605 (origin
3606 (method url-fetch)
3607 (uri "mirror://sourceforge/vde/vde2/2.3.2/vde2-2.3.2.tar.gz")
3608 (sha256
3609 (base32 "14xga0ib6p1wrv3hkl4sa89yzjxv7f1vfqaxsch87j6scdm59pr2"))))
3610 (build-system gnu-build-system)
3611 (arguments
3612 `(#:parallel-build? #f)) ; Build fails if #t.
3613 (inputs
3614 `(("python" ,python)
3615 ("libpcap" ,libpcap)
3616 ("openssl" ,openssl-1.0))) ; Build fails with 1.1.
3617 (home-page "https://github.com/virtualsquare/vde-2")
3618 (synopsis "Virtual Distributed Ethernet")
3619 (description "VDE is a set of programs to provide virtual software-defined
3620 Ethernet network interface controllers across multiple virtual or
3621 physical, local or remote devices. The VDE architecture provides
3622 virtual counterparts to hardware components such as switches and
3623 cables.")
3624 (license (list license:gpl2
3625 license:lgpl2.1 ; libvdeplug
3626 (license:non-copyleft ; slirpvde
3627 "file://COPYING.slirpvde"
3628 "See COPYING.slirpvde in the distribution.")))))
3629
3630 (define-public haproxy
3631 (package
3632 (name "haproxy")
3633 (version "2.1.7")
3634 (source (origin
3635 (method url-fetch)
3636 (uri (string-append "https://www.haproxy.org/download/"
3637 (version-major+minor version)
3638 "/src/haproxy-" version ".tar.gz"))
3639 (sha256
3640 (base32
3641 "0fd3c1znid5a9w3gcf77b85hm2a2558w9s02c4b7xzkmivqnqbir"))))
3642 (build-system gnu-build-system)
3643 (arguments
3644 `(#:make-flags
3645 (let* ((out (assoc-ref %outputs "out")))
3646 (list (string-append "PREFIX=" out)
3647 (string-append "DOCDIR=" out "/share/" ,name)
3648 "TARGET=linux-glibc"
3649 "USE_LUA=1"
3650 "USE_OPENSSL=1"
3651 "USE_ZLIB=1"
3652 "USE_PCRE_2=1"))
3653 #:tests? #f ; there are only regression tests, using varnishtest
3654 #:phases
3655 (modify-phases %standard-phases
3656 (delete 'configure))))
3657 (inputs
3658 `(("lua" ,lua)
3659 ("openssl" ,openssl)
3660 ("pcre2" ,pcre2)
3661 ("zlib" ,zlib)))
3662 (home-page "https://www.haproxy.org/")
3663 (synopsis "Reliable, high performance TCP/HTTP load balancer")
3664 (description "HAProxy is a free, very fast and reliable solution offering
3665 high availability, load balancing, and proxying for TCP and HTTP-based
3666 applications. It is particularly suited for web sites crawling under very
3667 high loads while needing persistence or Layer7 processing. Supporting tens of
3668 thousands of connections is clearly realistic with today's hardware.")
3669 (license (list license:gpl2+
3670 license:lgpl2.1
3671 license:lgpl2.1+))))
3672
3673 (define-public lldpd
3674 (package
3675 (name "lldpd")
3676 (version "1.0.6")
3677 (source
3678 (origin
3679 (method url-fetch)
3680 (uri (string-append "https://media.luffy.cx/files/lldpd/lldpd-"
3681 version ".tar.gz"))
3682 (sha256
3683 (base32 "1v5fd8vwxracvzvgrsswvhppwyx5c4srj89g1cnvy73w831mpq95"))
3684 (modules '((guix build utils)))
3685 (snippet
3686 '(begin
3687 ;; Drop bundled library.
3688 (delete-file-recursively "libevent")
3689 #t))))
3690 (arguments
3691 `(#:configure-flags
3692 (list
3693 "--with-privsep-user=nobody"
3694 "--with-privsep-group=nogroup"
3695 "--localstatedir=/var"
3696 "--enable-pie"
3697 "--without-embedded-libevent"
3698 (string-append "--with-systemdsystemunitdir="
3699 (assoc-ref %outputs "out")
3700 "/lib/systemd/system"))))
3701 (build-system gnu-build-system)
3702 (inputs
3703 `(("libevent" ,libevent)
3704 ("libxml2" ,libxml2)
3705 ("openssl" ,openssl)
3706 ("readline" ,readline)))
3707 (native-inputs
3708 `(("pkg-config" ,pkg-config)))
3709 (home-page "https://vincentbernat.github.io/lldpd/")
3710 (synopsis "Locate neighbors of your network equipment")
3711 (description
3712 "The @dfn{Link Layer Discovery Protocol} (LLDP) is an industry standard
3713 protocol designed to supplant proprietary Link-Layer protocols such as EDP or
3714 CDP. The goal of LLDP is to provide an inter-vendor compatible mechanism to
3715 deliver Link-Layer notifications to adjacent network devices. @code{lldpd} is
3716 an implementation of LLDP. It also supports some proprietary protocols.")
3717 (license license:isc)))
3718
3719 (define-public hashcash
3720 (package
3721 (name "hashcash")
3722 (version "1.22")
3723 (source
3724 (origin
3725 (method url-fetch)
3726 (uri (string-append "http://www.hashcash.org/source/hashcash-"
3727 version ".tgz"))
3728 (sha256
3729 (base32
3730 "15kqaimwb2y8wvzpn73021bvay9mz1gqqfc40gk4hj6f84nz34h1"))))
3731 (build-system gnu-build-system)
3732 (arguments
3733 `(#:make-flags (list (string-append "CC=" ,(cc-for-target)))
3734 #:phases
3735 (modify-phases %standard-phases
3736 (delete 'configure)
3737 ;; No tests available.
3738 (delete 'check)
3739 (replace 'install
3740 (lambda* (#:key outputs #:allow-other-keys)
3741 (let* ((outdir (assoc-ref outputs "out"))
3742 (bindir (string-append outdir "/bin"))
3743 (mandir (string-append outdir "/share/man/man1"))
3744 (docdir (string-append outdir "/share/doc/hashcash-" ,version)))
3745 ;; Install manually, as we don't need the `sha1' binary
3746 (install-file "hashcash" bindir)
3747 (install-file "hashcash.1" mandir)
3748 (install-file "README" docdir)
3749 (install-file "LICENSE" docdir)
3750 (install-file "CHANGELOG" docdir)
3751 #t))))))
3752 (home-page "https://www.hashcash.org/")
3753 (synopsis "Denial-of-service countermeasure")
3754 (description "Hashcash is a proof-of-work algorithm, which has been used
3755 as a denial-of-service countermeasure technique in a number of systems.
3756
3757 A hashcash stamp constitutes a proof-of-work which takes a parametrizable
3758 amount of work to compute for the sender. The recipient can verify received
3759 hashcash stamps efficiently.
3760
3761 This package contains a command-line tool for computing and verifying hashcash
3762 stamps.")
3763 (license license:public-domain)))
3764
3765 (define-public nbd
3766 (package
3767 (name "nbd")
3768 (version "3.20")
3769 (source
3770 (origin
3771 (method url-fetch)
3772 (uri (string-append "mirror://sourceforge/nbd/nbd/3.20/nbd-" version
3773 ".tar.xz"))
3774 (sha256
3775 (base32
3776 "1kfnyx52nna2mnw264njk1dl2zc8m78sz031yp65mbmpi99v7qg0"))))
3777 (build-system gnu-build-system)
3778 (inputs
3779 `(("glib" ,glib)))
3780 (native-inputs
3781 `(("pkg-config" ,pkg-config)
3782 ("which" ,which)))
3783 (home-page "https://nbd.sourceforge.io/")
3784 (synopsis "NBD client and server")
3785 (description "This package provides the NBD (Network Block Devices)
3786 client and server. It allows you to use remote block devices over a TCP/IP
3787 network.")
3788 (license license:gpl2)))