···
1
+
{ stdenv, fetchurl, ncurses }:
3
+
stdenv.mkDerivation rec {
5
+
name = "iptraf-ng-${version}";
8
+
url = "https://fedorahosted.org/releases/i/p/iptraf-ng/${name}.tar.gz";
9
+
sha256 = "02gb8z9h2s6s1ybyikywz7jgb1mafdx88hijfasv3khcgkq0q53r";
12
+
buildInputs = [ ncurses ];
15
+
./configure --prefix=$out/usr --sysconfdir=$out/etc \
16
+
--localstatedir=$out/var --sbindir=$out/bin
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
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 ];