about summary refs log tree commit diff
path: root/pkgs/applications/networking/iptraf-ng/default.nix
diff options
context:
space:
mode:
authordevhell <^@regexmail.net>2015-10-01 22:38:50 +0100
committerdevhell <^@regexmail.net>2015-10-01 22:38:50 +0100
commit66dd86d4ca565e2b00106443240ce02467ea7a6d (patch)
tree4571bf589091b06ffbdbc5baf457bc2df74366dc /pkgs/applications/networking/iptraf-ng/default.nix
parent83a5cfb260e22027b0b9d4736f9b6ed127355864 (diff)
downloadnixlib-66dd86d4ca565e2b00106443240ce02467ea7a6d.tar
nixlib-66dd86d4ca565e2b00106443240ce02467ea7a6d.tar.gz
nixlib-66dd86d4ca565e2b00106443240ce02467ea7a6d.tar.bz2
nixlib-66dd86d4ca565e2b00106443240ce02467ea7a6d.tar.lz
nixlib-66dd86d4ca565e2b00106443240ce02467ea7a6d.tar.xz
nixlib-66dd86d4ca565e2b00106443240ce02467ea7a6d.tar.zst
nixlib-66dd86d4ca565e2b00106443240ce02467ea7a6d.zip
iptraf-ng: init at 1.1.4
This commit adds `iptraf-ng` which is a fork of `iptraf`. The original
has not been updated in ~10 years. This fork is more modern but
development is a bit slow (last update to master 15 months ago).
Nevertheless, unlike `iptraf` this one doesn't barf around and works
properly.
Diffstat (limited to 'pkgs/applications/networking/iptraf-ng/default.nix')
-rw-r--r--pkgs/applications/networking/iptraf-ng/default.nix44
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/applications/networking/iptraf-ng/default.nix b/pkgs/applications/networking/iptraf-ng/default.nix
new file mode 100644
index 000000000000..368d78a36f90
--- /dev/null
+++ b/pkgs/applications/networking/iptraf-ng/default.nix
@@ -0,0 +1,44 @@
+{ stdenv, fetchurl, ncurses }:
+
+stdenv.mkDerivation rec {
+  version = "1.1.4";
+  name = "iptraf-ng-${version}";
+
+  src = fetchurl {
+    url = "https://fedorahosted.org/releases/i/p/iptraf-ng/${name}.tar.gz";
+    sha256 = "02gb8z9h2s6s1ybyikywz7jgb1mafdx88hijfasv3khcgkq0q53r";
+  };
+
+  buildInputs = [ ncurses ];
+
+  configurePhase = ''
+    ./configure --prefix=$out/usr --sysconfdir=$out/etc \
+                --localstatedir=$out/var --sbindir=$out/bin
+  '';
+
+  meta = {
+    description = "A console-based network monitoring utility (fork of iptraf)";
+    longDescription = ''
+      IPTraf-ng is a console-based network monitoring utility. IPTraf-ng
+      gathers data like TCP connection packet and byte counts, interface
+      statistics and activity indicators, TCP/UDP traffic breakdowns, and LAN
+      station packet and byte counts. IPTraf-ng features include an IP traffic
+      monitor which shows TCP flag information, packet and byte counts, ICMP
+      details, OSPF packet types, and oversized IP packet warnings; interface
+      statistics showing IP, TCP, UDP, ICMP, non-IP and other IP packet counts,
+      IP checksum errors, interface activity and packet size counts; a TCP and
+      UDP service monitor showing counts of incoming and outgoing packets for
+      common TCP and UDP application ports, a LAN statistics module that
+      discovers active hosts and displays statistics about their activity; TCP,
+      UDP and other protocol display filters so you can view just the traffic
+      you want; logging; support for Ethernet, FDDI, ISDN, SLIP, PPP, and
+      loopback interfaces; and utilization of the built-in raw socket interface
+      of the Linux kernel, so it can be used on a wide variety of supported
+      network cards.
+    '';
+    homepage = https://fedorahosted.org/iptraf-ng/;
+    license = stdenv.lib.licenses.gpl2;
+    platforms = stdenv.lib.platforms.linux;
+    maintainers = [ stdenv.lib.maintainers.devhell ];
+  };
+}