2021-01-15 05:42:41 +00:00
|
|
|
{lib, stdenv, fetchurl, ncurses}:
|
2009-10-12 10:52:47 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2013-07-08 17:39:00 +00:00
|
|
|
name = "iptraf-3.0.1";
|
2016-08-04 07:40:02 +00:00
|
|
|
|
2009-10-12 10:52:47 +00:00
|
|
|
src = fetchurl {
|
2020-04-01 01:11:51 +00:00
|
|
|
url = "ftp://iptraf.seul.org/pub/iptraf/iptraf-3.0.1.tar.gz";
|
2014-10-12 14:13:21 +00:00
|
|
|
sha256 = "12n059j9iihhpf6spmlaspqzxz3wqan6kkpnhmlj08jdijpnk84m";
|
2009-10-12 10:52:47 +00:00
|
|
|
};
|
|
|
|
|
2016-08-04 07:40:02 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2013-03-24 13:43:20 +00:00
|
|
|
patchPhase = ''
|
|
|
|
sed -i -e 's,#include <linux/if_tr.h>,#include <netinet/if_tr.h>,' src/*
|
|
|
|
'';
|
|
|
|
|
2009-10-12 10:52:47 +00:00
|
|
|
preConfigure = "cd src";
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/bin
|
2009-10-12 10:52:47 +00:00
|
|
|
cp iptraf $out/bin
|
|
|
|
'';
|
2016-08-04 07:40:02 +00:00
|
|
|
|
2009-10-12 10:52:47 +00:00
|
|
|
buildInputs = [ncurses];
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://iptraf.seul.org/";
|
2021-01-15 05:42:41 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
2009-10-12 10:52:47 +00:00
|
|
|
description = "Console-based network statistics utility for Linux";
|
2021-01-15 05:42:41 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2020-09-29 10:52:23 +00:00
|
|
|
broken = true; # required isdn headers have been removed from the linux kernel
|
2009-10-12 10:52:47 +00:00
|
|
|
};
|
|
|
|
}
|