2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, libpcap, bison, flex, cyrus_sasl, tcp_wrappers,
|
2021-01-17 03:51:22 +00:00
|
|
|
pkg-config, procps, which, wget, lsof, net-snmp, perl }:
|
2016-08-10 21:01:39 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "argus";
|
|
|
|
version = "3.0.8.2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "http://qosient.com/argus/src/${pname}-${version}.tar.gz";
|
2016-08-10 21:01:39 +00:00
|
|
|
sha256 = "1zzf688dbbcb5z2r9v1p28rddns6znzx35nc05ygza6lp7aknkna";
|
|
|
|
};
|
|
|
|
|
2021-01-17 03:51:22 +00:00
|
|
|
nativeBuildInputs = [ pkg-config bison flex ];
|
2019-12-21 22:42:58 +00:00
|
|
|
buildInputs = [ libpcap cyrus_sasl tcp_wrappers ];
|
2019-12-21 22:44:50 +00:00
|
|
|
propagatedBuildInputs = [ procps which wget lsof net-snmp ];
|
2016-08-10 21:01:39 +00:00
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace events/argus-extip.pl \
|
|
|
|
--subst-var-by PERLBIN ${perl}/bin/perl
|
|
|
|
substituteInPlace events/argus-lsof.pl \
|
|
|
|
--replace "\`which lsof\`" "\"${lsof}/bin/lsof\"" \
|
|
|
|
--subst-var-by PERLBIN ${perl}/bin/perl
|
|
|
|
substituteInPlace events/argus-vmstat.sh \
|
|
|
|
--replace vm_stat ${procps}/bin/vmstat
|
|
|
|
substituteInPlace events/argus-snmp.sh \
|
2021-01-15 09:19:50 +00:00
|
|
|
--replace /usr/bin/snmpget ${lib.getBin net-snmp}/bin/snmpget \
|
|
|
|
--replace /usr/bin/snmpwalk ${lib.getBin net-snmp}/bin/snmpwalk
|
2016-08-10 21:01:39 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-08-10 21:01:39 +00:00
|
|
|
description = "Audit Record Generation and Utilization System for networks";
|
|
|
|
longDescription = ''The Argus Project is focused on developing all
|
|
|
|
aspects of large scale network situtational awareness derived from
|
|
|
|
network activity audit. Argus, itself, is next-generation network
|
|
|
|
flow technology, processing packets, either on the wire or in
|
|
|
|
captures, into advanced network flow data. The data, its models,
|
|
|
|
formats, and attributes are designed to support Network
|
|
|
|
Operations, Performance and Security Management. If you need to
|
|
|
|
know what is going on in your network, right now or historically,
|
|
|
|
you will find Argus a useful tool. '';
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://qosient.com/argus";
|
2016-08-10 21:01:39 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ leenaars ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|