2015-01-18 21:53:16 +01:00
|
|
|
{ stdenv, fetchurl, libpcap, zlib }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-05-24 15:32:57 +02:00
|
|
|
version = "3.0.719";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "darkstat";
|
2015-01-18 21:53:16 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "${meta.homepage}/${pname}-${version}.tar.bz2";
|
2015-05-24 15:32:57 +02:00
|
|
|
sha256 = "1mzddlim6dhd7jhr4smh0n2fa511nvyjhlx76b03vx7phnar1bxf";
|
2015-01-18 21:53:16 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libpcap zlib ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Network statistics web interface";
|
|
|
|
longDescription = ''
|
|
|
|
Captures network traffic, calculates statistics about usage, and serves
|
|
|
|
reports over HTTP. Features:
|
|
|
|
- Traffic graphs, reports per host, shows ports for each host.
|
|
|
|
- Embedded web-server with deflate compression.
|
|
|
|
- Asynchronous reverse DNS resolution using a child process.
|
|
|
|
- Small. Portable. Single-threaded. Efficient.
|
|
|
|
- Supports IPv6.
|
|
|
|
'';
|
|
|
|
homepage = http://unix4lyfe.org/darkstat;
|
2015-05-28 19:20:29 +02:00
|
|
|
license = licenses.gpl2;
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = with platforms; unix;
|
2015-01-18 21:53:16 +01:00
|
|
|
};
|
|
|
|
}
|