Commit | Line | Data |
---|---|---|
f6d9b3de | 1 | ;;; GNU Guix --- Functional package management for GNU |
5f645557 | 2 | ;;; Copyright © 2014, 2017, 2018 Ludovic Courtès <ludo@gnu.org> |
a8253fbe | 3 | ;;; Copyright © 2015, 2016, 2017, 2018 Ricardo Wurmus <rekado@elephly.net> |
a2b2aebe | 4 | ;;; Copyright © 2015 Mark H Weaver <mhw@netris.org> |
61253c4f | 5 | ;;; Copyright © 2015, 2016, 2017 Stefan Reichör <stefan@xsteve.at> |
95146623 | 6 | ;;; Copyright © 2016 Raimon Grau <raimonster@gmail.com> |
a1da1dee | 7 | ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr> |
42ff54d5 | 8 | ;;; Copyright © 2016 John Darrington <jmd@gnu.org> |
7536321e | 9 | ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr> |
d85b398b | 10 | ;;; Copyright © 2016 Eric Bavier <bavier@member.fsf.org> |
47956fa0 | 11 | ;;; Copyright © 2016, 2017 ng0 <ng0@n0.is> |
2913a942 | 12 | ;;; Copyright © 2016, 2017, 2018 Arun Isaac <arunisaac@systemreboot.net> |
b747718e | 13 | ;;; Copyright © 2016 Benz Schenk <benz.schenk@uzh.ch> |
38510546 | 14 | ;;; Copyright © 2016, 2017 Pjotr Prins <pjotr.guix@thebird.nl> |
3cd501c8 | 15 | ;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com> |
cc24bf98 | 16 | ;;; Copyright © 2017 Leo Famulari <leo@famulari.name> |
2ff17f06 | 17 | ;;; Copyright © 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il> |
3c85058c | 18 | ;;; Copyright © 2017, 2018, 2019 Rutger Helling <rhelling@mykolab.com> |
dbf87ecb | 19 | ;;; Copyright © 2017, 2019 Gábor Boskovits <boskovits@gmail.com> |
167a541f | 20 | ;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be> |
5f645557 | 21 | ;;; Copyright © 2018 Adam Van Ymeren <adam@vany.ca> |
1170198d | 22 | ;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com> |
d282fee5 | 23 | ;;; Copyright © 2018 Tonton <tonton@riseup.net> |
a234ae38 | 24 | ;;; Copyright © 2018 Clément Lassieur <clement@lassieur.org> |
f6c87714 | 25 | ;;; Copyright © 2018 Theodoros Foradis <theodoros@foradis.org> |
a8253fbe | 26 | ;;; Copyright © 2018 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> |
523533ed | 29 | ;;; Copyright © 2019 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> |
079ec547 | 35 | ;;; Copyright © 2019 Alex Griffin <a@ajgrf.com> |
13d79b64 | 36 | ;;; Copyright © 2019 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> |
f6d9b3de LC |
41 | ;;; |
42 | ;;; This file is part of GNU Guix. | |
43 | ;;; | |
44 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
45 | ;;; under the terms of the GNU General Public License as published by | |
46 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
47 | ;;; your option) any later version. | |
48 | ;;; | |
49 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
50 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
51 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
52 | ;;; GNU General Public License for more details. | |
53 | ;;; | |
54 | ;;; You should have received a copy of the GNU General Public License | |
55 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
56 | ||
8a413bca | 57 | (define-module (gnu packages networking) |
f6d9b3de LC |
58 | #:use-module ((guix licenses) #:prefix license:) |
59 | #:use-module (guix packages) | |
60 | #:use-module (guix download) | |
491f7fc0 | 61 | #:use-module (guix git-download) |
167a541f | 62 | #:use-module (guix build-system cmake) |
834a2fc1 | 63 | #:use-module (guix build-system glib-or-gtk) |
f6d9b3de | 64 | #:use-module (guix build-system gnu) |
523533ed | 65 | #:use-module (guix build-system go) |
af5faef9 | 66 | #:use-module (guix build-system perl) |
9e6c7c42 | 67 | #:use-module (guix build-system python) |
ad54d6c9 | 68 | #:use-module (guix build-system trivial) |
96945cab | 69 | #:use-module (guix utils) |
8d60dd71 | 70 | #:use-module (gnu packages) |
834a2fc1 NG |
71 | #:use-module (gnu packages admin) |
72 | #:use-module (gnu packages adns) | |
82ee141b | 73 | #:use-module (gnu packages algebra) |
834a2fc1 | 74 | #:use-module (gnu packages audio) |
de5308f5 | 75 | #:use-module (gnu packages autotools) |
5f645557 | 76 | #:use-module (gnu packages base) |
834a2fc1 | 77 | #:use-module (gnu packages bison) |
d597dda6 | 78 | #:use-module (gnu packages boost) |
998afc36 | 79 | #:use-module (gnu packages check) |
4fb5f830 | 80 | #:use-module (gnu packages code) |
834a2fc1 | 81 | #:use-module (gnu packages compression) |
13d79b64 | 82 | #:use-module (gnu packages cpp) |
1170198d | 83 | #:use-module (gnu packages crypto) |
9e6c7c42 | 84 | #:use-module (gnu packages curl) |
c2700e78 | 85 | #:use-module (gnu packages dejagnu) |
de5308f5 | 86 | #:use-module (gnu packages documentation) |
834a2fc1 | 87 | #:use-module (gnu packages flex) |
82ee141b | 88 | #:use-module (gnu packages gettext) |
961012a0 | 89 | #:use-module (gnu packages glib) |
167a541f | 90 | #:use-module (gnu packages gnome) |
834a2fc1 NG |
91 | #:use-module (gnu packages gnupg) |
92 | #:use-module (gnu packages gtk) | |
1170198d | 93 | #:use-module (gnu packages image) |
9c798f90 | 94 | #:use-module (gnu packages libidn) |
834a2fc1 NG |
95 | #:use-module (gnu packages linux) |
96 | #:use-module (gnu packages lua) | |
5f645557 | 97 | #:use-module (gnu packages multiprecision) |
89e34644 | 98 | #:use-module (gnu packages kerberos) |
834a2fc1 | 99 | #:use-module (gnu packages ncurses) |
e0fa6413 PN |
100 | #:use-module (gnu packages nettle) |
101 | #:use-module (gnu packages password-utils) | |
d85b398b | 102 | #:use-module (gnu packages pcre) |
834a2fc1 | 103 | #:use-module (gnu packages perl) |
5ccde207 | 104 | #:use-module (gnu packages perl-check) |
998afc36 | 105 | #:use-module (gnu packages pkg-config) |
13d79b64 | 106 | #:use-module (gnu packages pretty-print) |
834a2fc1 | 107 | #:use-module (gnu packages python) |
a68b4514 | 108 | #:use-module (gnu packages python-web) |
44d10b1f | 109 | #:use-module (gnu packages python-xyz) |
d016b60f | 110 | #:use-module (gnu packages qt) |
c2700e78 | 111 | #:use-module (gnu packages readline) |
e0fa6413 | 112 | #:use-module (gnu packages serialization) |
cd0322a3 | 113 | #:use-module (gnu packages sqlite) |
d016b60f | 114 | #:use-module (gnu packages ssh) |
4fb5f830 TGR |
115 | #:use-module (gnu packages textutils) |
116 | #:use-module (gnu packages tls) | |
af5faef9 | 117 | #:use-module (gnu packages valgrind) |
dbf87ecb | 118 | #:use-module (gnu packages web) |
1170198d | 119 | #:use-module (gnu packages wxwidgets) |
b3623b6f | 120 | #:use-module (gnu packages xml) |
af5faef9 | 121 | #:use-module (ice-9 match)) |
f6d9b3de | 122 | |
f3fda298 TGR |
123 | ;; The gnu.org ‘home’ for this GNU project is a directory listing with 1.6.0 as |
124 | ;; the latest version. The author's git repository, mentioned in the 1.6.0 | |
125 | ;; README and otherwise legit-looking, contains a proper 1.7.0 release tarball | |
126 | ;; with many OUI updates. Use it, even though it's also several years old now. | |
c791efde JD |
127 | (define-public macchanger |
128 | (package | |
129 | (name "macchanger") | |
f3fda298 TGR |
130 | (version "1.7.0") |
131 | (source | |
132 | (origin | |
133 | (method url-fetch) | |
134 | (uri (string-append "https://github.com/alobbs/macchanger/" | |
135 | "releases/download/" version "/" | |
136 | name "-" version ".tar.gz")) | |
137 | (sha256 | |
138 | (base32 "1gs5m0jxyprdp00w2qkbnaqm3ilkjz0q1gqdg4nzdm8g4xy73qns")))) | |
c791efde | 139 | (build-system gnu-build-system) |
6fd52309 | 140 | (home-page "https://www.gnu.org/software/macchanger/") |
a3947cb1 | 141 | (synopsis "Viewing and manipulating MAC addresses of network interfaces") |
c791efde JD |
142 | (description "GNU MAC Changer is a utility for viewing and changing MAC |
143 | addresses of networking devices. New addresses may be set explicitly or | |
144 | randomly. They can include MAC addresses of the same or other hardware vendors | |
38510546 | 145 | or, more generally, MAC addresses of the same category of hardware.") |
c791efde JD |
146 | (license license:gpl2+))) |
147 | ||
1e61e22f TUBK |
148 | (define-public miredo |
149 | (package | |
150 | (name "miredo") | |
151 | (version "1.2.6") | |
152 | (source (origin | |
153 | (method url-fetch) | |
154 | (uri (string-append "http://www.remlab.net/files/miredo/miredo-" | |
155 | version ".tar.xz")) | |
156 | (sha256 | |
157 | (base32 | |
158 | "0j9ilig570snbmj48230hf7ms8kvcwi2wblycqrmhh85lksd49ps")))) | |
159 | (build-system gnu-build-system) | |
160 | (arguments | |
161 | '(#:phases | |
162 | (modify-phases %standard-phases | |
163 | ;; The checkconf test in src/ requires network access. | |
164 | (add-before | |
165 | 'check 'disable-checkconf-test | |
166 | (lambda _ | |
167 | (substitute* "src/Makefile" | |
366c1cbb MW |
168 | (("^TESTS = .*") "TESTS = \n")) |
169 | #t))))) | |
1e61e22f TUBK |
170 | (home-page "http://www.remlab.net/miredo/") |
171 | (synopsis "Teredo IPv6 tunneling software") | |
172 | (description | |
173 | "Miredo is an implementation (client, relay, server) of the Teredo | |
174 | specification, which provides IPv6 Internet connectivity to IPv6 enabled hosts | |
175 | residing in IPv4-only networks, even when they are behind a NAT device.") | |
176 | (license license:gpl2+))) | |
177 | ||
f6d9b3de LC |
178 | (define-public socat |
179 | (package | |
180 | (name "socat") | |
4c7eeee4 | 181 | (version "1.7.3.3") |
f6d9b3de LC |
182 | (source (origin |
183 | (method url-fetch) | |
184 | (uri (string-append | |
185 | "http://www.dest-unreach.org/socat/download/socat-" | |
186 | version ".tar.bz2")) | |
187 | (sha256 | |
188 | (base32 | |
4c7eeee4 | 189 | "0jnhjijyq74g3wa4ph0am83z6vq7qna7ac0xqjma8s4197z3zmhd")))) |
f6d9b3de LC |
190 | (build-system gnu-build-system) |
191 | (arguments '(#:tests? #f)) ;no 'check' phase | |
192 | (inputs `(("openssl" ,openssl))) | |
193 | (home-page "http://www.dest-unreach.org/socat/") | |
194 | (synopsis | |
195 | "Open bidirectional communication channels from the command line") | |
196 | (description | |
197 | "socat is a relay for bidirectional data transfer between two independent | |
198 | data channels---files, pipes, devices, sockets, etc. It can create | |
199 | \"listening\" sockets, named pipes, and pseudo terminals. | |
200 | ||
201 | socat can be used, for instance, as TCP port forwarder, as a shell interface | |
202 | to UNIX sockets, IPv6 relay, for redirecting TCP oriented programs to a serial | |
203 | line, to logically connect serial lines on different computers, or to | |
204 | establish a relatively secure environment (su and chroot) for running client | |
e881752c | 205 | or server shell scripts with network connections.") |
f6d9b3de | 206 | (license license:gpl2))) |
603090d8 | 207 | |
c4947d0e JD |
208 | (define-public tcp-wrappers |
209 | (package | |
210 | (name "tcp-wrappers") | |
211 | (version "7.6") | |
212 | (source (origin | |
213 | (method url-fetch) | |
214 | (uri (string-append | |
215 | "ftp://ftp.porcupine.org/pub/security/tcp_wrappers_" | |
216 | version ".tar.gz")) | |
217 | (sha256 | |
218 | (base32 | |
219 | "0p9ilj4v96q32klavx0phw9va21fjp8vpk11nbh6v2ppxnnxfhwm")))) | |
220 | (build-system gnu-build-system) | |
221 | (arguments | |
222 | `(#:phases | |
223 | (modify-phases %standard-phases | |
224 | (delete 'configure) ; there is no configure script | |
225 | (delete 'check) ; there are no tests | |
226 | (replace 'build | |
227 | (lambda _ | |
228 | (chmod "." #o755) | |
229 | ;; Upstream doesn't generate a shared library. So we have to do it. | |
230 | (setenv "CC" "gcc -fno-builtin -fPIC") | |
231 | (substitute* "Makefile" | |
232 | (("^(all[^\n]*)" line) (string-append line " libwrap.so\n | |
233 | libwrap.so: $(LIB_OBJ)\n | |
234 | \tgcc -shared $^ -o $@\n"))) | |
235 | ;; Deal with some gcc breakage. | |
236 | (substitute* "percent_m.c" | |
237 | (("extern char .sys_errlist.*;") "")) | |
238 | (substitute* "scaffold.c" | |
239 | (("extern char .malloc.*;") "")) | |
240 | ;; This, believe it or not, is the recommended way to build! | |
366c1cbb | 241 | (invoke "make" "REAL_DAEMON_DIR=/etc" "linux"))) |
c4947d0e JD |
242 | ;; There is no make install stage, so we have to do it ourselves. |
243 | (replace 'install | |
244 | (lambda _ | |
245 | (let ((out (assoc-ref %outputs "out")) | |
246 | (man-pages `("hosts_access.3" | |
247 | "hosts_access.5" | |
248 | "hosts_options.5" | |
249 | "tcpd.8" | |
250 | "tcpdchk.8" | |
251 | "tcpdmatch.8")) | |
252 | (libs `("libwrap.a" | |
253 | "libwrap.so")) | |
254 | (headers `("tcpd.h")) | |
255 | (bins `("safe_finger" | |
256 | "tcpd" | |
257 | "tcpdchk" | |
258 | "tcpdmatch" | |
259 | "try-from"))) | |
260 | (for-each | |
261 | (lambda (x) | |
262 | (install-file x (string-append out "/include"))) | |
263 | headers) | |
264 | (for-each | |
265 | (lambda (x) | |
266 | (install-file x (string-append out "/share/man/man" | |
267 | (string-take-right x 1)))) | |
268 | man-pages) | |
269 | (for-each | |
270 | (lambda (x) | |
271 | (install-file x (string-append out "/lib/"))) | |
272 | libs) | |
273 | (for-each | |
274 | (lambda (x) | |
275 | (install-file x (string-append out "/bin/"))) | |
366c1cbb MW |
276 | bins)) |
277 | #t))))) | |
c4947d0e JD |
278 | (home-page "http://www.porcupine.org") |
279 | (synopsis "Monitor and filter incoming requests for network services") | |
280 | (description "With this package you can monitor and filter incoming requests for | |
281 | network services. It includes a library which may be used by daemons to | |
282 | transparently check connection attempts against an access control list.") | |
283 | (license (license:non-copyleft "file://DISCLAIMER" | |
284 | "See the file DISCLAIMER in the distribution.")))) | |
285 | ||
286 | ||
603090d8 RW |
287 | (define-public zeromq |
288 | (package | |
289 | (name "zeromq") | |
5d1f5b30 | 290 | (version "4.3.2") |
603090d8 RW |
291 | (source (origin |
292 | (method url-fetch) | |
5d1f5b30 MB |
293 | (uri (string-append "https://github.com/zeromq/libzmq/releases" |
294 | "/download/v" version "/zeromq-" version ".tar.gz")) | |
603090d8 RW |
295 | (sha256 |
296 | (base32 | |
5d1f5b30 | 297 | "0qzp80ky4y2k7k1ya09v9gkivvfbz2km813snrb8jhnn634bbmzb")))) |
603090d8 | 298 | (build-system gnu-build-system) |
5fbba846 | 299 | (home-page "https://zeromq.org") |
603090d8 RW |
300 | (synopsis "Library for message-based applications") |
301 | (description | |
302 | "The 0MQ lightweight messaging kernel is a library which extends the | |
303 | standard socket interfaces with features traditionally provided by specialized | |
304 | messaging middle-ware products. 0MQ sockets provide an abstraction of | |
305 | asynchronous message queues, multiple messaging patterns, message | |
306 | filtering (subscriptions), seamless access to multiple transport protocols and | |
307 | more.") | |
308 | (license license:lgpl3+))) | |
a2b2aebe | 309 | |
433dc746 CB |
310 | (define-public czmq |
311 | (package | |
312 | (name "czmq") | |
f02ab17b | 313 | (version "4.2.0") |
433dc746 CB |
314 | (source (origin |
315 | (method url-fetch) | |
316 | (uri (string-append | |
317 | "https://github.com/zeromq/" name | |
318 | "/releases/download/v" version | |
319 | "/" name "-" version ".tar.gz")) | |
320 | (sha256 | |
321 | (base32 | |
f02ab17b | 322 | "1szciz62sk3fm4ga9qjpxz0n0lazvphm32km95bq92ncng12kayg")))) |
433dc746 CB |
323 | (build-system gnu-build-system) |
324 | (arguments | |
f02ab17b MB |
325 | '(#:configure-flags '("--enable-drafts") |
326 | #:phases (modify-phases %standard-phases | |
327 | (add-before 'check 'patch-tests | |
328 | (lambda _ | |
329 | ;; XXX FIXME: Disable the zproc test, which fails on some | |
330 | ;; hardware: <https://github.com/zeromq/czmq/issues/2007>. | |
331 | (substitute* "src/czmq_selftest.c" | |
332 | (("\\{ \"zproc\", zproc_test.*") | |
333 | "")) | |
334 | #t))))) | |
433dc746 CB |
335 | (inputs |
336 | `(("zeromq" ,zeromq))) | |
337 | (home-page "http://zeromq.org") | |
338 | (synopsis "High-level C bindings for ØMQ") | |
339 | (description | |
340 | "czmq provides bindings for the ØMQ core API that hides the differences | |
341 | between different versions of ØMQ.") | |
342 | (license license:mpl2.0))) | |
343 | ||
f6c87714 TF |
344 | (define-public cppzmq |
345 | (let ((revision "0") | |
346 | (commit "d9f0f016c07046742738c65e1eb84722ae32d7d4")) | |
347 | (package | |
348 | (name "cppzmq") | |
349 | (version (string-append "4.2.2-" revision "." | |
350 | (string-take commit 7))) | |
351 | (source (origin | |
352 | (method git-fetch) | |
353 | (uri (git-reference | |
354 | (url "https://github.com/zeromq/cppzmq") | |
355 | (commit commit))) | |
356 | (sha256 | |
357 | (base32 | |
358 | "1gmqlm00y6xpa5m6d4ajq3ww63n2w7h4sy997wj81vcqmqx45b1f")) | |
359 | (file-name (string-append name "-" version "-checkout")))) | |
360 | (build-system cmake-build-system) | |
361 | (arguments '(#:tests? #f)) ; No tests. | |
362 | (native-inputs | |
363 | `(("pkg-config" ,pkg-config))) | |
364 | (inputs | |
365 | `(("zeromq" ,zeromq))) | |
366 | (home-page "http://zeromq.org") | |
367 | (synopsis "C++ bindings for the ØMQ messaging library") | |
368 | (description | |
369 | "This package provides header-only C++ bindings for ØMQ. The header | |
370 | files contain direct mappings of the abstractions provided by the ØMQ C API.") | |
371 | (license license:expat)))) | |
372 | ||
2c1286f4 SB |
373 | (define-public librdkafka |
374 | (package | |
375 | (name "librdkafka") | |
376 | (version "0.9.1") | |
377 | (source (origin | |
378 | (method url-fetch) | |
379 | (uri (string-append | |
380 | "https://github.com/edenhill/librdkafka/archive/" | |
381 | version ".tar.gz")) | |
382 | (file-name (string-append name "-" version ".tar.gz")) | |
383 | (sha256 | |
384 | (base32 | |
385 | "10ldx7g7ymmg17snzx78vy4n8ma1rjx0agzi34g15j2fk867xmas")))) | |
386 | (build-system gnu-build-system) | |
387 | (arguments | |
388 | '(#:phases | |
389 | (modify-phases %standard-phases | |
390 | (replace 'configure | |
391 | ;; its custom configure script doesn't understand 'CONFIG_SHELL'. | |
392 | (lambda* (#:key outputs #:allow-other-keys) | |
393 | (let ((out (assoc-ref outputs "out"))) | |
394 | ;; librdkafka++.so lacks RUNPATH for librdkafka.so | |
395 | (setenv "LDFLAGS" | |
396 | (string-append "-Wl,-rpath=" out "/lib")) | |
366c1cbb MW |
397 | (invoke "./configure" |
398 | (string-append "--prefix=" out)))))))) | |
2c1286f4 SB |
399 | (native-inputs |
400 | `(("python" ,python-wrapper))) | |
401 | (propagated-inputs | |
402 | `(("zlib" ,zlib))) ; in the Libs.private field of rdkafka.pc | |
403 | (home-page "https://github.com/edenhill/librdkafka") | |
404 | (synopsis "Apache Kafka C/C++ client library") | |
405 | (description | |
406 | "librdkafka is a C library implementation of the Apache Kafka protocol, | |
407 | containing both Producer and Consumer support.") | |
408 | (license license:bsd-2))) | |
409 | ||
a2b2aebe MW |
410 | (define-public libndp |
411 | (package | |
412 | (name "libndp") | |
9526d861 | 413 | (version "1.7") |
a2b2aebe MW |
414 | (source (origin |
415 | (method url-fetch) | |
416 | (uri (string-append "http://libndp.org/files/" | |
417 | name "-" version ".tar.gz")) | |
418 | (sha256 | |
419 | (base32 | |
9526d861 | 420 | "1dlinhl39va00v55qygjc9ap77yqf7xvn4rwmvdr49xhzzxhlj1c")))) |
a2b2aebe MW |
421 | (build-system gnu-build-system) |
422 | (home-page "http://libndp.org/") | |
423 | (synopsis "Library for Neighbor Discovery Protocol") | |
424 | (description | |
425 | "libndp contains a library which provides a wrapper for IPv6 Neighbor | |
426 | Discovery Protocol. It also provides a tool named ndptool for sending and | |
427 | receiving NDP messages.") | |
428 | (license license:lgpl2.1+))) | |
5df2316d MW |
429 | |
430 | (define-public ethtool | |
431 | (package | |
432 | (name "ethtool") | |
070dc950 | 433 | (version "5.4") |
5df2316d MW |
434 | (source (origin |
435 | (method url-fetch) | |
436 | (uri (string-append "mirror://kernel.org/software/network/" | |
956a14b4 | 437 | "ethtool/ethtool-" version ".tar.xz")) |
5df2316d MW |
438 | (sha256 |
439 | (base32 | |
070dc950 | 440 | "0srbqp4a3x9ryrbm5q854375y04ni8j0bmsrl89nmsyn4x4ixy12")))) |
5df2316d MW |
441 | (build-system gnu-build-system) |
442 | (home-page "https://www.kernel.org/pub/software/network/ethtool/") | |
443 | (synopsis "Display or change Ethernet device settings") | |
444 | (description | |
445 | "ethtool can be used to query and change settings such as speed, | |
446 | auto-negotiation and checksum offload on many network devices, especially | |
447 | Ethernet devices.") | |
448 | (license license:gpl2))) | |
24a848c8 SR |
449 | |
450 | (define-public ifstatus | |
451 | (package | |
452 | (name "ifstatus") | |
453 | (version "1.1.0") | |
454 | (source (origin | |
455 | (method url-fetch) | |
de67e922 LF |
456 | (uri (string-append "mirror://sourceforge/ifstatus/ifstatus/" |
457 | "ifstatus%20v" version "/ifstatus-v" | |
24a848c8 SR |
458 | version ".tar.gz")) |
459 | (sha256 | |
460 | (base32 | |
461 | "045cbsq9ps32j24v8y5hpyqxnqn9mpaf3mgvirlhgpqyb9jsia0c")) | |
462 | (modules '((guix build utils))) | |
463 | (snippet | |
6cbee49d MW |
464 | '(begin |
465 | (substitute* "Main.h" | |
466 | (("#include <stdio.h>") | |
467 | "#include <stdio.h>\n#include <stdlib.h>")) | |
468 | #t)))) | |
24a848c8 SR |
469 | (build-system gnu-build-system) |
470 | (arguments | |
471 | '(#:tests? #f ; no "check" target | |
472 | #:phases | |
473 | (modify-phases %standard-phases | |
474 | (delete 'configure) ; no configure script | |
475 | (replace 'install | |
476 | (lambda* (#:key outputs #:allow-other-keys) | |
477 | (let* ((out (assoc-ref outputs "out")) | |
478 | (bin (string-append out "/bin"))) | |
479 | (mkdir-p bin) | |
480 | (copy-file "ifstatus" | |
366c1cbb MW |
481 | (string-append bin "/ifstatus"))) |
482 | #t))))) | |
24a848c8 SR |
483 | (inputs `(("ncurses" ,ncurses))) |
484 | (home-page "http://ifstatus.sourceforge.net/graphic/index.html") | |
485 | (synopsis "Text based network interface status monitor") | |
486 | (description | |
487 | "IFStatus is a simple, easy-to-use program for displaying commonly | |
8874f766 | 488 | needed/wanted real-time traffic statistics of multiple network |
24a848c8 SR |
489 | interfaces, with a simple and efficient view on the command line. It is |
490 | intended as a substitute for the PPPStatus and EthStatus projects.") | |
8874f766 | 491 | (license license:gpl2+))) |
95146623 RG |
492 | |
493 | (define-public nload | |
494 | (package | |
495 | (name "nload") | |
496 | (version "0.7.4") | |
497 | (source (origin | |
498 | (method url-fetch) | |
de67e922 LF |
499 | (uri (string-append "mirror://sourceforge/nload/nload/" version |
500 | "/nload-" version ".tar.gz")) | |
95146623 RG |
501 | (sha256 |
502 | (base32 | |
503 | "1rb9skch2kgqzigf19x8bzk211jdfjfdkrcvaqyj89jy2pkm3h61")))) | |
504 | (build-system gnu-build-system) | |
505 | (inputs `(("ncurses" ,ncurses))) | |
506 | (home-page "http://www.roland-riegel.de/nload/") | |
507 | (synopsis "Realtime console network usage monitor") | |
508 | (description | |
509 | "Nload is a console application which monitors network traffic and | |
510 | bandwidth usage in real time. It visualizes the in- and outgoing traffic using | |
d1e4ad1b | 511 | two graphs, and provides additional info like total amount of transferred data |
95146623 RG |
512 | and min/max network usage.") |
513 | (license license:gpl2+))) | |
998afc36 TGR |
514 | |
515 | (define-public iodine | |
516 | (package | |
517 | (name "iodine") | |
518 | (version "0.7.0") | |
519 | (source (origin | |
520 | (method url-fetch) | |
521 | (uri (string-append "http://code.kryo.se/" name "/" | |
522 | name "-" version ".tar.gz")) | |
523 | (sha256 | |
524 | (base32 | |
525 | "0gh17kcxxi37k65zm4gqsvbk3aw7yphcs3c02pn1c4s2y6n40axd")))) | |
526 | (build-system gnu-build-system) | |
527 | (arguments | |
528 | '(#:phases | |
529 | (modify-phases %standard-phases | |
530 | (delete 'configure) | |
60880ac5 TGR |
531 | (add-before 'build 'fix-ifconfig-path |
532 | ;; This package works only with the net-tools version of ifconfig. | |
533 | (lambda* (#:key inputs #:allow-other-keys) | |
534 | (substitute* "src/tun.c" | |
535 | (("PATH=[^ ]* ") | |
366c1cbb MW |
536 | (string-append (assoc-ref inputs "net-tools") "/bin/"))) |
537 | #t)) | |
998afc36 | 538 | (add-before 'check 'delete-failing-tests |
60880ac5 | 539 | ;; Avoid https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802105. |
998afc36 TGR |
540 | (lambda _ |
541 | (substitute* "tests/common.c" | |
542 | (("tcase_add_test\\(tc, \ | |
543 | test_parse_format_ipv(4(|_listen_all|_mapped_ipv6)|6)\\);") | |
366c1cbb MW |
544 | "")) |
545 | #t))) | |
998afc36 TGR |
546 | #:make-flags (list "CC=gcc" |
547 | (string-append "prefix=" (assoc-ref %outputs "out"))) | |
548 | #:test-target "test")) | |
60880ac5 TGR |
549 | (inputs `(("net-tools" ,net-tools) |
550 | ("zlib" ,zlib))) | |
998afc36 TGR |
551 | (native-inputs `(("check" ,check) |
552 | ("pkg-config" ,pkg-config))) | |
553 | (home-page "http://code.kryo.se/iodine/") | |
554 | (synopsis "Tunnel IPv4 data through a DNS server") | |
555 | (description "Iodine tunnels IPv4 data through a DNS server. This | |
556 | can be useful in different situations where internet access is firewalled, but | |
557 | DNS queries are allowed. The bandwidth is asymmetrical, with limited upstream | |
558 | and up to 1 Mbit/s downstream.") | |
559 | ;; src/md5.[ch] is released under the zlib license | |
560 | (license (list license:isc license:zlib)))) | |
834a2fc1 | 561 | |
9c798f90 | 562 | (define-public whois |
563 | (package | |
564 | (name "whois") | |
1256ac18 | 565 | (version "5.5.5") |
9c798f90 | 566 | (source |
567 | (origin | |
568 | (method url-fetch) | |
569 | (uri (string-append "mirror://debian/pool/main/w/whois/" | |
cc08576d | 570 | "whois_" version ".tar.xz")) |
9c798f90 | 571 | (sha256 |
1256ac18 | 572 | (base32 "03akwma24gzfnsmwpjxmkzmcaxzg6fc68hmyaz0xmsl28i28l3n3")))) |
9c798f90 | 573 | (build-system gnu-build-system) |
9c798f90 | 574 | (arguments |
5ac1143d | 575 | `(#:tests? #f ; no test suite |
9c798f90 | 576 | #:make-flags (list "CC=gcc" |
577 | (string-append "prefix=" (assoc-ref %outputs "out"))) | |
578 | #:phases | |
579 | (modify-phases %standard-phases | |
5ac1143d | 580 | (delete 'configure) ; no configure script |
9c798f90 | 581 | (add-before 'build 'setenv |
582 | (lambda _ | |
583 | (setenv "HAVE_ICONV" "1") | |
268b3802 | 584 | #t))))) |
9c798f90 | 585 | (inputs |
6ce76bdc | 586 | `(("libidn2" ,libidn2))) |
9c798f90 | 587 | (native-inputs |
7c90d0f4 | 588 | `(("gettext" ,gettext-minimal) |
eb6263f2 MB |
589 | ("perl" ,perl) |
590 | ("pkg-config" ,pkg-config))) | |
5ac1143d TGR |
591 | (synopsis "Intelligent client for the WHOIS directory service") |
592 | (description | |
593 | "whois searches for an object in a @dfn{WHOIS} (RFC 3912) database. | |
594 | It is commonly used to look up the registered users or assignees of an Internet | |
595 | resource, such as a domain name, an IP address block, or an autonomous system. | |
596 | It can automatically select the appropriate server for most queries. | |
597 | ||
598 | For historical reasons, this package also includes @command{mkpasswd}, which | |
599 | encrypts passwords using @code{crypt(3)} and is unrelated to the Expect command | |
600 | of the same name.") | |
9c798f90 | 601 | (home-page "https://github.com/rfc1036/whois") |
602 | (license license:gpl2+))) | |
603 | ||
834a2fc1 NG |
604 | (define-public wireshark |
605 | (package | |
606 | (name "wireshark") | |
7536321e | 607 | (version "3.2.1") |
834a2fc1 NG |
608 | (source |
609 | (origin | |
610 | (method url-fetch) | |
611 | (uri (string-append "https://www.wireshark.org/download/src/wireshark-" | |
d016b60f | 612 | version ".tar.xz")) |
834a2fc1 | 613 | (sha256 |
7536321e | 614 | (base32 "0nz84zyhs4177ljxmv34vgc9kgg7ssxhxa4mssxqwh6nb00697sq")))) |
2b6ab17f | 615 | (build-system cmake-build-system) |
834a2fc1 | 616 | (arguments |
2b6ab17f | 617 | `(#:phases |
a234ae38 | 618 | (modify-phases %standard-phases |
2b6ab17f NG |
619 | (add-after 'unpack 'remove-failing-test |
620 | ;; Test 31/32 fails with errors like "Program reassemble_test is | |
621 | ;; not available". Skipping it for now. | |
a234ae38 | 622 | (lambda _ |
2b6ab17f NG |
623 | (substitute* "CMakeLists.txt" |
624 | (("suite_unittests" all) (string-append "# " all))) | |
625 | #t))) | |
626 | ;; Build process chokes during `validate-runpath' phase. | |
627 | ;; | |
628 | ;; Errors are like the following: | |
629 | ;; "/gnu/store/...wireshark-3.0.0/lib/wireshark/plugins/3.0/epan/ethercat.so: | |
630 | ;; error: depends on 'libwireshark.so.12', which cannot be found in | |
631 | ;; RUNPATH". That is, "/gnu/store/...wireshark-3.0.0./lib" doesn't | |
632 | ;; belong to RUNPATH. | |
633 | ;; | |
634 | ;; That’s not a problem in practice because "ethercat.so" is a plugin, | |
635 | ;; so it’s dlopen’d by a process that already provides "libwireshark". | |
636 | ;; For now, we disable this phase. | |
637 | #:validate-runpath? #f)) | |
638 | (inputs | |
639 | `(("c-ares" ,c-ares) | |
640 | ("glib" ,glib) | |
641 | ("gnutls" ,gnutls) | |
642 | ("libcap" ,libcap) | |
643 | ("libgcrypt" ,libgcrypt) | |
644 | ("libnl" ,libnl) | |
645 | ("libpcap" ,libpcap) | |
646 | ("libssh" ,libssh) | |
647 | ("libxml2" ,libxml2) | |
648 | ("lz4" ,lz4) | |
649 | ("lua" ,lua-5.2) ;Lua 5.3 unsupported | |
650 | ("krb5" ,mit-krb5) | |
651 | ("qtbase" ,qtbase) | |
652 | ("qtmultimedia" ,qtmultimedia) | |
653 | ("qtsvg" ,qtsvg) | |
654 | ("sbc" ,sbc) | |
655 | ("snappy" ,snappy) | |
656 | ("zlib" ,zlib))) | |
657 | (native-inputs | |
658 | `(("bison" ,bison) | |
659 | ("doxygen" ,doxygen) | |
660 | ("flex" ,flex) | |
661 | ("gettext" ,gettext-minimal) | |
662 | ("perl" ,perl) | |
663 | ("pkg-config" ,pkg-config) | |
664 | ("python" ,python-wrapper) | |
665 | ("qttools" ,qttools))) | |
d016b60f | 666 | (synopsis "Network traffic analyzer") |
834a2fc1 NG |
667 | (description "Wireshark is a network protocol analyzer, or @dfn{packet |
668 | sniffer}, that lets you capture and interactively browse the contents of | |
669 | network frames.") | |
d016b60f NG |
670 | (home-page "https://www.wireshark.org/") |
671 | (license license:gpl2+))) | |
82ee141b | 672 | |
61253c4f SR |
673 | (define-public fping |
674 | (package | |
675 | (name "fping") | |
bc9c3dc3 | 676 | (version "4.2") |
61253c4f SR |
677 | (source |
678 | (origin | |
679 | (method url-fetch) | |
680 | (uri (string-append "https://fping.org/dist/fping-" | |
681 | version ".tar.gz")) | |
682 | (sha256 | |
bc9c3dc3 | 683 | (base32 "0jmnf4vmr43aiwk3h2b5qdsb95gxar8gz1yli8fswnm9nrs9ccvx")))) |
61253c4f | 684 | (build-system gnu-build-system) |
25706b8f | 685 | (home-page "https://fping.org/") |
61253c4f SR |
686 | (synopsis "Send ICMP ECHO_REQUEST packets to network hosts") |
687 | (description | |
688 | "fping is a ping like program which uses the Internet Control Message | |
689 | Protocol (ICMP) echo request to determine if a target host is responding. | |
690 | fping differs from ping in that you can specify any number of targets on the | |
691 | command line, or specify a file containing the lists of targets to ping. | |
692 | Instead of sending to one target until it times out or replies, fping will | |
693 | send out a ping packet and move on to the next target in a round-robin | |
694 | fashion.") | |
695 | (license license:expat))) | |
696 | ||
a68b4514 TGR |
697 | (define-public gandi.cli |
698 | (package | |
699 | (name "gandi.cli") | |
55c08305 | 700 | (version "1.5") |
a68b4514 TGR |
701 | (source |
702 | (origin | |
703 | (method url-fetch) | |
704 | (uri (pypi-uri name version)) | |
705 | (sha256 | |
55c08305 | 706 | (base32 "110wc9zgxsrvw4yzp21p0ian5lcf7vhcpxhnmsc4fg9pzl2bwxd5")))) |
a68b4514 TGR |
707 | (build-system python-build-system) |
708 | (arguments | |
709 | `(#:phases | |
710 | (modify-phases %standard-phases | |
711 | (add-after 'unpack 'embed-store-file-names | |
712 | (lambda _ | |
713 | (substitute* (list "gandi/cli/modules/cert.py" | |
714 | "gandi/cli/tests/commands/test_certificate.py") | |
715 | (("openssl") (which "openssl"))) | |
716 | #t)) | |
717 | (add-after 'install 'install-documentation | |
718 | ;; The included man page may be outdated but we install it anyway, | |
719 | ;; since it's mentioned in 'gandi --help' and better than nothing. | |
720 | (lambda* (#:key outputs #:allow-other-keys) | |
721 | (let* ((out (assoc-ref outputs "out")) | |
722 | (man1 (string-append out "/share/man/man1"))) | |
723 | (mkdir-p man1) | |
724 | (with-output-to-file (string-append man1 "/gandi.1") | |
725 | (lambda _ | |
726 | (invoke "rst2man.py" "gandicli.man.rst"))) | |
727 | #t)))))) | |
728 | (native-inputs | |
729 | `(("python-docutils" ,python-docutils) ; for rst2man.py | |
730 | ("python-pytest-cov" ,python-pytest-cov) | |
731 | ("python-tox" ,python-tox))) | |
732 | (inputs | |
733 | `(("openssl" ,openssl) | |
734 | ("python-click" ,python-click) | |
735 | ("python-ipy" ,python-ipy) | |
736 | ("python-pyyaml" ,python-pyyaml) | |
737 | ("python-requests" ,python-requests))) | |
738 | (home-page "https://cli.gandi.net") | |
739 | (synopsis "Command-line interface to the Gandi.net Web API") | |
740 | (description | |
741 | "This package provides a command-line client (@command{gandi}) to buy, | |
742 | manage, and delete Internet resources from Gandi.net such as domain names, | |
743 | virtual machines, and certificates.") | |
744 | (license license:gpl3+))) | |
745 | ||
03981f90 MC |
746 | (define-public go-netns |
747 | (let ((commit "13995c7128ccc8e51e9a6bd2b551020a27180abd") | |
748 | (revision "1")) | |
749 | (package | |
750 | (name "go-netns") | |
751 | (version (git-version "0.0.0" revision commit)) | |
752 | (source (origin | |
753 | (method git-fetch) | |
754 | (uri (git-reference | |
755 | (url "https://github.com/vishvananda/netns.git") | |
756 | (commit commit))) | |
757 | (file-name (git-file-name name version)) | |
758 | (sha256 | |
759 | (base32 | |
760 | "1zk6w8158qi4niva5rijchbv9ixgmijsgqshh54wdaav4xrhjshn")))) | |
761 | (build-system go-build-system) | |
762 | (arguments | |
763 | `(#:import-path "github.com/vishvananda/netns" | |
764 | #:tests? #f)) ;tests require root privileges | |
765 | (home-page "https://github.com/vishvananda/netns") | |
766 | (synopsis "Simple network namespace handling for Go") | |
767 | (description "The netns package provides a simple interface for | |
768 | handling network namespaces in Go.") | |
769 | (license license:asl2.0)))) | |
770 | ||
523533ed MC |
771 | (define-public go-sctp |
772 | ;; docker-libnetwork-cmd-proxy requires this exact commit. | |
773 | (let ((commit "07191f837fedd2f13d1ec7b5f885f0f3ec54b1cb") | |
774 | (revision "1")) | |
775 | (package | |
776 | (name "go-sctp") | |
777 | (version (git-version "0.0.0" revision commit)) | |
778 | (source (origin | |
779 | (method git-fetch) | |
780 | (uri (git-reference | |
781 | (url "https://github.com/ishidawataru/sctp.git") | |
782 | (commit commit))) | |
783 | (file-name (git-file-name name version)) | |
784 | (sha256 | |
785 | (base32 | |
786 | "1mk9ncm10gwi5pn5wcw4skbyf4qg7n5qdf1mim4gf3mrckvi6g6h")))) | |
787 | (build-system go-build-system) | |
788 | (arguments | |
789 | `(#:import-path "github.com/ishidawataru/sctp")) | |
790 | (home-page "https://github.com/ishidawataru/sctp") | |
791 | (synopsis "SCTP library for the Go programming language") | |
792 | (description "This library provides methods for using the stream control | |
793 | transmission protocol (SCTP) in a Go application.") | |
794 | (license license:asl2.0)))) | |
795 | ||
82ee141b TGR |
796 | (define-public httping |
797 | (package | |
798 | (name "httping") | |
2f968727 | 799 | (version "2.5") |
82ee141b TGR |
800 | (source |
801 | (origin | |
802 | (method url-fetch) | |
803 | (uri (string-append "https://www.vanheusden.com/httping/httping-" | |
804 | version ".tgz")) | |
805 | (sha256 | |
806 | (base32 | |
2f968727 | 807 | "1y7sbgkhgadmd93x1zafqc4yp26ssiv16ni5bbi9vmvvdl55m29y")))) |
82ee141b TGR |
808 | (build-system gnu-build-system) |
809 | (native-inputs | |
b94a6ca0 | 810 | `(("gettext" ,gettext-minimal))) |
82ee141b TGR |
811 | (inputs |
812 | `(("fftw" ,fftw) | |
813 | ("ncurses" ,ncurses) | |
814 | ("openssl" ,openssl))) | |
815 | (arguments | |
816 | `(#:make-flags (list "CC=gcc" | |
817 | (string-append "DESTDIR=" (assoc-ref %outputs "out")) | |
818 | "PREFIX=") | |
819 | #:tests? #f)) ; no tests | |
820 | (home-page "https://www.vanheusden.com/httping/") | |
821 | (synopsis "Web server latency and throughput monitor") | |
822 | (description | |
823 | "httping measures how long it takes to connect to a web server, send an | |
824 | HTTP(S) request, and receive the reply headers. It is somewhat similar to | |
825 | @command{ping}, but can be used even in cases where ICMP traffic is blocked | |
826 | by firewalls or when you want to monitor the response time of the actual web | |
827 | application stack itself.") | |
828 | (license license:gpl2))) ; with permission to link with OpenSSL | |
68b14f2e | 829 | |
9e6c7c42 SR |
830 | (define-public httpstat |
831 | (package | |
832 | (name "httpstat") | |
833 | (version "1.2.1") | |
834 | (source | |
835 | (origin | |
836 | (method url-fetch) | |
837 | (uri (pypi-uri "httpstat" version)) | |
838 | (sha256 | |
839 | (base32 | |
840 | "1chw2nk56vaq87aba012a270k9na06hfx1pfbsrc3jfvlc2kb9hb")))) | |
841 | (build-system python-build-system) | |
842 | (inputs `(("curl" ,curl))) | |
843 | (arguments | |
844 | '(#:phases | |
845 | (modify-phases %standard-phases | |
846 | (add-before 'build 'fix-curl-path | |
847 | (lambda* (#:key inputs #:allow-other-keys) | |
848 | (substitute* "httpstat.py" | |
849 | (("ENV_CURL_BIN.get\\('curl'\\)") | |
850 | (string-append "ENV_CURL_BIN.get('" | |
851 | (assoc-ref inputs "curl") | |
366c1cbb MW |
852 | "/bin/curl')"))) |
853 | #t))))) | |
9e6c7c42 SR |
854 | (home-page "https://github.com/reorx/httpstat") |
855 | (synopsis "Visualize curl statistics") | |
856 | (description | |
857 | "@command{httpstat} is a tool to visualize statistics from the | |
858 | @command{curl} HTTP client. It acts as a wrapper for @command{curl} and | |
859 | prints timing information for each step of the HTTP request (DNS lookup, | |
860 | TCP connection, TLS handshake and so on) in the terminal.") | |
861 | (license license:expat))) | |
862 | ||
be9f3a83 AI |
863 | (define-public bwm-ng |
864 | (package | |
865 | (name "bwm-ng") | |
01d7cafe | 866 | (version "0.6.2") |
be9f3a83 AI |
867 | (source |
868 | (origin | |
01d7cafe TGR |
869 | (method git-fetch) |
870 | (uri (git-reference | |
871 | (url "https://github.com/vgropp/bwm-ng.git") | |
872 | (commit (string-append "v" version)))) | |
873 | (file-name (git-file-name name version)) | |
be9f3a83 | 874 | (sha256 |
01d7cafe | 875 | (base32 "0k906wb4pw3dcqpcwnni78lahzi3bva483f8c17sjykic7as4y5n")))) |
be9f3a83 | 876 | (build-system gnu-build-system) |
01d7cafe TGR |
877 | (arguments |
878 | `(#:phases | |
879 | (modify-phases %standard-phases | |
880 | (add-after 'unpack 'disable-premature-./configure | |
881 | (lambda _ | |
882 | (substitute* "autogen.sh" | |
883 | (("\\$srcdir/configure") | |
884 | "true")) | |
885 | #t))))) | |
886 | (native-inputs | |
887 | `(("autoconf" ,autoconf) | |
888 | ("automake" ,automake))) | |
889 | (inputs | |
890 | `(("ncurses" ,ncurses))) | |
be9f3a83 AI |
891 | (synopsis "Console based live network and disk I/O bandwidth monitor") |
892 | (description "Bandwidth Monitor NG is a small and simple console based | |
893 | live network and disk I/O bandwidth monitor.") | |
894 | (home-page "https://www.gropp.org/?id=projects&sub=bwm-ng") | |
895 | (license license:gpl2))) | |
896 | ||
d85b398b EB |
897 | (define-public aircrack-ng |
898 | (package | |
899 | (name "aircrack-ng") | |
2e8c912f | 900 | (version "1.5.2") |
d85b398b EB |
901 | (source |
902 | (origin | |
903 | (method url-fetch) | |
6930ea33 | 904 | (uri (string-append "https://download.aircrack-ng.org/aircrack-ng-" |
d85b398b EB |
905 | version ".tar.gz")) |
906 | (sha256 | |
907 | (base32 | |
2e8c912f | 908 | "0hc2x17bxk2n00z8jj5jfwq3z41681fd19n018724il0cpkjyncy")))) |
d85b398b EB |
909 | (build-system gnu-build-system) |
910 | (native-inputs | |
b9114ccb TGR |
911 | `(("autoconf" ,autoconf) |
912 | ("automake" ,automake) | |
913 | ("libtool" ,libtool) | |
914 | ("pkg-config" ,pkg-config) | |
915 | ("which" ,which))) | |
d85b398b EB |
916 | (inputs |
917 | `(("libgcrypt" ,libgcrypt) | |
918 | ("libnl" ,libnl) | |
b9114ccb | 919 | ("libpcap" ,libpcap) |
d85b398b EB |
920 | ("ethtool" ,ethtool) |
921 | ("pcre" ,pcre) | |
922 | ("sqlite" ,sqlite) | |
923 | ("zlib" ,zlib))) | |
924 | (arguments | |
b9114ccb TGR |
925 | `(#:configure-flags |
926 | (list "--with-experimental=yes" ; build wesside-ng, etc. | |
927 | "--with-gcrypt") ; openssl's the default | |
d85b398b | 928 | #:phases (modify-phases %standard-phases |
b9114ccb TGR |
929 | (add-before 'bootstrap 'patch-evalrev |
930 | (lambda _ | |
931 | ;; Called by ./autogen.sh below, before the default | |
932 | ;; ‘patch-shebangs’ phase has had a chance to run. | |
933 | (substitute* "evalrev" | |
934 | (("/bin/sh") | |
935 | (which "sh"))) | |
936 | #t)) | |
d85b398b EB |
937 | (add-after 'build 'absolutize-tools |
938 | (lambda* (#:key inputs #:allow-other-keys) | |
939 | (let ((ethtool (string-append (assoc-ref inputs "ethtool") | |
940 | "/sbin/ethtool"))) | |
941 | (substitute* "scripts/airmon-ng" | |
b9114ccb TGR |
942 | (("ethtool ") |
943 | (string-append ethtool " "))) | |
d85b398b | 944 | #t)))))) |
6930ea33 | 945 | (home-page "https://www.aircrack-ng.org") |
d85b398b EB |
946 | (synopsis "Assess WiFi network security") |
947 | (description | |
948 | "Aircrack-ng is a complete suite of tools to assess WiFi network | |
949 | security. It focuses on different areas of WiFi security: monitoring, | |
950 | attacking, testing, and cracking. All tools are command-line driven, which | |
951 | allows for heavy scripting.") | |
952 | (license (list license:gpl2+ license:bsd-3)))) | |
953 | ||
a83e2a01 TL |
954 | (define-public pixiewps |
955 | (package | |
956 | (name "pixiewps") | |
957 | (version "1.4.2") | |
958 | (source (origin | |
959 | (method url-fetch) | |
960 | (uri (string-append | |
961 | "https://github.com/wiire-a/pixiewps/releases/" | |
962 | "download/v" version "/" name "-" version ".tar.xz")) | |
963 | (sha256 | |
964 | (base32 | |
965 | "07nym6bqml0k9v29vnj003nrgnwrywgjvnljb7cdpsvnwilhbp64")))) | |
966 | (build-system gnu-build-system) | |
967 | (arguments | |
968 | '(#:make-flags | |
969 | (list "CC=gcc" | |
970 | (string-append "PREFIX=" (assoc-ref %outputs "out"))) | |
971 | #:phases | |
972 | (modify-phases %standard-phases | |
973 | (delete 'configure)) ; no configure script | |
974 | #:tests? #f)) ; there are no tests | |
975 | (home-page "https://github.com/wiire-a/pixiewps/") | |
976 | (synopsis "Offline brute-force tool for Wi-Fi Protected Setup") | |
977 | (description "Pixiewps implements the pixie-dust attack to brute | |
978 | force the Wi-Fi Protected Setup (WPS) PIN by exploiting the low or | |
979 | non-existing entropy of some access points.") | |
980 | (license license:gpl3+))) | |
5094da0b TL |
981 | |
982 | (define-public reaver | |
983 | (package | |
984 | (name "reaver") | |
985 | (version "1.6.5") | |
986 | (source (origin | |
987 | (method url-fetch) | |
988 | (uri (string-append | |
989 | "https://github.com/t6x/reaver-wps-fork-t6x/releases/" | |
990 | "download/v" version "/" name "-" version ".tar.xz")) | |
991 | (sha256 | |
992 | (base32 | |
993 | "0sva3g0kwgv143n9l3lg4qp5iiqz7nk76nr0hwivsnglbhk9sbil")))) | |
994 | (build-system gnu-build-system) | |
995 | (arguments | |
996 | `(#:configure-flags | |
997 | ;; Save session files to current directory instead of /var. | |
998 | (list "--enable-savetocurrent" | |
999 | "--localstatedir=/tmp/dummy") ; prevent creating /var during install | |
1000 | #:phases | |
1001 | (modify-phases %standard-phases | |
1002 | (add-before 'configure 'change-directory | |
1003 | (lambda _ | |
1004 | (chdir "src") | |
1005 | #t)) | |
1006 | (add-after 'install 'install-doc | |
1007 | (lambda* (#:key outputs #:allow-other-keys) | |
1008 | (chdir "../docs") | |
1009 | (let* ((out (assoc-ref outputs "out")) | |
1010 | (doc (string-append out "/share/doc/" ,name "-" ,version)) | |
1011 | (man1 (string-append out "/share/man/man1"))) | |
1012 | (for-each (lambda (file) (install-file file doc)) | |
1013 | (find-files "." "README.*")) | |
1014 | (install-file "reaver.1" man1) | |
1015 | #t)))) | |
1016 | #:tests? #f)) ; there are no tests | |
1017 | (inputs | |
1018 | `(("libpcap" ,libpcap))) | |
1019 | (propagated-inputs | |
1020 | `(("aircrack-ng" ,aircrack-ng) | |
1021 | ("pixiewps" ,pixiewps))) | |
1022 | (home-page "https://github.com/t6x/reaver-wps-fork-t6x/") | |
1023 | (synopsis "Attack tool for Wi-Fi Protected Setup") | |
1024 | (description "Reaver performs a brute force attack against an access | |
1025 | point's Wi-Fi Protected Setup (WPS) PIN. Once the PIN is found, the WPA | |
1026 | passphrase can be recovered and the AP's wireless settings can be | |
1027 | reconfigured.") | |
1028 | (license license:gpl2+))) | |
d85b398b | 1029 | |
49cb1cf9 SB |
1030 | (define-public perl-danga-socket |
1031 | (package | |
1032 | (name "perl-danga-socket") | |
d4c9543f | 1033 | (version "1.62") |
49cb1cf9 SB |
1034 | (source |
1035 | (origin | |
1036 | (method url-fetch) | |
d4c9543f | 1037 | (uri (string-append "mirror://cpan/authors/id/N/NM/NML/" |
49cb1cf9 SB |
1038 | "Danga-Socket-" version ".tar.gz")) |
1039 | (sha256 | |
d4c9543f | 1040 | (base32 "0x4bvirmf0kphks19jwgva00zz73zx344218dfaiv8gigrw3yg4m")))) |
49cb1cf9 | 1041 | (build-system perl-build-system) |
d4c9543f TGR |
1042 | (native-inputs |
1043 | `(("perl-test-tcp" ,perl-test-tcp))) | |
49cb1cf9 SB |
1044 | (propagated-inputs |
1045 | `(("perl-sys-syscall" ,perl-sys-syscall))) | |
1046 | (home-page "https://metacpan.org/release/Danga-Socket") | |
1047 | (synopsis "Event loop and event-driven async socket base class") | |
1048 | (description | |
1049 | "Danga::Socket is an abstract base class for objects backed by a socket | |
1050 | which provides the basic framework for event-driven asynchronous IO, designed | |
1051 | to be fast. Danga::Socket is both a base class for objects, and an event | |
1052 | loop.") | |
1053 | (license license:perl-license))) | |
1054 | ||
c7727a8b TGR |
1055 | (define-public perl-data-validate-ip |
1056 | (package | |
1057 | (name "perl-data-validate-ip") | |
1058 | (version "0.27") | |
1059 | (source | |
1060 | (origin | |
1061 | (method url-fetch) | |
1062 | (uri (string-append | |
1063 | "mirror://cpan/authors/id/D/DR/DROLSKY/Data-Validate-IP-" | |
1064 | version ".tar.gz")) | |
1065 | (sha256 | |
1066 | (base32 "1mmppyzsh1w2z2h86kvzqxy56wxgs62a3kf8nvcnz76bblir5ap1")))) | |
1067 | (build-system perl-build-system) | |
1068 | (native-inputs | |
1069 | `(("perl-test-requires" ,perl-test-requires))) | |
1070 | (propagated-inputs | |
1071 | `(("perl-netaddr-ip" ,perl-netaddr-ip))) | |
1072 | (home-page "https://metacpan.org/release/Data-Validate-IP") | |
1073 | (synopsis "IPv4 and IPv6 validation methods") | |
1074 | (description | |
1075 | "This module provides several IP address validation subroutines that both | |
1076 | validate and untaint their input. This includes both basic validation | |
1077 | (@code{is_ipv4()} and @code{is_ipv6()}) and special cases like checking whether | |
1078 | an address belongs to a specific network or whether an address is public or | |
1079 | private (reserved).") | |
1080 | (license license:perl-license))) | |
1081 | ||
68b14f2e DM |
1082 | (define-public perl-net-dns |
1083 | (package | |
1084 | (name "perl-net-dns") | |
803b9736 | 1085 | (version "1.21") |
68b14f2e DM |
1086 | (source |
1087 | (origin | |
1088 | (method url-fetch) | |
8faa9df7 TGR |
1089 | (uri |
1090 | (list | |
1091 | (string-append "https://www.net-dns.org/download/Net-DNS-" | |
1092 | version ".tar.gz") | |
1093 | (string-append "mirror://cpan/authors/id/N/NL/NLNETLABS/Net-DNS-" | |
1094 | version ".tar.gz"))) | |
68b14f2e | 1095 | (sha256 |
803b9736 | 1096 | (base32 "0yknrsh0wqr9s43c0wf3dyzrsi2r7k0v75hay74gqkq850xy3vyx")))) |
68b14f2e DM |
1097 | (build-system perl-build-system) |
1098 | (inputs | |
1099 | `(("perl-digest-hmac" ,perl-digest-hmac))) | |
8faa9df7 | 1100 | (home-page "https://www.net-dns.org/") |
68b14f2e DM |
1101 | (synopsis |
1102 | "Perl Interface to the Domain Name System") | |
1103 | (description "Net::DNS is the Perl Interface to the Domain Name System.") | |
1104 | (license license:x11))) | |
87b14091 DM |
1105 | |
1106 | (define-public perl-socket6 | |
1107 | (package | |
1108 | (name "perl-socket6") | |
538b71a9 | 1109 | (version "0.29") |
87b14091 DM |
1110 | (source |
1111 | (origin | |
1112 | (method url-fetch) | |
1113 | (uri (string-append | |
1114 | "mirror://cpan/authors/id/U/UM/UMEMOTO/Socket6-" | |
1115 | version | |
1116 | ".tar.gz")) | |
1117 | (sha256 | |
1118 | (base32 | |
538b71a9 | 1119 | "054izici8klfxs8hr5rljib28plijpsfymy99xbzdp047bx1b2a6")))) |
87b14091 DM |
1120 | (build-system perl-build-system) |
1121 | (arguments | |
1122 | `(#:phases | |
1123 | (modify-phases %standard-phases | |
1124 | (replace 'configure | |
1125 | (lambda* (#:key outputs #:allow-other-keys) | |
1126 | (let* ((out (assoc-ref outputs "out")) | |
1127 | (args `("Makefile.PL" | |
1128 | ,(string-append "PREFIX=" out) | |
1129 | "INSTALLDIRS=site"))) | |
1130 | (setenv "CONFIG_SHELL" (which "sh")) | |
366c1cbb | 1131 | (apply invoke "perl" args))))))) |
9aba9b12 | 1132 | (home-page "https://metacpan.org/release/Socket6") |
87b14091 DM |
1133 | (synopsis |
1134 | "IPv6 related part of the C socket.h defines and structure manipulators for Perl") | |
1135 | (description "Socket6 binds the IPv6 related part of the C socket header | |
1136 | definitions and structure manipulators for Perl.") | |
1137 | (license license:bsd-3))) | |
8d60dd71 DM |
1138 | |
1139 | (define-public perl-net-dns-resolver-programmable | |
1140 | (package | |
1141 | (name "perl-net-dns-resolver-programmable") | |
1142 | (version "v0.003") | |
1143 | (source | |
1144 | (origin | |
1145 | (method url-fetch) | |
1146 | (uri (string-append | |
1147 | "mirror://cpan/authors/id/J/JM/JMEHNLE/net-dns-resolver-programmable/" | |
1148 | "Net-DNS-Resolver-Programmable-" version ".tar.gz")) | |
1149 | (sha256 | |
1150 | (base32 | |
1151 | "1v3nl2kaj4fs55n1617n53q8sa3mir06898vpy1rq98zjih24h4d")) | |
1152 | (patches | |
1d248adb | 1153 | (search-patches "perl-net-dns-resolver-programmable-fix.patch")))) |
8d60dd71 DM |
1154 | (build-system perl-build-system) |
1155 | (native-inputs | |
1156 | `(("perl-module-build" ,perl-module-build))) | |
1157 | (inputs `(("perl-net-dns" ,perl-net-dns))) | |
1158 | (home-page | |
9aba9b12 | 1159 | "https://metacpan.org/release/Net-DNS-Resolver-Programmable") |
8d60dd71 DM |
1160 | (synopsis |
1161 | "Programmable DNS resolver class for offline emulation of DNS") | |
1162 | (description "Net::DNS::Resolver::Programmable is a programmable DNS resolver for | |
1163 | offline emulation of DNS.") | |
2f3108ad | 1164 | (license license:perl-license))) |
1201eab9 | 1165 | |
ac629e62 JL |
1166 | (define-public perl-net-dns-resolver-mock |
1167 | (package | |
1168 | (name "perl-net-dns-resolver-mock") | |
1169 | (version "1.20171219") | |
1170 | (source (origin | |
1171 | (method url-fetch) | |
1172 | (uri (string-append | |
1173 | "mirror://cpan/authors/id/M/MB/MBRADSHAW/" | |
1174 | "Net-DNS-Resolver-Mock-" version ".tar.gz")) | |
1175 | (sha256 | |
1176 | (base32 | |
1177 | "0m3rxpkv1b9121srvbqkrgzg4m8mnydiydqv34in1i1ixwrl6jn9")))) | |
1178 | (build-system perl-build-system) | |
ce3a71c6 | 1179 | (inputs |
ac629e62 JL |
1180 | `(("perl-net-dns" ,perl-net-dns))) |
1181 | (home-page "https://metacpan.org/release/Net-DNS-Resolver-Mock") | |
858be794 TGR |
1182 | (synopsis "Mock DNS Resolver object for testing") |
1183 | (description | |
1184 | "Net::DNS::Resolver::Mock is a subclass of Net::DNS::Resolver, but returns | |
1185 | static data from any provided DNS zone file instead of querying the network. | |
1186 | It is intended primarily for use in testing.") | |
ac629e62 JL |
1187 | (license license:perl-license))) |
1188 | ||
1201eab9 DM |
1189 | (define-public perl-netaddr-ip |
1190 | (package | |
1191 | (name "perl-netaddr-ip") | |
1192 | (version "4.079") | |
1193 | (source | |
1194 | (origin | |
1195 | (method url-fetch) | |
1196 | (uri (string-append | |
1197 | "mirror://cpan/authors/id/M/MI/MIKER/NetAddr-IP-" | |
1198 | version | |
1199 | ".tar.gz")) | |
1200 | (sha256 | |
1201 | (base32 | |
1202 | "1rx0dinrz9fk9qcg4rwqq5n1dm3xv2arymixpclcv2q2nzgq4npc")))) | |
1203 | (build-system perl-build-system) | |
1204 | (arguments | |
1205 | `(#:phases | |
1206 | (modify-phases %standard-phases | |
1207 | (replace 'configure | |
1208 | (lambda* (#:key outputs #:allow-other-keys) | |
1209 | (let* ((out (assoc-ref outputs "out")) | |
1210 | (args `("Makefile.PL" | |
1211 | ,(string-append "PREFIX=" out) | |
1212 | "INSTALLDIRS=site"))) | |
1213 | (setenv "CONFIG_SHELL" (which "sh")) | |
366c1cbb | 1214 | (apply invoke "perl" args))))))) |
1201eab9 | 1215 | (home-page |
9aba9b12 | 1216 | "https://metacpan.org/release/NetAddr-IP") |
1201eab9 DM |
1217 | (synopsis |
1218 | "Manages IPv4 and IPv6 addresses and subnets") | |
1219 | (description "NetAddr::IP manages IPv4 and IPv6 addresses and subsets.") | |
2f3108ad | 1220 | (license license:perl-license))) |
3ed361ea DM |
1221 | |
1222 | (define-public perl-net-patricia | |
1223 | (package | |
1224 | (name "perl-net-patricia") | |
1225 | (version "1.22") | |
1226 | (source | |
1227 | (origin | |
1228 | (method url-fetch) | |
1229 | (uri (string-append | |
1230 | "mirror://cpan/authors/id/G/GR/GRUBER/Net-Patricia-" | |
1231 | version | |
1232 | ".tar.gz")) | |
1233 | (sha256 | |
1234 | (base32 | |
1235 | "0ln5f57vc8388kyh9vhx2infrdzfhbpgyby74h1qsnhwds95m0vh")))) | |
1236 | (build-system perl-build-system) | |
2ff17f06 EF |
1237 | (arguments |
1238 | '(#:phases | |
1239 | (modify-phases %standard-phases | |
1240 | (add-after 'unpack 'dont-link-with-nsl ; Borrowed from Debian. | |
1241 | (lambda _ | |
1242 | (substitute* "Makefile.PL" | |
1243 | (("-lnsl") "")) | |
1244 | #t))))) | |
3ed361ea DM |
1245 | (inputs |
1246 | `(("perl-net-cidr-lite" ,perl-net-cidr-lite) | |
1247 | ("perl-socket6" ,perl-socket6))) | |
1248 | (home-page | |
9aba9b12 | 1249 | "https://metacpan.org/release/Net-Patricia") |
3ed361ea DM |
1250 | (synopsis |
1251 | "Patricia Trie Perl module for fast IP address lookups") | |
1252 | (description | |
1253 | "Net::Patricia does IP address lookups quickly in Perl.") | |
1254 | ;; The bindings are licensed under GPL2 or later. | |
1255 | ;; libpatricia is licensed under 2-clause BSD. | |
1256 | (license (list license:gpl2+ license:bsd-2)))) | |
b09a8b6f DM |
1257 | |
1258 | (define-public perl-net-cidr-lite | |
1259 | (package | |
1260 | (name "perl-net-cidr-lite") | |
1261 | (version "0.21") | |
1262 | (source | |
1263 | (origin | |
1264 | (method url-fetch) | |
1265 | (uri (string-append | |
1266 | "mirror://cpan/authors/id/D/DO/DOUGW/Net-CIDR-Lite-" | |
1267 | version | |
1268 | ".tar.gz")) | |
1269 | (sha256 | |
1270 | (base32 | |
1271 | "14shj73zbqmfjbp0qz1fs9j4p2dpvz5hfkm4qfdjbydflbl2b8fg")))) | |
1272 | (build-system perl-build-system) | |
1273 | (home-page | |
9aba9b12 | 1274 | "https://metacpan.org/release/Net-CIDR-Lite") |
b09a8b6f DM |
1275 | (synopsis |
1276 | "Perl extension for merging IPv4 or IPv6 CIDR addresses") | |
1277 | (description "Net::CIDR::Lite merges IPv4 or IPv6 CIDR addresses.") | |
1278 | (license license:gpl1+))) | |
e741c4e4 DM |
1279 | |
1280 | ;; TODO: Use the geolite-mirror-simple.pl script from the example | |
1281 | ;; directory to stay current with the databases. How? | |
1282 | (define-public perl-geo-ip | |
1283 | (package | |
1284 | (name "perl-geo-ip") | |
b2799117 | 1285 | (version "1.51") |
e741c4e4 DM |
1286 | (source |
1287 | (origin | |
1288 | (method url-fetch) | |
1289 | (uri (string-append | |
1290 | "mirror://cpan/authors/id/M/MA/MAXMIND/Geo-IP-" | |
1291 | version | |
1292 | ".tar.gz")) | |
1293 | (sha256 | |
1294 | (base32 | |
b2799117 | 1295 | "1fka8fr7fw6sh3xa9glhs1zjg3s2gfkhi7n7da1l2m2wblqj0c0n")))) |
e741c4e4 | 1296 | (build-system perl-build-system) |
9aba9b12 | 1297 | (home-page "https://metacpan.org/release/Geo-IP") |
e741c4e4 DM |
1298 | (synopsis |
1299 | "Look up location and network information by IP Address in Perl") | |
36a4366d EF |
1300 | (description "The Perl module @code{Geo::IP}. It looks up location and |
1301 | network information by IP Address.") | |
2f3108ad | 1302 | (license license:perl-license))) |
e818f321 DM |
1303 | |
1304 | (define-public perl-io-socket-inet6 | |
1305 | (package | |
1306 | (name "perl-io-socket-inet6") | |
1307 | (version "2.72") | |
1308 | (source | |
1309 | (origin | |
1310 | (method url-fetch) | |
1311 | (uri (string-append | |
1312 | "mirror://cpan/authors/id/S/SH/SHLOMIF/IO-Socket-INET6-" | |
1313 | version | |
1314 | ".tar.gz")) | |
1315 | (sha256 | |
1316 | (base32 | |
1317 | "1fqypz6qa5rw2d5y2zq7f49frwra0aln13nhq5gi514j2zx21q45")))) | |
1318 | (build-system perl-build-system) | |
1319 | (native-inputs | |
1320 | `(("perl-module-build" ,perl-module-build) | |
1321 | ("perl-test-pod" ,perl-test-pod) | |
1322 | ("perl-test-pod-coverage" ,perl-test-pod-coverage))) | |
1323 | (inputs `(("perl-socket6" ,perl-socket6))) | |
1324 | (arguments `(;; Need network socket API | |
1325 | #:tests? #f)) | |
1326 | (home-page | |
9aba9b12 | 1327 | "https://metacpan.org/release/IO-Socket-INET6") |
e818f321 DM |
1328 | (synopsis |
1329 | "Perl object interface for AF_INET/AF_INET6 domain sockets") | |
1330 | (description "IO::Socket::INET6 is an interface for AF_INET/AF_INET6 domain | |
1331 | sockets in Perl.") | |
2f3108ad | 1332 | (license license:perl-license))) |
a1c83fef | 1333 | |
167a541f TD |
1334 | (define-public libproxy |
1335 | (package | |
1336 | (name "libproxy") | |
1337 | (version "0.4.15") | |
1338 | (source (origin | |
1339 | (method url-fetch) | |
1340 | (uri (string-append "https://github.com/libproxy/libproxy/" | |
1341 | "releases/download/" version "/libproxy-" | |
1342 | version ".tar.xz")) | |
1343 | (sha256 | |
1344 | (base32 | |
1345 | "0kvdrazlzwia876w988cmlypp253gwy6idlh8mjk958c29jb8kb5")))) | |
1346 | (build-system cmake-build-system) | |
1347 | (native-inputs | |
1348 | `(("pkg-config" ,pkg-config))) | |
1349 | (inputs | |
1350 | `(("dbus" ,dbus) | |
5ba17819 | 1351 | ("zlib" ,zlib))) |
167a541f TD |
1352 | (arguments |
1353 | `(#:phases | |
1354 | (modify-phases %standard-phases | |
1355 | (replace 'check | |
1356 | (lambda _ | |
366c1cbb | 1357 | (invoke "ctest" "-E" "url-test")))))) |
167a541f TD |
1358 | (synopsis "Library providing automatic proxy configuration management") |
1359 | (description "Libproxy handles the details of HTTP/HTTPS proxy | |
1360 | configuration for applications across all scenarios. Applications using | |
1361 | libproxy only have to specify which proxy to use.") | |
1362 | (home-page "https://libproxy.github.io/libproxy") | |
1363 | (license license:lgpl2.1+))) | |
1364 | ||
a1c83fef | 1365 | (define-public proxychains-ng |
1366 | (package | |
1367 | (name "proxychains-ng") | |
223ef546 | 1368 | (version "4.14") |
a0b5c998 TGR |
1369 | (source |
1370 | (origin | |
1371 | (method url-fetch) | |
1372 | (uri (string-append "http://ftp.barfooze.de/pub/sabotage/tarballs/" | |
110387f8 | 1373 | "proxychains-ng-" version ".tar.xz")) |
a0b5c998 | 1374 | (sha256 |
223ef546 | 1375 | (base32 "1bmhfbl1bzc87vl0xwr1wh5xvslfyc41nl2hqzhbj258p0sy004x")))) |
a1c83fef | 1376 | (build-system gnu-build-system) |
1377 | (arguments | |
223ef546 | 1378 | `(#:tests? #f ; there are no tests |
a1c83fef | 1379 | #:phases |
1380 | (modify-phases %standard-phases | |
1381 | (add-after 'unpack 'fix-configure-script | |
1382 | (lambda _ | |
1383 | ;; The configure script is very intolerant to unknown arguments, | |
1384 | ;; such as "CONFIG_SHELL". | |
1385 | (substitute* "configure" | |
1386 | (("\\*\\) break ;;" line) | |
1387 | (string-append "[A-Z]*) shift ;;\n" | |
1388 | line))) | |
a0b5c998 TGR |
1389 | #t)) |
1390 | (add-before 'configure 'set-up-environment | |
1391 | (lambda _ | |
1392 | (setenv "CC" "gcc") | |
a1c83fef | 1393 | #t))))) |
1394 | (synopsis "Redirect any TCP connection through a proxy or proxy chain") | |
1395 | (description "Proxychains-ng is a preloader which hooks calls to sockets | |
1396 | in dynamically linked programs and redirects them through one or more SOCKS or | |
1397 | HTTP proxies.") | |
1398 | (home-page "https://github.com/rofl0r/proxychains-ng") | |
1399 | (license license:gpl2+))) | |
93666cf7 | 1400 | |
1401 | (define-public enet | |
1402 | (package | |
1403 | (name "enet") | |
3b990922 | 1404 | (version "1.3.14") |
93666cf7 | 1405 | (source (origin |
1406 | (method url-fetch) | |
1407 | (uri (string-append "http://enet.bespin.org/download/" | |
9aed8a1e | 1408 | "enet-" version ".tar.gz")) |
93666cf7 | 1409 | (sha256 |
1410 | (base32 | |
3b990922 | 1411 | "0w780zc6cy8yq4cskpphx0f91lzh51vh9lwyc5ll8hhamdxgbxlq")))) |
93666cf7 | 1412 | (build-system gnu-build-system) |
1413 | (native-inputs | |
1414 | `(("pkg-config" ,pkg-config))) | |
3b990922 | 1415 | (synopsis "Network communication layer on top of UDP") |
93666cf7 | 1416 | (description |
1417 | "ENet's purpose is to provide a relatively thin, simple and robust network | |
1418 | communication layer on top of UDP. The primary feature it provides is optional | |
1419 | reliable, in-order delivery of packets. ENet omits certain higher level | |
1420 | networking features such as authentication, server discovery, encryption, or | |
1421 | other similar tasks that are particularly application specific so that the | |
1422 | library remains flexible, portable, and easily embeddable.") | |
1423 | (home-page "http://enet.bespin.org") | |
1424 | (license license:expat))) | |
4fb5f830 TGR |
1425 | |
1426 | (define-public sslh | |
1427 | (package | |
1428 | (name "sslh") | |
2fe29c84 | 1429 | (version "1.20") |
925926ba TGR |
1430 | (source |
1431 | (origin | |
1432 | (method git-fetch) | |
1433 | (uri (git-reference | |
1434 | (url "https://github.com/yrutschle/sslh.git") | |
1435 | (commit (string-append "v" version)))) | |
1436 | (file-name (git-file-name name version)) | |
1437 | (sha256 | |
2fe29c84 | 1438 | (base32 "18zhkqlwfh6f5dg1a41a4p7p9g94dgb9nwls1ksy9r5yz174i2fx")))) |
4fb5f830 TGR |
1439 | (build-system gnu-build-system) |
1440 | (native-inputs | |
7eaa37a1 | 1441 | `(;; Test dependencies. |
4fb5f830 TGR |
1442 | ("lcov" ,lcov) |
1443 | ("perl" ,perl) | |
2fe29c84 | 1444 | ("perl-conf-libconfig" ,perl-conf-libconfig) |
4fb5f830 TGR |
1445 | ("perl-io-socket-inet6" ,perl-io-socket-inet6) |
1446 | ("perl-socket6" ,perl-socket6) | |
2fe29c84 | 1447 | ("psmisc" ,psmisc))) ; for ‘killall’ |
4fb5f830 TGR |
1448 | (inputs |
1449 | `(("libcap" ,libcap) | |
1450 | ("libconfig" ,libconfig) | |
7eaa37a1 | 1451 | ("pcre" ,pcre) |
4fb5f830 TGR |
1452 | ("tcp-wrappers" ,tcp-wrappers))) |
1453 | (arguments | |
1454 | '(#:phases | |
1455 | (modify-phases %standard-phases | |
1456 | (delete 'configure) ; no configure script | |
1457 | (add-before 'check 'fix-tests | |
2fe29c84 TGR |
1458 | (lambda _ |
1459 | (substitute* "./t" | |
1460 | (("\"/tmp") "$ENV{\"TMPDIR\"} . \"") | |
1461 | ;; The Guix build environment lacks ‘ip6-localhost’. | |
1462 | (("ip6-localhost") "localhost")) | |
1463 | #t)) | |
4fb5f830 TGR |
1464 | ;; Many of these files are mentioned in the man page. Install them. |
1465 | (add-after 'install 'install-documentation | |
2fe29c84 TGR |
1466 | (lambda* (#:key outputs #:allow-other-keys) |
1467 | (let* ((out (assoc-ref outputs "out")) | |
1468 | (doc (string-append out "/share/doc/sslh"))) | |
1469 | (install-file "README.md" doc) | |
1470 | (for-each | |
1471 | (lambda (file) | |
1472 | (install-file file (string-append doc "/examples"))) | |
1473 | (append (find-files "." "\\.cfg") | |
1474 | (find-files "scripts")))) | |
1475 | #t))) | |
4fb5f830 TGR |
1476 | #:make-flags (list "CC=gcc" |
1477 | "USELIBCAP=1" | |
1478 | "USELIBWRAP=1" | |
1479 | (string-append "PREFIX=" (assoc-ref %outputs "out"))) | |
1480 | #:test-target "test")) | |
7eaa37a1 | 1481 | (home-page "https://www.rutschle.net/tech/sslh/README.html") |
4fb5f830 TGR |
1482 | (synopsis "Applicative network protocol demultiplexer") |
1483 | (description | |
1484 | "sslh is a network protocol demultiplexer. It acts like a switchboard, | |
1485 | accepting connections from clients on one port and forwarding them to different | |
1486 | servers based on the contents of the first received data packet. Detection of | |
1487 | common protocols like HTTP(S), SSL, SSH, OpenVPN, tinc, and XMPP is already | |
1488 | implemented, but any other protocol that matches a regular expression can be | |
1489 | added. sslh's name comes from its original application of serving both SSH and | |
1490 | HTTPS on port 443, allowing SSH connections from inside corporate firewalls | |
1491 | that block port 22.") | |
1492 | (license (list license:bsd-2 ; tls.[ch] | |
1493 | license:gpl2+)))) ; everything else | |
b747718e BS |
1494 | |
1495 | (define-public iperf | |
1496 | (package | |
1497 | (name "iperf") | |
8daa8326 | 1498 | (version "3.7") |
b747718e BS |
1499 | (source (origin |
1500 | (method url-fetch) | |
1501 | (uri (string-append "http://downloads.es.net/pub/iperf" | |
1502 | "/iperf-" version ".tar.gz")) | |
1503 | (sha256 | |
1504 | (base32 | |
8daa8326 | 1505 | "033is7b5grfbiil98jxlz4ixp9shm44x6hy8flpsyz1i4h108inq")))) |
b747718e BS |
1506 | (build-system gnu-build-system) |
1507 | (synopsis "TCP, UDP and SCTP bandwidth measurement tool") | |
1508 | (description | |
1509 | "iPerf is a tool to measure achievable bandwidth on IP networks. It | |
1510 | supports tuning of various parameters related to timing, buffers and | |
1511 | protocols (TCP, UDP, SCTP with IPv4 and IPv6). For each test it reports | |
1512 | the bandwidth, loss, and other parameters.") | |
1513 | (home-page "http://software.es.net/iperf/") | |
1514 | (license (list license:bsd-3 ; Main distribution. | |
1515 | license:ncsa ; src/{units,iperf_locale,tcp_window_size}.c | |
1516 | license:expat ; src/{cjson,net}.[ch] | |
1517 | license:public-domain)))) ; src/portable_endian.h | |
b7f3cf2c AI |
1518 | |
1519 | (define-public nethogs | |
1520 | (package | |
1521 | (name "nethogs") | |
1522 | (version "0.8.5") | |
1523 | (source (origin | |
1524 | (method url-fetch) | |
1525 | (uri (string-append "https://github.com/raboof/nethogs/archive/v" | |
1526 | version ".tar.gz")) | |
1527 | (sha256 | |
1528 | (base32 | |
1529 | "1k4x8r7s4dgcb6n2rjn28h2yyij92mwm69phncl3597cdxr954va")) | |
1530 | (file-name (string-append name "-" version ".tar.gz")))) | |
1531 | (build-system gnu-build-system) | |
1532 | (inputs | |
1533 | `(("libpcap" ,libpcap) | |
1534 | ("ncurses" ,ncurses))) | |
1535 | (arguments | |
1536 | `(#:make-flags `("CC=gcc" | |
1537 | ,(string-append "PREFIX=" %output)) | |
1538 | #:phases | |
1539 | (modify-phases %standard-phases | |
1540 | (delete 'configure)))) ; No ./configure script. | |
1541 | (home-page "https://github.com/raboof/nethogs") | |
1542 | (synopsis "Per-process bandwidth monitor") | |
1543 | (description "NetHogs is a small 'net top' tool for Linux. Instead of | |
1544 | breaking the traffic down per protocol or per subnet, like most tools do, it | |
1545 | groups bandwidth by process. | |
1546 | ||
1547 | NetHogs does not rely on a special kernel module to be loaded. If there's | |
1548 | suddenly a lot of network traffic, you can fire up NetHogs and immediately see | |
1549 | which PID is causing this. This makes it easy to identify programs that have | |
1550 | gone wild and are suddenly taking up your bandwidth.") | |
1551 | (license license:gpl2+))) | |
92ac2cff | 1552 | |
b3623b6f RH |
1553 | (define-public nzbget |
1554 | (package | |
1555 | (name "nzbget") | |
39a20acc | 1556 | (version "21.0") |
b3623b6f RH |
1557 | (source |
1558 | (origin | |
1559 | (method url-fetch) | |
1560 | (uri (string-append "https://github.com/nzbget/nzbget/archive/v" | |
1561 | version ".tar.gz")) | |
1562 | (file-name (string-append name "-" version ".tar.gz")) | |
1563 | (sha256 | |
1564 | (base32 | |
39a20acc | 1565 | "0l3dzxz7d7jf6cyach41zirvsx1x0vs4nh053c0miycv7zjyrly7")) |
657f1815 TGR |
1566 | (modules '((guix build utils))) |
1567 | (snippet | |
1568 | ;; Reported upstream as <https://github.com/nzbget/nzbget/pull/414>. | |
1569 | '(begin | |
1570 | (substitute* "daemon/connect/TlsSocket.cpp" | |
1571 | (("gnutls_certificate-verification_status_print") | |
1572 | "gnutls_certificate_verification_status_print")) | |
1573 | #t)))) | |
b3623b6f RH |
1574 | (arguments |
1575 | `(#:configure-flags | |
1576 | (list | |
657f1815 TGR |
1577 | (string-append "--with-libcurses-includes=" |
1578 | (assoc-ref %build-inputs "ncurses") "/include") | |
1579 | (string-append "--with-libcurses-libraries=" | |
1580 | (assoc-ref %build-inputs "ncurses") "/lib") | |
b3623b6f RH |
1581 | (string-append "--with-tlslib=GnuTLS")))) |
1582 | (build-system gnu-build-system) | |
c695fb76 TGR |
1583 | (inputs `(("gnutls" ,gnutls) |
1584 | ("libxml2" ,libxml2) | |
1585 | ("ncurses" ,ncurses) | |
1586 | ("zlib" ,zlib))) | |
1587 | (native-inputs `(("pkg-config" ,pkg-config))) | |
b3623b6f RH |
1588 | (home-page "https://github.com/nzbget/nzbget") |
1589 | (synopsis "Usenet binary file downloader") | |
1590 | (description | |
1591 | "NZBGet is a binary newsgrabber, which downloads files from Usenet based | |
1592 | on information given in @code{nzb} files. NZBGet can be used in standalone | |
1593 | and in server/client modes. In standalone mode, you pass NZBGet @command{nzb} | |
1594 | files as command-line parameters and it downloads them and exits. NZBGet also | |
1595 | contains a Web interface. Its server can be controlled through remote | |
1596 | procedure calls (RPCs).") | |
1597 | (license license:gpl2+))) | |
1598 | ||
92ac2cff SB |
1599 | (define-public openvswitch |
1600 | (package | |
1601 | (name "openvswitch") | |
b174cc4b | 1602 | (version "2.12.0") |
92ac2cff SB |
1603 | (source (origin |
1604 | (method url-fetch) | |
1605 | (uri (string-append | |
034db237 | 1606 | "https://www.openvswitch.org/releases/openvswitch-" |
92ac2cff SB |
1607 | version ".tar.gz")) |
1608 | (sha256 | |
1609 | (base32 | |
b174cc4b | 1610 | "1y78ix5inhhcvicbvyy2ij38am1215nr55vydhab3d4065q45z8k")))) |
92ac2cff SB |
1611 | (build-system gnu-build-system) |
1612 | (arguments | |
1613 | '(;; FIXME: many tests fail with: | |
1614 | ;; […] | |
1615 | ;; test -e $OVS_RUNDIR/ovs-vswitchd.pid | |
1616 | ;; ovs-appctl -t ovs-vswitchd exit | |
1617 | ;; hard failure | |
1618 | #:tests? #f | |
1619 | #:configure-flags | |
1620 | '("--enable-shared" | |
1621 | "--localstatedir=/var" | |
1622 | "--with-dbdir=/var/lib/openvswitch") | |
1623 | #:phases | |
1624 | (modify-phases %standard-phases | |
1625 | (replace 'install | |
1626 | (lambda _ | |
366c1cbb MW |
1627 | (invoke "make" |
1628 | ;; Don't try to create directories under /var. | |
1629 | "RUNDIR=/tmp" | |
1630 | "PKIDIR=/tmp" | |
1631 | "LOGDIR=/tmp" | |
1632 | "DBDIR=/tmp" | |
1633 | "install")))))) | |
92ac2cff SB |
1634 | (native-inputs |
1635 | `(("perl" ,perl) | |
1636 | ("pkg-config" ,pkg-config) | |
1637 | ("python" ,python-2) | |
1638 | ;; for testing | |
1639 | ("util-linux" ,util-linux))) | |
1640 | (propagated-inputs | |
1641 | `(("python-six" ,python2-six))) | |
1642 | (inputs | |
1643 | `(("libcap-ng" ,libcap-ng) | |
1644 | ("openssl" ,openssl))) | |
1645 | (synopsis "Virtual network switch") | |
034db237 | 1646 | (home-page "https://www.openvswitch.org/") |
92ac2cff SB |
1647 | (description |
1648 | "Open vSwitch is a multilayer virtual switch. It is designed to enable | |
1649 | massive network automation through programmatic extension, while still | |
1650 | supporting standard management interfaces and protocols (e.g. NetFlow, sFlow, | |
1651 | IPFIX, RSPAN, CLI, LACP, 802.1ag).") | |
1652 | (license ; see debian/copyright for detail | |
1653 | (list license:lgpl2.1 ; xenserver and utilities/bugtool | |
1654 | license:gpl2 ; datapath | |
1655 | license:bsd-2 license:bsd-3 | |
1656 | license:asl2.0)))) ; all other | |
38510546 | 1657 | |
42c939a8 RW |
1658 | (define-public python-ipy |
1659 | (package | |
1660 | (name "python-ipy") | |
47982ca9 | 1661 | (version "1.00") |
42c939a8 RW |
1662 | (source (origin |
1663 | (method url-fetch) | |
1664 | (uri (pypi-uri "IPy" version)) | |
1665 | (sha256 | |
1666 | (base32 | |
47982ca9 | 1667 | "08d6kcacj67mvh0b6y765ipccy6gi4w2ndd4v1l3im2qm1cgcarg")))) |
42c939a8 RW |
1668 | (build-system python-build-system) |
1669 | (home-page "https://github.com/autocracy/python-ipy/") | |
1670 | (synopsis "Python class and tools for handling IP addresses and networks") | |
1671 | (description "The @code{IP} class allows a comfortable parsing and | |
1672 | handling for most notations in use for IPv4 and IPv6 addresses and | |
1673 | networks.") | |
1674 | (license license:bsd-3))) | |
1675 | ||
a4e7215d DM |
1676 | (define-public python2-ipy |
1677 | (package-with-python2 python-ipy)) | |
1678 | ||
38510546 PP |
1679 | (define-public speedtest-cli |
1680 | (package | |
1681 | (name "speedtest-cli") | |
d8a079e2 | 1682 | (version "2.1.2") |
38510546 PP |
1683 | (source |
1684 | (origin | |
b3740474 EF |
1685 | (method git-fetch) |
1686 | (uri (git-reference | |
1687 | (url "https://github.com/sivel/speedtest-cli") | |
1688 | (commit (string-append "v" version)))) | |
1689 | (file-name (git-file-name name version)) | |
38510546 | 1690 | (sha256 |
d8a079e2 | 1691 | (base32 "1456yly6iym2c9bl6pi4sz8xbw34bm2dxm1vzpydsd6jazwpmy26")))) |
38510546 PP |
1692 | (build-system python-build-system) |
1693 | (home-page "https://github.com/sivel/speedtest-cli") | |
1694 | (synopsis "Internet bandwidth tester") | |
1695 | (description | |
1696 | "Command line interface for testing internet bandwidth using | |
1697 | speedtest.net.") | |
1698 | (license license:asl2.0))) | |
5b5cf3c7 GB |
1699 | |
1700 | (define-public tftp-hpa | |
1701 | (package | |
1702 | (name "tftp-hpa") | |
1703 | (version "5.2") | |
1704 | (source (origin | |
1705 | (method url-fetch) | |
1706 | (uri (string-append "mirror://kernel.org/software/" | |
1707 | "network/tftp/tftp-hpa/tftp-hpa-" version | |
1708 | ".tar.xz")) | |
1709 | (sha256 | |
1710 | (base32 | |
1711 | "12vidchglhyc20znq5wdsbhi9mqg90jnl7qr9qs8hbvaz4fkdvmg")))) | |
1712 | (build-system gnu-build-system) | |
1713 | (arguments `(#:tests? #f)) ; no test target | |
1714 | (synopsis "HPA's tftp client") | |
1715 | (description | |
1716 | "This is a tftp client derived from OpenBSD tftp with some extra options | |
1717 | added and bugs fixed. The source includes readline support but it is not | |
1718 | enabled due to license conflicts between the BSD advertising clause and the GPL.") | |
1719 | (home-page "http://git.kernel.org/cgit/network/tftp/tftp-hpa.git/about/") | |
1720 | ;; Some source files are distributed under a 3-clause BSD license, and | |
1721 | ;; others under a 4-clause BSD license. Refer to the files in the source | |
1722 | ;; distribution for clarification. | |
1723 | (license (list license:bsd-3 license:bsd-4)))) | |
cc24bf98 | 1724 | |
f2e12718 | 1725 | (define-public pidentd |
1726 | (package | |
1727 | (name "pidentd") | |
1728 | (version "3.0.19") | |
1729 | (source | |
1730 | (origin | |
1731 | (method url-fetch) | |
1732 | (uri (string-append "https://github.com/ptrrkssn/pidentd/archive/" | |
1733 | "v" version ".tar.gz")) | |
1734 | (file-name (string-append name "-" version ".tar.gz")) | |
1735 | (sha256 | |
1736 | (base32 | |
1737 | "0y3kd1bkydqkpc1qdff24yswysamsqivvadjy0468qri5730izgc")))) | |
1738 | (build-system gnu-build-system) | |
1739 | (arguments | |
1740 | `(#:tests? #f)) ; No tests are included | |
1741 | (inputs | |
3401526f | 1742 | `(("openssl" ,openssl-1.0))) ;for the DES library |
f2e12718 | 1743 | (home-page "https://www.lysator.liu.se/~pen/pidentd/") |
1744 | (synopsis "Small Ident Daemon") | |
1745 | (description | |
1746 | "@dfn{Pidentd} (Peter's Ident Daemon) is a identd, which implements a | |
1747 | identification server. Pidentd looks up specific TCP/IP connections and | |
1748 | returns the user name and other information about the connection.") | |
1749 | (license license:public-domain))) | |
1750 | ||
cc24bf98 LF |
1751 | (define-public spiped |
1752 | (package | |
1753 | (name "spiped") | |
1754 | (version "1.6.0") | |
1755 | (source (origin | |
1756 | (method url-fetch) | |
1757 | (uri (string-append "https://www.tarsnap.com/spiped/spiped-" | |
1758 | version ".tgz")) | |
1759 | (sha256 | |
1760 | (base32 | |
1761 | "1r51rdcl7nib1yv3yvgd5alwlkkwmr387brqavaklb0p2bwzixz6")))) | |
1762 | (build-system gnu-build-system) | |
1763 | (arguments | |
1764 | '(#:test-target "test" | |
1765 | #:make-flags (let* ((out (assoc-ref %outputs "out")) | |
1766 | (bindir (string-append out "/bin")) | |
1767 | (man1dir (string-append out "/share/man/man1"))) | |
1768 | (list "CC=gcc" ; It tries to invoke `c99`. | |
1769 | (string-append "BINDIR=" bindir) | |
1770 | (string-append "MAN1DIR=" man1dir))) | |
1771 | #:phases | |
1772 | (modify-phases %standard-phases | |
1773 | (add-after 'unpack 'patch-command-invocations | |
1774 | (lambda _ | |
1775 | (substitute* '("Makefile" | |
1776 | "libcperciva/cpusupport/Build/cpusupport.sh" | |
1777 | "libcperciva/POSIX/posix-cflags.sh" | |
1778 | "libcperciva/POSIX/posix-l.sh") | |
1779 | (("command -p") "")) | |
1780 | #t)) | |
1781 | (delete 'configure) ; No ./configure script. | |
1782 | (add-after 'install 'install-more-docs | |
1783 | (lambda* (#:key outputs #:allow-other-keys) | |
1784 | (let* ((out (assoc-ref %outputs "out")) | |
1785 | (misc (string-append out "/share/doc/spiped"))) | |
1786 | (install-file "DESIGN.md" misc) | |
1787 | #t)))))) | |
1788 | (native-inputs | |
1789 | `(("procps" ,procps))) ; `ps` is used by the test suite. | |
1790 | (inputs | |
1791 | `(("openssl" ,openssl))) | |
1792 | (home-page "https://www.tarsnap.com/spiped.html") | |
1793 | (synopsis "Create secure pipes between sockets") | |
1794 | (description "Spiped (pronounced \"ess-pipe-dee\") is a utility for creating | |
1795 | symmetrically encrypted and authenticated pipes between socket addresses, so | |
1796 | that one may connect to one address (e.g., a UNIX socket on localhost) and | |
1797 | transparently have a connection established to another address (e.g., a UNIX | |
1798 | socket on a different system). This is similar to 'ssh -L' functionality, but | |
1799 | does not use SSH and requires a pre-shared symmetric key.") | |
1800 | (license license:bsd-2))) | |
c2700e78 GB |
1801 | |
1802 | (define-public quagga | |
1803 | (package | |
1804 | (name "quagga") | |
75377c6c | 1805 | (version "1.2.4") |
c2700e78 GB |
1806 | (source (origin |
1807 | (method url-fetch) | |
1808 | (uri (string-append "mirror://savannah/quagga/quagga-" | |
1809 | version ".tar.gz")) | |
1810 | (sha256 | |
1811 | (base32 | |
75377c6c | 1812 | "1lsksqxij5f1llqn86pkygrf5672kvrqn1kvxghi169hqf1c0r73")) |
c2700e78 GB |
1813 | (patches |
1814 | (search-patches "quagga-reproducible-build.patch")))) | |
1815 | (build-system gnu-build-system) | |
c695fb76 TGR |
1816 | (native-inputs `(("pkg-config" ,pkg-config) |
1817 | ("perl" ,perl) | |
1818 | ("dejagnu" ,dejagnu))) | |
1819 | (inputs `(("readline" ,readline) | |
1820 | ("c-ares" ,c-ares))) | |
c2700e78 GB |
1821 | (synopsis "Routing Software Suite") |
1822 | (description "Quagga is a routing software suite, providing implementations | |
1823 | of OSPFv2, OSPFv3, RIP v1 and v2, RIPng and BGP-4 for Unix platforms. | |
1824 | ||
1825 | The Quagga architecture consists of a core daemon, @command{zebra}, which | |
1826 | acts as an abstraction layer to the underlying Unix kernel and presents the | |
1827 | Zserv API over a Unix or TCP stream to Quagga clients. It is these Zserv | |
1828 | clients which typically implement a routing protocol and communicate routing | |
1829 | updates to the zebra daemon.") | |
340978d7 | 1830 | (home-page "https://www.nongnu.org/quagga/") |
c2700e78 | 1831 | (license license:gpl2+))) |
4d9d9e3f LF |
1832 | |
1833 | (define-public thc-ipv6 | |
491f7fc0 LF |
1834 | (let ((revision "0") |
1835 | (commit "4bb72573e0950ce6f8ca2800a10748477020029e")) | |
1836 | (package | |
1837 | (name "thc-ipv6") | |
1838 | (version (git-version "3.4" revision commit)) | |
1839 | (source (origin | |
1840 | (method git-fetch) | |
1841 | (uri (git-reference | |
1842 | (url "https://github.com/vanhauser-thc/thc-ipv6.git") | |
1843 | (commit commit))) | |
1844 | (file-name (git-file-name name version)) | |
1845 | (sha256 | |
1846 | (base32 | |
1847 | "1x5i6vbsddqc2yks7r1a2fw2fk16qxvd6hpzh1lykjfpkal8fdir")))) | |
1848 | (build-system gnu-build-system) | |
1849 | (arguments | |
1850 | `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))) | |
1851 | #:tests? #f ; No test suite. | |
1852 | #:phases | |
1853 | (modify-phases %standard-phases | |
1854 | (delete 'configure) ; No ./configure script. | |
1855 | (add-before 'build 'patch-paths | |
1856 | (lambda _ | |
1857 | (substitute* "Makefile" | |
1858 | (("/bin/echo") "echo")) | |
1859 | #t)) | |
1860 | (add-after 'install 'install-more-docs | |
1861 | (lambda* (#:key outputs #:allow-other-keys) | |
1862 | (let* ((out (assoc-ref outputs "out")) | |
1863 | (doc (string-append out "/share/thc-ipv6/doc"))) | |
1864 | (install-file "README" doc) | |
1865 | (install-file "HOWTO-INJECT" doc) | |
1866 | #t)))))) | |
1867 | ;; TODO Add libnetfilter-queue once packaged. | |
1868 | (inputs | |
1869 | `(("libpcap" ,libpcap) | |
1870 | ("openssl" ,openssl) | |
1871 | ("perl" ,perl))) | |
1872 | (home-page "https://github.com/vanhauser-thc/thc-ipv6") | |
1873 | (synopsis "IPv6 security research toolkit") | |
1874 | (description "The THC IPv6 Toolkit provides command-line tools and a library | |
4d9d9e3f LF |
1875 | for researching IPv6 implementations and deployments. It requires Linux 2.6 or |
1876 | newer and only works on Ethernet network interfaces.") | |
491f7fc0 LF |
1877 | ;; AGPL 3 with exception for linking with OpenSSL. See the 'LICENSE' file in |
1878 | ;; the source distribution for more information. | |
1879 | (license license:agpl3)))) | |
cfd6a3b1 AI |
1880 | |
1881 | (define-public bmon | |
1882 | (package | |
1883 | (name "bmon") | |
1884 | (version "4.0") | |
1885 | (source | |
1886 | (origin | |
1887 | (method url-fetch) | |
1888 | (uri (string-append "https://github.com/tgraf/bmon/releases/download/v" | |
1889 | version "/bmon-" version ".tar.gz")) | |
1890 | (sha256 | |
1891 | (base32 | |
1892 | "0ylzriv4pwh76344abzl1w219x188gshbycbna35gsyfp09c7z82")))) | |
1893 | (build-system gnu-build-system) | |
1894 | (inputs | |
1895 | `(("libconfuse" ,libconfuse) | |
1896 | ("libnl" ,libnl) | |
1897 | ("ncurses" ,ncurses))) | |
1898 | (native-inputs | |
1899 | `(("pkg-config" ,pkg-config))) | |
1900 | (synopsis "Bandwidth monitor") | |
1901 | (description "bmon is a monitoring and debugging tool to capture | |
1902 | networking-related statistics and prepare them visually in a human-friendly | |
1903 | way. It features various output methods including an interactive curses user | |
1904 | interface and a programmable text output for scripting.") | |
1905 | (home-page "https://github.com/tgraf/bmon") | |
1906 | ;; README.md mentions both the 2-clause BSD and expat licenses, but all | |
1907 | ;; the source files only have expat license headers. Upstream has been | |
1908 | ;; contacted for clarification: https://github.com/tgraf/bmon/issues/59 | |
1909 | ;; Update the license field when upstream responds. | |
1910 | (license (list license:bsd-2 | |
1911 | license:expat)))) | |
de5308f5 RW |
1912 | |
1913 | (define-public libnet | |
1914 | (package | |
1915 | (name "libnet") | |
3c85058c RH |
1916 | (version "1.2-rc3") |
1917 | (source | |
1918 | (origin | |
1919 | (method git-fetch) | |
1920 | (uri (git-reference | |
1921 | (url "https://github.com/sam-github/libnet") | |
1922 | (commit (string-append "libnet-" version)))) | |
1923 | (file-name (git-file-name name version)) | |
1924 | (sha256 | |
1925 | (base32 | |
1926 | "0cy8w4g5rv963v4p6iq3333kxgdddx2lywp70xf62553a25xhhs4")))) | |
de5308f5 RW |
1927 | (build-system gnu-build-system) |
1928 | (arguments | |
1929 | `(#:phases | |
1930 | (modify-phases %standard-phases | |
1931 | (add-after 'unpack 'chdir | |
1932 | (lambda _ (chdir "libnet") #t)) | |
de5308f5 RW |
1933 | (add-before 'build 'build-doc |
1934 | (lambda* (#:key make-flags #:allow-other-keys) | |
366c1cbb MW |
1935 | (apply invoke "make" "-C" "doc" "doc" |
1936 | make-flags)))))) | |
de5308f5 RW |
1937 | (native-inputs |
1938 | `(("autoconf" ,autoconf) | |
1939 | ("automake" ,automake) | |
1940 | ("libtool" ,libtool) | |
1941 | ("doxygen" ,doxygen))) | |
1942 | (home-page "https://sourceforge.net/projects/libnet-dev/") | |
1943 | (synopsis "Framework for low-level network packet construction") | |
1944 | (description | |
1945 | "Libnet provides a fairly portable framework for network packet | |
1946 | construction and injection. It features portable packet creation interfaces | |
1947 | at the IP layer and link layer, as well as a host of supplementary | |
1948 | functionality. Using libnet, quick and simple packet assembly applications | |
1949 | can be whipped up with little effort.") | |
1950 | (license license:bsd-2))) | |
b59a8fd4 TGR |
1951 | |
1952 | (define-public mtr | |
1953 | (package | |
1954 | (name "mtr") | |
a36eba47 | 1955 | (version "0.93") |
b59a8fd4 TGR |
1956 | (source |
1957 | (origin | |
1958 | (method url-fetch) | |
3f80d7ce TGR |
1959 | (uri (string-append "ftp://ftp.bitwizard.nl/mtr/" |
1960 | "mtr-" version ".tar.gz")) | |
b59a8fd4 | 1961 | (sha256 |
a36eba47 | 1962 | (base32 "03gid8g4r6a9r40855s4345xm1bylj2kfqkicjwxpmvvccyng712")))) |
b59a8fd4 TGR |
1963 | (build-system gnu-build-system) |
1964 | (inputs | |
1965 | `(("libcap" ,libcap) | |
1966 | ("ncurses" ,ncurses))) | |
b59a8fd4 TGR |
1967 | (arguments |
1968 | `(#:tests? #f)) ; tests require network access | |
1969 | (home-page "https://www.bitwizard.nl/mtr/") | |
1970 | (synopsis "Network diagnostic tool") | |
1971 | (description | |
30954e61 | 1972 | "@acronym{mtr, My TraceRoute} combines the functionality of the |
b59a8fd4 | 1973 | @command{traceroute} and @command{ping} programs in a single network diagnostic |
63f5656c TGR |
1974 | tool. @command{mtr} can use several network protocols to detect intermediate |
1975 | routers (or @dfn{hops}) between the local host and a user-specified destination. | |
1976 | It then continually measures the response time and packet loss at each hop, and | |
b59a8fd4 TGR |
1977 | displays the results in real time.") |
1978 | (license license:gpl2+))) | |
5f645557 AVY |
1979 | |
1980 | (define-public strongswan | |
1981 | (package | |
1982 | (name "strongswan") | |
06c62365 | 1983 | (version "5.8.2") |
5f645557 AVY |
1984 | (source |
1985 | (origin | |
1986 | (method url-fetch) | |
1987 | (uri (string-append "https://download.strongswan.org/strongswan-" | |
1988 | version ".tar.bz2")) | |
1989 | (sha256 | |
06c62365 | 1990 | (base32 "03j3fx357bh89n44a5v9wdc92azdx2d37j7jmlyr4z1kwzdhv446")))) |
5f645557 AVY |
1991 | (build-system gnu-build-system) |
1992 | (arguments | |
1993 | `(#:phases | |
1994 | (modify-phases %standard-phases | |
58246f96 | 1995 | (add-before 'build 'patch-command-file-names |
5f645557 | 1996 | (lambda* (#:key inputs #:allow-other-keys) |
5f645557 AVY |
1997 | (substitute* "src/libstrongswan/utils/process.c" |
1998 | (("/bin/sh") | |
1999 | (string-append (assoc-ref inputs "bash") "/bin/sh"))) | |
2000 | ||
2001 | (substitute* "src/libstrongswan/tests/suites/test_process.c" | |
2002 | (("/bin/sh") (which "sh")) | |
2003 | (("/bin/echo") (which "echo")) | |
2004 | (("cat") (which "cat"))) | |
58246f96 TGR |
2005 | #t)) |
2006 | (add-before 'check 'set-up-test-environment | |
2007 | (lambda* (#:key inputs #:allow-other-keys) | |
5f645557 AVY |
2008 | (setenv "TZDIR" (string-append (assoc-ref inputs "tzdata") |
2009 | "/share/zoneinfo")) | |
2010 | #t))) | |
2011 | #:configure-flags | |
2012 | (list | |
08dd5f67 | 2013 | ;; Disable bsd-4 licensed plugins. |
5f645557 AVY |
2014 | "--disable-des" |
2015 | "--disable-blowfish"))) | |
2016 | (inputs | |
2017 | `(("curl" ,curl) | |
2018 | ("gmp" ,gmp) | |
2019 | ("libgcrypt" ,libgcrypt) | |
2020 | ("openssl" ,openssl))) | |
2021 | (native-inputs | |
2022 | `(("coreutils" ,coreutils) | |
1bab7340 | 2023 | ("tzdata" ,tzdata-for-tests))) |
5f645557 AVY |
2024 | (synopsis "IKEv1/v2 keying daemon") |
2025 | (description "StrongSwan is an IPsec implementation originally based upon | |
2026 | the FreeS/WAN project. It contains support for IKEv1, IKEv2, MOBIKE, IPv6, | |
2027 | NAT-T and more.") | |
2028 | (home-page "https://strongswan.org/") | |
2029 | (license | |
2030 | (list license:gpl2+ | |
2031 | ;; src/aikgen/* | |
2032 | ;; src/libcharon/plugins/dnscert/* | |
2033 | ;; src/libcharon/plugins/ext_auth/* | |
2034 | ;; src/libcharon/plugins/vici/ruby/* | |
2035 | ;; src/libcharon/plugins/xauth_pam/xauth_pam_listener.[ch] | |
2036 | license:expat | |
2037 | ;; src/inclue/sys/* | |
2038 | license:bsd-3 | |
2039 | ;; src/libstrongswan/plugins/sha3/sha3_keccak.c | |
2040 | license:public-domain | |
2041 | ;; src/libstrongswan/plugins/pkcs11/pkcs11.h | |
2042 | (license:non-copyleft | |
2043 | "file://src/libstrongswan/plugins/pkcs11/pkcs11.h" | |
2044 | "pkcs11 contains a unknown permissive license. View the specific | |
2045 | file for more details.") | |
2046 | ;; These files are not included in the | |
2047 | ;; build, they are disabled through | |
2048 | ;; options to ./configure | |
2049 | ;; | |
2050 | ;; src/libstrongswan/plugins/blowfish/bf_enc.c | |
2051 | ;; src/libstrongswan/plugins/blowfish/bf_locl.h | |
2052 | ;; src/libstrongswan/plugins/blowfish/bf_pi.h | |
2053 | ;; src/libstrongswan/plugins/blowfish/bf_skey.c | |
2054 | ;; src/libstrongswan/plugins/blowfish/blowfish_crypter.c | |
2055 | ;; src/libstrongswan/plugins/des/des_crypter.c | |
2056 | license:bsd-4)))) | |
1170198d | 2057 | |
2058 | (define-public amule | |
2059 | (package | |
2060 | (name "amule") | |
2061 | (version "2.3.2") | |
2062 | (source (origin | |
d25a4876 EF |
2063 | (method git-fetch) |
2064 | (uri (git-reference | |
2065 | (url "https://github.com/amule-project/amule") | |
2066 | (commit version))) | |
2067 | (file-name (git-file-name name version)) | |
1170198d | 2068 | (sha256 |
2069 | (base32 | |
d25a4876 | 2070 | "010wxm6g9f92x6fympj501zbnjka32rzbx0sk3a2y4zpih5d2nsn")) |
1170198d | 2071 | ;; Patch for adopting crypto++ >= 6.0. |
2072 | (patches (search-patches "amule-crypto-6.patch")))) | |
2073 | (build-system gnu-build-system) | |
2074 | (arguments | |
2075 | `(#:phases | |
2076 | (modify-phases %standard-phases | |
fc1ed8c1 | 2077 | (delete 'bootstrap) ; bootstrap phase runs too early. |
1170198d | 2078 | (add-after 'patch-source-shebangs 'autogen |
2079 | (lambda _ | |
2080 | (invoke "sh" "autogen.sh") | |
2081 | #t))) | |
2082 | #:configure-flags | |
2083 | '("--disable-rpath" | |
2084 | "--enable-wxcas" | |
2085 | "--enable-cas" | |
2086 | "--enable-alc" | |
2087 | "--enable-alcc" | |
2088 | "--enable-xas" | |
2089 | "--enable-amulecmd" | |
2090 | "--enable-geoip" | |
2091 | "--enable-ccache" | |
2092 | "--enable-nls" | |
2093 | "--enable-optimize" | |
2094 | "--enable-amule-gui" | |
2095 | "--enable-amule-daemon" | |
2096 | "--enable-webserver" | |
2097 | "--with-denoise-level=0"))) | |
2098 | (native-inputs | |
2099 | `(("autoconf" ,autoconf) | |
2100 | ("automake" ,automake) | |
2101 | ("gettext-minimal" ,gettext-minimal) | |
2102 | ("perl" ,perl))) | |
2103 | (inputs | |
2104 | `(("zlib" ,zlib) | |
2105 | ("crypto++" ,crypto++) | |
2106 | ("libpng" ,libpng) | |
de99ba7e | 2107 | ("wxwidgets-gtk2" ,wxwidgets-gtk2))) |
1170198d | 2108 | (home-page "http://amule.org/") |
2109 | (synopsis "Peer-to-peer client for the eD2K and Kademlia networks") | |
2110 | (description | |
2111 | "aMule is an eMule-like client for the eD2k and Kademlia peer-to-peer | |
2112 | file sharing networks. It includes a graphical user interface (GUI), a daemon | |
2113 | allowing you to run a client with no graphical interface, and a Web GUI for | |
2114 | remote access. The @command{amulecmd} command allows you to control aMule | |
2115 | remotely.") | |
2116 | (license license:gpl2+))) | |
d282fee5 T |
2117 | |
2118 | (define-public zyre | |
2119 | (package | |
2120 | (name "zyre") | |
2121 | (version "2.0.0") | |
2122 | (source (origin | |
2123 | (method url-fetch) | |
2124 | (uri | |
2125 | (string-append "https://github.com/zeromq/zyre/releases/download/v" | |
2126 | version "/" name "-" version ".tar.gz")) | |
2127 | (sha256 | |
2128 | (base32 | |
2129 | "0qz2730bng1gs9xbqxhkw88qbsmszgmmrl2g9k6xrg6r3bqvsdc7")))) | |
2130 | (build-system gnu-build-system) | |
65db7708 MB |
2131 | (arguments |
2132 | `(;; Ensure the kernel headers are treated as system headers to suppress | |
2133 | ;; harmless -Werror=pedantic warnings. | |
2134 | #:make-flags (list (string-append "C_INCLUDE_PATH=" | |
2135 | (assoc-ref %build-inputs "kernel-headers") | |
2136 | "/include")))) | |
d282fee5 T |
2137 | (inputs `(("zeromq" ,zeromq) |
2138 | ("czmq" ,czmq) | |
2139 | ("libsodium" ,libsodium))) | |
2140 | (synopsis "Framework for proximity-based peer-to-peer applications") | |
2141 | (description "Zyre provides reliable group messaging over local area | |
2142 | networks using zeromq. It has these key characteristics: | |
2143 | ||
2144 | @itemize | |
2145 | @item Zyre needs no administration or configuration. | |
2146 | @item Peers may join and leave the network at any time. | |
2147 | @item Peers talk to each other without any central brokers or servers. | |
2148 | @item Peers can talk directly to each other. | |
2149 | @item Peers can join groups, and then talk to groups. | |
2150 | @item Zyre is reliable, and loses no messages even when the network is heavily loaded. | |
2151 | @item Zyre is fast and has low latency, requiring no consensus protocols. | |
2152 | @item Zyre is designed for WiFi networks, yet also works well on Ethernet networks. | |
2153 | @end itemize") | |
2154 | (home-page "https://github.com/zeromq/zyre") | |
2155 | (license license:mpl2.0))) | |
f1656a59 DM |
2156 | |
2157 | (define-public can-utils | |
2158 | (package | |
2159 | (name "can-utils") | |
2160 | (version "2018.02.0") | |
2161 | (source (origin | |
2162 | (method git-fetch) | |
2163 | (uri (git-reference | |
2164 | (url "https://github.com/linux-can/can-utils.git") | |
2165 | (commit (string-append "v" version)))) | |
2166 | (file-name (git-file-name name version)) | |
2167 | (sha256 | |
2168 | (base32 | |
2169 | "0r0zkm67bdcmbfypjr7z041d4zp0xzb379dyl8cvhmflh12fd2jb")))) | |
2170 | (build-system gnu-build-system) | |
2171 | (arguments | |
2172 | `(#:tests? #f ; No tests exist. | |
2173 | #:make-flags (list "CC=gcc" | |
2174 | (string-append "PREFIX=" | |
2175 | (assoc-ref %outputs "out"))) | |
2176 | #:phases | |
2177 | (modify-phases %standard-phases | |
a34dfa24 | 2178 | (delete 'bootstrap) |
f1656a59 DM |
2179 | (delete 'configure)))) |
2180 | (home-page "https://github.com/linux-can/can-utils") | |
2181 | (synopsis "CAN utilities") | |
2182 | (description "This package provides CAN utilities in the following areas: | |
2183 | ||
2184 | @itemize | |
2185 | @item Basic tools to display, record, generate and replay CAN traffic | |
2186 | @item CAN access via IP sockets | |
2187 | @item CAN in-kernel gateway configuration | |
2188 | @item CAN bus measurement and testing | |
2189 | @item ISO-TP (ISO15765-2:2016 - this means messages with a body larger than | |
2190 | eight bytes) tools | |
2191 | @item Log file converters | |
2192 | @item Serial Line Discipline configuration for slcan driver | |
2193 | @end itemize") | |
2194 | ;; Either BSD-3 or GPL-2 can be used. | |
2195 | (license (list license:bsd-3 license:gpl2)))) | |
d597dda6 NG |
2196 | |
2197 | (define-public asio | |
2198 | (package | |
2199 | (name "asio") | |
9d391ccd | 2200 | (version "1.12.2") |
d597dda6 NG |
2201 | (source |
2202 | (origin | |
cb9da5d1 TGR |
2203 | (method url-fetch) |
2204 | (uri (string-append "mirror://sourceforge/asio/asio/" | |
74a3ce30 | 2205 | version " (Stable)/asio-" version ".tar.bz2")) |
d597dda6 | 2206 | (sha256 |
9d391ccd | 2207 | (base32 "1akray4l3hgahmb92sbvsqg128c7g7s92jrkf1sp1fjnfjrxq9sf")))) |
d597dda6 | 2208 | (build-system gnu-build-system) |
d597dda6 NG |
2209 | (inputs |
2210 | `(("boost" ,boost) | |
2211 | ("openssl" ,openssl))) | |
2212 | (arguments | |
2213 | `(#:configure-flags | |
2214 | (list | |
2215 | (string-append "--with-boost=" (assoc-ref %build-inputs "boost")) | |
cb9da5d1 | 2216 | (string-append "--with-openssl=" (assoc-ref %build-inputs "openssl"))))) |
d597dda6 NG |
2217 | (home-page "https://think-async.com/Asio") |
2218 | (synopsis "C++ library for ASynchronous network I/O") | |
2219 | (description "Asio is a cross-platform C++ library for network and | |
2220 | low-level I/O programming that provides developers with a consistent | |
2221 | asynchronous model using a modern C++ approach.") | |
2222 | (license license:boost1.0))) | |
0017e55f | 2223 | |
2224 | (define-public shadowsocks | |
2225 | ;; There are some security fixes after the last release. | |
2226 | (let* ((commit "e332ec93e9c90f1cbee676b022bf2c5d5b7b1239") | |
2227 | (revision "0") | |
2228 | (version (git-version "2.8.2" revision commit))) | |
2229 | (package | |
2230 | (name "shadowsocks") | |
2231 | (version version) | |
2232 | (home-page "https://github.com/shadowsocks/shadowsocks") | |
2233 | (source (origin | |
2234 | (method git-fetch) | |
2235 | (uri (git-reference | |
2236 | (url home-page) | |
2237 | (commit commit))) | |
2238 | (sha256 | |
2239 | (base32 | |
2240 | "1idd9b4f2pnhcpk1bh030hqg5zq25gkwxd53xi3c0cj242w7sp2j")) | |
2241 | (file-name (git-file-name name version)))) | |
2242 | (build-system python-build-system) | |
2243 | (synopsis "Fast tunnel proxy that helps you bypass firewalls") | |
2244 | (description | |
2245 | "This package is a fast tunnel proxy that helps you bypass firewalls. | |
2246 | ||
2247 | Features: | |
2248 | @itemize | |
2249 | @item TCP & UDP support | |
2250 | @item User management API | |
2251 | @item TCP Fast Open | |
2252 | @item Workers and graceful restart | |
2253 | @item Destination IP blacklist | |
2254 | @end itemize") | |
2255 | (license license:asl2.0)))) | |
a8253fbe RW |
2256 | |
2257 | (define-public net-snmp | |
2258 | (package | |
2259 | (name "net-snmp") | |
2260 | (version "5.8") | |
2261 | (source (origin | |
2262 | (method url-fetch) | |
2263 | (uri (string-append "mirror://sourceforge/net-snmp/net-snmp/" | |
2264 | version "/net-snmp-" version ".tar.gz")) | |
2265 | (sha256 | |
2266 | (base32 | |
2267 | "1pvajzj9gmj56dmwix0ywmkmy2pglh6nny646hkm7ghfhh03bz5j")) | |
2268 | (modules '((guix build utils))) | |
2269 | (snippet | |
2270 | '(begin | |
2271 | ;; Drop bundled libraries. | |
2272 | (delete-file-recursively "snmplib/openssl") | |
2273 | #t)))) | |
2274 | (build-system gnu-build-system) | |
2275 | (arguments | |
2276 | `(#:test-target "test" | |
2277 | ;; XXX: With parallel build enabled, Perl modules may not get linked with | |
2278 | ;; libnetsnmp. See e.g. <https://bugzilla.novell.com/show_bug.cgi?id=819497>. | |
2279 | #:parallel-build? #f | |
2280 | #:configure-flags | |
2281 | (list (string-append "LDFLAGS=-Wl,-rpath=" | |
2282 | (assoc-ref %outputs "out") | |
2283 | "/lib") | |
b5d1286f OP |
2284 | "--with-logfile=/var/log/snmpd.log" |
2285 | (string-append "--with-openssl=" | |
2286 | (assoc-ref %build-inputs "openssl"))) | |
a8253fbe RW |
2287 | #:phases |
2288 | (modify-phases %standard-phases | |
2289 | (add-after 'unpack 'patch-tests | |
2290 | (lambda* (#:key inputs #:allow-other-keys) | |
2291 | (substitute* "testing/fulltests/support/simple_TESTCONF.sh" | |
2292 | (("NETSTAT=\"\"") | |
2293 | (string-append "NETSTAT=\"" (which "netstat") "\""))) | |
2294 | (substitute* '("testing/fulltests/default/T065agentextend_simple" | |
2295 | "testing/fulltests/default/T115agentxperl_simple") | |
2296 | (("/usr/bin/env") (which "env"))) | |
2297 | (substitute* "testing/fulltests/default/T065agentextend_sh_simple" | |
2298 | (("/bin/sh") (which "sh"))) | |
2299 | ;; These tests require network access. | |
2300 | (for-each delete-file | |
2301 | '("testing/fulltests/default/T070com2sec_simple" | |
2302 | "testing/fulltests/default/T071com2sec6_simple")) | |
2303 | #t)) | |
2304 | (add-after 'unpack 'patch-Makefile.PL | |
2305 | (lambda* (#:key outputs #:allow-other-keys) | |
2306 | (substitute* "Makefile.in" | |
2307 | (("Makefile.PL -NET") | |
2308 | (string-append "Makefile.PL PREFIX=" | |
2309 | (assoc-ref outputs "out") | |
2310 | " INSTALLDIRS=site" " NO_PERLLOCAL=1" | |
2311 | " -NET"))) | |
2312 | #t))))) | |
2313 | (inputs | |
2314 | `(("perl" ,perl) | |
2315 | ("openssl" ,openssl) | |
2316 | ("libnl" ,libnl))) | |
2317 | ;; These inputs are only needed for tests. | |
2318 | (native-inputs | |
2319 | `(("net-tools" ,net-tools) | |
2320 | ("coreutils" ,coreutils) | |
2321 | ("grep" ,grep))) | |
2322 | (home-page "http://www.net-snmp.org/") | |
2323 | (synopsis "Simple Network Management Protocol library and tools") | |
2324 | (description "The @dfn{Simple Network Management Protocol} (SNMP) is a | |
2325 | widely used protocol for monitoring the health and welfare of network | |
2326 | equipment (e.g. routers), computer equipment and even devices like UPSs. | |
2327 | Net-SNMP is a suite of applications used to implement SNMP v1, SNMP v2c and | |
2328 | SNMP v3 using both IPv4 and IPv6.") | |
66687960 EF |
2329 | ;; This only affects OpenBSD |
2330 | ;; https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-8100 | |
2331 | (properties `((lint-hidden-cve . ("CVE-2015-8100")))) | |
a8253fbe RW |
2332 | (license (list license:bsd-3 |
2333 | (license:non-copyleft | |
2334 | "http://www.net-snmp.org/about/license.html" | |
2335 | "CMU/UCD copyright notice"))))) | |
277f25ce OP |
2336 | |
2337 | (define-public ubridge | |
2338 | (package | |
2339 | (name "ubridge") | |
f805785e | 2340 | (version "0.9.16") |
5af7428b TGR |
2341 | (source |
2342 | (origin | |
2343 | (method git-fetch) | |
2344 | (uri (git-reference | |
2345 | (url "https://github.com/GNS3/ubridge.git") | |
2346 | (commit (string-append "v" version)))) | |
2347 | (file-name (git-file-name name version)) | |
2348 | (sha256 | |
f805785e | 2349 | (base32 "1bind7ylgxs743vfdmpdrpp4iamy461bc3i7nxza91kj7hyyjz6h")))) |
277f25ce OP |
2350 | (build-system gnu-build-system) |
2351 | (arguments | |
5af7428b | 2352 | `(#:tests? #f ; no tests |
277f25ce OP |
2353 | #:make-flags '("CC=gcc") |
2354 | #:phases | |
2355 | (modify-phases %standard-phases | |
5af7428b | 2356 | (delete 'configure) ; no configure script |
277f25ce OP |
2357 | (add-before 'install 'set-bindir |
2358 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
2359 | (let ((bin (string-append (assoc-ref outputs "out") | |
2360 | "/bin"))) | |
2361 | (mkdir-p bin) | |
2362 | (substitute* "Makefile" | |
2363 | (("\\$\\(BINDIR\\)") bin) | |
2364 | (("\tsetcap cap_net.*$") ""))) | |
2365 | #t))))) | |
2366 | (inputs | |
2367 | `(("libpcap" ,libpcap))) | |
2368 | (home-page "https://github.com/GNS3/ubridge/") | |
2369 | (synopsis "Bridge for UDP tunnels, Ethernet, TAP and VMnet interfaces") | |
2370 | (description "uBridge is a simple program to create user-land bridges | |
2371 | between various technologies. Currently, bridging between UDP tunnels, | |
2372 | Ethernet and TAP interfaces is supported. Packet capture is also supported.") | |
2373 | (license license:gpl3+))) | |
5bd3134e PN |
2374 | |
2375 | (define-public hcxtools | |
03c443ce TGR |
2376 | (package |
2377 | (name "hcxtools") | |
28553e17 | 2378 | (version "5.2.0") |
03c443ce TGR |
2379 | (source |
2380 | (origin | |
2381 | (method git-fetch) | |
2382 | (uri (git-reference | |
2383 | (url "https://github.com/ZerBea/hcxtools.git") | |
2384 | (commit version))) | |
2385 | (sha256 | |
28553e17 | 2386 | (base32 "0k2qlq9hz5zc21nyc6yrnfqzga7hydn5mm0x3rpl2fhkwl81lxcn")) |
03c443ce TGR |
2387 | (file-name (git-file-name name version)))) |
2388 | (build-system gnu-build-system) | |
2389 | (inputs | |
2390 | `(("curl" ,curl) | |
2391 | ("libpcap" ,libpcap) | |
2392 | ("openssl" ,openssl) | |
2393 | ("zlib" ,zlib))) | |
2394 | (arguments | |
2395 | `(#:make-flags | |
2396 | (list "CC=gcc" | |
2397 | (string-append "INSTALLDIR=" (assoc-ref %outputs "out") "/bin")) | |
2398 | #:tests? #f ; no test suite | |
2399 | #:phases | |
2400 | (modify-phases %standard-phases | |
2401 | (delete 'configure) | |
2402 | (add-after 'unpack 'set-environment | |
2403 | (lambda* (#:key inputs #:allow-other-keys) | |
2404 | (setenv "C_INCLUDE_PATH" | |
2405 | (string-append (assoc-ref inputs "curl") "/include:" | |
2406 | (assoc-ref inputs "libpcap") "/include:" | |
2407 | (assoc-ref inputs "openssl") "/include:" | |
97149c57 | 2408 | (assoc-ref inputs "zlib") "/include")) |
5bd3134e | 2409 | #t))))) |
03c443ce TGR |
2410 | (home-page "https://github.com/ZerBea/hcxtools") |
2411 | (synopsis "Capture wlan traffic to hashcat and John the Ripper") | |
2412 | (description | |
2413 | "This package contains a small set of tools to capture and convert | |
5bd3134e | 2414 | packets from wireless devices for use with hashcat or John the Ripper.") |
03c443ce | 2415 | (license license:expat))) |
a87ee0e4 PN |
2416 | |
2417 | (define-public hcxdumptool | |
4f7db085 TGR |
2418 | (package |
2419 | (name "hcxdumptool") | |
35805bff | 2420 | (version "5.2.0") |
4f7db085 TGR |
2421 | (source |
2422 | (origin | |
2423 | (method git-fetch) | |
2424 | (uri (git-reference | |
2425 | (url "https://github.com/ZerBea/hcxdumptool.git") | |
2426 | (commit version))) | |
2427 | (sha256 | |
35805bff | 2428 | (base32 "0pg1pvg029gm4rj0fj5kcsjb32hixgn4cxsgiir7spkmacf1qm4q")) |
4f7db085 TGR |
2429 | (file-name (git-file-name name version)))) |
2430 | (build-system gnu-build-system) | |
2431 | (arguments | |
2432 | `(#:make-flags | |
2433 | (list "CC=gcc" | |
2434 | (string-append "INSTALLDIR=" (assoc-ref %outputs "out") "/bin")) | |
2435 | #:tests? #f ; no test suite | |
2436 | #:phases | |
2437 | (modify-phases %standard-phases | |
2438 | (delete 'configure)))) | |
2439 | (home-page "https://github.com/ZerBea/hcxdumptool") | |
2440 | (synopsis "Small tool to capture packets from wlan devices") | |
2441 | (description | |
2442 | "Small tool to capture packets from WLAN devices. After capturing, | |
a87ee0e4 PN |
2443 | upload the \"uncleaned\" cap to @url{https://wpa-sec.stanev.org/?submit} to |
2444 | see if the access point or the client is vulnerable to a dictionary attack. | |
2445 | Convert the cap file to hccapx format and/or to WPA-PMKID-PBKDF2 | |
2446 | hashline (16800) with @command{hcxpcaptool} from the @code{hcxtools} package | |
2447 | and check if the WLAN key or the master key was transmitted unencrypted.") | |
4f7db085 | 2448 | (license license:expat))) |
2913a942 AI |
2449 | |
2450 | (define-public dante | |
2451 | (package | |
2452 | (name "dante") | |
2453 | (version "1.4.2") | |
2454 | (source | |
2455 | (origin | |
2456 | (method url-fetch) | |
2457 | (uri (string-append "https://www.inet.no/dante/files/dante-" | |
2458 | version ".tar.gz")) | |
2459 | (sha256 | |
2460 | (base32 | |
2461 | "19rqzj167q73ag20zxpvswhkk0bj56r5maf83v5016sw7vrcz5sc")))) | |
2462 | (build-system gnu-build-system) | |
7789bf95 SB |
2463 | (arguments |
2464 | ;; XXX: The dynamic socks library doesn't work with 'libc.so' (GNU ld | |
2465 | ;; script). When preloading is enabled, 'sockd' failed with: | |
2466 | ;; … Failed to open library "libc.so": …: invalid ELF header | |
2467 | '(#:configure-flags '("--disable-preload"))) | |
2913a942 AI |
2468 | (home-page "https://www.inet.no/dante/") |
2469 | (synopsis "SOCKS server and client") | |
2470 | (description "Dante is a SOCKS client and server implementation. It can | |
2471 | be installed on a machine with access to an external TCP/IP network and will | |
2472 | allow all other machines, without direct access to that network, to be relayed | |
2473 | through the machine the Dante server is running on. The external network will | |
2474 | never see any machines other than the one Dante is running on.") | |
2475 | (license (license:non-copyleft "file://LICENSE")))) | |
362fba83 PN |
2476 | |
2477 | (define-public restbed | |
2478 | (let ((commit "6eb385fa9051203f28bf96cc1844bbb5a9a6481f")) | |
2479 | (package | |
2480 | (name "restbed") | |
2481 | (version (git-version "4.6" "1" commit)) | |
2482 | (source | |
2483 | (origin | |
2484 | (method git-fetch) | |
2485 | (uri (git-reference | |
2486 | (url "https://github.com/Corvusoft/restbed/") | |
2487 | (commit commit))) | |
2488 | (file-name (string-append name "-" version ".tar.gz")) | |
2489 | (sha256 | |
2490 | (base32 "0k60i5drklqqrb4khb25fzkgz9y0sncxf1sp6lh2bm1m0gh0661n")))) | |
2491 | (build-system cmake-build-system) | |
2492 | (inputs | |
2493 | `(("asio" ,asio) | |
2494 | ("catch" ,catch-framework) | |
2495 | ("openssl" ,openssl))) | |
2496 | (arguments | |
2497 | `(#:tests? #f | |
2498 | #:configure-flags | |
2499 | '("-DBUILD_TESTS=NO" | |
2500 | "-DBUILD_EXAMPLES=NO" | |
2501 | "-DBUILD_SSL=NO" | |
2502 | "-DBUILD_SHARED=NO") | |
2503 | #:phases | |
2504 | (modify-phases %standard-phases | |
2505 | (add-after 'unpack 'apply-patches-and-fix-paths | |
2506 | (lambda* (#:key inputs #:allow-other-keys) | |
2507 | (let ((asio (assoc-ref inputs "asio")) | |
2508 | (catch (assoc-ref inputs "catch")) | |
2509 | (openssl (assoc-ref inputs "openssl"))) | |
2510 | (substitute* "cmake/Findasio.cmake" | |
2511 | (("(find_path\\( asio_INCLUDE asio\\.hpp HINTS ).*$" all begin) | |
2512 | (string-append begin " \"" asio "/include\" )"))) | |
2513 | (substitute* "cmake/Findcatch.cmake" | |
2514 | (("(find_path\\( catch_INCLUDE catch\\.hpp HINTS ).*$" all begin) | |
2515 | (string-append begin " \"" catch "/include\" )"))) | |
2516 | (substitute* "cmake/Findopenssl.cmake" | |
2517 | (("(find_library\\( ssl_LIBRARY ssl ssleay32 HINTS ).*$" all begin) | |
2518 | (string-append begin " \"" openssl "/lib\" )")) | |
2519 | (("(find_library\\( crypto_LIBRARY crypto libeay32 HINTS ).*$" all begin) | |
2520 | (string-append begin " \"" openssl "/lib\" )")) | |
2521 | (("(find_path\\( ssl_INCLUDE openssl/ssl\\.h HINTS ).*$" all begin) | |
2522 | (string-append begin " \"" openssl "/include\" )"))))))))) | |
2523 | (synopsis "Asynchronous RESTful functionality to C++11 applications") | |
2524 | (description "Restbed is a comprehensive and consistent programming | |
2525 | model for building applications that require seamless and secure | |
2526 | communication over HTTP.") | |
2527 | (home-page "https://github.com/Corvusoft/restbed") | |
2528 | (license license:agpl3+)))) | |
e0fa6413 | 2529 | |
13d79b64 PN |
2530 | (define-public restinio |
2531 | (package | |
2532 | (name "restinio") | |
2533 | (version "0.6.0.1") | |
2534 | (source (origin | |
2535 | (method git-fetch) | |
2536 | (uri (git-reference | |
2537 | (url "https://github.com/Stiffstream/restinio.git") | |
2538 | (commit (string-append "v." version)))) | |
2539 | (file-name (git-file-name name version)) | |
2540 | (sha256 | |
2541 | (base32 | |
2542 | "1c25kpx652nng8m1sqf5an2c3c4g3k6zj85mkkaxzk88iwfzq1s8")))) | |
2543 | (build-system cmake-build-system) | |
2544 | (inputs ; TODO: Need to force-keep references on some inputs, e.g. boost. | |
2545 | `(("zlib" ,zlib) | |
2546 | ("catch2" ,catch-framework2) | |
2547 | ("openssl" ,openssl) | |
2548 | ("boost" ,boost) | |
2549 | ("pcre" ,pcre) | |
2550 | ("pcre2" ,pcre2) | |
2551 | ("sobjectizer" ,sobjectizer))) | |
2552 | (propagated-inputs | |
2553 | `(("asio", asio) | |
71ce0b52 | 2554 | ("fmt" ,fmt) |
13d79b64 PN |
2555 | ("http-parser", http-parser))) |
2556 | (arguments | |
2557 | `(#:configure-flags '("-DRESTINIO_INSTALL=on") | |
2558 | #:tests? #f ; TODO: The tests are called from the root CMakelist, need RESTINIO_TEST=on. | |
2559 | #:phases | |
2560 | (modify-phases %standard-phases | |
2561 | (add-after 'unpack 'change-directory | |
2562 | (lambda _ | |
2563 | (chdir "dev/restinio") | |
2564 | #t))))) | |
2565 | (home-page "https://stiffstream.com/en/products/restinio.html") | |
2566 | (synopsis "C++14 library that gives you an embedded HTTP/Websocket server") | |
2567 | (description "RESTinio is a header-only C++14 library that gives you an embedded | |
2568 | HTTP/Websocket server. It is based on standalone version of ASIO | |
2569 | and targeted primarily for asynchronous processing of HTTP-requests.") | |
2570 | (license license:bsd-3))) | |
2571 | ||
e0fa6413 PN |
2572 | (define-public opendht |
2573 | (package | |
2574 | (name "opendht") | |
4fe8a9f2 | 2575 | (version "2.0.0beta2") |
e0fa6413 PN |
2576 | (source (origin |
2577 | (method git-fetch) | |
2578 | (uri (git-reference | |
2579 | (url "https://github.com/savoirfairelinux/opendht.git") | |
2580 | (commit version))) | |
2581 | (file-name (git-file-name name version)) | |
2582 | (sha256 | |
2583 | (base32 | |
4fe8a9f2 JW |
2584 | "02ix0rvvyhq22gd5djcq84qz08ji7ln93faf23b27zjzni2klzv5")))) |
2585 | ;; Since 2.0, the gnu-build-system does not seem to work anymore, upstream bug? | |
2586 | (build-system cmake-build-system) | |
e0fa6413 PN |
2587 | (inputs |
2588 | `(("gnutls" ,gnutls) | |
2589 | ("nettle" ,nettle) | |
2590 | ("readline" ,readline) | |
e0fa6413 | 2591 | ("jsoncpp" ,jsoncpp) |
4fe8a9f2 | 2592 | ("openssl" ,openssl) |
71ce0b52 | 2593 | ("fmt" ,fmt))) |
e0fa6413 | 2594 | (propagated-inputs |
4fe8a9f2 | 2595 | `(("argon2" ,argon2) ; TODO: Needed for the pkg-config .pc file to work? |
1ac0c1b8 | 2596 | ("msgpack" ,msgpack))) ;included in several installed headers |
e0fa6413 PN |
2597 | (native-inputs |
2598 | `(("autoconf" ,autoconf) | |
2599 | ("pkg-config" ,pkg-config) | |
4fe8a9f2 | 2600 | ("restinio" ,restinio) |
e0fa6413 | 2601 | ("automake" ,automake) |
4fe8a9f2 JW |
2602 | ("libtool" ,libtool) |
2603 | ("cppunit" ,cppunit))) | |
e0fa6413 | 2604 | (arguments |
4fe8a9f2 JW |
2605 | `(#:tests? #f ; Tests require network connection. |
2606 | #:configure-flags | |
2607 | '(;; "-DOPENDHT_TESTS=on" | |
2608 | "-DOPENDHT_TOOLS=off" | |
2609 | "-DOPENDHT_PYTHON=off" | |
2610 | "-DOPENDHT_PROXY_SERVER=on" | |
2611 | "-DOPENDHT_PUSH_NOTIFICATIONS=on" | |
2612 | "-DOPENDHT_PROXY_SERVER_IDENTITY=on" | |
2613 | "-DOPENDHT_PROXY_CLIENT=on"))) | |
e0fa6413 PN |
2614 | (home-page "https://github.com/savoirfairelinux/opendht/") |
2615 | (synopsis "Distributed Hash Table (DHT) library") | |
2616 | (description "OpenDHT is a Distributed Hash Table (DHT) library. It may | |
2617 | be used to manage peer-to-peer network connections as needed for real time | |
2618 | communication.") | |
2619 | (license license:gpl3+))) | |
dbf87ecb GB |
2620 | |
2621 | (define-public frrouting | |
2622 | (package | |
2623 | (name "frrouting") | |
2624 | (version "6.0.2") | |
2625 | (source (origin | |
2626 | (method url-fetch) | |
2627 | (uri (string-append "https://github.com/FRRouting/frr/releases/" | |
2628 | "download/frr-" version "/frr-" version | |
2629 | ".tar.xz")) | |
2630 | (sha256 | |
2631 | (base32 | |
2632 | "0xfrvi62w8qlh46f504ka0skb7pm0g0p8vmdng4w90gsbirlzpdd")))) | |
2633 | (build-system gnu-build-system) | |
2634 | (inputs | |
2635 | `(("c-ares" ,c-ares) | |
2636 | ("json-c" ,json-c) | |
2637 | ("readline" ,readline))) | |
2638 | (native-inputs | |
2639 | `(("perl" ,perl) | |
2640 | ("pkg-config" ,pkg-config) | |
2641 | ("python" ,python-wrapper) | |
2642 | ("python-pytest" ,python-pytest))) | |
2643 | (home-page "https://frrouting.org/") | |
2644 | (synopsis "IP routing protocol suite") | |
2645 | (description "FRRouting (FRR) is an IP routing protocol suite which includes | |
2646 | protocol daemons for BGP, IS-IS, LDP, OSPF, PIM, and RIP. ") | |
2647 | (license license:gpl2+))) | |
b72c22c0 BW |
2648 | |
2649 | (define-public iwd | |
2650 | (package | |
2651 | (name "iwd") | |
2652 | (version "0.21") | |
2653 | (source (origin | |
2654 | (method git-fetch) | |
2655 | (uri (git-reference | |
2656 | (url "https://git.kernel.org/pub/scm/network/wireless/iwd.git") | |
2657 | (commit version))) | |
2658 | (file-name (git-file-name name version)) | |
2659 | (sha256 | |
2660 | (base32 | |
2661 | "001dikinsa6kshwscjbvwipavzwpqnpvx9fpshcn63gbvbhyd393")))) | |
2662 | (build-system gnu-build-system) | |
2663 | (inputs | |
2664 | `(("dbus" ,dbus) | |
2665 | ("libtool" ,libtool) | |
2666 | ("ell" ,ell) | |
2667 | ("readline" ,readline))) | |
2668 | (native-inputs | |
2669 | `(("asciidoc" ,asciidoc) | |
2670 | ("autoconf" ,autoconf) | |
2671 | ("automake" ,automake) | |
2672 | ("pkgconfig" ,pkg-config) | |
2673 | ("python" ,python) | |
2674 | ("openssl" ,openssl))) | |
2675 | (arguments | |
2676 | `(#:configure-flags | |
2677 | (let ((dbus (assoc-ref %outputs "out"))) | |
2678 | (list "--disable-systemd-service" | |
2679 | "--enable-external-ell" | |
2680 | "--enable-hwsim" | |
2681 | "--enable-tools" | |
2682 | "--enable-wired" | |
2683 | "--enable-docs" | |
2684 | "--localstatedir=/var" | |
2685 | (string-append "--with-dbus-datadir=" dbus "/share/") | |
2686 | (string-append "--with-dbus-busdir=" | |
2687 | dbus "/share/dbus-1/system-services"))) | |
2688 | #:phases | |
2689 | (modify-phases %standard-phases | |
2690 | (add-before 'bootstrap 'pre-bootstrap | |
2691 | (lambda _ | |
2692 | (substitute* "Makefile.am" | |
2693 | ;; Test disabled because it needs the kernel module | |
2694 | ;; 'pkcs8_key_parser' loaded. | |
2695 | (("unit\\/test-eapol.*? ") "") | |
2696 | ;; Don't try to 'mkdir /var'. | |
2697 | (("\\$\\(MKDIR_P\\) -m 700") "true")) | |
2698 | #t))))) | |
2699 | (home-page "https://git.kernel.org/pub/scm/network/wireless/iwd.git/") | |
2700 | (synopsis "Internet Wireless Daemon") | |
2701 | (description "iwd is a wireless daemon for Linux that aims to replace WPA | |
2702 | Supplicant. It optimizes resource utilization by not depending on any external | |
2703 | libraries and instead utilizing features provided by the Linux kernel to the | |
2704 | maximum extent possible.") | |
2705 | (license license:lgpl2.1+))) | |
b080b6d9 T |
2706 | |
2707 | (define-public batctl | |
2708 | (package | |
2709 | (name "batctl") | |
a63209a2 | 2710 | (version "2019.5") |
b080b6d9 T |
2711 | (source |
2712 | (origin | |
2713 | (method url-fetch) | |
2714 | (uri (string-append "https://downloads.open-mesh.org/batman/releases/batman-adv-" | |
2715 | version "/batctl-" version ".tar.gz")) | |
2716 | (sha256 | |
a63209a2 | 2717 | (base32 "1b9w4636dq8m38nzr8j0v0j3b0vdsw84c58c2isc33h66dx8brgz")))) |
b080b6d9 T |
2718 | (inputs |
2719 | `(("libnl" ,libnl))) | |
2720 | (native-inputs | |
2721 | `(("pkg-config" ,pkg-config))) | |
2722 | (build-system gnu-build-system) | |
2723 | (arguments | |
2724 | `(#:tests? #f | |
2725 | ;; Batctl only has a makefile. Thus we disable tests and | |
2726 | ;; configuration, passing in a few make-flags. | |
2727 | #:phases (modify-phases %standard-phases (delete 'configure)) | |
2728 | #:make-flags | |
2729 | (list (string-append "PREFIX=" (assoc-ref %outputs "out")) | |
2730 | (string-append "PKG_CONFIG=" (assoc-ref %build-inputs "pkg-config") | |
2731 | "/bin/pkg-config") | |
2732 | "CC=gcc"))) | |
2733 | (home-page "https://www.open-mesh.org/projects/batman-adv/wiki/Wiki") | |
2734 | (synopsis "Management tool for the mesh networking BATMAN protocol") | |
2735 | (description "This package provides a control tool for the | |
2736 | B.A.T.M.A.N. mesh networking routing protocol provided by the Linux kernel | |
2737 | module @code{batman-adv}, for Layer 2.") | |
2738 | (license license:gpl2+))) | |
079ec547 AG |
2739 | |
2740 | (define-public pagekite | |
2741 | (package | |
2742 | (name "pagekite") | |
8c655deb | 2743 | (version "1.5.0.191126") |
079ec547 AG |
2744 | (source |
2745 | (origin | |
8c655deb AG |
2746 | (method git-fetch) |
2747 | (uri (git-reference | |
2748 | (url "https://github.com/pagekite/PyPagekite.git") | |
2749 | (commit (string-append "v" version)))) | |
2750 | (file-name (git-file-name name version)) | |
079ec547 | 2751 | (sha256 |
8c655deb | 2752 | (base32 "0mncfjfrr13sm84g5z49qxg5cy791h5qxphjsl77x91zs3m36c8l")))) |
079ec547 AG |
2753 | (build-system python-build-system) |
2754 | (arguments | |
8c655deb | 2755 | `(#:phases |
079ec547 AG |
2756 | (modify-phases %standard-phases |
2757 | (add-after 'install 'install-man-page | |
2758 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
2759 | (let* ((out (assoc-ref outputs "out")) | |
2760 | (man (string-append out "/share/man"))) | |
2761 | (invoke "make" | |
2762 | (string-append "PYTHONPATH=" (getenv "PYTHONPATH")) | |
2763 | "doc/pagekite.1") | |
2764 | (install-file "doc/pagekite.1" (string-append man "/man1")) | |
2765 | #t)))))) | |
2766 | (inputs | |
8c655deb AG |
2767 | `(("python-six" ,python-six) |
2768 | ("python-socksipychain" ,python-socksipychain))) | |
079ec547 AG |
2769 | (home-page "https://pagekite.net/") |
2770 | (synopsis "Make localhost servers publicly visible") | |
2771 | (description | |
2772 | "PageKite implements a tunneled reverse proxy which makes it easy to make | |
2773 | a service (such as an HTTP or SSH server) on localhost visible to the wider | |
2774 | Internet, even behind NAT or restrictive firewalls. A managed front-end relay | |
2775 | service is available at @url{https://pagekite.net/}, or you can run your own.") | |
2776 | (license license:agpl3+))) | |
ad54d6c9 DS |
2777 | |
2778 | (define-public ipcalc | |
2779 | (package | |
2780 | (name "ipcalc") | |
2781 | (version "0.41") | |
2782 | (source (origin | |
2783 | (method url-fetch) | |
2784 | (uri (string-append "http://jodies.de/ipcalc-archive/" | |
2785 | name "-" version ".tar.gz")) | |
2786 | (sha256 | |
2787 | (base32 | |
2788 | "12if9sm8h2ac0pgwkw835cgyqjxm6h27k4kfn2vfas9krrqwbafx")))) | |
2789 | (inputs `(("perl" ,perl) | |
2790 | ("tar" ,tar) | |
2791 | ("gzip" ,gzip) | |
2792 | ("tarball" ,source))) | |
2793 | (build-system trivial-build-system) ;no Makefile.PL | |
2794 | (arguments | |
2795 | `(#:modules ((guix build utils)) | |
2796 | #:builder | |
2797 | (begin | |
2798 | (use-modules (guix build utils)) | |
2799 | (use-modules (srfi srfi-1)) | |
2800 | (let* ((source (assoc-ref %build-inputs "source")) | |
2801 | (perl (string-append (assoc-ref %build-inputs "perl") | |
2802 | "/bin")) | |
2803 | (tar (assoc-ref %build-inputs "tar")) | |
2804 | (gz (assoc-ref %build-inputs "gzip")) | |
2805 | (out (assoc-ref %outputs "out")) | |
2806 | (bin (string-append out "/bin")) | |
2807 | (doc (string-append out "/share/doc/ipcalc"))) | |
2808 | (setenv "PATH" (string-append gz "/bin")) | |
2809 | (invoke (string-append tar "/bin/tar") "xvf" source) | |
2810 | (chdir (string-append ,name "-" ,version)) | |
2811 | ||
2812 | (install-file "ipcalc" bin) | |
2813 | (patch-shebang (string-append bin "/ipcalc") (list perl)) | |
2814 | #t)))) | |
2815 | (synopsis "Simple IP network calculator") | |
2816 | (description "ipcalc takes an IP address and netmask and calculates the | |
2817 | resulting broadcast, network, Cisco wildcard mask, and host range. By giving | |
2818 | a second netmask, you can design subnets and supernets. It is also intended | |
2819 | to be a teaching tool and presents the subnetting results as | |
2820 | easy-to-understand binary values.") | |
2821 | (home-page "http://jodies.de/ipcalc") | |
2822 | (license license:gpl2+))) | |
a0993c29 | 2823 | |
b51863d2 VL |
2824 | (define-public tunctl |
2825 | (package | |
2826 | (name "tunctl") | |
2827 | (version "1.5") | |
2828 | (source | |
2829 | (origin | |
2830 | (method url-fetch) | |
24d9354c | 2831 | (uri (string-append "mirror://sourceforge/tunctl/tunctl/" version "/" |
b51863d2 VL |
2832 | "tunctl-" version ".tar.gz")) |
2833 | (sha256 | |
2834 | (base32 "1zsgn7w6l2zh2q0j6qaw8wsx981qcr536qlz1lgb3b5zqr66qama")))) | |
2835 | (build-system gnu-build-system) | |
2836 | (arguments | |
2837 | `(#:phases | |
2838 | (modify-phases %standard-phases | |
2839 | (delete 'bootstrap) ;there is no configure.ac file | |
2840 | (delete 'configure) ;there is no configure script | |
2841 | (delete 'check) ;there are no tests | |
2842 | (replace 'build | |
2843 | (lambda _ | |
2844 | (setenv "CC" "gcc") | |
2845 | (invoke "make" "tunctl"))) | |
2846 | ;; TODO: Requires docbook2x to generate man page from SGML. | |
2847 | (replace 'install | |
2848 | (lambda* (#:key outputs #:allow-other-keys) | |
2849 | (let* ((out (assoc-ref outputs "out")) | |
2850 | (bin (string-append out "/bin"))) | |
2851 | (install-file "tunctl" bin)) | |
2852 | #t))))) | |
2853 | (home-page "http://tunctl.sourceforge.net") | |
2854 | (synopsis "Utility to set up and maintain TUN/TAP network interfaces") | |
2855 | (description "Tunctl is used to set up and maintain persistent TUN/TAP | |
2856 | network interfaces, enabling user applications to simulate network traffic. | |
2857 | Such interfaces are useful for VPN software, virtualization, emulation, | |
2858 | simulation, and a number of other applications.") | |
2859 | (license license:gpl2))) | |
2860 | ||
a0993c29 DNB |
2861 | (define-public vde2 |
2862 | (package | |
2863 | (name "vde2") | |
2864 | (version "2.3.2") | |
2865 | (source | |
2866 | (origin | |
2867 | (method url-fetch) | |
2868 | (uri "mirror://sourceforge/vde/vde2/2.3.2/vde2-2.3.2.tar.gz") | |
2869 | (sha256 | |
2870 | (base32 "14xga0ib6p1wrv3hkl4sa89yzjxv7f1vfqaxsch87j6scdm59pr2")))) | |
2871 | (build-system gnu-build-system) | |
2872 | (arguments | |
2873 | `(#:parallel-build? #f)) ; Build fails if #t. | |
2874 | (inputs | |
2875 | `(("python" ,python) | |
2876 | ("libpcap" ,libpcap) | |
2877 | ("openssl" ,openssl-1.0))) ; Build fails with 1.1. | |
2878 | (home-page "https://github.com/virtualsquare/vde-2") | |
2879 | (synopsis "Virtual Distributed Ethernet") | |
2880 | (description "VDE is a set of programs to provide virtual software-defined | |
2881 | Ethernet network interface controllers across multiple virtual or | |
2882 | physical, local or remote devices. The VDE architecture provides | |
2883 | virtual counterparts to hardware components such as switches and | |
2884 | cables.") | |
2885 | (license (list license:gpl2 | |
2886 | license:lgpl2.1 ; libvdeplug | |
2887 | (license:non-copyleft ; slirpvde | |
2888 | "file://COPYING.slirpvde" | |
2889 | "See COPYING.slirpvde in the distribution."))))) | |
96945cab BW |
2890 | |
2891 | (define-public haproxy | |
2892 | (package | |
2893 | (name "haproxy") | |
2894 | (version "2.1.3") | |
2895 | (source (origin | |
2896 | (method url-fetch) | |
2897 | (uri (string-append "https://www.haproxy.org/download/" | |
2898 | (version-major+minor version) | |
2899 | "/src/haproxy-" version ".tar.gz")) | |
2900 | (sha256 | |
2901 | (base32 | |
2902 | "0n8bw3d6gikr8c56ycrvksp1sl0b4yfzp19867cxkl3l0daqwrxv")))) | |
2903 | (build-system gnu-build-system) | |
2904 | (arguments | |
2905 | `(#:make-flags | |
2906 | (let* ((out (assoc-ref %outputs "out"))) | |
2907 | (list (string-append "PREFIX=" out) | |
2908 | (string-append "DOCDIR=" out "/share/" ,name) | |
2909 | "TARGET=linux-glibc" | |
2910 | "USE_LUA=1" | |
2911 | "USE_OPENSSL=1" | |
2912 | "USE_ZLIB=1" | |
2913 | "USE_PCRE_2=1")) | |
2914 | #:tests? #f ; there are only regression tests, using varnishtest | |
2915 | #:phases | |
2916 | (modify-phases %standard-phases | |
2917 | (delete 'configure)))) | |
2918 | (inputs | |
2919 | `(("lua" ,lua) | |
2920 | ("openssl" ,openssl) | |
2921 | ("pcre2" ,pcre2) | |
2922 | ("zlib" ,zlib))) | |
2923 | (home-page "https://www.haproxy.org/") | |
2924 | (synopsis "Reliable, high performance TCP/HTTP load balancer") | |
2925 | (description "HAProxy is a free, very fast and reliable solution offering | |
2926 | high availability, load balancing, and proxying for TCP and HTTP-based | |
2927 | applications. It is particularly suited for web sites crawling under very | |
2928 | high loads while needing persistence or Layer7 processing. Supporting tens of | |
2929 | thousands of connections is clearly realistic with today's hardware.") | |
2930 | (license (list license:gpl2+ | |
2931 | license:lgpl2.1 | |
2932 | license:lgpl2.1+)))) |