@@ -0,0 +1,31 @@
1+{ stdenv, fetchurl, libpcap, zlib }:
2+
3+stdenv.mkDerivation rec {
4+ version = "3.0.718";
5+ name = "darkstat-${version}";
6+
7+ src = fetchurl {
8+ url = "${meta.homepage}/${name}.tar.bz2";
9+ sha256 = "1zxd4bxdfk1pjpcxhrcp54l991g0lljl4sr312nsd7p8yi9kwbv8";
10+ };
11+
12+ buildInputs = [ libpcap zlib ];
13+
14+ enableParallelBuilding = true;
15+
16+ meta = with stdenv.lib; {
17+ description = "Network statistics web interface";
18+ longDescription = ''
19+ Captures network traffic, calculates statistics about usage, and serves
20+ reports over HTTP. Features:
21+ - Traffic graphs, reports per host, shows ports for each host.
22+ - Embedded web-server with deflate compression.
23+ - Asynchronous reverse DNS resolution using a child process.
24+ - Small. Portable. Single-threaded. Efficient.
25+ - Supports IPv6.
26+ '';
27+ homepage = http://unix4lyfe.org/darkstat;
28+ license = with licenses; gpl2;
29+ maintainers = with maintainers; [ nckx ];
30+ };
31+}