2009-10-12 11:08:52 +00:00
|
|
|
{stdenv, fetchurl, ncurses}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2012-09-01 19:53:58 +00:00
|
|
|
name = "vnstat-1.11";
|
|
|
|
|
2009-10-12 11:08:52 +00:00
|
|
|
src = fetchurl {
|
2012-09-01 19:53:58 +00:00
|
|
|
url = "http://humdi.net/vnstat/${name}.tar.gz";
|
|
|
|
sha256 = "09p0mlf49zzmh6jzwyvzd9k3jv7bl8i6w8xl65ns3dmv2zc7c65p";
|
2009-10-12 11:08:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/{bin,sbin} $out/share/man/{man1,man5}
|
2009-10-12 11:08:52 +00:00
|
|
|
cp src/vnstat $out/bin
|
|
|
|
cp src/vnstatd $out/sbin
|
|
|
|
cp man/vnstat.1 man/vnstatd.1 $out/share/man/man1
|
|
|
|
cp man/vnstat.conf.5 $out/share/man/man5
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ncurses];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://humdi.net/vnstat/;
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2009-10-12 11:08:52 +00:00
|
|
|
description = "Console-based network statistics utility for Linux";
|
|
|
|
};
|
|
|
|
}
|