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