git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #17651 from leenaars/argus

Argus + Argus-clients: init at 3.0.8.2

commitbb21c377e72ec5c5ec501824402a2d8c94c16d63 authorJaka Hudoklin <jakahudoklin@gmail.com> dateWed 24 Aug 2016, 23:48 (10 years ago) parentdcebe6f378c7a2
3 files changed+91
pkgs/tools/networking/argus-clients/default.nix+41 pkgs/tools/networking/argus/default.nix+46 pkgs/top-level/all-packages.nix+4
pkgs/tools/networking/argus-clients/default.nixnew file+41
@@ -0,0 +1,41 @@
1+{ stdenv, fetchurl, libpcap, bison, flex, cyrus_sasl, tcp_wrappers, pkgconfig, perl }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "argus-clients";
5+ version = "3.0.8.2";
6+ name = "${pname}-${version}";
7+
8+ src = fetchurl {
9+ url = "http://qosient.com/argus/src/${name}.tar.gz";
10+ sha256 = "1c9vj6ma00gqq9h92fg71sxcsjzz912166sdg90ahvnmvmh3l1rj";
11+ };
12+
13+ patchPhase = ''
14+ for file in ./examples/*/*.pl; do
15+ substituteInPlace $file \
16+ --subst-var-by PERLBIN ${perl}/bin/perl
17+ done
18+ '';
19+
20+ configureFlags = "--with-perl=${perl}/bin/perl";
21+
22+ buildInputs = [ libpcap pkgconfig bison cyrus_sasl tcp_wrappers flex ];
23+
24+ meta = with stdenv.lib; {
25+ description = "Clients for ARGUS";
26+ longDescription = ''Clients for Audit Record Generation and
27+ Utilization System (ARGUS). The Argus Project is focused on developing all
28+ aspects of large scale network situtational awareness derived from
29+ network activity audit. Argus, itself, is next-generation network
30+ flow technology, processing packets, either on the wire or in
31+ captures, into advanced network flow data. The data, its models,
32+ formats, and attributes are designed to support Network
33+ Operations, Performance and Security Management. If you need to
34+ know what is going on in your network, right now or historically,
35+ you will find Argus a useful tool. '';
36+ homepage = http://qosient.com/argus;
37+ license = licenses.gpl2Plus;
38+ maintainers = with maintainers; [ leenaars ];
39+ platforms = platforms.linux;
40+ };
41+}
pkgs/tools/networking/argus/default.nixnew file+46
@@ -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+}
pkgs/top-level/all-packages.nix+4
@@ -422,6 +422,10 @@ in
422422
423423 apitrace = qt55.callPackage ../applications/graphics/apitrace {};
424424
425+ argus = callPackage ../tools/networking/argus {};
426+
427+ argus-clients = callPackage ../tools/networking/argus-clients {};
428+
425429 argtable = callPackage ../tools/misc/argtable {};
426430
427431 argyllcms = callPackage ../tools/graphics/argyllcms {};