net-snmp: rename from net_snmp

This commit is contained in:
Jörg Thalheim
2019-12-21 22:56:08 +00:00
parent 475aecef6a
commit 725f85e271
22 changed files with 51 additions and 48 deletions
+4 -4
View File
@@ -1,5 +1,5 @@
{ stdenv, fetchurl, libpcap, bison, flex, cyrus_sasl, tcp_wrappers,
pkgconfig, procps, which, wget, lsof, net_snmp, perl }:
pkgconfig, procps, which, wget, lsof, net-snmp, perl }:
stdenv.mkDerivation rec {
pname = "argus";
@@ -10,9 +10,9 @@ stdenv.mkDerivation rec {
sha256 = "1zzf688dbbcb5z2r9v1p28rddns6znzx35nc05ygza6lp7aknkna";
};
propagatedBuildInputs = [ procps which wget lsof net_snmp ];
nativeBuildInputs = [ pkgconfig bison flex ];
buildInputs = [ libpcap cyrus_sasl tcp_wrappers ];
propagatedBuildInputs = [ procps which wget lsof net-snmp ];
patchPhase = ''
substituteInPlace events/argus-extip.pl \
@@ -23,8 +23,8 @@ stdenv.mkDerivation rec {
substituteInPlace events/argus-vmstat.sh \
--replace vm_stat ${procps}/bin/vmstat
substituteInPlace events/argus-snmp.sh \
--replace /usr/bin/snmpget ${net_snmp}/bin/snmpget \
--replace /usr/bin/snmpwalk ${net_snmp}/bin/snmpwalk
--replace /usr/bin/snmpget ${stdenv.lib.getBin net-snmp}/bin/snmpget \
--replace /usr/bin/snmpwalk ${stdenv.lib.getBin net-snmp}/bin/snmpwalk
'';
meta = with stdenv.lib; {