Merge pull request #5837 from nckx/darkstat
Add darkstat: light-weight network monitor web interface
This commit is contained in:
commit
09c4fe4999
31
pkgs/tools/networking/darkstat/default.nix
Normal file
31
pkgs/tools/networking/darkstat/default.nix
Normal file
@ -0,0 +1,31 @@
|
||||
{ stdenv, fetchurl, libpcap, zlib }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "3.0.718";
|
||||
name = "darkstat-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "${meta.homepage}/${name}.tar.bz2";
|
||||
sha256 = "1zxd4bxdfk1pjpcxhrcp54l991g0lljl4sr312nsd7p8yi9kwbv8";
|
||||
};
|
||||
|
||||
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;
|
||||
license = with licenses; gpl2;
|
||||
maintainers = with maintainers; [ nckx ];
|
||||
};
|
||||
}
|
@ -973,6 +973,8 @@ let
|
||||
|
||||
dar = callPackage ../tools/archivers/dar { };
|
||||
|
||||
darkstat = callPackage ../tools/networking/darkstat { };
|
||||
|
||||
davfs2 = callPackage ../tools/filesystems/davfs2 { };
|
||||
|
||||
dbench = callPackage ../development/tools/misc/dbench { };
|
||||
|
Loading…
Reference in New Issue
Block a user