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