@@ -0,0 +1,46 @@
1+{ stdenv, fetchurl, libpcap, bison, flex, cyrus_sasl, tcp_wrappers,
2+ pkgconfig, procps, which, wget, lsof, net_snmp, bash, perl }:
3+
4+stdenv.mkDerivation rec {
5+ pname = "argus";
6+ version = "3.0.8.2";
7+ name = "${pname}-${version}";
8+
9+ src = fetchurl {
10+ url = "http://qosient.com/argus/src/${name}.tar.gz";
11+ sha256 = "1zzf688dbbcb5z2r9v1p28rddns6znzx35nc05ygza6lp7aknkna";
12+ };
13+
14+ buildInputs = [ libpcap pkgconfig bison cyrus_sasl tcp_wrappers flex ];
15+ propagatedBuildInputs = [ procps which wget lsof net_snmp ];
16+
17+ patchPhase = ''
18+ substituteInPlace events/argus-extip.pl \
19+ --subst-var-by PERLBIN ${perl}/bin/perl
20+ substituteInPlace events/argus-lsof.pl \
21+ --replace "\`which lsof\`" "\"${lsof}/bin/lsof\"" \
22+ --subst-var-by PERLBIN ${perl}/bin/perl
23+ substituteInPlace events/argus-vmstat.sh \
24+ --replace vm_stat ${procps}/bin/vmstat
25+ substituteInPlace events/argus-snmp.sh \
26+ --replace /usr/bin/snmpget ${net_snmp}/bin/snmpget \
27+ --replace /usr/bin/snmpwalk ${net_snmp}/bin/snmpwalk
28+ '';
29+
30+ meta = with stdenv.lib; {
31+ description = "Audit Record Generation and Utilization System for networks";
32+ longDescription = ''The Argus Project is focused on developing all
33+ aspects of large scale network situtational awareness derived from
34+ network activity audit. Argus, itself, is next-generation network
35+ flow technology, processing packets, either on the wire or in
36+ captures, into advanced network flow data. The data, its models,
37+ formats, and attributes are designed to support Network
38+ Operations, Performance and Security Management. If you need to
39+ know what is going on in your network, right now or historically,
40+ you will find Argus a useful tool. '';
41+ homepage = http://qosient.com/argus;
42+ license = licenses.gpl2Plus;
43+ maintainers = with maintainers; [ leenaars ];
44+ platforms = platforms.linux;
45+ };
46+}