3
0
Fork 0
forked from mirrors/nixpkgs

ssldump: 1.1 -> 1.4

This commit is contained in:
Fabian Affolter 2021-08-28 12:12:04 +02:00
parent b631286150
commit 2fe26c0ca9

View file

@ -1,30 +1,52 @@
{ lib, stdenv, fetchFromGitHub, openssl, libpcap }:
{ lib
, stdenv
, autoreconfHook
, fetchFromGitHub
, json_c
, libnet
, libpcap
, openssl
}:
stdenv.mkDerivation {
stdenv.mkDerivation rec {
pname = "ssldump";
version = "1.1";
version = "1.4";
src = fetchFromGitHub {
owner = "adulau";
repo = "ssldump";
rev = "7491b9851505acff95b2c68097e9b9f630d418dc";
sha256 = "1j3rln86khdnc98v50hclvqaq83a24c1rfzbcbajkbfpr4yxpnpd";
rev = "v${version}";
sha256 = "1xnlfqsl93nxbcv4x4xsgxa6mnhcx37hijrpdb7vzla6q7xvg8qr";
};
buildInputs = [ libpcap openssl ];
nativeBuildInputs = [
autoreconfHook
];
buildInputs = [
json_c
libnet
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 = {
configureFlags = [
"--with-pcap-lib=${libpcap}/lib"
"--with-pcap-inc=${libpcap}/include"
"--with-openssl-lib=${openssl}/lib"
"--with-openssl-inc=${openssl}/include"
];
meta = with lib; {
description = "An SSLv3/TLS network protocol analyzer";
homepage = "http://ssldump.sourceforge.net";
license = "BSD-style";
maintainers = with lib.maintainers; [ aycanirican ];
platforms = lib.platforms.linux;
maintainers = with maintainers; [ aycanirican ];
platforms = platforms.linux;
};
}