2021-01-15 05:42:41 +00:00
|
|
|
{ lib, stdenv, fetchurl, flex, bison, libpcap, libdnet, libnfnetlink, libnetfilter_queue}:
|
2013-05-30 13:05:39 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-07-12 10:51:53 +00:00
|
|
|
pname = "daq";
|
|
|
|
version = "2.2.2";
|
2015-05-22 18:41:59 +00:00
|
|
|
|
2013-05-30 13:05:39 +00:00
|
|
|
src = fetchurl {
|
2021-07-12 10:51:53 +00:00
|
|
|
name = "${pname}-${version}.tar.gz";
|
|
|
|
url = "https://snort.org/downloads/archive/snort/${pname}-${version}.tar.gz";
|
2018-02-26 02:49:14 +00:00
|
|
|
sha256 = "0yvzscy7vqj7s5rccza0f7p6awghfm3yaxihx1h57lqspg51in3w";
|
2013-05-30 13:05:39 +00:00
|
|
|
};
|
2015-05-22 18:41:59 +00:00
|
|
|
|
2015-11-14 20:32:51 +00:00
|
|
|
buildInputs = [ flex bison libpcap libdnet libnfnetlink libnetfilter_queue];
|
|
|
|
|
2018-07-25 21:44:21 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-nfq-module=yes"
|
|
|
|
"--with-dnet-includes=${libdnet}/includes"
|
|
|
|
"--with-dnet-libraries=${libdnet}/lib"
|
|
|
|
];
|
2015-05-22 18:41:59 +00:00
|
|
|
|
2013-05-30 13:05:39 +00:00
|
|
|
meta = {
|
|
|
|
description = "Data AcQuisition library (DAQ), for packet I/O";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.snort.org";
|
2021-01-15 05:42:41 +00:00
|
|
|
maintainers = with lib.maintainers; [ aycanirican ];
|
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
platforms = with lib.platforms; linux;
|
2013-05-30 13:05:39 +00:00
|
|
|
};
|
|
|
|
}
|