2021-08-28 10:12:04 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, autoreconfHook
|
|
|
|
, fetchFromGitHub
|
|
|
|
, json_c
|
|
|
|
, libnet
|
|
|
|
, libpcap
|
|
|
|
, openssl
|
|
|
|
}:
|
2016-10-19 14:15:42 +00:00
|
|
|
|
2021-08-28 10:12:04 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "ssldump";
|
2023-04-15 18:04:11 +00:00
|
|
|
version = "1.7";
|
2016-10-19 14:15:42 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "adulau";
|
|
|
|
repo = "ssldump";
|
2021-08-28 10:12:04 +00:00
|
|
|
rev = "v${version}";
|
2023-04-15 18:04:11 +00:00
|
|
|
sha256 = "sha256-BFE42wWqnGGTTjwej3LkH4XW2M4jP7XNSKHLnF2GFJo=";
|
2016-10-19 14:15:42 +00:00
|
|
|
};
|
|
|
|
|
2021-08-28 10:12:04 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
json_c
|
|
|
|
libnet
|
|
|
|
libpcap
|
|
|
|
openssl
|
|
|
|
];
|
|
|
|
|
2016-10-19 14:15:42 +00:00
|
|
|
prePatch = ''
|
|
|
|
sed -i -e 's|#include.*net/bpf.h|#include <pcap/bpf.h>|' \
|
|
|
|
base/pcap-snoop.c
|
|
|
|
'';
|
2021-08-28 10:12:04 +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-10-26 04:08:40 +00:00
|
|
|
description = "An SSLv3/TLS network protocol analyzer";
|
2023-02-19 20:43:38 +00:00
|
|
|
homepage = "https://ssldump.sourceforge.net";
|
2016-10-19 14:15:42 +00:00
|
|
|
license = "BSD-style";
|
2021-08-28 10:12:04 +00:00
|
|
|
maintainers = with maintainers; [ aycanirican ];
|
2021-10-29 14:29:55 +00:00
|
|
|
platforms = platforms.unix;
|
2016-10-19 14:15:42 +00:00
|
|
|
};
|
|
|
|
}
|