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:
parent
b7adfe0e7d
commit
0a006c78bf
23
pkgs/tools/networking/dhcpdump/default.nix
Normal file
23
pkgs/tools/networking/dhcpdump/default.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue