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