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