2015-11-14 21:32:51 +01:00
|
|
|
{stdenv, fetchurl, flex, bison, libpcap, libdnet, libnfnetlink, libnetfilter_queue}:
|
2013-05-30 15:05:39 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-05-21 09:08:36 +02:00
|
|
|
name = "daq-2.0.6";
|
2015-05-22 20:41:59 +02:00
|
|
|
|
2013-05-30 15:05:39 +02:00
|
|
|
src = fetchurl {
|
|
|
|
name = "${name}.tar.gz";
|
2016-05-21 09:08:36 +02:00
|
|
|
url = "https://snort.org/downloads/archive/snort/${name}.tar.gz";
|
|
|
|
sha256 = "1jz7gc9n6sr677ssv61qvcxybdrmsll4z7g6hsmax2p0fc91s3ml";
|
2013-05-30 15:05:39 +02:00
|
|
|
};
|
2015-05-22 20:41:59 +02:00
|
|
|
|
2015-11-14 21:32:51 +01:00
|
|
|
buildInputs = [ flex bison libpcap libdnet libnfnetlink libnetfilter_queue];
|
|
|
|
|
|
|
|
configureFlags = "--enable-nfq-module=yes --with-dnet-includes=${libdnet}/includes --with-dnet-libraries=${libdnet}/lib";
|
2015-05-22 20:41:59 +02:00
|
|
|
|
2013-05-30 15:05:39 +02:00
|
|
|
meta = {
|
|
|
|
description = "Data AcQuisition library (DAQ), for packet I/O";
|
|
|
|
homepage = http://www.snort.org;
|
2014-09-24 10:43:51 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ aycanirican ];
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2013-05-30 15:05:39 +02:00
|
|
|
};
|
|
|
|
}
|