2021-09-18 10:52:07 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, autoreconfHook
|
|
|
|
, fetchFromGitHub
|
|
|
|
, json_c
|
|
|
|
, libnet
|
|
|
|
, libpcap
|
|
|
|
, openssl
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "ssldump";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "1.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "adulau";
|
|
|
|
repo = "ssldump";
|
2021-09-18 10:52:07 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1xnlfqsl93nxbcv4x4xsgxa6mnhcx37hijrpdb7vzla6q7xvg8qr";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
json_c
|
|
|
|
libnet
|
|
|
|
libpcap
|
|
|
|
openssl
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
prePatch = ''
|
|
|
|
sed -i -e 's|#include.*net/bpf.h|#include <pcap/bpf.h>|' \
|
|
|
|
base/pcap-snoop.c
|
|
|
|
'';
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-pcap-lib=${libpcap}/lib"
|
|
|
|
"--with-pcap-inc=${libpcap}/include"
|
|
|
|
"--with-openssl-lib=${openssl}/lib"
|
|
|
|
"--with-openssl-inc=${openssl}/include"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-11-03 02:18:15 +00:00
|
|
|
description = "An SSLv3/TLS network protocol analyzer";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://ssldump.sourceforge.net";
|
|
|
|
license = "BSD-style";
|
2021-09-18 10:52:07 +00:00
|
|
|
maintainers = with maintainers; [ aycanirican ];
|
2021-12-06 16:07:01 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|