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