2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, libpcap, perl }:
|
2015-02-05 14:52:14 +01:00
|
|
|
|
2021-08-01 22:48:53 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dhcpdump";
|
|
|
|
version = "1.8";
|
2015-02-05 14:52:14 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-11-06 02:56:39 +01:00
|
|
|
url = "mirror://ubuntu/pool/universe/d/dhcpdump/dhcpdump_${version}.orig.tar.gz";
|
2015-02-05 14:52:14 +01:00
|
|
|
sha256 = "143iyzkqvhj4dscwqs75jvfr4wvzrs11ck3fqn5p7yv2h50vjpkd";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [libpcap perl];
|
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "fortify" ];
|
2016-02-12 01:40:58 +01:00
|
|
|
|
2015-02-05 14:52:14 +01:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -pv $out/bin
|
|
|
|
cp dhcpdump $out/bin
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2015-02-05 14:52:14 +01:00
|
|
|
description = "A tool for visualization of DHCP packets as recorded and output by tcpdump to analyze DHCP server responses";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.mavetju.org/unix/dhcpdump-man.php";
|
2018-09-10 21:20:19 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.bsd2;
|
2015-02-05 14:52:14 +01:00
|
|
|
};
|
|
|
|
}
|