2021-01-15 09:19:50 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, openssl, libpcap }:
|
2016-10-19 15:15:42 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "ssldump";
|
2020-05-26 23:08:05 +01:00
|
|
|
version = "1.1";
|
2016-10-19 15:15:42 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "adulau";
|
|
|
|
repo = "ssldump";
|
2020-05-26 23:08:05 +01:00
|
|
|
rev = "7491b9851505acff95b2c68097e9b9f630d418dc";
|
|
|
|
sha256 = "1j3rln86khdnc98v50hclvqaq83a24c1rfzbcbajkbfpr4yxpnpd";
|
2016-10-19 15:15:42 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libpcap openssl ];
|
|
|
|
prePatch = ''
|
|
|
|
sed -i -e 's|#include.*net/bpf.h|#include <pcap/bpf.h>|' \
|
|
|
|
base/pcap-snoop.c
|
|
|
|
'';
|
|
|
|
configureFlags = [ "--with-pcap-lib=${libpcap}/lib"
|
|
|
|
"--with-pcap-inc=${libpcap}/include"
|
|
|
|
"--with-openssl-lib=${openssl}/lib"
|
|
|
|
"--with-openssl-inc=${openssl}/include" ];
|
|
|
|
meta = {
|
2020-10-26 04:08:40 +00:00
|
|
|
description = "An SSLv3/TLS network protocol analyzer";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://ssldump.sourceforge.net";
|
2016-10-19 15:15:42 +01:00
|
|
|
license = "BSD-style";
|
2021-01-15 09:19:50 +00:00
|
|
|
maintainers = with lib.maintainers; [ aycanirican ];
|
|
|
|
platforms = lib.platforms.linux;
|
2016-10-19 15:15:42 +01:00
|
|
|
};
|
|
|
|
}
|