From 0a006c78bf1b55af38587d1b229a87ff6a4873d3 Mon Sep 17 00:00:00 2001 From: Sergey Mironov Date: Thu, 5 Feb 2015 16:52:14 +0300 Subject: dhcpdump: add the tool --- pkgs/tools/networking/dhcpdump/default.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pkgs/tools/networking/dhcpdump/default.nix (limited to 'pkgs/tools/networking/dhcpdump') diff --git a/pkgs/tools/networking/dhcpdump/default.nix b/pkgs/tools/networking/dhcpdump/default.nix new file mode 100644 index 000000000000..778cfc3b5ed6 --- /dev/null +++ b/pkgs/tools/networking/dhcpdump/default.nix @@ -0,0 +1,23 @@ +{ stdenv, fetchurl, libpcap, perl }: + +stdenv.mkDerivation rec { + name = "dhcpdump-1.8"; + + src = fetchurl { + url = "http://archive.ubuntu.com/ubuntu/pool/universe/d/dhcpdump/dhcpdump_1.8.orig.tar.gz"; + sha256 = "143iyzkqvhj4dscwqs75jvfr4wvzrs11ck3fqn5p7yv2h50vjpkd"; + }; + + buildInputs = [libpcap perl]; + + installPhase = '' + mkdir -pv $out/bin + cp dhcpdump $out/bin + ''; + + meta = { + description = "A tool for visualization of DHCP packets as recorded and output by tcpdump to analyze DHCP server responses"; + homepage = http://packages.ubuntu.com/ru/lucid/dhcpdump; + platforms = stdenv.lib.platforms.linux; + }; +} -- cgit 1.4.1