2014-12-08 23:28:48 +01:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
|
;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org>
|
2016-08-12 19:47:41 +02:00
|
|
|
|
;;; Copyright © 2015, 2016 Ricardo Wurmus <rekado@elephly.net>
|
2015-07-27 20:52:56 +02:00
|
|
|
|
;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
|
2015-09-15 10:39:49 +02:00
|
|
|
|
;;; Copyright © 2015 Stefan Reichör <stefan@xsteve.at>
|
2016-03-10 13:47:56 +01:00
|
|
|
|
;;; Copyright © 2016 Raimon Grau <raimonster@gmail.com>
|
2016-07-15 14:29:22 +02:00
|
|
|
|
;;; Copyright © 2016 Tobias Geerinckx-Rice <me@tobias.gr>
|
2016-07-18 21:31:12 +02:00
|
|
|
|
;;; Copyright © 2016 John Darrington <jmd@gnu.org>
|
2016-06-02 21:02:14 +02:00
|
|
|
|
;;; Copyright © 2016 Nicolas Goaziou <mail@nicolasgoaziou.fr>
|
2016-08-11 14:56:13 +02:00
|
|
|
|
;;; Copyright © 2016 Eric Bavier <bavier@member.fsf.org>
|
2016-08-12 19:47:41 +02:00
|
|
|
|
;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
|
2016-09-01 10:27:08 +02:00
|
|
|
|
;;; Copyright © 2016 Arun Isaac <arunisaac@systemreboot.net>
|
2016-10-18 17:28:23 +02:00
|
|
|
|
;;; Copyright © 2016 Benz Schenk <benz.schenk@uzh.ch>
|
2014-12-08 23:28:48 +01:00
|
|
|
|
;;;
|
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
|
;;;
|
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
|
;;; your option) any later version.
|
|
|
|
|
;;;
|
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
|
;;;
|
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
2015-04-29 16:26:34 +02:00
|
|
|
|
(define-module (gnu packages networking)
|
2016-07-28 23:38:18 +02:00
|
|
|
|
#:use-module (guix build-system perl)
|
2014-12-08 23:28:48 +01:00
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
|
|
|
|
#:use-module (guix packages)
|
|
|
|
|
#:use-module (guix download)
|
2016-06-02 21:02:14 +02:00
|
|
|
|
#:use-module (guix build-system glib-or-gtk)
|
2014-12-08 23:28:48 +01:00
|
|
|
|
#:use-module (guix build-system gnu)
|
2016-07-28 23:38:20 +02:00
|
|
|
|
#:use-module (gnu packages)
|
2016-06-02 21:02:14 +02:00
|
|
|
|
#:use-module (gnu packages admin)
|
|
|
|
|
#:use-module (gnu packages adns)
|
2016-07-15 00:23:23 +02:00
|
|
|
|
#:use-module (gnu packages algebra)
|
2016-06-02 21:02:14 +02:00
|
|
|
|
#:use-module (gnu packages audio)
|
|
|
|
|
#:use-module (gnu packages bison)
|
2016-04-04 05:20:38 +02:00
|
|
|
|
#:use-module (gnu packages check)
|
2016-09-11 15:41:07 +02:00
|
|
|
|
#:use-module (gnu packages code)
|
2016-06-02 21:02:14 +02:00
|
|
|
|
#:use-module (gnu packages compression)
|
2016-08-11 14:56:13 +02:00
|
|
|
|
#:use-module (gnu packages databases)
|
2016-06-02 21:02:14 +02:00
|
|
|
|
#:use-module (gnu packages flex)
|
2016-07-15 00:23:23 +02:00
|
|
|
|
#:use-module (gnu packages gettext)
|
2016-06-02 21:02:14 +02:00
|
|
|
|
#:use-module (gnu packages gnupg)
|
|
|
|
|
#:use-module (gnu packages gtk)
|
|
|
|
|
#:use-module (gnu packages linux)
|
|
|
|
|
#:use-module (gnu packages lua)
|
|
|
|
|
#:use-module (gnu packages mit-krb5)
|
|
|
|
|
#:use-module (gnu packages ncurses)
|
2016-08-11 14:56:13 +02:00
|
|
|
|
#:use-module (gnu packages pcre)
|
2016-06-02 21:02:14 +02:00
|
|
|
|
#:use-module (gnu packages perl)
|
2016-04-04 05:20:38 +02:00
|
|
|
|
#:use-module (gnu packages pkg-config)
|
2016-06-02 21:02:14 +02:00
|
|
|
|
#:use-module (gnu packages python)
|
2016-09-11 15:41:07 +02:00
|
|
|
|
#:use-module (gnu packages textutils)
|
|
|
|
|
#:use-module (gnu packages tls)
|
|
|
|
|
#:use-module (gnu packages valgrind))
|
2014-12-08 23:28:48 +01:00
|
|
|
|
|
2016-04-07 12:59:35 +02:00
|
|
|
|
(define-public macchanger
|
|
|
|
|
(package
|
|
|
|
|
(name "macchanger")
|
|
|
|
|
(version "1.6.0")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://gnu/"
|
|
|
|
|
name "/" name "-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1xsiivjjyhqcs6dyjcshrnxlgypvyfzacjz7gcjgl88xiw9lylri"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(home-page "http://www.gnu.org/software/macchanger")
|
2016-07-29 10:13:12 +02:00
|
|
|
|
(synopsis "Viewing and manipulating MAC addresses of network interfaces")
|
2016-04-07 12:59:35 +02:00
|
|
|
|
(description "GNU MAC Changer is a utility for viewing and changing MAC
|
|
|
|
|
addresses of networking devices. New addresses may be set explicitly or
|
|
|
|
|
randomly. They can include MAC addresses of the same or other hardware vendors
|
|
|
|
|
or, more generally, MAC addresses of the same category of hardware.")
|
|
|
|
|
(license license:gpl2+)))
|
|
|
|
|
|
2015-05-12 15:29:06 +02:00
|
|
|
|
(define-public miredo
|
|
|
|
|
(package
|
|
|
|
|
(name "miredo")
|
|
|
|
|
(version "1.2.6")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "http://www.remlab.net/files/miredo/miredo-"
|
|
|
|
|
version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0j9ilig570snbmj48230hf7ms8kvcwi2wblycqrmhh85lksd49ps"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
;; The checkconf test in src/ requires network access.
|
|
|
|
|
(add-before
|
|
|
|
|
'check 'disable-checkconf-test
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "src/Makefile"
|
|
|
|
|
(("^TESTS = .*") "TESTS = \n")))))))
|
|
|
|
|
(home-page "http://www.remlab.net/miredo/")
|
|
|
|
|
(synopsis "Teredo IPv6 tunneling software")
|
|
|
|
|
(description
|
|
|
|
|
"Miredo is an implementation (client, relay, server) of the Teredo
|
|
|
|
|
specification, which provides IPv6 Internet connectivity to IPv6 enabled hosts
|
|
|
|
|
residing in IPv4-only networks, even when they are behind a NAT device.")
|
|
|
|
|
(license license:gpl2+)))
|
|
|
|
|
|
2014-12-08 23:28:48 +01:00
|
|
|
|
(define-public socat
|
|
|
|
|
(package
|
|
|
|
|
(name "socat")
|
2016-02-01 23:45:04 +01:00
|
|
|
|
(version "1.7.3.1")
|
2014-12-08 23:28:48 +01:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"http://www.dest-unreach.org/socat/download/socat-"
|
|
|
|
|
version ".tar.bz2"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-02-01 23:45:04 +01:00
|
|
|
|
"1apvi7sahcl44arnq1ad2y6lbfqnmvx7nhz9i3rkk0f382anbnnj"))))
|
2014-12-08 23:28:48 +01:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments '(#:tests? #f)) ;no 'check' phase
|
|
|
|
|
(inputs `(("openssl" ,openssl)))
|
|
|
|
|
(home-page "http://www.dest-unreach.org/socat/")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Open bidirectional communication channels from the command line")
|
|
|
|
|
(description
|
|
|
|
|
"socat is a relay for bidirectional data transfer between two independent
|
|
|
|
|
data channels---files, pipes, devices, sockets, etc. It can create
|
|
|
|
|
\"listening\" sockets, named pipes, and pseudo terminals.
|
|
|
|
|
|
|
|
|
|
socat can be used, for instance, as TCP port forwarder, as a shell interface
|
|
|
|
|
to UNIX sockets, IPv6 relay, for redirecting TCP oriented programs to a serial
|
|
|
|
|
line, to logically connect serial lines on different computers, or to
|
|
|
|
|
establish a relatively secure environment (su and chroot) for running client
|
gnu packages: Clean up synopses and descriptions.
* gnu/packages/admin.scm, gnu/packages/algebra.scm, gnu/packages/audio.scm,
gnu/packages/backup.scm, gnu/packages/base.scm, gnu/packages/bittorrent.scm,
gnu/packages/code.scm, gnu/packages/compression.scm,
gnu/packages/databases.scm, gnu/packages/enchant.scm,
gnu/packages/firmware.scm, gnu/packages/fonts.scm,
gnu/packages/freedesktop.scm, gnu/packages/games.scm, gnu/packages/gd.scm,
gnu/packages/gl.scm, gnu/packages/gnome.scm, gnu/packages/gsasl.scm,
gnu/packages/gstreamer.scm, gnu/packages/gtk.scm, gnu/packages/guile.scm,
gnu/packages/haskell.scm, gnu/packages/language.scm,
gnu/packages/lesstif.scm, gnu/packages/libreoffice.scm,
gnu/packages/linux.scm, gnu/packages/llvm.scm, gnu/packages/maths.scm,
gnu/packages/mcrypt.scm, gnu/packages/mit-krb5.scm, gnu/packages/mp3.scm,
gnu/packages/ncdu.scm, gnu/packages/networking.scm, gnu/packages/ntp.scm,
gnu/packages/ocaml.scm, gnu/packages/openbox.scm, gnu/packages/pdf.scm,
gnu/packages/perl.scm, gnu/packages/pretty-print.scm,
gnu/packages/pulseaudio.scm, gnu/packages/python.scm,
gnu/packages/rdesktop.scm, gnu/packages/rdf.scm, gnu/packages/ruby.scm,
gnu/packages/slang.scm, gnu/packages/slim.scm, gnu/packages/telephony.scm,
gnu/packages/tls.scm, gnu/packages/tmux.scm, gnu/packages/tre.scm,
gnu/packages/unrtf.scm, gnu/packages/version-control.scm,
gnu/packages/vpn.scm, gnu/packages/web.scm, gnu/packages/wget.scm,
gnu/packages/xdisorg.scm, gnu/packages/xfce.scm, gnu/packages/xiph.scm:
Fix typos. Trim long lines. Add missing periods in the end of sentences.
Use double spaces between sentences. Remove trailing whitespaces.
2015-07-17 14:16:07 +02:00
|
|
|
|
or server shell scripts with network connections.")
|
2014-12-08 23:28:48 +01:00
|
|
|
|
(license license:gpl2)))
|
2015-04-29 16:52:46 +02:00
|
|
|
|
|
2016-09-07 18:36:56 +02:00
|
|
|
|
(define-public tcp-wrappers
|
|
|
|
|
(package
|
|
|
|
|
(name "tcp-wrappers")
|
|
|
|
|
(version "7.6")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"ftp://ftp.porcupine.org/pub/security/tcp_wrappers_"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0p9ilj4v96q32klavx0phw9va21fjp8vpk11nbh6v2ppxnnxfhwm"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(delete 'configure) ; there is no configure script
|
|
|
|
|
(delete 'check) ; there are no tests
|
|
|
|
|
(replace 'build
|
|
|
|
|
(lambda _
|
|
|
|
|
(chmod "." #o755)
|
|
|
|
|
;; Upstream doesn't generate a shared library. So we have to do it.
|
|
|
|
|
(setenv "CC" "gcc -fno-builtin -fPIC")
|
|
|
|
|
(substitute* "Makefile"
|
|
|
|
|
(("^(all[^\n]*)" line) (string-append line " libwrap.so\n
|
|
|
|
|
libwrap.so: $(LIB_OBJ)\n
|
|
|
|
|
\tgcc -shared $^ -o $@\n")))
|
|
|
|
|
;; Deal with some gcc breakage.
|
|
|
|
|
(substitute* "percent_m.c"
|
|
|
|
|
(("extern char .sys_errlist.*;") ""))
|
|
|
|
|
(substitute* "scaffold.c"
|
|
|
|
|
(("extern char .malloc.*;") ""))
|
|
|
|
|
;; This, believe it or not, is the recommended way to build!
|
|
|
|
|
(zero? (system* "make" "REAL_DAEMON_DIR=/etc" "linux"))))
|
|
|
|
|
;; There is no make install stage, so we have to do it ourselves.
|
|
|
|
|
(replace 'install
|
|
|
|
|
(lambda _
|
|
|
|
|
(let ((out (assoc-ref %outputs "out"))
|
|
|
|
|
(man-pages `("hosts_access.3"
|
|
|
|
|
"hosts_access.5"
|
|
|
|
|
"hosts_options.5"
|
|
|
|
|
"tcpd.8"
|
|
|
|
|
"tcpdchk.8"
|
|
|
|
|
"tcpdmatch.8"))
|
|
|
|
|
(libs `("libwrap.a"
|
|
|
|
|
"libwrap.so"))
|
|
|
|
|
(headers `("tcpd.h"))
|
|
|
|
|
(bins `("safe_finger"
|
|
|
|
|
"tcpd"
|
|
|
|
|
"tcpdchk"
|
|
|
|
|
"tcpdmatch"
|
|
|
|
|
"try-from")))
|
|
|
|
|
(for-each
|
|
|
|
|
(lambda (x)
|
|
|
|
|
(install-file x (string-append out "/include")))
|
|
|
|
|
headers)
|
|
|
|
|
(for-each
|
|
|
|
|
(lambda (x)
|
|
|
|
|
(install-file x (string-append out "/share/man/man"
|
|
|
|
|
(string-take-right x 1))))
|
|
|
|
|
man-pages)
|
|
|
|
|
(for-each
|
|
|
|
|
(lambda (x)
|
|
|
|
|
(install-file x (string-append out "/lib/")))
|
|
|
|
|
libs)
|
|
|
|
|
(for-each
|
|
|
|
|
(lambda (x)
|
|
|
|
|
(install-file x (string-append out "/bin/")))
|
|
|
|
|
bins)))))))
|
|
|
|
|
(home-page "http://www.porcupine.org")
|
|
|
|
|
(synopsis "Monitor and filter incoming requests for network services")
|
|
|
|
|
(description "With this package you can monitor and filter incoming requests for
|
|
|
|
|
network services. It includes a library which may be used by daemons to
|
|
|
|
|
transparently check connection attempts against an access control list.")
|
|
|
|
|
(license (license:non-copyleft "file://DISCLAIMER"
|
|
|
|
|
"See the file DISCLAIMER in the distribution."))))
|
|
|
|
|
|
|
|
|
|
|
2015-04-29 16:52:46 +02:00
|
|
|
|
(define-public zeromq
|
|
|
|
|
(package
|
|
|
|
|
(name "zeromq")
|
2016-05-29 19:31:29 +02:00
|
|
|
|
(version "4.0.7")
|
2015-04-29 16:52:46 +02:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "http://download.zeromq.org/zeromq-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-05-29 19:31:29 +02:00
|
|
|
|
"00vvwhgcdr1lva2pavicvy92iad0hj8cf71n702hv6blw1kjj2z0"))))
|
2015-04-29 16:52:46 +02:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(home-page "http://zeromq.org")
|
|
|
|
|
(synopsis "Library for message-based applications")
|
|
|
|
|
(description
|
|
|
|
|
"The 0MQ lightweight messaging kernel is a library which extends the
|
|
|
|
|
standard socket interfaces with features traditionally provided by specialized
|
|
|
|
|
messaging middle-ware products. 0MQ sockets provide an abstraction of
|
|
|
|
|
asynchronous message queues, multiple messaging patterns, message
|
|
|
|
|
filtering (subscriptions), seamless access to multiple transport protocols and
|
|
|
|
|
more.")
|
|
|
|
|
(license license:lgpl3+)))
|
2015-07-27 20:52:56 +02:00
|
|
|
|
|
2016-06-07 15:49:17 +02:00
|
|
|
|
(define-public librdkafka
|
|
|
|
|
(package
|
|
|
|
|
(name "librdkafka")
|
|
|
|
|
(version "0.9.1")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://github.com/edenhill/librdkafka/archive/"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"10ldx7g7ymmg17snzx78vy4n8ma1rjx0agzi34g15j2fk867xmas"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'configure
|
|
|
|
|
;; its custom configure script doesn't understand 'CONFIG_SHELL'.
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
|
;; librdkafka++.so lacks RUNPATH for librdkafka.so
|
|
|
|
|
(setenv "LDFLAGS"
|
|
|
|
|
(string-append "-Wl,-rpath=" out "/lib"))
|
|
|
|
|
(zero? (system* "./configure"
|
|
|
|
|
(string-append "--prefix=" out)))))))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python" ,python-wrapper)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("zlib" ,zlib))) ; in the Libs.private field of rdkafka.pc
|
|
|
|
|
(home-page "https://github.com/edenhill/librdkafka")
|
|
|
|
|
(synopsis "Apache Kafka C/C++ client library")
|
|
|
|
|
(description
|
|
|
|
|
"librdkafka is a C library implementation of the Apache Kafka protocol,
|
|
|
|
|
containing both Producer and Consumer support.")
|
|
|
|
|
(license license:bsd-2)))
|
|
|
|
|
|
2015-07-27 20:52:56 +02:00
|
|
|
|
(define-public libndp
|
|
|
|
|
(package
|
|
|
|
|
(name "libndp")
|
2016-05-17 20:31:09 +02:00
|
|
|
|
(version "1.6")
|
2015-07-27 20:52:56 +02:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "http://libndp.org/files/"
|
|
|
|
|
name "-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-05-17 20:31:09 +02:00
|
|
|
|
"03mczwrxqbp54msafxzzyhaazkvjdwm2kipjkrb5xg8kw22glz8c"))))
|
2015-07-27 20:52:56 +02:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(home-page "http://libndp.org/")
|
|
|
|
|
(synopsis "Library for Neighbor Discovery Protocol")
|
|
|
|
|
(description
|
|
|
|
|
"libndp contains a library which provides a wrapper for IPv6 Neighbor
|
|
|
|
|
Discovery Protocol. It also provides a tool named ndptool for sending and
|
|
|
|
|
receiving NDP messages.")
|
|
|
|
|
(license license:lgpl2.1+)))
|
2015-07-27 20:53:38 +02:00
|
|
|
|
|
|
|
|
|
(define-public ethtool
|
|
|
|
|
(package
|
|
|
|
|
(name "ethtool")
|
|
|
|
|
(version "4.0")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://kernel.org/software/network/"
|
|
|
|
|
name "/" name "-" version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1zzcwn6pk8qfasalqkxg8vrhacksfa50xsq4xifw7yfjqyn8fj4h"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(home-page "https://www.kernel.org/pub/software/network/ethtool/")
|
|
|
|
|
(synopsis "Display or change Ethernet device settings")
|
|
|
|
|
(description
|
|
|
|
|
"ethtool can be used to query and change settings such as speed,
|
|
|
|
|
auto-negotiation and checksum offload on many network devices, especially
|
|
|
|
|
Ethernet devices.")
|
|
|
|
|
(license license:gpl2)))
|
2015-09-15 10:39:49 +02:00
|
|
|
|
|
|
|
|
|
(define-public ifstatus
|
|
|
|
|
(package
|
|
|
|
|
(name "ifstatus")
|
|
|
|
|
(version "1.1.0")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2016-07-21 08:35:30 +02:00
|
|
|
|
(uri (string-append "mirror://sourceforge/ifstatus/ifstatus/"
|
|
|
|
|
"ifstatus%20v" version "/ifstatus-v"
|
2015-09-15 10:39:49 +02:00
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"045cbsq9ps32j24v8y5hpyqxnqn9mpaf3mgvirlhgpqyb9jsia0c"))
|
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
(snippet
|
|
|
|
|
'(substitute* "Main.h"
|
|
|
|
|
(("#include <stdio.h>")
|
|
|
|
|
"#include <stdio.h>\n#include <stdlib.h>")))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:tests? #f ; no "check" target
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(delete 'configure) ; no configure script
|
|
|
|
|
(replace 'install
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(bin (string-append out "/bin")))
|
|
|
|
|
(mkdir-p bin)
|
|
|
|
|
(copy-file "ifstatus"
|
|
|
|
|
(string-append bin "/ifstatus"))))))))
|
|
|
|
|
(inputs `(("ncurses" ,ncurses)))
|
|
|
|
|
(home-page "http://ifstatus.sourceforge.net/graphic/index.html")
|
|
|
|
|
(synopsis "Text based network interface status monitor")
|
|
|
|
|
(description
|
|
|
|
|
"IFStatus is a simple, easy-to-use program for displaying commonly
|
2015-09-18 21:57:53 +02:00
|
|
|
|
needed/wanted real-time traffic statistics of multiple network
|
2015-09-15 10:39:49 +02:00
|
|
|
|
interfaces, with a simple and efficient view on the command line. It is
|
|
|
|
|
intended as a substitute for the PPPStatus and EthStatus projects.")
|
2015-09-18 21:57:53 +02:00
|
|
|
|
(license license:gpl2+)))
|
2016-03-10 13:47:56 +01:00
|
|
|
|
|
|
|
|
|
(define-public nload
|
|
|
|
|
(package
|
|
|
|
|
(name "nload")
|
|
|
|
|
(version "0.7.4")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2016-07-21 08:35:30 +02:00
|
|
|
|
(uri (string-append "mirror://sourceforge/nload/nload/" version
|
|
|
|
|
"/nload-" version ".tar.gz"))
|
2016-03-10 13:47:56 +01:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1rb9skch2kgqzigf19x8bzk211jdfjfdkrcvaqyj89jy2pkm3h61"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(inputs `(("ncurses" ,ncurses)))
|
|
|
|
|
(home-page "http://www.roland-riegel.de/nload/")
|
|
|
|
|
(synopsis "Realtime console network usage monitor")
|
|
|
|
|
(description
|
|
|
|
|
"Nload is a console application which monitors network traffic and
|
|
|
|
|
bandwidth usage in real time. It visualizes the in- and outgoing traffic using
|
|
|
|
|
two graphs and provides additional info like total amount of transfered data
|
|
|
|
|
and min/max network usage.")
|
|
|
|
|
(license license:gpl2+)))
|
2016-04-04 05:20:38 +02:00
|
|
|
|
|
|
|
|
|
(define-public iodine
|
|
|
|
|
(package
|
|
|
|
|
(name "iodine")
|
|
|
|
|
(version "0.7.0")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "http://code.kryo.se/" name "/"
|
|
|
|
|
name "-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0gh17kcxxi37k65zm4gqsvbk3aw7yphcs3c02pn1c4s2y6n40axd"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(delete 'configure)
|
2016-09-15 01:15:02 +02:00
|
|
|
|
(add-before 'build 'fix-ifconfig-path
|
|
|
|
|
;; This package works only with the net-tools version of ifconfig.
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(substitute* "src/tun.c"
|
|
|
|
|
(("PATH=[^ ]* ")
|
|
|
|
|
(string-append (assoc-ref inputs "net-tools") "/sbin/")))))
|
2016-04-04 05:20:38 +02:00
|
|
|
|
(add-before 'check 'delete-failing-tests
|
2016-09-15 01:15:02 +02:00
|
|
|
|
;; Avoid https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802105.
|
2016-04-04 05:20:38 +02:00
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "tests/common.c"
|
|
|
|
|
(("tcase_add_test\\(tc, \
|
|
|
|
|
test_parse_format_ipv(4(|_listen_all|_mapped_ipv6)|6)\\);")
|
|
|
|
|
"")))))
|
|
|
|
|
#:make-flags (list "CC=gcc"
|
|
|
|
|
(string-append "prefix=" (assoc-ref %outputs "out")))
|
|
|
|
|
#:test-target "test"))
|
2016-09-15 01:15:02 +02:00
|
|
|
|
(inputs `(("net-tools" ,net-tools)
|
|
|
|
|
("zlib" ,zlib)))
|
2016-04-04 05:20:38 +02:00
|
|
|
|
(native-inputs `(("check" ,check)
|
|
|
|
|
("pkg-config" ,pkg-config)))
|
|
|
|
|
(home-page "http://code.kryo.se/iodine/")
|
|
|
|
|
(synopsis "Tunnel IPv4 data through a DNS server")
|
|
|
|
|
(description "Iodine tunnels IPv4 data through a DNS server. This
|
|
|
|
|
can be useful in different situations where internet access is firewalled, but
|
|
|
|
|
DNS queries are allowed. The bandwidth is asymmetrical, with limited upstream
|
|
|
|
|
and up to 1 Mbit/s downstream.")
|
|
|
|
|
;; src/md5.[ch] is released under the zlib license
|
|
|
|
|
(license (list license:isc license:zlib))))
|
2016-06-02 21:02:14 +02:00
|
|
|
|
|
|
|
|
|
(define-public wireshark
|
|
|
|
|
(package
|
|
|
|
|
(name "wireshark")
|
2016-09-18 22:26:14 +02:00
|
|
|
|
(version "2.2.0")
|
2016-06-02 21:02:14 +02:00
|
|
|
|
(synopsis "Network traffic analyzer")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://www.wireshark.org/download/src/wireshark-"
|
|
|
|
|
version ".tar.bz2"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-09-18 22:26:14 +02:00
|
|
|
|
"010i7wpsv2231pwb1xdqs0xfwywi3514siidv6wnrfpw3rs7x156"))))
|
2016-06-02 21:02:14 +02:00
|
|
|
|
(build-system glib-or-gtk-build-system)
|
|
|
|
|
(inputs `(("bison" ,bison)
|
|
|
|
|
("c-ares" ,c-ares)
|
|
|
|
|
("flex" ,flex)
|
|
|
|
|
("gnutls" ,gnutls)
|
|
|
|
|
("gtk+" ,gtk+)
|
|
|
|
|
("libcap" ,libcap)
|
|
|
|
|
("libgcrypt" ,libgcrypt)
|
|
|
|
|
("libnl" ,libnl)
|
|
|
|
|
("libpcap" ,libpcap)
|
|
|
|
|
("lua" ,lua)
|
|
|
|
|
("krb5" ,mit-krb5)
|
|
|
|
|
("openssl" ,openssl)
|
|
|
|
|
("portaudio" ,portaudio)
|
|
|
|
|
("sbc" ,sbc)
|
|
|
|
|
("zlib" ,zlib)))
|
|
|
|
|
(native-inputs `(("perl" ,perl)
|
|
|
|
|
("pkg-config" ,pkg-config)
|
|
|
|
|
("python" ,python-wrapper)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:configure-flags
|
|
|
|
|
(list (string-append "--with-c-ares=" (assoc-ref %build-inputs "c-ares"))
|
|
|
|
|
(string-append "--with-krb5=" (assoc-ref %build-inputs "krb5"))
|
|
|
|
|
(string-append "--with-libcap=" (assoc-ref %build-inputs "libcap"))
|
|
|
|
|
(string-append "--with-lua=" (assoc-ref %build-inputs "lua"))
|
|
|
|
|
(string-append "--with-pcap=" (assoc-ref %build-inputs "libpcap"))
|
|
|
|
|
(string-append "--with-portaudio="
|
|
|
|
|
(assoc-ref %build-inputs "portaudio"))
|
|
|
|
|
(string-append "--with-sbc=" (assoc-ref %build-inputs "sbc"))
|
|
|
|
|
(string-append "--with-ssl=" (assoc-ref %build-inputs "openssl"))
|
|
|
|
|
(string-append "--with-zlib=" (assoc-ref %build-inputs "zlib"))
|
|
|
|
|
"--without-qt")))
|
|
|
|
|
(description "Wireshark is a network protocol analyzer, or @dfn{packet
|
|
|
|
|
sniffer}, that lets you capture and interactively browse the contents of
|
|
|
|
|
network frames.")
|
|
|
|
|
(license license:gpl2+)
|
|
|
|
|
(home-page "https://www.wireshark.org/")))
|
2016-07-15 00:23:23 +02:00
|
|
|
|
|
|
|
|
|
(define-public httping
|
|
|
|
|
(package
|
|
|
|
|
(name "httping")
|
2016-10-13 16:58:08 +02:00
|
|
|
|
(version "2.5")
|
2016-07-15 00:23:23 +02:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://www.vanheusden.com/httping/httping-"
|
|
|
|
|
version ".tgz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-10-13 16:58:08 +02:00
|
|
|
|
"1y7sbgkhgadmd93x1zafqc4yp26ssiv16ni5bbi9vmvvdl55m29y"))))
|
2016-07-15 00:23:23 +02:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("gettext" ,gnu-gettext)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("fftw" ,fftw)
|
|
|
|
|
("ncurses" ,ncurses)
|
|
|
|
|
("openssl" ,openssl)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:make-flags (list "CC=gcc"
|
|
|
|
|
(string-append "DESTDIR=" (assoc-ref %outputs "out"))
|
|
|
|
|
"PREFIX=")
|
|
|
|
|
#:tests? #f)) ; no tests
|
|
|
|
|
(home-page "https://www.vanheusden.com/httping/")
|
|
|
|
|
(synopsis "Web server latency and throughput monitor")
|
|
|
|
|
(description
|
|
|
|
|
"httping measures how long it takes to connect to a web server, send an
|
|
|
|
|
HTTP(S) request, and receive the reply headers. It is somewhat similar to
|
|
|
|
|
@command{ping}, but can be used even in cases where ICMP traffic is blocked
|
|
|
|
|
by firewalls or when you want to monitor the response time of the actual web
|
|
|
|
|
application stack itself.")
|
|
|
|
|
(license license:gpl2))) ; with permission to link with OpenSSL
|
2016-07-28 23:38:18 +02:00
|
|
|
|
|
2016-08-24 20:19:46 +02:00
|
|
|
|
(define-public bwm-ng
|
|
|
|
|
(package
|
|
|
|
|
(name "bwm-ng")
|
|
|
|
|
(version "0.6.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://www.gropp.org/bwm-ng/bwm-ng-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1w0dwpjjm9pqi613i8glxrgca3rdyqyp3xydzagzr5ndc34z6z02"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(inputs `(("ncurses" ,ncurses)))
|
|
|
|
|
(synopsis "Console based live network and disk I/O bandwidth monitor")
|
|
|
|
|
(description "Bandwidth Monitor NG is a small and simple console based
|
|
|
|
|
live network and disk I/O bandwidth monitor.")
|
|
|
|
|
(home-page "https://www.gropp.org/?id=projects&sub=bwm-ng")
|
|
|
|
|
(license license:gpl2)))
|
|
|
|
|
|
2016-08-11 14:56:13 +02:00
|
|
|
|
(define-public aircrack-ng
|
|
|
|
|
(package
|
|
|
|
|
(name "aircrack-ng")
|
|
|
|
|
(version "1.2-rc4")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "http://download.aircrack-ng.org/aircrack-ng-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0dpzx9kddxpgzmgvdpl3rxn0jdaqhm5wxxndp1xd7d75mmmc2fnr"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("pkg-config" ,pkg-config)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("libgcrypt" ,libgcrypt)
|
|
|
|
|
("libnl" ,libnl)
|
|
|
|
|
("ethtool" ,ethtool)
|
|
|
|
|
("pcre" ,pcre)
|
|
|
|
|
("sqlite" ,sqlite)
|
|
|
|
|
("zlib" ,zlib)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:make-flags `("sqlite=true"
|
|
|
|
|
"gcrypt=true"
|
|
|
|
|
"libnl=true"
|
|
|
|
|
"pcre=true"
|
|
|
|
|
"experimental=true" ;build wesside-ng, etc.
|
|
|
|
|
"AVX2FLAG=N" "AVX1FLAG=N" "SSEFLAG=Y"
|
|
|
|
|
,(string-append "prefix=" %output))
|
|
|
|
|
#:phases (modify-phases %standard-phases
|
|
|
|
|
(delete 'configure) ;no configure phase
|
|
|
|
|
(add-after 'build 'absolutize-tools
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(let ((ethtool (string-append (assoc-ref inputs "ethtool")
|
|
|
|
|
"/sbin/ethtool")))
|
|
|
|
|
(substitute* "scripts/airmon-ng"
|
|
|
|
|
(("\\[ ! -x \"\\$\\(command -v ethtool 2>&1)\" \\]")
|
|
|
|
|
(string-append "! " ethtool " --version "
|
|
|
|
|
">/dev/null 2>&1"))
|
|
|
|
|
(("\\$\\(ethtool")
|
|
|
|
|
(string-append "$(" ethtool)))
|
|
|
|
|
#t))))))
|
|
|
|
|
(home-page "http://www.aircrack-ng.org")
|
|
|
|
|
(synopsis "Assess WiFi network security")
|
|
|
|
|
(description
|
|
|
|
|
"Aircrack-ng is a complete suite of tools to assess WiFi network
|
|
|
|
|
security. It focuses on different areas of WiFi security: monitoring,
|
|
|
|
|
attacking, testing, and cracking. All tools are command-line driven, which
|
|
|
|
|
allows for heavy scripting.")
|
|
|
|
|
(license (list license:gpl2+ license:bsd-3))))
|
|
|
|
|
|
2016-07-28 23:38:18 +02:00
|
|
|
|
(define-public perl-net-dns
|
|
|
|
|
(package
|
|
|
|
|
(name "perl-net-dns")
|
|
|
|
|
(version "1.06")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"mirror://cpan/authors/id/N/NL/NLNETLABS/Net-DNS-"
|
|
|
|
|
version
|
|
|
|
|
".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"07m5331132h9xkh1i6jv9d80f571yva27iqa31aq4sm31iw7nn53"))))
|
|
|
|
|
(build-system perl-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("perl-digest-hmac" ,perl-digest-hmac)))
|
|
|
|
|
(home-page "http://search.cpan.org/dist/Net-DNS")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Perl Interface to the Domain Name System")
|
|
|
|
|
(description "Net::DNS is the Perl Interface to the Domain Name System.")
|
|
|
|
|
(license license:x11)))
|
2016-07-28 23:38:19 +02:00
|
|
|
|
|
|
|
|
|
(define-public perl-socket6
|
|
|
|
|
(package
|
|
|
|
|
(name "perl-socket6")
|
|
|
|
|
(version "0.28")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"mirror://cpan/authors/id/U/UM/UMEMOTO/Socket6-"
|
|
|
|
|
version
|
|
|
|
|
".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"11j5jzqbzmwlws9zals43ry2f1nw9qy6im7yhn9ck5rikywrmm5z"))))
|
|
|
|
|
(build-system perl-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'configure
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(args `("Makefile.PL"
|
|
|
|
|
,(string-append "PREFIX=" out)
|
|
|
|
|
"INSTALLDIRS=site")))
|
|
|
|
|
(setenv "CONFIG_SHELL" (which "sh"))
|
|
|
|
|
(zero? (apply system* "perl" args))))))))
|
|
|
|
|
(home-page "http://search.cpan.org/dist/Socket6")
|
|
|
|
|
(synopsis
|
|
|
|
|
"IPv6 related part of the C socket.h defines and structure manipulators for Perl")
|
|
|
|
|
(description "Socket6 binds the IPv6 related part of the C socket header
|
|
|
|
|
definitions and structure manipulators for Perl.")
|
|
|
|
|
(license license:bsd-3)))
|
2016-07-28 23:38:20 +02:00
|
|
|
|
|
|
|
|
|
(define-public perl-net-dns-resolver-programmable
|
|
|
|
|
(package
|
|
|
|
|
(name "perl-net-dns-resolver-programmable")
|
|
|
|
|
(version "v0.003")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"mirror://cpan/authors/id/J/JM/JMEHNLE/net-dns-resolver-programmable/"
|
|
|
|
|
"Net-DNS-Resolver-Programmable-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1v3nl2kaj4fs55n1617n53q8sa3mir06898vpy1rq98zjih24h4d"))
|
|
|
|
|
(patches
|
|
|
|
|
(search-patches
|
|
|
|
|
"perl-net-dns-resolver-programmable-Fix-broken-interface.patch"))))
|
|
|
|
|
(build-system perl-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("perl-module-build" ,perl-module-build)))
|
|
|
|
|
(inputs `(("perl-net-dns" ,perl-net-dns)))
|
|
|
|
|
(home-page
|
|
|
|
|
"http://search.cpan.org/dist/Net-DNS-Resolver-Programmable")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Programmable DNS resolver class for offline emulation of DNS")
|
|
|
|
|
(description "Net::DNS::Resolver::Programmable is a programmable DNS resolver for
|
|
|
|
|
offline emulation of DNS.")
|
|
|
|
|
(license (package-license perl))))
|
2016-07-28 23:38:21 +02:00
|
|
|
|
|
|
|
|
|
(define-public perl-netaddr-ip
|
|
|
|
|
(package
|
|
|
|
|
(name "perl-netaddr-ip")
|
|
|
|
|
(version "4.079")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"mirror://cpan/authors/id/M/MI/MIKER/NetAddr-IP-"
|
|
|
|
|
version
|
|
|
|
|
".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1rx0dinrz9fk9qcg4rwqq5n1dm3xv2arymixpclcv2q2nzgq4npc"))))
|
|
|
|
|
(build-system perl-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'configure
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(args `("Makefile.PL"
|
|
|
|
|
,(string-append "PREFIX=" out)
|
|
|
|
|
"INSTALLDIRS=site")))
|
|
|
|
|
(setenv "CONFIG_SHELL" (which "sh"))
|
|
|
|
|
(zero? (apply system* "perl" args))))))))
|
|
|
|
|
(home-page
|
|
|
|
|
"http://search.cpan.org/dist/NetAddr-IP")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Manages IPv4 and IPv6 addresses and subnets")
|
|
|
|
|
(description "NetAddr::IP manages IPv4 and IPv6 addresses and subsets.")
|
|
|
|
|
(license (package-license perl))))
|
2016-07-28 23:38:22 +02:00
|
|
|
|
|
|
|
|
|
(define-public perl-net-patricia
|
|
|
|
|
(package
|
|
|
|
|
(name "perl-net-patricia")
|
|
|
|
|
(version "1.22")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"mirror://cpan/authors/id/G/GR/GRUBER/Net-Patricia-"
|
|
|
|
|
version
|
|
|
|
|
".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0ln5f57vc8388kyh9vhx2infrdzfhbpgyby74h1qsnhwds95m0vh"))))
|
|
|
|
|
(build-system perl-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("perl-net-cidr-lite" ,perl-net-cidr-lite)
|
|
|
|
|
("perl-socket6" ,perl-socket6)))
|
|
|
|
|
(home-page
|
|
|
|
|
"http://search.cpan.org/dist/Net-Patricia")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Patricia Trie Perl module for fast IP address lookups")
|
|
|
|
|
(description
|
|
|
|
|
"Net::Patricia does IP address lookups quickly in Perl.")
|
|
|
|
|
;; The bindings are licensed under GPL2 or later.
|
|
|
|
|
;; libpatricia is licensed under 2-clause BSD.
|
|
|
|
|
(license (list license:gpl2+ license:bsd-2))))
|
2016-07-28 23:38:27 +02:00
|
|
|
|
|
|
|
|
|
(define-public perl-net-cidr-lite
|
|
|
|
|
(package
|
|
|
|
|
(name "perl-net-cidr-lite")
|
|
|
|
|
(version "0.21")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"mirror://cpan/authors/id/D/DO/DOUGW/Net-CIDR-Lite-"
|
|
|
|
|
version
|
|
|
|
|
".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"14shj73zbqmfjbp0qz1fs9j4p2dpvz5hfkm4qfdjbydflbl2b8fg"))))
|
|
|
|
|
(build-system perl-build-system)
|
|
|
|
|
(home-page
|
|
|
|
|
"http://search.cpan.org/dist/Net-CIDR-Lite")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Perl extension for merging IPv4 or IPv6 CIDR addresses")
|
|
|
|
|
(description "Net::CIDR::Lite merges IPv4 or IPv6 CIDR addresses.")
|
|
|
|
|
(license license:gpl1+)))
|
2016-07-28 23:38:28 +02:00
|
|
|
|
|
|
|
|
|
;; TODO: Use the geolite-mirror-simple.pl script from the example
|
|
|
|
|
;; directory to stay current with the databases. How?
|
|
|
|
|
(define-public perl-geo-ip
|
|
|
|
|
(package
|
|
|
|
|
(name "perl-geo-ip")
|
|
|
|
|
(version "1.50")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"mirror://cpan/authors/id/M/MA/MAXMIND/Geo-IP-"
|
|
|
|
|
version
|
|
|
|
|
".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0ar69lrm26rp6sqxjf0p6cvjfprjx8gkxx11r399lvh99rqfl7zr"))))
|
|
|
|
|
(build-system perl-build-system)
|
|
|
|
|
(home-page "http://search.cpan.org/dist/Geo-IP")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Look up location and network information by IP Address in Perl")
|
|
|
|
|
(description "The Perl module 'Geo::IP'. It looks up location and network
|
|
|
|
|
information by IP Address.")
|
|
|
|
|
(license (package-license perl))))
|
2016-07-28 23:38:32 +02:00
|
|
|
|
|
|
|
|
|
(define-public perl-io-socket-inet6
|
|
|
|
|
(package
|
|
|
|
|
(name "perl-io-socket-inet6")
|
|
|
|
|
(version "2.72")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"mirror://cpan/authors/id/S/SH/SHLOMIF/IO-Socket-INET6-"
|
|
|
|
|
version
|
|
|
|
|
".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1fqypz6qa5rw2d5y2zq7f49frwra0aln13nhq5gi514j2zx21q45"))))
|
|
|
|
|
(build-system perl-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("perl-module-build" ,perl-module-build)
|
|
|
|
|
("perl-test-pod" ,perl-test-pod)
|
|
|
|
|
("perl-test-pod-coverage" ,perl-test-pod-coverage)))
|
|
|
|
|
(inputs `(("perl-socket6" ,perl-socket6)))
|
|
|
|
|
(arguments `(;; Need network socket API
|
|
|
|
|
#:tests? #f))
|
|
|
|
|
(home-page
|
|
|
|
|
"http://search.cpan.org/dist/IO-Socket-INET6")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Perl object interface for AF_INET/AF_INET6 domain sockets")
|
|
|
|
|
(description "IO::Socket::INET6 is an interface for AF_INET/AF_INET6 domain
|
|
|
|
|
sockets in Perl.")
|
|
|
|
|
(license (package-license perl))))
|
2016-08-12 19:47:41 +02:00
|
|
|
|
|
|
|
|
|
(define-public proxychains-ng
|
|
|
|
|
(package
|
|
|
|
|
(name "proxychains-ng")
|
|
|
|
|
(version "4.11")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://github.com/rofl0r/" name "/releases/"
|
|
|
|
|
"download/v" version "/" name "-" version
|
|
|
|
|
".tar.bz2"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1dkncdzw852488gkh5zhn4b5i03qyj8rgh1wcvcva7yd12c19i6w"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ; there are no tests
|
|
|
|
|
#:make-flags '("CC=gcc")
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'fix-configure-script
|
|
|
|
|
(lambda _
|
|
|
|
|
;; The configure script is very intolerant to unknown arguments,
|
|
|
|
|
;; such as "CONFIG_SHELL".
|
|
|
|
|
(substitute* "configure"
|
|
|
|
|
(("\\*\\) break ;;" line)
|
|
|
|
|
(string-append "[A-Z]*) shift ;;\n"
|
|
|
|
|
line)))
|
|
|
|
|
#t)))))
|
|
|
|
|
(synopsis "Redirect any TCP connection through a proxy or proxy chain")
|
|
|
|
|
(description "Proxychains-ng is a preloader which hooks calls to sockets
|
|
|
|
|
in dynamically linked programs and redirects them through one or more SOCKS or
|
|
|
|
|
HTTP proxies.")
|
|
|
|
|
(home-page "https://github.com/rofl0r/proxychains-ng")
|
|
|
|
|
(license license:gpl2+)))
|
2016-09-15 17:01:14 +02:00
|
|
|
|
|
|
|
|
|
(define-public enet
|
|
|
|
|
(package
|
|
|
|
|
(name "enet")
|
|
|
|
|
(version "1.3.13")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "http://enet.bespin.org/download/"
|
|
|
|
|
name "-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0p53mnmjbm56wizwraznynx13fcibcxiqny110dp6a5a3w174q73"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("pkg-config" ,pkg-config)))
|
|
|
|
|
(synopsis
|
|
|
|
|
"Network communication layer on top of UDP")
|
|
|
|
|
(description
|
|
|
|
|
"ENet's purpose is to provide a relatively thin, simple and robust network
|
|
|
|
|
communication layer on top of UDP. The primary feature it provides is optional
|
|
|
|
|
reliable, in-order delivery of packets. ENet omits certain higher level
|
|
|
|
|
networking features such as authentication, server discovery, encryption, or
|
|
|
|
|
other similar tasks that are particularly application specific so that the
|
|
|
|
|
library remains flexible, portable, and easily embeddable.")
|
|
|
|
|
(home-page "http://enet.bespin.org")
|
|
|
|
|
(license license:expat)))
|
2016-09-11 15:41:07 +02:00
|
|
|
|
|
|
|
|
|
(define-public sslh
|
|
|
|
|
(package
|
|
|
|
|
(name "sslh")
|
|
|
|
|
(version "1.18")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://github.com/yrutschle/sslh/archive/v"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1vzw7a7s9lhspbn5zn3hw8hir4pkjgbd68yys4hfsnjp1h7bzjpn"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(;; Tests dependencies.
|
|
|
|
|
("lcov" ,lcov)
|
|
|
|
|
("perl" ,perl)
|
|
|
|
|
("perl-io-socket-inet6" ,perl-io-socket-inet6)
|
|
|
|
|
("perl-socket6" ,perl-socket6)
|
|
|
|
|
("psmisc" ,psmisc)
|
|
|
|
|
("valgrind" ,valgrind)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("libcap" ,libcap)
|
|
|
|
|
("libconfig" ,libconfig)
|
|
|
|
|
("tcp-wrappers" ,tcp-wrappers)))
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(delete 'configure) ; no configure script
|
|
|
|
|
(add-before 'check 'fix-tests
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "./t"
|
|
|
|
|
(("\"/tmp") "$ENV{\"TMPDIR\"} . \"")
|
|
|
|
|
;; The Guix build environment lacks ‘ip6-localhost’.
|
|
|
|
|
(("ip6-localhost") "localhost"))
|
|
|
|
|
#t))
|
|
|
|
|
;; Many of these files are mentioned in the man page. Install them.
|
|
|
|
|
(add-after 'install 'install-documentation
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(doc (string-append out "/share/doc/sslh")))
|
|
|
|
|
(install-file "README.md" doc)
|
|
|
|
|
(for-each
|
|
|
|
|
(lambda (file)
|
|
|
|
|
(install-file file (string-append doc "/examples")))
|
|
|
|
|
(append (find-files "." "\\.cfg")
|
|
|
|
|
(find-files "scripts"))))
|
|
|
|
|
#t)))
|
|
|
|
|
#:make-flags (list "CC=gcc"
|
|
|
|
|
"USELIBCAP=1"
|
|
|
|
|
"USELIBWRAP=1"
|
|
|
|
|
(string-append "PREFIX=" (assoc-ref %outputs "out")))
|
|
|
|
|
#:test-target "test"))
|
|
|
|
|
(home-page "http://www.rutschle.net/tech/sslh.shtml")
|
|
|
|
|
(synopsis "Applicative network protocol demultiplexer")
|
|
|
|
|
(description
|
|
|
|
|
"sslh is a network protocol demultiplexer. It acts like a switchboard,
|
|
|
|
|
accepting connections from clients on one port and forwarding them to different
|
|
|
|
|
servers based on the contents of the first received data packet. Detection of
|
|
|
|
|
common protocols like HTTP(S), SSL, SSH, OpenVPN, tinc, and XMPP is already
|
|
|
|
|
implemented, but any other protocol that matches a regular expression can be
|
|
|
|
|
added. sslh's name comes from its original application of serving both SSH and
|
|
|
|
|
HTTPS on port 443, allowing SSH connections from inside corporate firewalls
|
|
|
|
|
that block port 22.")
|
|
|
|
|
(license (list license:bsd-2 ; tls.[ch]
|
|
|
|
|
license:gpl2+)))) ; everything else
|
2016-10-18 17:28:23 +02:00
|
|
|
|
|
|
|
|
|
(define-public iperf
|
|
|
|
|
(package
|
|
|
|
|
(name "iperf")
|
|
|
|
|
(version "3.1.3")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "http://downloads.es.net/pub/iperf"
|
|
|
|
|
"/iperf-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1gwmhm29zlp5grrpglmqj7vgx19s6xy33hk6hpbn8jnpn5lxpn30"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(synopsis "TCP, UDP and SCTP bandwidth measurement tool")
|
|
|
|
|
(description
|
|
|
|
|
"iPerf is a tool to measure achievable bandwidth on IP networks. It
|
|
|
|
|
supports tuning of various parameters related to timing, buffers and
|
|
|
|
|
protocols (TCP, UDP, SCTP with IPv4 and IPv6). For each test it reports
|
|
|
|
|
the bandwidth, loss, and other parameters.")
|
|
|
|
|
(home-page "http://software.es.net/iperf/")
|
|
|
|
|
(license (list license:bsd-3 ; Main distribution.
|
|
|
|
|
license:ncsa ; src/{units,iperf_locale,tcp_window_size}.c
|
|
|
|
|
license:expat ; src/{cjson,net}.[ch]
|
|
|
|
|
license:public-domain)))) ; src/portable_endian.h
|