2009-10-12 14:52:47 +04:00
|
|
|
{stdenv, fetchurl, ncurses}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-07-08 21:39:00 +04:00
|
|
|
name = "iptraf-3.0.1";
|
2009-10-12 14:52:47 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-07-08 21:39:00 +04:00
|
|
|
url = ftp://iptraf.seul.org/pub/iptraf/iptraf-3.0.1.tar.gz;
|
|
|
|
md5 = "004c2c005a1b78739e22bc49d33e244d";
|
2009-10-12 14:52:47 +04:00
|
|
|
};
|
|
|
|
|
2013-03-24 17:43:20 +04:00
|
|
|
patchPhase = ''
|
|
|
|
sed -i -e 's,#include <linux/if_tr.h>,#include <netinet/if_tr.h>,' src/*
|
|
|
|
'';
|
|
|
|
|
2009-10-12 14:52:47 +04:00
|
|
|
preConfigure = "cd src";
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-19 00:16:00 +04:00
|
|
|
mkdir -p $out/bin
|
2009-10-12 14:52:47 +04:00
|
|
|
cp iptraf $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ncurses];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://iptraf.seul.org/;
|
2014-06-19 08:19:00 +04:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2009-10-12 14:52:47 +04:00
|
|
|
description = "Console-based network statistics utility for Linux";
|
|
|
|
};
|
|
|
|
}
|