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