gnu: Fix descriptions to not use quotes.
[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 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 Tobias Geerinckx-Rice <me@tobias.gr>
8 ;;; Copyright © 2016 John Darrington <jmd@gnu.org>
9 ;;; Copyright © 2016, 2017, 2018, 2019 Nicolas Goaziou <mail@nicolasgoaziou.fr>
10 ;;; Copyright © 2016 Eric Bavier <bavier@member.fsf.org>
11 ;;; Copyright © 2016, 2017 ng0 <ng0@n0.is>
12 ;;; Copyright © 2016, 2017, 2018 Arun Isaac <arunisaac@systemreboot.net>
13 ;;; Copyright © 2016 Benz Schenk <benz.schenk@uzh.ch>
14 ;;; Copyright © 2016, 2017 Pjotr Prins <pjotr.guix@thebird.nl>
15 ;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
16 ;;; Copyright © 2017 Leo Famulari <leo@famulari.name>
17 ;;; Copyright © 2017, 2018, 2019 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 Marius Bakke <mbakke@fastmail.com>
27 ;;; Copyright © 2018 Oleg Pykhalov <go.wigust@gmail.com>
28 ;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz>
29 ;;;
30 ;;; This file is part of GNU Guix.
31 ;;;
32 ;;; GNU Guix is free software; you can redistribute it and/or modify it
33 ;;; under the terms of the GNU General Public License as published by
34 ;;; the Free Software Foundation; either version 3 of the License, or (at
35 ;;; your option) any later version.
36 ;;;
37 ;;; GNU Guix is distributed in the hope that it will be useful, but
38 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
39 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
40 ;;; GNU General Public License for more details.
41 ;;;
42 ;;; You should have received a copy of the GNU General Public License
43 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
44
45 (define-module (gnu packages networking)
46 #:use-module ((guix licenses) #:prefix license:)
47 #:use-module (guix packages)
48 #:use-module (guix download)
49 #:use-module (guix git-download)
50 #:use-module (guix build-system cmake)
51 #:use-module (guix build-system glib-or-gtk)
52 #:use-module (guix build-system gnu)
53 #:use-module (guix build-system perl)
54 #:use-module (guix build-system python)
55 #:use-module (gnu packages)
56 #:use-module (gnu packages admin)
57 #:use-module (gnu packages adns)
58 #:use-module (gnu packages algebra)
59 #:use-module (gnu packages audio)
60 #:use-module (gnu packages autotools)
61 #:use-module (gnu packages base)
62 #:use-module (gnu packages bison)
63 #:use-module (gnu packages boost)
64 #:use-module (gnu packages check)
65 #:use-module (gnu packages code)
66 #:use-module (gnu packages compression)
67 #:use-module (gnu packages crypto)
68 #:use-module (gnu packages curl)
69 #:use-module (gnu packages dejagnu)
70 #:use-module (gnu packages documentation)
71 #:use-module (gnu packages flex)
72 #:use-module (gnu packages gettext)
73 #:use-module (gnu packages glib)
74 #:use-module (gnu packages gnome)
75 #:use-module (gnu packages gnupg)
76 #:use-module (gnu packages gtk)
77 #:use-module (gnu packages image)
78 #:use-module (gnu packages libidn)
79 #:use-module (gnu packages linux)
80 #:use-module (gnu packages lua)
81 #:use-module (gnu packages multiprecision)
82 #:use-module (gnu packages kerberos)
83 #:use-module (gnu packages ncurses)
84 #:use-module (gnu packages nettle)
85 #:use-module (gnu packages password-utils)
86 #:use-module (gnu packages pcre)
87 #:use-module (gnu packages perl)
88 #:use-module (gnu packages perl-check)
89 #:use-module (gnu packages pkg-config)
90 #:use-module (gnu packages python)
91 #:use-module (gnu packages python-web)
92 #:use-module (gnu packages python-xyz)
93 #:use-module (gnu packages qt)
94 #:use-module (gnu packages readline)
95 #:use-module (gnu packages serialization)
96 #:use-module (gnu packages sqlite)
97 #:use-module (gnu packages ssh)
98 #:use-module (gnu packages textutils)
99 #:use-module (gnu packages tls)
100 #:use-module (gnu packages valgrind)
101 #:use-module (gnu packages web)
102 #:use-module (gnu packages wxwidgets)
103 #:use-module (gnu packages xml)
104 #:use-module (ice-9 match))
105
106 ;; The gnu.org ‘home’ for this GNU project is a directory listing with 1.6.0 as
107 ;; the latest version. The author's git repository, mentioned in the 1.6.0
108 ;; README and otherwise legit-looking, contains a proper 1.7.0 release tarball
109 ;; with many OUI updates. Use it, even though it's also several years old now.
110 (define-public macchanger
111 (package
112 (name "macchanger")
113 (version "1.7.0")
114 (source
115 (origin
116 (method url-fetch)
117 (uri (string-append "https://github.com/alobbs/macchanger/"
118 "releases/download/" version "/"
119 name "-" version ".tar.gz"))
120 (sha256
121 (base32 "1gs5m0jxyprdp00w2qkbnaqm3ilkjz0q1gqdg4nzdm8g4xy73qns"))))
122 (build-system gnu-build-system)
123 (home-page "https://www.gnu.org/software/macchanger/")
124 (synopsis "Viewing and manipulating MAC addresses of network interfaces")
125 (description "GNU MAC Changer is a utility for viewing and changing MAC
126 addresses of networking devices. New addresses may be set explicitly or
127 randomly. They can include MAC addresses of the same or other hardware vendors
128 or, more generally, MAC addresses of the same category of hardware.")
129 (license license:gpl2+)))
130
131 (define-public miredo
132 (package
133 (name "miredo")
134 (version "1.2.6")
135 (source (origin
136 (method url-fetch)
137 (uri (string-append "http://www.remlab.net/files/miredo/miredo-"
138 version ".tar.xz"))
139 (sha256
140 (base32
141 "0j9ilig570snbmj48230hf7ms8kvcwi2wblycqrmhh85lksd49ps"))))
142 (build-system gnu-build-system)
143 (arguments
144 '(#:phases
145 (modify-phases %standard-phases
146 ;; The checkconf test in src/ requires network access.
147 (add-before
148 'check 'disable-checkconf-test
149 (lambda _
150 (substitute* "src/Makefile"
151 (("^TESTS = .*") "TESTS = \n"))
152 #t)))))
153 (home-page "http://www.remlab.net/miredo/")
154 (synopsis "Teredo IPv6 tunneling software")
155 (description
156 "Miredo is an implementation (client, relay, server) of the Teredo
157 specification, which provides IPv6 Internet connectivity to IPv6 enabled hosts
158 residing in IPv4-only networks, even when they are behind a NAT device.")
159 (license license:gpl2+)))
160
161 (define-public socat
162 (package
163 (name "socat")
164 (version "1.7.3.2")
165 (source (origin
166 (method url-fetch)
167 (uri (string-append
168 "http://www.dest-unreach.org/socat/download/socat-"
169 version ".tar.bz2"))
170 (sha256
171 (base32
172 "0lcj6zpra33xhgvhmz9l3cqz10v8ybafb8dd1yqkwf1rhy01ymp3"))))
173 (build-system gnu-build-system)
174 (arguments '(#:tests? #f)) ;no 'check' phase
175 (inputs `(("openssl" ,openssl)))
176 (home-page "http://www.dest-unreach.org/socat/")
177 (synopsis
178 "Open bidirectional communication channels from the command line")
179 (description
180 "socat is a relay for bidirectional data transfer between two independent
181 data channels---files, pipes, devices, sockets, etc. It can create
182 \"listening\" sockets, named pipes, and pseudo terminals.
183
184 socat can be used, for instance, as TCP port forwarder, as a shell interface
185 to UNIX sockets, IPv6 relay, for redirecting TCP oriented programs to a serial
186 line, to logically connect serial lines on different computers, or to
187 establish a relatively secure environment (su and chroot) for running client
188 or server shell scripts with network connections.")
189 (license license:gpl2)))
190
191 (define-public tcp-wrappers
192 (package
193 (name "tcp-wrappers")
194 (version "7.6")
195 (source (origin
196 (method url-fetch)
197 (uri (string-append
198 "ftp://ftp.porcupine.org/pub/security/tcp_wrappers_"
199 version ".tar.gz"))
200 (sha256
201 (base32
202 "0p9ilj4v96q32klavx0phw9va21fjp8vpk11nbh6v2ppxnnxfhwm"))))
203 (build-system gnu-build-system)
204 (arguments
205 `(#:phases
206 (modify-phases %standard-phases
207 (delete 'configure) ; there is no configure script
208 (delete 'check) ; there are no tests
209 (replace 'build
210 (lambda _
211 (chmod "." #o755)
212 ;; Upstream doesn't generate a shared library. So we have to do it.
213 (setenv "CC" "gcc -fno-builtin -fPIC")
214 (substitute* "Makefile"
215 (("^(all[^\n]*)" line) (string-append line " libwrap.so\n
216 libwrap.so: $(LIB_OBJ)\n
217 \tgcc -shared $^ -o $@\n")))
218 ;; Deal with some gcc breakage.
219 (substitute* "percent_m.c"
220 (("extern char .sys_errlist.*;") ""))
221 (substitute* "scaffold.c"
222 (("extern char .malloc.*;") ""))
223 ;; This, believe it or not, is the recommended way to build!
224 (invoke "make" "REAL_DAEMON_DIR=/etc" "linux")))
225 ;; There is no make install stage, so we have to do it ourselves.
226 (replace 'install
227 (lambda _
228 (let ((out (assoc-ref %outputs "out"))
229 (man-pages `("hosts_access.3"
230 "hosts_access.5"
231 "hosts_options.5"
232 "tcpd.8"
233 "tcpdchk.8"
234 "tcpdmatch.8"))
235 (libs `("libwrap.a"
236 "libwrap.so"))
237 (headers `("tcpd.h"))
238 (bins `("safe_finger"
239 "tcpd"
240 "tcpdchk"
241 "tcpdmatch"
242 "try-from")))
243 (for-each
244 (lambda (x)
245 (install-file x (string-append out "/include")))
246 headers)
247 (for-each
248 (lambda (x)
249 (install-file x (string-append out "/share/man/man"
250 (string-take-right x 1))))
251 man-pages)
252 (for-each
253 (lambda (x)
254 (install-file x (string-append out "/lib/")))
255 libs)
256 (for-each
257 (lambda (x)
258 (install-file x (string-append out "/bin/")))
259 bins))
260 #t)))))
261 (home-page "http://www.porcupine.org")
262 (synopsis "Monitor and filter incoming requests for network services")
263 (description "With this package you can monitor and filter incoming requests for
264 network services. It includes a library which may be used by daemons to
265 transparently check connection attempts against an access control list.")
266 (license (license:non-copyleft "file://DISCLAIMER"
267 "See the file DISCLAIMER in the distribution."))))
268
269
270 (define-public zeromq
271 (package
272 (name "zeromq")
273 (version "4.0.7")
274 (source (origin
275 (method url-fetch)
276 (uri (string-append "http://download.zeromq.org/zeromq-"
277 version ".tar.gz"))
278 (sha256
279 (base32
280 "00vvwhgcdr1lva2pavicvy92iad0hj8cf71n702hv6blw1kjj2z0"))))
281 (build-system gnu-build-system)
282 (home-page "http://zeromq.org")
283 (synopsis "Library for message-based applications")
284 (description
285 "The 0MQ lightweight messaging kernel is a library which extends the
286 standard socket interfaces with features traditionally provided by specialized
287 messaging middle-ware products. 0MQ sockets provide an abstraction of
288 asynchronous message queues, multiple messaging patterns, message
289 filtering (subscriptions), seamless access to multiple transport protocols and
290 more.")
291 (license license:lgpl3+)))
292
293 (define-public czmq
294 (package
295 (name "czmq")
296 (version "4.1.1")
297 (source (origin
298 (method url-fetch)
299 (uri (string-append
300 "https://github.com/zeromq/" name
301 "/releases/download/v" version
302 "/" name "-" version ".tar.gz"))
303 (sha256
304 (base32
305 "1h5hrcsc30fcwb032vy5gxkq4j4vv1y4dj460rfs1hhxi0cz83zh"))))
306 (build-system gnu-build-system)
307 (arguments
308 '(;; TODO Tests fail for some reason:
309 ;; * zauth: OK
310 ;; * zbeacon: OK (skipping test, no UDP broadcasting)
311 ;; E: (czmq_selftest) 18-02-24 16:25:52 No broadcast interface found, (ZSYS_INTERFACE=lo)
312 ;; make[2]: *** [Makefile:2245: check-local] Segmentation fault
313 ;; make[2]: Leaving directory '/tmp/guix-build-czmq-4.1.0.drv-0/czmq-4.1.0'
314 ;; make[1]: *** [Makefile:2032: check-am] Error 2
315 ;; make[1]: Leaving directory '/tmp/guix-build-czmq-4.1.0.drv-0/czmq-4.1.0'
316 ;; make: *** [Makefile:1588: check-recursive] Error 1
317 ;; phase `check' failed after 19.4 seconds
318 #:tests? #f
319 #:configure-flags '("--enable-drafts")))
320 (inputs
321 `(("zeromq" ,zeromq)))
322 (home-page "http://zeromq.org")
323 (synopsis "High-level C bindings for ØMQ")
324 (description
325 "czmq provides bindings for the ØMQ core API that hides the differences
326 between different versions of ØMQ.")
327 (license license:mpl2.0)))
328
329 (define-public cppzmq
330 (let ((revision "0")
331 (commit "d9f0f016c07046742738c65e1eb84722ae32d7d4"))
332 (package
333 (name "cppzmq")
334 (version (string-append "4.2.2-" revision "."
335 (string-take commit 7)))
336 (source (origin
337 (method git-fetch)
338 (uri (git-reference
339 (url "https://github.com/zeromq/cppzmq")
340 (commit commit)))
341 (sha256
342 (base32
343 "1gmqlm00y6xpa5m6d4ajq3ww63n2w7h4sy997wj81vcqmqx45b1f"))
344 (file-name (string-append name "-" version "-checkout"))))
345 (build-system cmake-build-system)
346 (arguments '(#:tests? #f)) ; No tests.
347 (native-inputs
348 `(("pkg-config" ,pkg-config)))
349 (inputs
350 `(("zeromq" ,zeromq)))
351 (home-page "http://zeromq.org")
352 (synopsis "C++ bindings for the ØMQ messaging library")
353 (description
354 "This package provides header-only C++ bindings for ØMQ. The header
355 files contain direct mappings of the abstractions provided by the ØMQ C API.")
356 (license license:expat))))
357
358 (define-public librdkafka
359 (package
360 (name "librdkafka")
361 (version "0.9.1")
362 (source (origin
363 (method url-fetch)
364 (uri (string-append
365 "https://github.com/edenhill/librdkafka/archive/"
366 version ".tar.gz"))
367 (file-name (string-append name "-" version ".tar.gz"))
368 (sha256
369 (base32
370 "10ldx7g7ymmg17snzx78vy4n8ma1rjx0agzi34g15j2fk867xmas"))))
371 (build-system gnu-build-system)
372 (arguments
373 '(#:phases
374 (modify-phases %standard-phases
375 (replace 'configure
376 ;; its custom configure script doesn't understand 'CONFIG_SHELL'.
377 (lambda* (#:key outputs #:allow-other-keys)
378 (let ((out (assoc-ref outputs "out")))
379 ;; librdkafka++.so lacks RUNPATH for librdkafka.so
380 (setenv "LDFLAGS"
381 (string-append "-Wl,-rpath=" out "/lib"))
382 (invoke "./configure"
383 (string-append "--prefix=" out))))))))
384 (native-inputs
385 `(("python" ,python-wrapper)))
386 (propagated-inputs
387 `(("zlib" ,zlib))) ; in the Libs.private field of rdkafka.pc
388 (home-page "https://github.com/edenhill/librdkafka")
389 (synopsis "Apache Kafka C/C++ client library")
390 (description
391 "librdkafka is a C library implementation of the Apache Kafka protocol,
392 containing both Producer and Consumer support.")
393 (license license:bsd-2)))
394
395 (define-public libndp
396 (package
397 (name "libndp")
398 (version "1.7")
399 (source (origin
400 (method url-fetch)
401 (uri (string-append "http://libndp.org/files/"
402 name "-" version ".tar.gz"))
403 (sha256
404 (base32
405 "1dlinhl39va00v55qygjc9ap77yqf7xvn4rwmvdr49xhzzxhlj1c"))))
406 (build-system gnu-build-system)
407 (home-page "http://libndp.org/")
408 (synopsis "Library for Neighbor Discovery Protocol")
409 (description
410 "libndp contains a library which provides a wrapper for IPv6 Neighbor
411 Discovery Protocol. It also provides a tool named ndptool for sending and
412 receiving NDP messages.")
413 (license license:lgpl2.1+)))
414
415 (define-public ethtool
416 (package
417 (name "ethtool")
418 (version "4.19")
419 (source (origin
420 (method url-fetch)
421 (uri (string-append "mirror://kernel.org/software/network/"
422 "ethtool/ethtool-" version ".tar.xz"))
423 (sha256
424 (base32
425 "1j6hyr809af2m3gqm11hdfwks5kljqy1ikspq3d9rhj29qv6r2mi"))))
426 (build-system gnu-build-system)
427 (home-page "https://www.kernel.org/pub/software/network/ethtool/")
428 (synopsis "Display or change Ethernet device settings")
429 (description
430 "ethtool can be used to query and change settings such as speed,
431 auto-negotiation and checksum offload on many network devices, especially
432 Ethernet devices.")
433 (license license:gpl2)))
434
435 (define-public ifstatus
436 (package
437 (name "ifstatus")
438 (version "1.1.0")
439 (source (origin
440 (method url-fetch)
441 (uri (string-append "mirror://sourceforge/ifstatus/ifstatus/"
442 "ifstatus%20v" version "/ifstatus-v"
443 version ".tar.gz"))
444 (sha256
445 (base32
446 "045cbsq9ps32j24v8y5hpyqxnqn9mpaf3mgvirlhgpqyb9jsia0c"))
447 (modules '((guix build utils)))
448 (snippet
449 '(begin
450 (substitute* "Main.h"
451 (("#include <stdio.h>")
452 "#include <stdio.h>\n#include <stdlib.h>"))
453 #t))))
454 (build-system gnu-build-system)
455 (arguments
456 '(#:tests? #f ; no "check" target
457 #:phases
458 (modify-phases %standard-phases
459 (delete 'configure) ; no configure script
460 (replace 'install
461 (lambda* (#:key outputs #:allow-other-keys)
462 (let* ((out (assoc-ref outputs "out"))
463 (bin (string-append out "/bin")))
464 (mkdir-p bin)
465 (copy-file "ifstatus"
466 (string-append bin "/ifstatus")))
467 #t)))))
468 (inputs `(("ncurses" ,ncurses)))
469 (home-page "http://ifstatus.sourceforge.net/graphic/index.html")
470 (synopsis "Text based network interface status monitor")
471 (description
472 "IFStatus is a simple, easy-to-use program for displaying commonly
473 needed/wanted real-time traffic statistics of multiple network
474 interfaces, with a simple and efficient view on the command line. It is
475 intended as a substitute for the PPPStatus and EthStatus projects.")
476 (license license:gpl2+)))
477
478 (define-public nload
479 (package
480 (name "nload")
481 (version "0.7.4")
482 (source (origin
483 (method url-fetch)
484 (uri (string-append "mirror://sourceforge/nload/nload/" version
485 "/nload-" version ".tar.gz"))
486 (sha256
487 (base32
488 "1rb9skch2kgqzigf19x8bzk211jdfjfdkrcvaqyj89jy2pkm3h61"))))
489 (build-system gnu-build-system)
490 (inputs `(("ncurses" ,ncurses)))
491 (home-page "http://www.roland-riegel.de/nload/")
492 (synopsis "Realtime console network usage monitor")
493 (description
494 "Nload is a console application which monitors network traffic and
495 bandwidth usage in real time. It visualizes the in- and outgoing traffic using
496 two graphs, and provides additional info like total amount of transferred data
497 and min/max network usage.")
498 (license license:gpl2+)))
499
500 (define-public iodine
501 (package
502 (name "iodine")
503 (version "0.7.0")
504 (source (origin
505 (method url-fetch)
506 (uri (string-append "http://code.kryo.se/" name "/"
507 name "-" version ".tar.gz"))
508 (sha256
509 (base32
510 "0gh17kcxxi37k65zm4gqsvbk3aw7yphcs3c02pn1c4s2y6n40axd"))))
511 (build-system gnu-build-system)
512 (arguments
513 '(#:phases
514 (modify-phases %standard-phases
515 (delete 'configure)
516 (add-before 'build 'fix-ifconfig-path
517 ;; This package works only with the net-tools version of ifconfig.
518 (lambda* (#:key inputs #:allow-other-keys)
519 (substitute* "src/tun.c"
520 (("PATH=[^ ]* ")
521 (string-append (assoc-ref inputs "net-tools") "/bin/")))
522 #t))
523 (add-before 'check 'delete-failing-tests
524 ;; Avoid https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802105.
525 (lambda _
526 (substitute* "tests/common.c"
527 (("tcase_add_test\\(tc, \
528 test_parse_format_ipv(4(|_listen_all|_mapped_ipv6)|6)\\);")
529 ""))
530 #t)))
531 #:make-flags (list "CC=gcc"
532 (string-append "prefix=" (assoc-ref %outputs "out")))
533 #:test-target "test"))
534 (inputs `(("net-tools" ,net-tools)
535 ("zlib" ,zlib)))
536 (native-inputs `(("check" ,check)
537 ("pkg-config" ,pkg-config)))
538 (home-page "http://code.kryo.se/iodine/")
539 (synopsis "Tunnel IPv4 data through a DNS server")
540 (description "Iodine tunnels IPv4 data through a DNS server. This
541 can be useful in different situations where internet access is firewalled, but
542 DNS queries are allowed. The bandwidth is asymmetrical, with limited upstream
543 and up to 1 Mbit/s downstream.")
544 ;; src/md5.[ch] is released under the zlib license
545 (license (list license:isc license:zlib))))
546
547 (define-public whois
548 (package
549 (name "whois")
550 (version "5.4.1")
551 (source
552 (origin
553 (method url-fetch)
554 (uri (string-append "mirror://debian/pool/main/w/whois/"
555 name "_" version ".tar.xz"))
556 (sha256
557 (base32
558 "0l7chmlvsl22r5cfm6fpm999z2n3sjrnx3ha8f8kf42cn4gmkriy"))))
559 (build-system gnu-build-system)
560 (arguments
561 `(#:tests? #f ; no test suite
562 #:make-flags (list "CC=gcc"
563 (string-append "prefix=" (assoc-ref %outputs "out")))
564 #:phases
565 (modify-phases %standard-phases
566 (delete 'configure) ; no configure script
567 (add-before 'build 'setenv
568 (lambda _
569 (setenv "HAVE_ICONV" "1")
570 #t)))))
571 (inputs
572 `(("libidn2" ,libidn2)))
573 (native-inputs
574 `(("gettext" ,gettext-minimal)
575 ("perl" ,perl)
576 ("pkg-config" ,pkg-config)))
577 (synopsis "Intelligent client for the WHOIS directory service")
578 (description
579 "whois searches for an object in a @dfn{WHOIS} (RFC 3912) database.
580 It is commonly used to look up the registered users or assignees of an Internet
581 resource, such as a domain name, an IP address block, or an autonomous system.
582 It can automatically select the appropriate server for most queries.
583
584 For historical reasons, this package also includes @command{mkpasswd}, which
585 encrypts passwords using @code{crypt(3)} and is unrelated to the Expect command
586 of the same name.")
587 (home-page "https://github.com/rfc1036/whois")
588 (license license:gpl2+)))
589
590 (define-public wireshark
591 (package
592 (name "wireshark")
593 (version "3.0.0")
594 (source
595 (origin
596 (method url-fetch)
597 (uri (string-append "https://www.wireshark.org/download/src/wireshark-"
598 version ".tar.xz"))
599 (sha256
600 (base32
601 "17h0ixq7yr6scscjkidaj3dh5x6dfd3f97ggdxlklkz9nbsk0kxw"))))
602 (build-system cmake-build-system)
603 (arguments
604 `(#:phases
605 (modify-phases %standard-phases
606 (add-after 'unpack 'remove-failing-test
607 ;; Test 31/32 fails with errors like "Program reassemble_test is
608 ;; not available". Skipping it for now.
609 (lambda _
610 (substitute* "CMakeLists.txt"
611 (("suite_unittests" all) (string-append "# " all)))
612 #t)))
613 ;; Build process chokes during `validate-runpath' phase.
614 ;;
615 ;; Errors are like the following:
616 ;; "/gnu/store/...wireshark-3.0.0/lib/wireshark/plugins/3.0/epan/ethercat.so:
617 ;; error: depends on 'libwireshark.so.12', which cannot be found in
618 ;; RUNPATH". That is, "/gnu/store/...wireshark-3.0.0./lib" doesn't
619 ;; belong to RUNPATH.
620 ;;
621 ;; That’s not a problem in practice because "ethercat.so" is a plugin,
622 ;; so it’s dlopen’d by a process that already provides "libwireshark".
623 ;; For now, we disable this phase.
624 #:validate-runpath? #f))
625 (inputs
626 `(("c-ares" ,c-ares)
627 ("glib" ,glib)
628 ("gnutls" ,gnutls)
629 ("libcap" ,libcap)
630 ("libgcrypt" ,libgcrypt)
631 ("libnl" ,libnl)
632 ("libpcap" ,libpcap)
633 ("libssh" ,libssh)
634 ("libxml2" ,libxml2)
635 ("lz4" ,lz4)
636 ("lua" ,lua-5.2) ;Lua 5.3 unsupported
637 ("krb5" ,mit-krb5)
638 ("qtbase" ,qtbase)
639 ("qtmultimedia" ,qtmultimedia)
640 ("qtsvg" ,qtsvg)
641 ("sbc" ,sbc)
642 ("snappy" ,snappy)
643 ("zlib" ,zlib)))
644 (native-inputs
645 `(("bison" ,bison)
646 ("doxygen" ,doxygen)
647 ("flex" ,flex)
648 ("gettext" ,gettext-minimal)
649 ("perl" ,perl)
650 ("pkg-config" ,pkg-config)
651 ("python" ,python-wrapper)
652 ("qttools" ,qttools)))
653 (synopsis "Network traffic analyzer")
654 (description "Wireshark is a network protocol analyzer, or @dfn{packet
655 sniffer}, that lets you capture and interactively browse the contents of
656 network frames.")
657 (home-page "https://www.wireshark.org/")
658 (license license:gpl2+)))
659
660 (define-public fping
661 (package
662 (name "fping")
663 (version "4.2")
664 (source
665 (origin
666 (method url-fetch)
667 (uri (string-append "https://fping.org/dist/fping-"
668 version ".tar.gz"))
669 (sha256
670 (base32 "0jmnf4vmr43aiwk3h2b5qdsb95gxar8gz1yli8fswnm9nrs9ccvx"))))
671 (build-system gnu-build-system)
672 (home-page "https://fping.org/")
673 (synopsis "Send ICMP ECHO_REQUEST packets to network hosts")
674 (description
675 "fping is a ping like program which uses the Internet Control Message
676 Protocol (ICMP) echo request to determine if a target host is responding.
677 fping differs from ping in that you can specify any number of targets on the
678 command line, or specify a file containing the lists of targets to ping.
679 Instead of sending to one target until it times out or replies, fping will
680 send out a ping packet and move on to the next target in a round-robin
681 fashion.")
682 (license license:expat)))
683
684 (define-public gandi.cli
685 (package
686 (name "gandi.cli")
687 (version "1.4")
688 (source
689 (origin
690 (method url-fetch)
691 (uri (pypi-uri name version))
692 (sha256
693 (base32 "1lfvb5npk99nz1lwhr5m67ia1kj35nqd6a2xp9mii28xgzsd5awk"))))
694 (build-system python-build-system)
695 (arguments
696 `(#:phases
697 (modify-phases %standard-phases
698 (add-after 'unpack 'embed-store-file-names
699 (lambda _
700 (substitute* (list "gandi/cli/modules/cert.py"
701 "gandi/cli/tests/commands/test_certificate.py")
702 (("openssl") (which "openssl")))
703 #t))
704 (add-after 'install 'install-documentation
705 ;; The included man page may be outdated but we install it anyway,
706 ;; since it's mentioned in 'gandi --help' and better than nothing.
707 (lambda* (#:key outputs #:allow-other-keys)
708 (let* ((out (assoc-ref outputs "out"))
709 (man1 (string-append out "/share/man/man1")))
710 (mkdir-p man1)
711 (with-output-to-file (string-append man1 "/gandi.1")
712 (lambda _
713 (invoke "rst2man.py" "gandicli.man.rst")))
714 #t))))))
715 (native-inputs
716 `(("python-docutils" ,python-docutils) ; for rst2man.py
717 ("python-pytest-cov" ,python-pytest-cov)
718 ("python-tox" ,python-tox)))
719 (inputs
720 `(("openssl" ,openssl)
721 ("python-click" ,python-click)
722 ("python-ipy" ,python-ipy)
723 ("python-pyyaml" ,python-pyyaml)
724 ("python-requests" ,python-requests)))
725 (home-page "https://cli.gandi.net")
726 (synopsis "Command-line interface to the Gandi.net Web API")
727 (description
728 "This package provides a command-line client (@command{gandi}) to buy,
729 manage, and delete Internet resources from Gandi.net such as domain names,
730 virtual machines, and certificates.")
731 (license license:gpl3+)))
732
733 (define-public httping
734 (package
735 (name "httping")
736 (version "2.5")
737 (source
738 (origin
739 (method url-fetch)
740 (uri (string-append "https://www.vanheusden.com/httping/httping-"
741 version ".tgz"))
742 (sha256
743 (base32
744 "1y7sbgkhgadmd93x1zafqc4yp26ssiv16ni5bbi9vmvvdl55m29y"))))
745 (build-system gnu-build-system)
746 (native-inputs
747 `(("gettext" ,gettext-minimal)))
748 (inputs
749 `(("fftw" ,fftw)
750 ("ncurses" ,ncurses)
751 ("openssl" ,openssl)))
752 (arguments
753 `(#:make-flags (list "CC=gcc"
754 (string-append "DESTDIR=" (assoc-ref %outputs "out"))
755 "PREFIX=")
756 #:tests? #f)) ; no tests
757 (home-page "https://www.vanheusden.com/httping/")
758 (synopsis "Web server latency and throughput monitor")
759 (description
760 "httping measures how long it takes to connect to a web server, send an
761 HTTP(S) request, and receive the reply headers. It is somewhat similar to
762 @command{ping}, but can be used even in cases where ICMP traffic is blocked
763 by firewalls or when you want to monitor the response time of the actual web
764 application stack itself.")
765 (license license:gpl2))) ; with permission to link with OpenSSL
766
767 (define-public httpstat
768 (package
769 (name "httpstat")
770 (version "1.2.1")
771 (source
772 (origin
773 (method url-fetch)
774 (uri (pypi-uri "httpstat" version))
775 (sha256
776 (base32
777 "1chw2nk56vaq87aba012a270k9na06hfx1pfbsrc3jfvlc2kb9hb"))))
778 (build-system python-build-system)
779 (inputs `(("curl" ,curl)))
780 (arguments
781 '(#:phases
782 (modify-phases %standard-phases
783 (add-before 'build 'fix-curl-path
784 (lambda* (#:key inputs #:allow-other-keys)
785 (substitute* "httpstat.py"
786 (("ENV_CURL_BIN.get\\('curl'\\)")
787 (string-append "ENV_CURL_BIN.get('"
788 (assoc-ref inputs "curl")
789 "/bin/curl')")))
790 #t)))))
791 (home-page "https://github.com/reorx/httpstat")
792 (synopsis "Visualize curl statistics")
793 (description
794 "@command{httpstat} is a tool to visualize statistics from the
795 @command{curl} HTTP client. It acts as a wrapper for @command{curl} and
796 prints timing information for each step of the HTTP request (DNS lookup,
797 TCP connection, TLS handshake and so on) in the terminal.")
798 (license license:expat)))
799
800 (define-public bwm-ng
801 (package
802 (name "bwm-ng")
803 (version "0.6.2")
804 (source
805 (origin
806 (method git-fetch)
807 (uri (git-reference
808 (url "https://github.com/vgropp/bwm-ng.git")
809 (commit (string-append "v" version))))
810 (file-name (git-file-name name version))
811 (sha256
812 (base32 "0k906wb4pw3dcqpcwnni78lahzi3bva483f8c17sjykic7as4y5n"))))
813 (build-system gnu-build-system)
814 (arguments
815 `(#:phases
816 (modify-phases %standard-phases
817 (add-after 'unpack 'disable-premature-./configure
818 (lambda _
819 (substitute* "autogen.sh"
820 (("\\$srcdir/configure")
821 "true"))
822 #t)))))
823 (native-inputs
824 `(("autoconf" ,autoconf)
825 ("automake" ,automake)))
826 (inputs
827 `(("ncurses" ,ncurses)))
828 (synopsis "Console based live network and disk I/O bandwidth monitor")
829 (description "Bandwidth Monitor NG is a small and simple console based
830 live network and disk I/O bandwidth monitor.")
831 (home-page "https://www.gropp.org/?id=projects&sub=bwm-ng")
832 (license license:gpl2)))
833
834 (define-public aircrack-ng
835 (package
836 (name "aircrack-ng")
837 (version "1.3")
838 (source
839 (origin
840 (method url-fetch)
841 (uri (string-append "https://download.aircrack-ng.org/aircrack-ng-"
842 version ".tar.gz"))
843 (sha256
844 (base32
845 "1jl30d0kibc82447fr3lgw75arik0l9729k94z76l7vl51y8mq4a"))))
846 (build-system gnu-build-system)
847 (native-inputs
848 `(("autoconf" ,autoconf)
849 ("automake" ,automake)
850 ("libtool" ,libtool)
851 ("pkg-config" ,pkg-config)
852 ("which" ,which)))
853 (inputs
854 `(("libgcrypt" ,libgcrypt)
855 ("libnl" ,libnl)
856 ("libpcap" ,libpcap)
857 ("ethtool" ,ethtool)
858 ("pcre" ,pcre)
859 ("sqlite" ,sqlite)
860 ("zlib" ,zlib)))
861 (arguments
862 `(#:configure-flags
863 (list "--with-experimental=yes" ; build wesside-ng, etc.
864 "--with-gcrypt") ; openssl's the default
865 #:phases (modify-phases %standard-phases
866 (add-before 'bootstrap 'patch-evalrev
867 (lambda _
868 ;; Called by ./autogen.sh below, before the default
869 ;; ‘patch-shebangs’ phase has had a chance to run.
870 (substitute* "evalrev"
871 (("/bin/sh")
872 (which "sh")))
873 #t))
874 (replace 'bootstrap
875 (lambda _
876 ;; Patch shebangs in generated files before running
877 ;; ./configure.
878 (setenv "NOCONFIGURE" "please")
879 (invoke "bash" "./autogen.sh")))
880 (add-after 'build 'absolutize-tools
881 (lambda* (#:key inputs #:allow-other-keys)
882 (let ((ethtool (string-append (assoc-ref inputs "ethtool")
883 "/sbin/ethtool")))
884 (substitute* "scripts/airmon-ng"
885 (("ethtool ")
886 (string-append ethtool " ")))
887 #t))))))
888 (home-page "https://www.aircrack-ng.org")
889 (synopsis "Assess WiFi network security")
890 (description
891 "Aircrack-ng is a complete suite of tools to assess WiFi network
892 security. It focuses on different areas of WiFi security: monitoring,
893 attacking, testing, and cracking. All tools are command-line driven, which
894 allows for heavy scripting.")
895 (license (list license:gpl2+ license:bsd-3))))
896
897 (define-public perl-data-validate-ip
898 (package
899 (name "perl-data-validate-ip")
900 (version "0.27")
901 (source
902 (origin
903 (method url-fetch)
904 (uri (string-append
905 "mirror://cpan/authors/id/D/DR/DROLSKY/Data-Validate-IP-"
906 version ".tar.gz"))
907 (sha256
908 (base32 "1mmppyzsh1w2z2h86kvzqxy56wxgs62a3kf8nvcnz76bblir5ap1"))))
909 (build-system perl-build-system)
910 (native-inputs
911 `(("perl-test-requires" ,perl-test-requires)))
912 (propagated-inputs
913 `(("perl-netaddr-ip" ,perl-netaddr-ip)))
914 (home-page "https://metacpan.org/release/Data-Validate-IP")
915 (synopsis "IPv4 and IPv6 validation methods")
916 (description
917 "This module provides several IP address validation subroutines that both
918 validate and untaint their input. This includes both basic validation
919 (@code{is_ipv4()} and @code{is_ipv6()}) and special cases like checking whether
920 an address belongs to a specific network or whether an address is public or
921 private (reserved).")
922 (license license:perl-license)))
923
924 (define-public perl-net-dns
925 (package
926 (name "perl-net-dns")
927 (version "1.19")
928 (source
929 (origin
930 (method url-fetch)
931 (uri
932 (list
933 (string-append "https://www.net-dns.org/download/Net-DNS-"
934 version ".tar.gz")
935 (string-append "mirror://cpan/authors/id/N/NL/NLNETLABS/Net-DNS-"
936 version ".tar.gz")))
937 (sha256
938 (base32 "1myc23vz0m42yyg8iw7bf1pdrmx9ql6fhl2vwk1vwf55v6yphqi0"))))
939 (build-system perl-build-system)
940 (inputs
941 `(("perl-digest-hmac" ,perl-digest-hmac)))
942 (home-page "https://www.net-dns.org/")
943 (synopsis
944 "Perl Interface to the Domain Name System")
945 (description "Net::DNS is the Perl Interface to the Domain Name System.")
946 (license license:x11)))
947
948 (define-public perl-socket6
949 (package
950 (name "perl-socket6")
951 (version "0.29")
952 (source
953 (origin
954 (method url-fetch)
955 (uri (string-append
956 "mirror://cpan/authors/id/U/UM/UMEMOTO/Socket6-"
957 version
958 ".tar.gz"))
959 (sha256
960 (base32
961 "054izici8klfxs8hr5rljib28plijpsfymy99xbzdp047bx1b2a6"))))
962 (build-system perl-build-system)
963 (arguments
964 `(#:phases
965 (modify-phases %standard-phases
966 (replace 'configure
967 (lambda* (#:key outputs #:allow-other-keys)
968 (let* ((out (assoc-ref outputs "out"))
969 (args `("Makefile.PL"
970 ,(string-append "PREFIX=" out)
971 "INSTALLDIRS=site")))
972 (setenv "CONFIG_SHELL" (which "sh"))
973 (apply invoke "perl" args)))))))
974 (home-page "https://metacpan.org/release/Socket6")
975 (synopsis
976 "IPv6 related part of the C socket.h defines and structure manipulators for Perl")
977 (description "Socket6 binds the IPv6 related part of the C socket header
978 definitions and structure manipulators for Perl.")
979 (license license:bsd-3)))
980
981 (define-public perl-net-dns-resolver-programmable
982 (package
983 (name "perl-net-dns-resolver-programmable")
984 (version "v0.003")
985 (source
986 (origin
987 (method url-fetch)
988 (uri (string-append
989 "mirror://cpan/authors/id/J/JM/JMEHNLE/net-dns-resolver-programmable/"
990 "Net-DNS-Resolver-Programmable-" version ".tar.gz"))
991 (sha256
992 (base32
993 "1v3nl2kaj4fs55n1617n53q8sa3mir06898vpy1rq98zjih24h4d"))
994 (patches
995 (search-patches "perl-net-dns-resolver-programmable-fix.patch"))))
996 (build-system perl-build-system)
997 (native-inputs
998 `(("perl-module-build" ,perl-module-build)))
999 (inputs `(("perl-net-dns" ,perl-net-dns)))
1000 (home-page
1001 "https://metacpan.org/release/Net-DNS-Resolver-Programmable")
1002 (synopsis
1003 "Programmable DNS resolver class for offline emulation of DNS")
1004 (description "Net::DNS::Resolver::Programmable is a programmable DNS resolver for
1005 offline emulation of DNS.")
1006 (license license:perl-license)))
1007
1008 (define-public perl-netaddr-ip
1009 (package
1010 (name "perl-netaddr-ip")
1011 (version "4.079")
1012 (source
1013 (origin
1014 (method url-fetch)
1015 (uri (string-append
1016 "mirror://cpan/authors/id/M/MI/MIKER/NetAddr-IP-"
1017 version
1018 ".tar.gz"))
1019 (sha256
1020 (base32
1021 "1rx0dinrz9fk9qcg4rwqq5n1dm3xv2arymixpclcv2q2nzgq4npc"))))
1022 (build-system perl-build-system)
1023 (arguments
1024 `(#:phases
1025 (modify-phases %standard-phases
1026 (replace 'configure
1027 (lambda* (#:key outputs #:allow-other-keys)
1028 (let* ((out (assoc-ref outputs "out"))
1029 (args `("Makefile.PL"
1030 ,(string-append "PREFIX=" out)
1031 "INSTALLDIRS=site")))
1032 (setenv "CONFIG_SHELL" (which "sh"))
1033 (apply invoke "perl" args)))))))
1034 (home-page
1035 "https://metacpan.org/release/NetAddr-IP")
1036 (synopsis
1037 "Manages IPv4 and IPv6 addresses and subnets")
1038 (description "NetAddr::IP manages IPv4 and IPv6 addresses and subsets.")
1039 (license license:perl-license)))
1040
1041 (define-public perl-net-patricia
1042 (package
1043 (name "perl-net-patricia")
1044 (version "1.22")
1045 (source
1046 (origin
1047 (method url-fetch)
1048 (uri (string-append
1049 "mirror://cpan/authors/id/G/GR/GRUBER/Net-Patricia-"
1050 version
1051 ".tar.gz"))
1052 (sha256
1053 (base32
1054 "0ln5f57vc8388kyh9vhx2infrdzfhbpgyby74h1qsnhwds95m0vh"))))
1055 (build-system perl-build-system)
1056 (inputs
1057 `(("perl-net-cidr-lite" ,perl-net-cidr-lite)
1058 ("perl-socket6" ,perl-socket6)))
1059 (home-page
1060 "https://metacpan.org/release/Net-Patricia")
1061 (synopsis
1062 "Patricia Trie Perl module for fast IP address lookups")
1063 (description
1064 "Net::Patricia does IP address lookups quickly in Perl.")
1065 ;; The bindings are licensed under GPL2 or later.
1066 ;; libpatricia is licensed under 2-clause BSD.
1067 (license (list license:gpl2+ license:bsd-2))))
1068
1069 (define-public perl-net-cidr-lite
1070 (package
1071 (name "perl-net-cidr-lite")
1072 (version "0.21")
1073 (source
1074 (origin
1075 (method url-fetch)
1076 (uri (string-append
1077 "mirror://cpan/authors/id/D/DO/DOUGW/Net-CIDR-Lite-"
1078 version
1079 ".tar.gz"))
1080 (sha256
1081 (base32
1082 "14shj73zbqmfjbp0qz1fs9j4p2dpvz5hfkm4qfdjbydflbl2b8fg"))))
1083 (build-system perl-build-system)
1084 (home-page
1085 "https://metacpan.org/release/Net-CIDR-Lite")
1086 (synopsis
1087 "Perl extension for merging IPv4 or IPv6 CIDR addresses")
1088 (description "Net::CIDR::Lite merges IPv4 or IPv6 CIDR addresses.")
1089 (license license:gpl1+)))
1090
1091 ;; TODO: Use the geolite-mirror-simple.pl script from the example
1092 ;; directory to stay current with the databases. How?
1093 (define-public perl-geo-ip
1094 (package
1095 (name "perl-geo-ip")
1096 (version "1.51")
1097 (source
1098 (origin
1099 (method url-fetch)
1100 (uri (string-append
1101 "mirror://cpan/authors/id/M/MA/MAXMIND/Geo-IP-"
1102 version
1103 ".tar.gz"))
1104 (sha256
1105 (base32
1106 "1fka8fr7fw6sh3xa9glhs1zjg3s2gfkhi7n7da1l2m2wblqj0c0n"))))
1107 (build-system perl-build-system)
1108 (home-page "https://metacpan.org/release/Geo-IP")
1109 (synopsis
1110 "Look up location and network information by IP Address in Perl")
1111 (description "The Perl module @code{Geo::IP}. It looks up location and
1112 network information by IP Address.")
1113 (license license:perl-license)))
1114
1115 (define-public perl-io-socket-inet6
1116 (package
1117 (name "perl-io-socket-inet6")
1118 (version "2.72")
1119 (source
1120 (origin
1121 (method url-fetch)
1122 (uri (string-append
1123 "mirror://cpan/authors/id/S/SH/SHLOMIF/IO-Socket-INET6-"
1124 version
1125 ".tar.gz"))
1126 (sha256
1127 (base32
1128 "1fqypz6qa5rw2d5y2zq7f49frwra0aln13nhq5gi514j2zx21q45"))))
1129 (build-system perl-build-system)
1130 (native-inputs
1131 `(("perl-module-build" ,perl-module-build)
1132 ("perl-test-pod" ,perl-test-pod)
1133 ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
1134 (inputs `(("perl-socket6" ,perl-socket6)))
1135 (arguments `(;; Need network socket API
1136 #:tests? #f))
1137 (home-page
1138 "https://metacpan.org/release/IO-Socket-INET6")
1139 (synopsis
1140 "Perl object interface for AF_INET/AF_INET6 domain sockets")
1141 (description "IO::Socket::INET6 is an interface for AF_INET/AF_INET6 domain
1142 sockets in Perl.")
1143 (license license:perl-license)))
1144
1145 (define-public libproxy
1146 (package
1147 (name "libproxy")
1148 (version "0.4.15")
1149 (source (origin
1150 (method url-fetch)
1151 (uri (string-append "https://github.com/libproxy/libproxy/"
1152 "releases/download/" version "/libproxy-"
1153 version ".tar.xz"))
1154 (sha256
1155 (base32
1156 "0kvdrazlzwia876w988cmlypp253gwy6idlh8mjk958c29jb8kb5"))))
1157 (build-system cmake-build-system)
1158 (native-inputs
1159 `(("pkg-config" ,pkg-config)))
1160 (inputs
1161 `(("dbus" ,dbus)
1162 ("zlib" ,zlib)
1163 ("network-manager" ,network-manager)))
1164 (arguments
1165 `(#:phases
1166 (modify-phases %standard-phases
1167 (replace 'check
1168 (lambda _
1169 (invoke "ctest" "-E" "url-test"))))))
1170 (synopsis "Library providing automatic proxy configuration management")
1171 (description "Libproxy handles the details of HTTP/HTTPS proxy
1172 configuration for applications across all scenarios. Applications using
1173 libproxy only have to specify which proxy to use.")
1174 (home-page "https://libproxy.github.io/libproxy")
1175 (license license:lgpl2.1+)))
1176
1177 (define-public proxychains-ng
1178 (package
1179 (name "proxychains-ng")
1180 (version "4.14")
1181 (source
1182 (origin
1183 (method url-fetch)
1184 (uri (string-append "http://ftp.barfooze.de/pub/sabotage/tarballs/"
1185 "proxychains-ng-" version ".tar.xz"))
1186 (sha256
1187 (base32 "1bmhfbl1bzc87vl0xwr1wh5xvslfyc41nl2hqzhbj258p0sy004x"))))
1188 (build-system gnu-build-system)
1189 (arguments
1190 `(#:tests? #f ; there are no tests
1191 #:phases
1192 (modify-phases %standard-phases
1193 (add-after 'unpack 'fix-configure-script
1194 (lambda _
1195 ;; The configure script is very intolerant to unknown arguments,
1196 ;; such as "CONFIG_SHELL".
1197 (substitute* "configure"
1198 (("\\*\\) break ;;" line)
1199 (string-append "[A-Z]*) shift ;;\n"
1200 line)))
1201 #t))
1202 (add-before 'configure 'set-up-environment
1203 (lambda _
1204 (setenv "CC" "gcc")
1205 #t)))))
1206 (synopsis "Redirect any TCP connection through a proxy or proxy chain")
1207 (description "Proxychains-ng is a preloader which hooks calls to sockets
1208 in dynamically linked programs and redirects them through one or more SOCKS or
1209 HTTP proxies.")
1210 (home-page "https://github.com/rofl0r/proxychains-ng")
1211 (license license:gpl2+)))
1212
1213 (define-public enet
1214 (package
1215 (name "enet")
1216 (version "1.3.14")
1217 (source (origin
1218 (method url-fetch)
1219 (uri (string-append "http://enet.bespin.org/download/"
1220 "enet-" version ".tar.gz"))
1221 (sha256
1222 (base32
1223 "0w780zc6cy8yq4cskpphx0f91lzh51vh9lwyc5ll8hhamdxgbxlq"))))
1224 (build-system gnu-build-system)
1225 (native-inputs
1226 `(("pkg-config" ,pkg-config)))
1227 (synopsis "Network communication layer on top of UDP")
1228 (description
1229 "ENet's purpose is to provide a relatively thin, simple and robust network
1230 communication layer on top of UDP. The primary feature it provides is optional
1231 reliable, in-order delivery of packets. ENet omits certain higher level
1232 networking features such as authentication, server discovery, encryption, or
1233 other similar tasks that are particularly application specific so that the
1234 library remains flexible, portable, and easily embeddable.")
1235 (home-page "http://enet.bespin.org")
1236 (license license:expat)))
1237
1238 (define-public sslh
1239 (package
1240 (name "sslh")
1241 (version "1.20")
1242 (source
1243 (origin
1244 (method git-fetch)
1245 (uri (git-reference
1246 (url "https://github.com/yrutschle/sslh.git")
1247 (commit (string-append "v" version))))
1248 (file-name (git-file-name name version))
1249 (sha256
1250 (base32 "18zhkqlwfh6f5dg1a41a4p7p9g94dgb9nwls1ksy9r5yz174i2fx"))))
1251 (build-system gnu-build-system)
1252 (native-inputs
1253 `(;; Test dependencies.
1254 ("lcov" ,lcov)
1255 ("perl" ,perl)
1256 ("perl-conf-libconfig" ,perl-conf-libconfig)
1257 ("perl-io-socket-inet6" ,perl-io-socket-inet6)
1258 ("perl-socket6" ,perl-socket6)
1259 ("psmisc" ,psmisc))) ; for ‘killall’
1260 (inputs
1261 `(("libcap" ,libcap)
1262 ("libconfig" ,libconfig)
1263 ("pcre" ,pcre)
1264 ("tcp-wrappers" ,tcp-wrappers)))
1265 (arguments
1266 '(#:phases
1267 (modify-phases %standard-phases
1268 (delete 'configure) ; no configure script
1269 (add-before 'check 'fix-tests
1270 (lambda _
1271 (substitute* "./t"
1272 (("\"/tmp") "$ENV{\"TMPDIR\"} . \"")
1273 ;; The Guix build environment lacks ‘ip6-localhost’.
1274 (("ip6-localhost") "localhost"))
1275 #t))
1276 ;; Many of these files are mentioned in the man page. Install them.
1277 (add-after 'install 'install-documentation
1278 (lambda* (#:key outputs #:allow-other-keys)
1279 (let* ((out (assoc-ref outputs "out"))
1280 (doc (string-append out "/share/doc/sslh")))
1281 (install-file "README.md" doc)
1282 (for-each
1283 (lambda (file)
1284 (install-file file (string-append doc "/examples")))
1285 (append (find-files "." "\\.cfg")
1286 (find-files "scripts"))))
1287 #t)))
1288 #:make-flags (list "CC=gcc"
1289 "USELIBCAP=1"
1290 "USELIBWRAP=1"
1291 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1292 #:test-target "test"))
1293 (home-page "https://www.rutschle.net/tech/sslh/README.html")
1294 (synopsis "Applicative network protocol demultiplexer")
1295 (description
1296 "sslh is a network protocol demultiplexer. It acts like a switchboard,
1297 accepting connections from clients on one port and forwarding them to different
1298 servers based on the contents of the first received data packet. Detection of
1299 common protocols like HTTP(S), SSL, SSH, OpenVPN, tinc, and XMPP is already
1300 implemented, but any other protocol that matches a regular expression can be
1301 added. sslh's name comes from its original application of serving both SSH and
1302 HTTPS on port 443, allowing SSH connections from inside corporate firewalls
1303 that block port 22.")
1304 (license (list license:bsd-2 ; tls.[ch]
1305 license:gpl2+)))) ; everything else
1306
1307 (define-public iperf
1308 (package
1309 (name "iperf")
1310 (version "3.1.7")
1311 (source (origin
1312 (method url-fetch)
1313 (uri (string-append "http://downloads.es.net/pub/iperf"
1314 "/iperf-" version ".tar.gz"))
1315 (sha256
1316 (base32
1317 "0kvk8d0a3dcxc8fisyprbn01y8akxj4sx8ld5dh508p9dx077vx4"))))
1318 (build-system gnu-build-system)
1319 (synopsis "TCP, UDP and SCTP bandwidth measurement tool")
1320 (description
1321 "iPerf is a tool to measure achievable bandwidth on IP networks. It
1322 supports tuning of various parameters related to timing, buffers and
1323 protocols (TCP, UDP, SCTP with IPv4 and IPv6). For each test it reports
1324 the bandwidth, loss, and other parameters.")
1325 (home-page "http://software.es.net/iperf/")
1326 (license (list license:bsd-3 ; Main distribution.
1327 license:ncsa ; src/{units,iperf_locale,tcp_window_size}.c
1328 license:expat ; src/{cjson,net}.[ch]
1329 license:public-domain)))) ; src/portable_endian.h
1330
1331 (define-public nethogs
1332 (package
1333 (name "nethogs")
1334 (version "0.8.5")
1335 (source (origin
1336 (method url-fetch)
1337 (uri (string-append "https://github.com/raboof/nethogs/archive/v"
1338 version ".tar.gz"))
1339 (sha256
1340 (base32
1341 "1k4x8r7s4dgcb6n2rjn28h2yyij92mwm69phncl3597cdxr954va"))
1342 (file-name (string-append name "-" version ".tar.gz"))))
1343 (build-system gnu-build-system)
1344 (inputs
1345 `(("libpcap" ,libpcap)
1346 ("ncurses" ,ncurses)))
1347 (arguments
1348 `(#:make-flags `("CC=gcc"
1349 ,(string-append "PREFIX=" %output))
1350 #:phases
1351 (modify-phases %standard-phases
1352 (delete 'configure)))) ; No ./configure script.
1353 (home-page "https://github.com/raboof/nethogs")
1354 (synopsis "Per-process bandwidth monitor")
1355 (description "NetHogs is a small 'net top' tool for Linux. Instead of
1356 breaking the traffic down per protocol or per subnet, like most tools do, it
1357 groups bandwidth by process.
1358
1359 NetHogs does not rely on a special kernel module to be loaded. If there's
1360 suddenly a lot of network traffic, you can fire up NetHogs and immediately see
1361 which PID is causing this. This makes it easy to identify programs that have
1362 gone wild and are suddenly taking up your bandwidth.")
1363 (license license:gpl2+)))
1364
1365 (define-public nzbget
1366 (package
1367 (name "nzbget")
1368 (version "20.0")
1369 (source
1370 (origin
1371 (method url-fetch)
1372 (uri (string-append "https://github.com/nzbget/nzbget/archive/v"
1373 version ".tar.gz"))
1374 (file-name (string-append name "-" version ".tar.gz"))
1375 (sha256
1376 (base32
1377 "0q93aqqyzccn5r9sny38499rmg846qdh9pi2v5kvf9m23v54yk60"))
1378 (modules '((guix build utils)))
1379 (snippet
1380 ;; Reported upstream as <https://github.com/nzbget/nzbget/pull/414>.
1381 '(begin
1382 (substitute* "daemon/connect/TlsSocket.cpp"
1383 (("gnutls_certificate-verification_status_print")
1384 "gnutls_certificate_verification_status_print"))
1385 #t))))
1386 (arguments
1387 `(#:configure-flags
1388 (list
1389 (string-append "--with-libcurses-includes="
1390 (assoc-ref %build-inputs "ncurses") "/include")
1391 (string-append "--with-libcurses-libraries="
1392 (assoc-ref %build-inputs "ncurses") "/lib")
1393 (string-append "--with-tlslib=GnuTLS"))))
1394 (build-system gnu-build-system)
1395 (inputs `(("gnutls" ,gnutls)
1396 ("libxml2" ,libxml2)
1397 ("ncurses" ,ncurses)
1398 ("zlib" ,zlib)))
1399 (native-inputs `(("pkg-config" ,pkg-config)))
1400 (home-page "https://github.com/nzbget/nzbget")
1401 (synopsis "Usenet binary file downloader")
1402 (description
1403 "NZBGet is a binary newsgrabber, which downloads files from Usenet based
1404 on information given in @code{nzb} files. NZBGet can be used in standalone
1405 and in server/client modes. In standalone mode, you pass NZBGet @command{nzb}
1406 files as command-line parameters and it downloads them and exits. NZBGet also
1407 contains a Web interface. Its server can be controlled through remote
1408 procedure calls (RPCs).")
1409 (license license:gpl2+)))
1410
1411 (define-public openvswitch
1412 (package
1413 (name "openvswitch")
1414 (version "2.10.1")
1415 (source (origin
1416 (method url-fetch)
1417 (uri (string-append
1418 "http://openvswitch.org/releases/openvswitch-"
1419 version ".tar.gz"))
1420 (sha256
1421 (base32
1422 "103wi6k8xal0z1pyy680gms56skagh6jawa2ja588ljr55jcg4sg"))))
1423 (build-system gnu-build-system)
1424 (arguments
1425 '(;; FIXME: many tests fail with:
1426 ;; […]
1427 ;; test -e $OVS_RUNDIR/ovs-vswitchd.pid
1428 ;; ovs-appctl -t ovs-vswitchd exit
1429 ;; hard failure
1430 #:tests? #f
1431 #:configure-flags
1432 '("--enable-shared"
1433 "--localstatedir=/var"
1434 "--with-dbdir=/var/lib/openvswitch")
1435 #:phases
1436 (modify-phases %standard-phases
1437 (replace 'install
1438 (lambda _
1439 (invoke "make"
1440 ;; Don't try to create directories under /var.
1441 "RUNDIR=/tmp"
1442 "PKIDIR=/tmp"
1443 "LOGDIR=/tmp"
1444 "DBDIR=/tmp"
1445 "install"))))))
1446 (native-inputs
1447 `(("perl" ,perl)
1448 ("pkg-config" ,pkg-config)
1449 ("python" ,python-2)
1450 ;; for testing
1451 ("util-linux" ,util-linux)))
1452 (propagated-inputs
1453 `(("python-six" ,python2-six)))
1454 (inputs
1455 `(("libcap-ng" ,libcap-ng)
1456 ("openssl" ,openssl)))
1457 (synopsis "Virtual network switch")
1458 (home-page "http://www.openvswitch.org/")
1459 (description
1460 "Open vSwitch is a multilayer virtual switch. It is designed to enable
1461 massive network automation through programmatic extension, while still
1462 supporting standard management interfaces and protocols (e.g. NetFlow, sFlow,
1463 IPFIX, RSPAN, CLI, LACP, 802.1ag).")
1464 (license ; see debian/copyright for detail
1465 (list license:lgpl2.1 ; xenserver and utilities/bugtool
1466 license:gpl2 ; datapath
1467 license:bsd-2 license:bsd-3
1468 license:asl2.0)))) ; all other
1469
1470 (define-public python-ipy
1471 (package
1472 (name "python-ipy")
1473 (version "1.00")
1474 (source (origin
1475 (method url-fetch)
1476 (uri (pypi-uri "IPy" version))
1477 (sha256
1478 (base32
1479 "08d6kcacj67mvh0b6y765ipccy6gi4w2ndd4v1l3im2qm1cgcarg"))))
1480 (build-system python-build-system)
1481 (home-page "https://github.com/autocracy/python-ipy/")
1482 (synopsis "Python class and tools for handling IP addresses and networks")
1483 (description "The @code{IP} class allows a comfortable parsing and
1484 handling for most notations in use for IPv4 and IPv6 addresses and
1485 networks.")
1486 (license license:bsd-3)))
1487
1488 (define-public python2-ipy
1489 (package-with-python2 python-ipy))
1490
1491 (define-public speedtest-cli
1492 (package
1493 (name "speedtest-cli")
1494 (version "2.1.1")
1495 (source
1496 (origin
1497 (method git-fetch)
1498 (uri (git-reference
1499 (url "https://github.com/sivel/speedtest-cli")
1500 (commit (string-append "v" version))))
1501 (file-name (git-file-name name version))
1502 (sha256
1503 (base32 "0swm7nbk99w2xf1cb0l3c8y1vm4rqw6785p5j04alyb0g98vqa4b"))))
1504 (build-system python-build-system)
1505 (home-page "https://github.com/sivel/speedtest-cli")
1506 (synopsis "Internet bandwidth tester")
1507 (description
1508 "Command line interface for testing internet bandwidth using
1509 speedtest.net.")
1510 (license license:asl2.0)))
1511
1512 (define-public tftp-hpa
1513 (package
1514 (name "tftp-hpa")
1515 (version "5.2")
1516 (source (origin
1517 (method url-fetch)
1518 (uri (string-append "mirror://kernel.org/software/"
1519 "network/tftp/tftp-hpa/tftp-hpa-" version
1520 ".tar.xz"))
1521 (sha256
1522 (base32
1523 "12vidchglhyc20znq5wdsbhi9mqg90jnl7qr9qs8hbvaz4fkdvmg"))))
1524 (build-system gnu-build-system)
1525 (arguments `(#:tests? #f)) ; no test target
1526 (synopsis "HPA's tftp client")
1527 (description
1528 "This is a tftp client derived from OpenBSD tftp with some extra options
1529 added and bugs fixed. The source includes readline support but it is not
1530 enabled due to license conflicts between the BSD advertising clause and the GPL.")
1531 (home-page "http://git.kernel.org/cgit/network/tftp/tftp-hpa.git/about/")
1532 ;; Some source files are distributed under a 3-clause BSD license, and
1533 ;; others under a 4-clause BSD license. Refer to the files in the source
1534 ;; distribution for clarification.
1535 (license (list license:bsd-3 license:bsd-4))))
1536
1537 (define-public pidentd
1538 (package
1539 (name "pidentd")
1540 (version "3.0.19")
1541 (source
1542 (origin
1543 (method url-fetch)
1544 (uri (string-append "https://github.com/ptrrkssn/pidentd/archive/"
1545 "v" version ".tar.gz"))
1546 (file-name (string-append name "-" version ".tar.gz"))
1547 (sha256
1548 (base32
1549 "0y3kd1bkydqkpc1qdff24yswysamsqivvadjy0468qri5730izgc"))))
1550 (build-system gnu-build-system)
1551 (arguments
1552 `(#:tests? #f)) ; No tests are included
1553 (inputs
1554 `(("openssl" ,openssl))) ; For the DES library
1555 (home-page "https://www.lysator.liu.se/~pen/pidentd/")
1556 (synopsis "Small Ident Daemon")
1557 (description
1558 "@dfn{Pidentd} (Peter's Ident Daemon) is a identd, which implements a
1559 identification server. Pidentd looks up specific TCP/IP connections and
1560 returns the user name and other information about the connection.")
1561 (license license:public-domain)))
1562
1563 (define-public spiped
1564 (package
1565 (name "spiped")
1566 (version "1.6.0")
1567 (source (origin
1568 (method url-fetch)
1569 (uri (string-append "https://www.tarsnap.com/spiped/spiped-"
1570 version ".tgz"))
1571 (sha256
1572 (base32
1573 "1r51rdcl7nib1yv3yvgd5alwlkkwmr387brqavaklb0p2bwzixz6"))))
1574 (build-system gnu-build-system)
1575 (arguments
1576 '(#:test-target "test"
1577 #:make-flags (let* ((out (assoc-ref %outputs "out"))
1578 (bindir (string-append out "/bin"))
1579 (man1dir (string-append out "/share/man/man1")))
1580 (list "CC=gcc" ; It tries to invoke `c99`.
1581 (string-append "BINDIR=" bindir)
1582 (string-append "MAN1DIR=" man1dir)))
1583 #:phases
1584 (modify-phases %standard-phases
1585 (add-after 'unpack 'patch-command-invocations
1586 (lambda _
1587 (substitute* '("Makefile"
1588 "libcperciva/cpusupport/Build/cpusupport.sh"
1589 "libcperciva/POSIX/posix-cflags.sh"
1590 "libcperciva/POSIX/posix-l.sh")
1591 (("command -p") ""))
1592 #t))
1593 (delete 'configure) ; No ./configure script.
1594 (add-after 'install 'install-more-docs
1595 (lambda* (#:key outputs #:allow-other-keys)
1596 (let* ((out (assoc-ref %outputs "out"))
1597 (misc (string-append out "/share/doc/spiped")))
1598 (install-file "DESIGN.md" misc)
1599 #t))))))
1600 (native-inputs
1601 `(("procps" ,procps))) ; `ps` is used by the test suite.
1602 (inputs
1603 `(("openssl" ,openssl)))
1604 (home-page "https://www.tarsnap.com/spiped.html")
1605 (synopsis "Create secure pipes between sockets")
1606 (description "Spiped (pronounced \"ess-pipe-dee\") is a utility for creating
1607 symmetrically encrypted and authenticated pipes between socket addresses, so
1608 that one may connect to one address (e.g., a UNIX socket on localhost) and
1609 transparently have a connection established to another address (e.g., a UNIX
1610 socket on a different system). This is similar to 'ssh -L' functionality, but
1611 does not use SSH and requires a pre-shared symmetric key.")
1612 (license license:bsd-2)))
1613
1614 (define-public quagga
1615 (package
1616 (name "quagga")
1617 (version "1.2.4")
1618 (source (origin
1619 (method url-fetch)
1620 (uri (string-append "mirror://savannah/quagga/quagga-"
1621 version ".tar.gz"))
1622 (sha256
1623 (base32
1624 "1lsksqxij5f1llqn86pkygrf5672kvrqn1kvxghi169hqf1c0r73"))
1625 (patches
1626 (search-patches "quagga-reproducible-build.patch"))))
1627 (build-system gnu-build-system)
1628 (native-inputs `(("pkg-config" ,pkg-config)
1629 ("perl" ,perl)
1630 ("dejagnu" ,dejagnu)))
1631 (inputs `(("readline" ,readline)
1632 ("c-ares" ,c-ares)))
1633 (synopsis "Routing Software Suite")
1634 (description "Quagga is a routing software suite, providing implementations
1635 of OSPFv2, OSPFv3, RIP v1 and v2, RIPng and BGP-4 for Unix platforms.
1636
1637 The Quagga architecture consists of a core daemon, @command{zebra}, which
1638 acts as an abstraction layer to the underlying Unix kernel and presents the
1639 Zserv API over a Unix or TCP stream to Quagga clients. It is these Zserv
1640 clients which typically implement a routing protocol and communicate routing
1641 updates to the zebra daemon.")
1642 (home-page "https://www.nongnu.org/quagga/")
1643 (license license:gpl2+)))
1644
1645 (define-public thc-ipv6
1646 (let ((revision "0")
1647 (commit "4bb72573e0950ce6f8ca2800a10748477020029e"))
1648 (package
1649 (name "thc-ipv6")
1650 (version (git-version "3.4" revision commit))
1651 (source (origin
1652 (method git-fetch)
1653 (uri (git-reference
1654 (url "https://github.com/vanhauser-thc/thc-ipv6.git")
1655 (commit commit)))
1656 (file-name (git-file-name name version))
1657 (sha256
1658 (base32
1659 "1x5i6vbsddqc2yks7r1a2fw2fk16qxvd6hpzh1lykjfpkal8fdir"))))
1660 (build-system gnu-build-system)
1661 (arguments
1662 `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1663 #:tests? #f ; No test suite.
1664 #:phases
1665 (modify-phases %standard-phases
1666 (delete 'configure) ; No ./configure script.
1667 (add-before 'build 'patch-paths
1668 (lambda _
1669 (substitute* "Makefile"
1670 (("/bin/echo") "echo"))
1671 #t))
1672 (add-after 'install 'install-more-docs
1673 (lambda* (#:key outputs #:allow-other-keys)
1674 (let* ((out (assoc-ref outputs "out"))
1675 (doc (string-append out "/share/thc-ipv6/doc")))
1676 (install-file "README" doc)
1677 (install-file "HOWTO-INJECT" doc)
1678 #t))))))
1679 ;; TODO Add libnetfilter-queue once packaged.
1680 (inputs
1681 `(("libpcap" ,libpcap)
1682 ("openssl" ,openssl)
1683 ("perl" ,perl)))
1684 (home-page "https://github.com/vanhauser-thc/thc-ipv6")
1685 (synopsis "IPv6 security research toolkit")
1686 (description "The THC IPv6 Toolkit provides command-line tools and a library
1687 for researching IPv6 implementations and deployments. It requires Linux 2.6 or
1688 newer and only works on Ethernet network interfaces.")
1689 ;; AGPL 3 with exception for linking with OpenSSL. See the 'LICENSE' file in
1690 ;; the source distribution for more information.
1691 (license license:agpl3))))
1692
1693 (define-public bmon
1694 (package
1695 (name "bmon")
1696 (version "4.0")
1697 (source
1698 (origin
1699 (method url-fetch)
1700 (uri (string-append "https://github.com/tgraf/bmon/releases/download/v"
1701 version "/bmon-" version ".tar.gz"))
1702 (sha256
1703 (base32
1704 "0ylzriv4pwh76344abzl1w219x188gshbycbna35gsyfp09c7z82"))))
1705 (build-system gnu-build-system)
1706 (inputs
1707 `(("libconfuse" ,libconfuse)
1708 ("libnl" ,libnl)
1709 ("ncurses" ,ncurses)))
1710 (native-inputs
1711 `(("pkg-config" ,pkg-config)))
1712 (synopsis "Bandwidth monitor")
1713 (description "bmon is a monitoring and debugging tool to capture
1714 networking-related statistics and prepare them visually in a human-friendly
1715 way. It features various output methods including an interactive curses user
1716 interface and a programmable text output for scripting.")
1717 (home-page "https://github.com/tgraf/bmon")
1718 ;; README.md mentions both the 2-clause BSD and expat licenses, but all
1719 ;; the source files only have expat license headers. Upstream has been
1720 ;; contacted for clarification: https://github.com/tgraf/bmon/issues/59
1721 ;; Update the license field when upstream responds.
1722 (license (list license:bsd-2
1723 license:expat))))
1724
1725 (define-public libnet
1726 (package
1727 (name "libnet")
1728 (version "1.2-rc3")
1729 (source
1730 (origin
1731 (method git-fetch)
1732 (uri (git-reference
1733 (url "https://github.com/sam-github/libnet")
1734 (commit (string-append "libnet-" version))))
1735 (file-name (git-file-name name version))
1736 (sha256
1737 (base32
1738 "0cy8w4g5rv963v4p6iq3333kxgdddx2lywp70xf62553a25xhhs4"))))
1739 (build-system gnu-build-system)
1740 (arguments
1741 `(#:phases
1742 (modify-phases %standard-phases
1743 (add-after 'unpack 'chdir
1744 (lambda _ (chdir "libnet") #t))
1745 (add-before 'build 'build-doc
1746 (lambda* (#:key make-flags #:allow-other-keys)
1747 (apply invoke "make" "-C" "doc" "doc"
1748 make-flags))))))
1749 (native-inputs
1750 `(("autoconf" ,autoconf)
1751 ("automake" ,automake)
1752 ("libtool" ,libtool)
1753 ("doxygen" ,doxygen)))
1754 (home-page "https://sourceforge.net/projects/libnet-dev/")
1755 (synopsis "Framework for low-level network packet construction")
1756 (description
1757 "Libnet provides a fairly portable framework for network packet
1758 construction and injection. It features portable packet creation interfaces
1759 at the IP layer and link layer, as well as a host of supplementary
1760 functionality. Using libnet, quick and simple packet assembly applications
1761 can be whipped up with little effort.")
1762 (license license:bsd-2)))
1763
1764 (define-public mtr
1765 (package
1766 (name "mtr")
1767 (version "0.92")
1768 (source
1769 (origin
1770 (method url-fetch)
1771 (uri (string-append "ftp://ftp.bitwizard.nl/" name "/"
1772 name "-" version ".tar.gz"))
1773 (sha256
1774 (base32 "10j3ds3p27jygys4x08kj8fi3zlsgiv72xsfazkah6plwawrv5zj"))))
1775 (build-system gnu-build-system)
1776 (inputs
1777 `(("libcap" ,libcap)
1778 ("ncurses" ,ncurses)))
1779 (native-inputs
1780 ;; The 0.92 release tarball still requires the ‘autoheader’ tool.
1781 `(("autoconf" ,autoconf)))
1782 (arguments
1783 `(#:tests? #f)) ; tests require network access
1784 (home-page "https://www.bitwizard.nl/mtr/")
1785 (synopsis "Network diagnostic tool")
1786 (description
1787 "@dfn{mtr} (My TraceRoute) combines the functionality of the
1788 @command{traceroute} and @command{ping} programs in a single network diagnostic
1789 tool. @command{mtr} can use several network protocols to detect intermediate
1790 routers (or @dfn{hops}) between the local host and a user-specified destination.
1791 It then continually measures the response time and packet loss at each hop, and
1792 displays the results in real time.")
1793 (license license:gpl2+)))
1794
1795 (define-public strongswan
1796 (package
1797 (name "strongswan")
1798 (version "5.6.3")
1799 (source
1800 (origin
1801 (method url-fetch)
1802 (uri (string-append "https://download.strongswan.org/strongswan-"
1803 version ".tar.bz2"))
1804 (sha256
1805 (base32 "095zg7h7qwsc456sqgwb1lhhk29ac3mk5z9gm6xja1pl061driy3"))))
1806 (build-system gnu-build-system)
1807 (arguments
1808 `(#:phases
1809 (modify-phases %standard-phases
1810 (add-before 'build 'patch-command-file-names
1811 (lambda* (#:key inputs #:allow-other-keys)
1812 (substitute* "src/libstrongswan/utils/process.c"
1813 (("/bin/sh")
1814 (string-append (assoc-ref inputs "bash") "/bin/sh")))
1815
1816 (substitute* "src/libstrongswan/tests/suites/test_process.c"
1817 (("/bin/sh") (which "sh"))
1818 (("/bin/echo") (which "echo"))
1819 (("cat") (which "cat")))
1820 #t))
1821 (add-before 'check 'set-up-test-environment
1822 (lambda* (#:key inputs #:allow-other-keys)
1823 (setenv "TZDIR" (string-append (assoc-ref inputs "tzdata")
1824 "/share/zoneinfo"))
1825 #t)))
1826 #:configure-flags
1827 (list
1828 ;; Disable bsd-4 licensed plugins
1829 "--disable-des"
1830 "--disable-blowfish")))
1831 (inputs
1832 `(("curl" ,curl)
1833 ("gmp" ,gmp)
1834 ("libgcrypt" ,libgcrypt)
1835 ("openssl" ,openssl)))
1836 (native-inputs
1837 `(("coreutils" ,coreutils)
1838 ("tzdata" ,tzdata-for-tests)))
1839 (synopsis "IKEv1/v2 keying daemon")
1840 (description "StrongSwan is an IPsec implementation originally based upon
1841 the FreeS/WAN project. It contains support for IKEv1, IKEv2, MOBIKE, IPv6,
1842 NAT-T and more.")
1843 (home-page "https://strongswan.org/")
1844 (license
1845 (list license:gpl2+
1846 ;; src/aikgen/*
1847 ;; src/libcharon/plugins/dnscert/*
1848 ;; src/libcharon/plugins/ext_auth/*
1849 ;; src/libcharon/plugins/vici/ruby/*
1850 ;; src/libcharon/plugins/xauth_pam/xauth_pam_listener.[ch]
1851 license:expat
1852 ;; src/inclue/sys/*
1853 license:bsd-3
1854 ;; src/libstrongswan/plugins/sha3/sha3_keccak.c
1855 license:public-domain
1856 ;; src/libstrongswan/plugins/pkcs11/pkcs11.h
1857 (license:non-copyleft
1858 "file://src/libstrongswan/plugins/pkcs11/pkcs11.h"
1859 "pkcs11 contains a unknown permissive license. View the specific
1860 file for more details.")
1861 ;; These files are not included in the
1862 ;; build, they are disabled through
1863 ;; options to ./configure
1864 ;;
1865 ;; src/libstrongswan/plugins/blowfish/bf_enc.c
1866 ;; src/libstrongswan/plugins/blowfish/bf_locl.h
1867 ;; src/libstrongswan/plugins/blowfish/bf_pi.h
1868 ;; src/libstrongswan/plugins/blowfish/bf_skey.c
1869 ;; src/libstrongswan/plugins/blowfish/blowfish_crypter.c
1870 ;; src/libstrongswan/plugins/des/des_crypter.c
1871 license:bsd-4))))
1872
1873 (define-public amule
1874 (package
1875 (name "amule")
1876 (version "2.3.2")
1877 (source (origin
1878 (method git-fetch)
1879 (uri (git-reference
1880 (url "https://github.com/amule-project/amule")
1881 (commit version)))
1882 (file-name (git-file-name name version))
1883 (sha256
1884 (base32
1885 "010wxm6g9f92x6fympj501zbnjka32rzbx0sk3a2y4zpih5d2nsn"))
1886 ;; Patch for adopting crypto++ >= 6.0.
1887 (patches (search-patches "amule-crypto-6.patch"))))
1888 (build-system gnu-build-system)
1889 (arguments
1890 `(#:phases
1891 (modify-phases %standard-phases
1892 (delete 'bootstrap) ; bootstrap phase runs too early.
1893 (add-after 'patch-source-shebangs 'autogen
1894 (lambda _
1895 (invoke "sh" "autogen.sh")
1896 #t)))
1897 #:configure-flags
1898 '("--disable-rpath"
1899 "--enable-wxcas"
1900 "--enable-cas"
1901 "--enable-alc"
1902 "--enable-alcc"
1903 "--enable-xas"
1904 "--enable-amulecmd"
1905 "--enable-geoip"
1906 "--enable-ccache"
1907 "--enable-nls"
1908 "--enable-optimize"
1909 "--enable-amule-gui"
1910 "--enable-amule-daemon"
1911 "--enable-webserver"
1912 "--with-denoise-level=0")))
1913 (native-inputs
1914 `(("autoconf" ,autoconf)
1915 ("automake" ,automake)
1916 ("gettext-minimal" ,gettext-minimal)
1917 ("perl" ,perl)))
1918 (inputs
1919 `(("zlib" ,zlib)
1920 ("crypto++" ,crypto++)
1921 ("libpng" ,libpng)
1922 ("wxwidgets-gtk2" ,wxwidgets-gtk2)))
1923 (home-page "http://amule.org/")
1924 (synopsis "Peer-to-peer client for the eD2K and Kademlia networks")
1925 (description
1926 "aMule is an eMule-like client for the eD2k and Kademlia peer-to-peer
1927 file sharing networks. It includes a graphical user interface (GUI), a daemon
1928 allowing you to run a client with no graphical interface, and a Web GUI for
1929 remote access. The @command{amulecmd} command allows you to control aMule
1930 remotely.")
1931 (license license:gpl2+)))
1932
1933 (define-public zyre
1934 (package
1935 (name "zyre")
1936 (version "2.0.0")
1937 (source (origin
1938 (method url-fetch)
1939 (uri
1940 (string-append "https://github.com/zeromq/zyre/releases/download/v"
1941 version "/" name "-" version ".tar.gz"))
1942 (sha256
1943 (base32
1944 "0qz2730bng1gs9xbqxhkw88qbsmszgmmrl2g9k6xrg6r3bqvsdc7"))))
1945 (build-system gnu-build-system)
1946 (inputs `(("zeromq" ,zeromq)
1947 ("czmq" ,czmq)
1948 ("libsodium" ,libsodium)))
1949 (synopsis "Framework for proximity-based peer-to-peer applications")
1950 (description "Zyre provides reliable group messaging over local area
1951 networks using zeromq. It has these key characteristics:
1952
1953 @itemize
1954 @item Zyre needs no administration or configuration.
1955 @item Peers may join and leave the network at any time.
1956 @item Peers talk to each other without any central brokers or servers.
1957 @item Peers can talk directly to each other.
1958 @item Peers can join groups, and then talk to groups.
1959 @item Zyre is reliable, and loses no messages even when the network is heavily loaded.
1960 @item Zyre is fast and has low latency, requiring no consensus protocols.
1961 @item Zyre is designed for WiFi networks, yet also works well on Ethernet networks.
1962 @end itemize")
1963 (home-page "https://github.com/zeromq/zyre")
1964 (license license:mpl2.0)))
1965
1966 (define-public can-utils
1967 (package
1968 (name "can-utils")
1969 (version "2018.02.0")
1970 (source (origin
1971 (method git-fetch)
1972 (uri (git-reference
1973 (url "https://github.com/linux-can/can-utils.git")
1974 (commit (string-append "v" version))))
1975 (file-name (git-file-name name version))
1976 (sha256
1977 (base32
1978 "0r0zkm67bdcmbfypjr7z041d4zp0xzb379dyl8cvhmflh12fd2jb"))))
1979 (build-system gnu-build-system)
1980 (arguments
1981 `(#:tests? #f ; No tests exist.
1982 #:make-flags (list "CC=gcc"
1983 (string-append "PREFIX="
1984 (assoc-ref %outputs "out")))
1985 #:phases
1986 (modify-phases %standard-phases
1987 (delete 'bootstrap)
1988 (delete 'configure))))
1989 (home-page "https://github.com/linux-can/can-utils")
1990 (synopsis "CAN utilities")
1991 (description "This package provides CAN utilities in the following areas:
1992
1993 @itemize
1994 @item Basic tools to display, record, generate and replay CAN traffic
1995 @item CAN access via IP sockets
1996 @item CAN in-kernel gateway configuration
1997 @item CAN bus measurement and testing
1998 @item ISO-TP (ISO15765-2:2016 - this means messages with a body larger than
1999 eight bytes) tools
2000 @item Log file converters
2001 @item Serial Line Discipline configuration for slcan driver
2002 @end itemize")
2003 ;; Either BSD-3 or GPL-2 can be used.
2004 (license (list license:bsd-3 license:gpl2))))
2005
2006 (define-public asio
2007 (package
2008 (name "asio")
2009 (version "1.12.2")
2010 (source
2011 (origin
2012 (method url-fetch)
2013 (uri (string-append "mirror://sourceforge/asio/asio/"
2014 version " (Stable)/asio-" version ".tar.bz2"))
2015 (sha256
2016 (base32 "1akray4l3hgahmb92sbvsqg128c7g7s92jrkf1sp1fjnfjrxq9sf"))))
2017 (build-system gnu-build-system)
2018 (inputs
2019 `(("boost" ,boost)
2020 ("openssl" ,openssl)))
2021 (arguments
2022 `(#:configure-flags
2023 (list
2024 (string-append "--with-boost=" (assoc-ref %build-inputs "boost"))
2025 (string-append "--with-openssl=" (assoc-ref %build-inputs "openssl")))))
2026 (home-page "https://think-async.com/Asio")
2027 (synopsis "C++ library for ASynchronous network I/O")
2028 (description "Asio is a cross-platform C++ library for network and
2029 low-level I/O programming that provides developers with a consistent
2030 asynchronous model using a modern C++ approach.")
2031 (license license:boost1.0)))
2032
2033 (define-public shadowsocks
2034 ;; There are some security fixes after the last release.
2035 (let* ((commit "e332ec93e9c90f1cbee676b022bf2c5d5b7b1239")
2036 (revision "0")
2037 (version (git-version "2.8.2" revision commit)))
2038 (package
2039 (name "shadowsocks")
2040 (version version)
2041 (home-page "https://github.com/shadowsocks/shadowsocks")
2042 (source (origin
2043 (method git-fetch)
2044 (uri (git-reference
2045 (url home-page)
2046 (commit commit)))
2047 (sha256
2048 (base32
2049 "1idd9b4f2pnhcpk1bh030hqg5zq25gkwxd53xi3c0cj242w7sp2j"))
2050 (file-name (git-file-name name version))))
2051 (build-system python-build-system)
2052 (synopsis "Fast tunnel proxy that helps you bypass firewalls")
2053 (description
2054 "This package is a fast tunnel proxy that helps you bypass firewalls.
2055
2056 Features:
2057 @itemize
2058 @item TCP & UDP support
2059 @item User management API
2060 @item TCP Fast Open
2061 @item Workers and graceful restart
2062 @item Destination IP blacklist
2063 @end itemize")
2064 (license license:asl2.0))))
2065
2066 (define-public net-snmp
2067 (package
2068 (name "net-snmp")
2069 (version "5.8")
2070 (source (origin
2071 (method url-fetch)
2072 (uri (string-append "mirror://sourceforge/net-snmp/net-snmp/"
2073 version "/net-snmp-" version ".tar.gz"))
2074 (sha256
2075 (base32
2076 "1pvajzj9gmj56dmwix0ywmkmy2pglh6nny646hkm7ghfhh03bz5j"))
2077 (modules '((guix build utils)))
2078 (snippet
2079 '(begin
2080 ;; Drop bundled libraries.
2081 (delete-file-recursively "snmplib/openssl")
2082 #t))))
2083 (build-system gnu-build-system)
2084 (arguments
2085 `(#:test-target "test"
2086 ;; XXX: With parallel build enabled, Perl modules may not get linked with
2087 ;; libnetsnmp. See e.g. <https://bugzilla.novell.com/show_bug.cgi?id=819497>.
2088 #:parallel-build? #f
2089 #:configure-flags
2090 (list (string-append "LDFLAGS=-Wl,-rpath="
2091 (assoc-ref %outputs "out")
2092 "/lib")
2093 "--with-logfile=/var/log/snmpd.log"
2094 (string-append "--with-openssl="
2095 (assoc-ref %build-inputs "openssl")))
2096 #:phases
2097 (modify-phases %standard-phases
2098 (add-after 'unpack 'patch-tests
2099 (lambda* (#:key inputs #:allow-other-keys)
2100 (substitute* "testing/fulltests/support/simple_TESTCONF.sh"
2101 (("NETSTAT=\"\"")
2102 (string-append "NETSTAT=\"" (which "netstat") "\"")))
2103 (substitute* '("testing/fulltests/default/T065agentextend_simple"
2104 "testing/fulltests/default/T115agentxperl_simple")
2105 (("/usr/bin/env") (which "env")))
2106 (substitute* "testing/fulltests/default/T065agentextend_sh_simple"
2107 (("/bin/sh") (which "sh")))
2108 ;; These tests require network access.
2109 (for-each delete-file
2110 '("testing/fulltests/default/T070com2sec_simple"
2111 "testing/fulltests/default/T071com2sec6_simple"))
2112 #t))
2113 (add-after 'unpack 'patch-Makefile.PL
2114 (lambda* (#:key outputs #:allow-other-keys)
2115 (substitute* "Makefile.in"
2116 (("Makefile.PL -NET")
2117 (string-append "Makefile.PL PREFIX="
2118 (assoc-ref outputs "out")
2119 " INSTALLDIRS=site" " NO_PERLLOCAL=1"
2120 " -NET")))
2121 #t)))))
2122 (inputs
2123 `(("perl" ,perl)
2124 ("openssl" ,openssl)
2125 ("libnl" ,libnl)))
2126 ;; These inputs are only needed for tests.
2127 (native-inputs
2128 `(("net-tools" ,net-tools)
2129 ("coreutils" ,coreutils)
2130 ("grep" ,grep)))
2131 (home-page "http://www.net-snmp.org/")
2132 (synopsis "Simple Network Management Protocol library and tools")
2133 (description "The @dfn{Simple Network Management Protocol} (SNMP) is a
2134 widely used protocol for monitoring the health and welfare of network
2135 equipment (e.g. routers), computer equipment and even devices like UPSs.
2136 Net-SNMP is a suite of applications used to implement SNMP v1, SNMP v2c and
2137 SNMP v3 using both IPv4 and IPv6.")
2138 (license (list license:bsd-3
2139 (license:non-copyleft
2140 "http://www.net-snmp.org/about/license.html"
2141 "CMU/UCD copyright notice")))))
2142
2143 (define-public ubridge
2144 (package
2145 (name "ubridge")
2146 (version "0.9.14")
2147 (source (origin
2148 (method url-fetch)
2149 (uri (string-append "https://github.com/GNS3/ubridge/archive/v"
2150 version ".tar.gz"))
2151 (file-name (string-append name "-" version ".tar.gz"))
2152 (sha256
2153 (base32
2154 "1hivb8wqkk5047bdl2vbsbcvkmam1107hx1ahy4virq2bkqki1fj"))))
2155 (build-system gnu-build-system)
2156 (arguments
2157 `(#:tests? #f ;no tests
2158 #:make-flags '("CC=gcc")
2159 #:phases
2160 (modify-phases %standard-phases
2161 (delete 'configure)
2162 (add-before 'install 'set-bindir
2163 (lambda* (#:key inputs outputs #:allow-other-keys)
2164 (let ((bin (string-append (assoc-ref outputs "out")
2165 "/bin")))
2166 (mkdir-p bin)
2167 (substitute* "Makefile"
2168 (("\\$\\(BINDIR\\)") bin)
2169 (("\tsetcap cap_net.*$") "")))
2170 #t)))))
2171 (inputs
2172 `(("libpcap" ,libpcap)))
2173 (home-page "https://github.com/GNS3/ubridge/")
2174 (synopsis "Bridge for UDP tunnels, Ethernet, TAP and VMnet interfaces")
2175 (description "uBridge is a simple program to create user-land bridges
2176 between various technologies. Currently, bridging between UDP tunnels,
2177 Ethernet and TAP interfaces is supported. Packet capture is also supported.")
2178 (license license:gpl3+)))
2179
2180 (define-public hcxtools
2181 (let* ((commit "2ecfc9a06c2028c47522ea566ccd82b2c1f94647"))
2182 (package
2183 (name "hcxtools")
2184 (version (git-version "0.0.0" "1" commit))
2185 (home-page "https://github.com/ZerBea/hcxtools")
2186 (source (origin
2187 (method git-fetch)
2188 (uri (git-reference
2189 (url home-page)
2190 (commit commit)))
2191 (sha256
2192 (base32
2193 "1hzwrpmxjxl674if0pp5iq06mdi24k7ni7bh1h20isp4s40201n3"))
2194 (file-name (git-file-name name version))))
2195 (build-system gnu-build-system)
2196 (inputs
2197 `(("curl" ,curl)
2198 ("libpcap" ,libpcap)
2199 ("openssl" ,openssl)
2200 ("zlib" ,zlib)))
2201 (arguments
2202 `(#:make-flags (list "CC=gcc"
2203 (string-append "INSTALLDIR=" (assoc-ref %outputs "out") "/bin"))
2204 #:tests? #f ;no tests
2205 #:phases
2206 (modify-phases %standard-phases
2207 (delete 'configure)
2208 (add-after 'unpack 'set-environment
2209 (lambda* (#:key inputs #:allow-other-keys)
2210 (setenv "C_INCLUDE_PATH"
2211 (string-append (assoc-ref inputs "curl")
2212 "/include:"
2213 (assoc-ref inputs "libpcap")
2214 "/include:"
2215 (assoc-ref inputs "openssl")
2216 "/include:"
2217 (assoc-ref inputs "zlib")
2218 "/include:"
2219 (getenv "C_INCLUDE_PATH")))
2220 #t)))))
2221 (synopsis "Capture wlan traffic to hashcat and John the Ripper")
2222 (description
2223 "This package contains a small set of tools to capture and convert
2224 packets from wireless devices for use with hashcat or John the Ripper.")
2225 (license license:expat))))
2226
2227 (define-public hcxdumptool
2228 (let* ((commit "f4799b5da82c5b030a6d99b02d1c1b9dc838ad36"))
2229 (package
2230 (name "hcxdumptool")
2231 (version (git-version "0.0.0" "1" commit))
2232 (home-page "https://github.com/ZerBea/hcxdumptool")
2233 (source (origin
2234 (method git-fetch)
2235 (uri (git-reference
2236 (url home-page)
2237 (commit commit)))
2238 (sha256
2239 (base32
2240 "0qlsin0rws9sshn12faq4spmd0ffzssal36s71vhv6gkhhga7abl"))
2241 (file-name (git-file-name name version))))
2242 (build-system gnu-build-system)
2243 (arguments
2244 `(#:make-flags (list "CC=gcc"
2245 (string-append "INSTALLDIR=" (assoc-ref %outputs "out") "/bin"))
2246 #:tests? #f ;no tests
2247 #:phases
2248 (modify-phases %standard-phases
2249 (delete 'configure))))
2250 (synopsis "Small tool to capture packets from wlan devices")
2251 (description
2252 "Small tool to capture packets from WLAN devices. After capturing,
2253 upload the \"uncleaned\" cap to @url{https://wpa-sec.stanev.org/?submit} to
2254 see if the access point or the client is vulnerable to a dictionary attack.
2255 Convert the cap file to hccapx format and/or to WPA-PMKID-PBKDF2
2256 hashline (16800) with @command{hcxpcaptool} from the @code{hcxtools} package
2257 and check if the WLAN key or the master key was transmitted unencrypted.")
2258 (license license:expat))))
2259
2260 (define-public dante
2261 (package
2262 (name "dante")
2263 (version "1.4.2")
2264 (source
2265 (origin
2266 (method url-fetch)
2267 (uri (string-append "https://www.inet.no/dante/files/dante-"
2268 version ".tar.gz"))
2269 (sha256
2270 (base32
2271 "19rqzj167q73ag20zxpvswhkk0bj56r5maf83v5016sw7vrcz5sc"))))
2272 (build-system gnu-build-system)
2273 (arguments
2274 ;; XXX: The dynamic socks library doesn't work with 'libc.so' (GNU ld
2275 ;; script). When preloading is enabled, 'sockd' failed with:
2276 ;; … Failed to open library "libc.so": …: invalid ELF header
2277 '(#:configure-flags '("--disable-preload")))
2278 (home-page "https://www.inet.no/dante/")
2279 (synopsis "SOCKS server and client")
2280 (description "Dante is a SOCKS client and server implementation. It can
2281 be installed on a machine with access to an external TCP/IP network and will
2282 allow all other machines, without direct access to that network, to be relayed
2283 through the machine the Dante server is running on. The external network will
2284 never see any machines other than the one Dante is running on.")
2285 (license (license:non-copyleft "file://LICENSE"))))
2286
2287 (define-public restbed
2288 (let ((commit "6eb385fa9051203f28bf96cc1844bbb5a9a6481f"))
2289 (package
2290 (name "restbed")
2291 (version (git-version "4.6" "1" commit))
2292 (source
2293 (origin
2294 (method git-fetch)
2295 (uri (git-reference
2296 (url "https://github.com/Corvusoft/restbed/")
2297 (commit commit)))
2298 (file-name (string-append name "-" version ".tar.gz"))
2299 (sha256
2300 (base32 "0k60i5drklqqrb4khb25fzkgz9y0sncxf1sp6lh2bm1m0gh0661n"))))
2301 (build-system cmake-build-system)
2302 (inputs
2303 `(("asio" ,asio)
2304 ("catch" ,catch-framework)
2305 ("openssl" ,openssl)))
2306 (arguments
2307 `(#:tests? #f
2308 #:configure-flags
2309 '("-DBUILD_TESTS=NO"
2310 "-DBUILD_EXAMPLES=NO"
2311 "-DBUILD_SSL=NO"
2312 "-DBUILD_SHARED=NO")
2313 #:phases
2314 (modify-phases %standard-phases
2315 (add-after 'unpack 'apply-patches-and-fix-paths
2316 (lambda* (#:key inputs #:allow-other-keys)
2317 (let ((asio (assoc-ref inputs "asio"))
2318 (catch (assoc-ref inputs "catch"))
2319 (openssl (assoc-ref inputs "openssl")))
2320 (substitute* "cmake/Findasio.cmake"
2321 (("(find_path\\( asio_INCLUDE asio\\.hpp HINTS ).*$" all begin)
2322 (string-append begin " \"" asio "/include\" )")))
2323 (substitute* "cmake/Findcatch.cmake"
2324 (("(find_path\\( catch_INCLUDE catch\\.hpp HINTS ).*$" all begin)
2325 (string-append begin " \"" catch "/include\" )")))
2326 (substitute* "cmake/Findopenssl.cmake"
2327 (("(find_library\\( ssl_LIBRARY ssl ssleay32 HINTS ).*$" all begin)
2328 (string-append begin " \"" openssl "/lib\" )"))
2329 (("(find_library\\( crypto_LIBRARY crypto libeay32 HINTS ).*$" all begin)
2330 (string-append begin " \"" openssl "/lib\" )"))
2331 (("(find_path\\( ssl_INCLUDE openssl/ssl\\.h HINTS ).*$" all begin)
2332 (string-append begin " \"" openssl "/include\" )")))))))))
2333 (synopsis "Asynchronous RESTful functionality to C++11 applications")
2334 (description "Restbed is a comprehensive and consistent programming
2335 model for building applications that require seamless and secure
2336 communication over HTTP.")
2337 (home-page "https://github.com/Corvusoft/restbed")
2338 (license license:agpl3+))))
2339
2340 (define-public opendht
2341 (package
2342 (name "opendht")
2343 (version "1.8.1")
2344 (source (origin
2345 (method git-fetch)
2346 (uri (git-reference
2347 (url "https://github.com/savoirfairelinux/opendht.git")
2348 (commit version)))
2349 (file-name (git-file-name name version))
2350 (sha256
2351 (base32
2352 "0vninb5mak27wigajslyvr05vq7wbrwqhbr4wzl2nmqcb20wmlq2"))))
2353 (build-system gnu-build-system)
2354 (inputs
2355 `(("gnutls" ,gnutls)
2356 ("nettle" ,nettle)
2357 ("readline" ,readline)
2358 ("jsoncpp" ,jsoncpp)
2359 ("restbed" ,restbed)))
2360 (propagated-inputs
2361 `(("argon2" ,argon2) ; TODO: Needed for the pkg-config .pc file to work?
2362 ("msgpack" ,msgpack))) ;included in several installed headers
2363 (native-inputs
2364 `(("autoconf" ,autoconf)
2365 ("pkg-config" ,pkg-config)
2366 ("automake" ,automake)
2367 ("libtool" ,libtool)))
2368 (arguments
2369 `(#:configure-flags '("--disable-tools"
2370 "--disable-python"
2371 "--with-argon2")))
2372 (home-page "https://github.com/savoirfairelinux/opendht/")
2373 (synopsis "Distributed Hash Table (DHT) library")
2374 (description "OpenDHT is a Distributed Hash Table (DHT) library. It may
2375 be used to manage peer-to-peer network connections as needed for real time
2376 communication.")
2377 (license license:gpl3+)))
2378
2379 (define-public frrouting
2380 (package
2381 (name "frrouting")
2382 (version "6.0.2")
2383 (source (origin
2384 (method url-fetch)
2385 (uri (string-append "https://github.com/FRRouting/frr/releases/"
2386 "download/frr-" version "/frr-" version
2387 ".tar.xz"))
2388 (sha256
2389 (base32
2390 "0xfrvi62w8qlh46f504ka0skb7pm0g0p8vmdng4w90gsbirlzpdd"))))
2391 (build-system gnu-build-system)
2392 (inputs
2393 `(("c-ares" ,c-ares)
2394 ("json-c" ,json-c)
2395 ("readline" ,readline)))
2396 (native-inputs
2397 `(("perl" ,perl)
2398 ("pkg-config" ,pkg-config)
2399 ("python" ,python-wrapper)
2400 ("python-pytest" ,python-pytest)))
2401 (home-page "https://frrouting.org/")
2402 (synopsis "IP routing protocol suite")
2403 (description "FRRouting (FRR) is an IP routing protocol suite which includes
2404 protocol daemons for BGP, IS-IS, LDP, OSPF, PIM, and RIP. ")
2405 (license license:gpl2+)))