1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 13:10:33 +00:00

dhcpdump: add the tool

This commit is contained in:
Sergey Mironov 2015-02-05 16:52:14 +03:00 committed by Sergey Mironov
parent b7adfe0e7d
commit 0a006c78bf
2 changed files with 25 additions and 0 deletions

View file

@ -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;
};
}

View file

@ -1037,6 +1037,8 @@ let
dhcp = callPackage ../tools/networking/dhcp { };
dhcpdump = callPackage ../tools/networking/dhcpdump { };
dhcpcd = callPackage ../tools/networking/dhcpcd { };
di = callPackage ../tools/system/di { };