From 15c16f50aaaad3ae652a634dc5ec94479fc33d05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Thu, 3 Nov 2011 18:43:48 +0000 Subject: [PATCH] Adding dnstop svn path=/nixpkgs/trunk/; revision=30209 --- pkgs/tools/networking/dnstop/default.nix | 22 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/tools/networking/dnstop/default.nix diff --git a/pkgs/tools/networking/dnstop/default.nix b/pkgs/tools/networking/dnstop/default.nix new file mode 100644 index 000000000000..cdab68f22ea9 --- /dev/null +++ b/pkgs/tools/networking/dnstop/default.nix @@ -0,0 +1,22 @@ +{ stdenv, fetchurl, libpcap, ncurses }: + +stdenv.mkDerivation { + name = "dnstop-20110502"; + + src = fetchurl { + url = http://dns.measurement-factory.com/tools/dnstop/src/dnstop-20110502.tar.gz; + sha256 = "0ra3xjf7dwvq5xm6qbqd2al35vigibihy46rsz1860qrn3wycy12"; + }; + + buildInputs = [ libpcap ncurses ]; + + preInstall = '' + ensureDir $out/share/man/man8 $out/bin + ''; + + meta = { + description = "libpcap application that displays DNS traffic on your network"; + homepage = "http://dns.measurement-factory.com/tools/dnstop"; + license = "BSD"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 361f3123d65e..1b07001287c8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -571,6 +571,8 @@ let # TODO i18n can be installed as well, implement it? }; + dnstop = callPackage ../tools/networking/dnstop { }; + dhcp = callPackage ../tools/networking/dhcp { }; dhcpcd = callPackage ../tools/networking/dhcpcd { };