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.

devhell 66dd86d4 83a5cfb2

+46
+44
pkgs/applications/networking/iptraf-ng/default.nix
··· 1 + { stdenv, fetchurl, ncurses }: 2 + 3 + stdenv.mkDerivation rec { 4 + version = "1.1.4"; 5 + name = "iptraf-ng-${version}"; 6 + 7 + src = fetchurl { 8 + url = "https://fedorahosted.org/releases/i/p/iptraf-ng/${name}.tar.gz"; 9 + sha256 = "02gb8z9h2s6s1ybyikywz7jgb1mafdx88hijfasv3khcgkq0q53r"; 10 + }; 11 + 12 + buildInputs = [ ncurses ]; 13 + 14 + configurePhase = '' 15 + ./configure --prefix=$out/usr --sysconfdir=$out/etc \ 16 + --localstatedir=$out/var --sbindir=$out/bin 17 + ''; 18 + 19 + meta = { 20 + description = "A console-based network monitoring utility (fork of iptraf)"; 21 + longDescription = '' 22 + IPTraf-ng is a console-based network monitoring utility. IPTraf-ng 23 + gathers data like TCP connection packet and byte counts, interface 24 + statistics and activity indicators, TCP/UDP traffic breakdowns, and LAN 25 + station packet and byte counts. IPTraf-ng features include an IP traffic 26 + monitor which shows TCP flag information, packet and byte counts, ICMP 27 + details, OSPF packet types, and oversized IP packet warnings; interface 28 + statistics showing IP, TCP, UDP, ICMP, non-IP and other IP packet counts, 29 + IP checksum errors, interface activity and packet size counts; a TCP and 30 + UDP service monitor showing counts of incoming and outgoing packets for 31 + common TCP and UDP application ports, a LAN statistics module that 32 + discovers active hosts and displays statistics about their activity; TCP, 33 + UDP and other protocol display filters so you can view just the traffic 34 + you want; logging; support for Ethernet, FDDI, ISDN, SLIP, PPP, and 35 + loopback interfaces; and utilization of the built-in raw socket interface 36 + of the Linux kernel, so it can be used on a wide variety of supported 37 + network cards. 38 + ''; 39 + homepage = https://fedorahosted.org/iptraf-ng/; 40 + license = stdenv.lib.licenses.gpl2; 41 + platforms = stdenv.lib.platforms.linux; 42 + maintainers = [ stdenv.lib.maintainers.devhell ]; 43 + }; 44 + }
+2
pkgs/top-level/all-packages.nix
··· 11775 11775 11776 11776 iptraf = callPackage ../applications/networking/iptraf { }; 11777 11777 11778 + iptraf-ng = callPackage ../applications/networking/iptraf-ng { }; 11779 + 11778 11780 irssi = callPackage ../applications/networking/irc/irssi { }; 11779 11781 11780 11782 irssi_fish = callPackage ../applications/networking/irc/irssi/fish { };