net-snmp: split outputs (#76155)

net-snmp: split outputs
This commit is contained in:
Jörg Thalheim 2019-12-25 06:27:55 +00:00 committed by GitHub
commit 89c55c0a6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
26 changed files with 126 additions and 71 deletions

View File

@ -132,6 +132,7 @@ in
jellyfin = handleTest ./jellyfin.nix {}; jellyfin = handleTest ./jellyfin.nix {};
jenkins = handleTest ./jenkins.nix {}; jenkins = handleTest ./jenkins.nix {};
kafka = handleTest ./kafka.nix {}; kafka = handleTest ./kafka.nix {};
keepalived = handleTest ./keepalived.nix {};
kerberos = handleTest ./kerberos/default.nix {}; kerberos = handleTest ./kerberos/default.nix {};
kernel-latest = handleTest ./kernel-latest.nix {}; kernel-latest = handleTest ./kernel-latest.nix {};
kernel-lts = handleTest ./kernel-lts.nix {}; kernel-lts = handleTest ./kernel-lts.nix {};

View File

@ -0,0 +1,42 @@
import ./make-test-python.nix ({ pkgs, ... }: {
name = "keepalived";
nodes = {
node1 = { pkgs, ... }: {
networking.firewall.extraCommands = "iptables -A INPUT -p vrrp -j ACCEPT";
services.keepalived.enable = true;
services.keepalived.vrrpInstances.test = {
interface = "eth1";
state = "MASTER";
priority = 50;
virtualIps = [{ addr = "192.168.1.200"; }];
virtualRouterId = 1;
};
environment.systemPackages = [ pkgs.tcpdump ];
};
node2 = { pkgs, ... }: {
networking.firewall.extraCommands = "iptables -A INPUT -p vrrp -j ACCEPT";
services.keepalived.enable = true;
services.keepalived.vrrpInstances.test = {
interface = "eth1";
state = "MASTER";
priority = 100;
virtualIps = [{ addr = "192.168.1.200"; }];
virtualRouterId = 1;
};
environment.systemPackages = [ pkgs.tcpdump ];
};
};
testScript = ''
# wait for boot time delay to pass
for node in [node1, node2]:
node.wait_until_succeeds(
"systemctl show -p LastTriggerUSecMonotonic keepalived-boot-delay.timer | grep -vq 'LastTriggerUSecMonotonic=0'"
)
node.wait_for_unit("keepalived")
node2.wait_until_succeeds("ip addr show dev eth1 | grep -q 192.168.1.200")
node1.fail("ip addr show dev eth1 | grep -q 192.168.1.200")
node1.succeed("ping -c1 192.168.1.200")
'';
})

View File

@ -1,5 +1,5 @@
{ stdenv { stdenv
, avahi, libjpeg, libusb1, libv4l, net_snmp, libpng , avahi, libjpeg, libusb1, libv4l, net-snmp, libpng
, gettext, pkgconfig , gettext, pkgconfig
# List of { src name backend } attibute sets - see installFirmware below: # List of { src name backend } attibute sets - see installFirmware below:
@ -24,7 +24,7 @@ stdenv.mkDerivation {
++ stdenv.lib.optional (libusb1 != null) "--enable-libusb_1_0" ++ stdenv.lib.optional (libusb1 != null) "--enable-libusb_1_0"
; ;
buildInputs = [ avahi libusb1 libv4l net_snmp libpng ]; buildInputs = [ avahi libusb1 libv4l net-snmp libpng ];
nativeBuildInputs = [ gettext pkgconfig ]; nativeBuildInputs = [ gettext pkgconfig ];
enableParallelBuilding = true; enableParallelBuilding = true;

View File

@ -3,7 +3,7 @@
, buildPythonPackage , buildPythonPackage
, pythonAtLeast , pythonAtLeast
, fetchFromGitHub , fetchFromGitHub
, net_snmp , net-snmp
, openssl , openssl
, pytest , pytest
, pytestcov , pytestcov
@ -35,12 +35,12 @@ buildPythonPackage rec {
]; ];
buildInputs = [ buildInputs = [
net_snmp net-snmp
openssl openssl
]; ];
buildPhase = '' buildPhase = ''
python setup.py build bdist_wheel --basedir=${net_snmp}/bin python setup.py build bdist_wheel --basedir=${lib.getBin net-snmp}/bin
''; '';
# Unable to get tests to pass, even running by hand. The pytest tests have # Unable to get tests to pass, even running by hand. The pytest tests have

View File

@ -1,7 +1,7 @@
{ stdenv, fetchurl, substituteAll { stdenv, fetchurl, substituteAll
, pkgconfig , pkgconfig
, cups, libjpeg, libusb1, python2Packages, sane-backends, dbus, usbutils , cups, libjpeg, libusb1, python2Packages, sane-backends, dbus, usbutils
, net_snmp, openssl, nettools , net-snmp, openssl, nettools
, bash, coreutils, utillinux , bash, coreutils, utillinux
, qtSupport ? true , qtSupport ? true
, withPlugin ? false , withPlugin ? false
@ -55,7 +55,7 @@ python2Packages.buildPythonApplication {
libusb1 libusb1
sane-backends sane-backends
dbus dbus
net_snmp net-snmp
openssl openssl
]; ];

View File

@ -2,7 +2,7 @@
, pkgconfig , pkgconfig
, cups, zlib, libjpeg, libusb1, python2Packages, sane-backends , cups, zlib, libjpeg, libusb1, python2Packages, sane-backends
, dbus, file, ghostscript, usbutils , dbus, file, ghostscript, usbutils
, net_snmp, openssl, perl, nettools , net-snmp, openssl, perl, nettools
, bash, coreutils, utillinux , bash, coreutils, utillinux
, withQt5 ? true , withQt5 ? true
, withPlugin ? false , withPlugin ? false
@ -59,7 +59,7 @@ python2Packages.buildPythonApplication {
dbus dbus
file file
ghostscript ghostscript
net_snmp net-snmp
openssl openssl
perl perl
zlib zlib

View File

@ -2,7 +2,7 @@
, pkgconfig , pkgconfig
, cups, zlib, libjpeg, libusb1, python3Packages, sane-backends , cups, zlib, libjpeg, libusb1, python3Packages, sane-backends
, dbus, file, ghostscript, usbutils , dbus, file, ghostscript, usbutils
, net_snmp, openssl, perl, nettools , net-snmp, openssl, perl, nettools
, bash, coreutils, utillinux , bash, coreutils, utillinux
, withQt5 ? true , withQt5 ? true
, withPlugin ? false , withPlugin ? false
@ -58,7 +58,7 @@ python3Packages.buildPythonApplication {
dbus dbus
file file
ghostscript ghostscript
net_snmp net-snmp
openssl openssl
perl perl
zlib zlib

View File

@ -1,5 +1,5 @@
{ stdenv, fetchurl, makeWrapper, pkgconfig, nss, nspr, libqb { stdenv, fetchurl, makeWrapper, pkgconfig, nss, nspr, libqb
, dbus, rdma-core, libstatgrab, net_snmp , dbus, rdma-core, libstatgrab, net-snmp
, enableDbus ? false , enableDbus ? false
, enableInfiniBandRdma ? false , enableInfiniBandRdma ? false
, enableMonitoring ? false , enableMonitoring ? false
@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
] ++ optional enableDbus dbus ] ++ optional enableDbus dbus
++ optional enableInfiniBandRdma rdma-core ++ optional enableInfiniBandRdma rdma-core
++ optional enableMonitoring libstatgrab ++ optional enableMonitoring libstatgrab
++ optional enableSnmp net_snmp; ++ optional enableSnmp net-snmp;
configureFlags = [ configureFlags = [
"--sysconfdir=/etc" "--sysconfdir=/etc"

View File

@ -1,22 +1,26 @@
{ stdenv, fetchurl, pkgconfig, systemd { stdenv, fetchurl, pkgconfig, systemd
, boost, libsodium, libedit, re2 , boost, libsodium, libedit, re2
, net_snmp, lua, protobuf, openssl }: stdenv.mkDerivation rec { , net-snmp, lua, protobuf, openssl, zlib, h2o
}:
stdenv.mkDerivation rec {
pname = "dnsdist"; pname = "dnsdist";
version = "1.3.2"; version = "1.4.0";
src = fetchurl { src = fetchurl {
url = "https://downloads.powerdns.com/releases/dnsdist-${version}.tar.bz2"; url = "https://downloads.powerdns.com/releases/dnsdist-${version}.tar.bz2";
sha256 = "1i3b1vpk9a8zbx9aby2s1ckkzhlvzgn11hcgj3b8x2j1b9771rqb"; sha256 = "1h0x5xd13j8xxrrinb7d55851m6n9w0r15wx9m3c50dk7qngldm3";
}; };
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig protobuf ];
buildInputs = [ systemd boost libsodium libedit re2 net_snmp lua protobuf openssl ]; buildInputs = [ systemd boost libsodium libedit re2 net-snmp lua openssl zlib h2o ];
configureFlags = [ configureFlags = [
"--enable-libsodium" "--enable-libsodium"
"--enable-re2" "--enable-re2"
"--enable-dnscrypt" "--enable-dnscrypt"
"--enable-dns-over-tls" "--enable-dns-over-tls"
"--enable-dns-over-https"
"--with-protobuf=yes" "--with-protobuf=yes"
"--with-net-snmp" "--with-net-snmp"
"--disable-dependency-tracking" "--disable-dependency-tracking"
@ -26,6 +30,8 @@
doCheck = true; doCheck = true;
enableParallelBuilding = true;
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "DNS Loadbalancer"; description = "DNS Loadbalancer";
homepage = "https://dnsdist.org"; homepage = "https://dnsdist.org";

View File

@ -1,6 +1,6 @@
{ stdenv, fetchFromGitHub { stdenv, fetchFromGitHub
, pkgconfig, cmake, ninja , pkgconfig, cmake, ninja
, libressl, libuv, zlib , openssl, libuv, zlib
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true; enableParallelBuilding = true;
nativeBuildInputs = [ pkgconfig cmake ninja ]; nativeBuildInputs = [ pkgconfig cmake ninja ];
buildInputs = [ libressl libuv zlib ]; buildInputs = [ openssl libuv zlib ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Optimized HTTP/1 and HTTP/2 server"; description = "Optimized HTTP/1 and HTTP/2 server";

View File

@ -1,5 +1,5 @@
{ stdenv, fetchurl, fetchpatch, autoreconfHook, pkgconfig, doxygen, perl, pam, nspr, nss, openldap { stdenv, fetchurl, fetchpatch, autoreconfHook, pkgconfig, doxygen, perl, pam, nspr, nss, openldap
, db, cyrus_sasl, svrcore, icu, net_snmp, kerberos, pcre, perlPackages, libevent, openssl, python , db, cyrus_sasl, svrcore, icu, net-snmp, kerberos, pcre, perlPackages, libevent, openssl, python
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoreconfHook pkgconfig doxygen ]; nativeBuildInputs = [ autoreconfHook pkgconfig doxygen ];
buildInputs = [ buildInputs = [
perl pam nspr nss openldap db cyrus_sasl svrcore icu perl pam nspr nss openldap db cyrus_sasl svrcore icu
net_snmp kerberos pcre libevent openssl python net-snmp kerberos pcre libevent openssl python
] ++ (with perlPackages; [ MozillaLdap NetAddrIP DBFile ]); ] ++ (with perlPackages; [ MozillaLdap NetAddrIP DBFile ]);
patches = [ patches = [
@ -46,7 +46,9 @@ stdenv.mkDerivation rec {
"--with-db-inc=${db.dev}/include" "--with-db-inc=${db.dev}/include"
"--with-db-lib=${db.out}/lib" "--with-db-lib=${db.out}/lib"
"--with-sasl=${cyrus_sasl.dev}" "--with-sasl=${cyrus_sasl.dev}"
"--with-netsnmp=${net_snmp}" "--with-netsnmp=yes"
"--with-netsnmp-inc=${stdenv.lib.getDev net-snmp}/include"
"--with-netsnmp-lib=${stdenv.lib.getLib net-snmp}/lib"
]; ];
enableParallelBuilding = true; enableParallelBuilding = true;

View File

@ -1,4 +1,5 @@
{ stdenv, fetchurl, fetchpatch, autoreconfHook, file, openssl, perl, perlPackages, unzip, nettools, ncurses }: { stdenv, fetchurl, fetchpatch, autoreconfHook, removeReferencesTo
, file, openssl, perl, perlPackages, unzip, nettools, ncurses }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "net-snmp-5.8"; name = "net-snmp-5.8";
@ -19,6 +20,8 @@ stdenv.mkDerivation rec {
./0002-autoconf-version.patch ./0002-autoconf-version.patch
]; ];
outputs = [ "bin" "out" "dev" "lib" ];
configureFlags = configureFlags =
[ "--with-default-snmp-version=3" [ "--with-default-snmp-version=3"
"--with-sys-location=Unknown" "--with-sys-location=Unknown"
@ -34,17 +37,21 @@ stdenv.mkDerivation rec {
substituteInPlace testing/fulltests/support/simple_TESTCONF.sh --replace "/bin/netstat" "${nettools}/bin/netstat" substituteInPlace testing/fulltests/support/simple_TESTCONF.sh --replace "/bin/netstat" "${nettools}/bin/netstat"
''; '';
nativeBuildInputs = [ autoreconfHook nettools ]; nativeBuildInputs = [ autoreconfHook nettools removeReferencesTo ];
buildInputs = [ file perl unzip openssl ncurses ]; buildInputs = with perlPackages; [ file perl unzip openssl ncurses JSON Tk TermReadKey ];
propagatedBuildInputs = with perlPackages; [ perl JSON Tk TermReadKey ];
enableParallelBuilding = true; enableParallelBuilding = true;
doCheck = false; # tries to use networking doCheck = false; # tries to use networking
postInstall = '' postInstall = ''
for f in "$out/lib/"*.la $out/bin/net-snmp-config $out/bin/net-snmp-create-v3-user; do for f in "$lib/lib/"*.la $bin/bin/net-snmp-config $bin/bin/net-snmp-create-v3-user; do
sed 's|-L${openssl.dev}|-L${openssl.out}|g' -i $f sed 's|-L${openssl.dev}|-L${openssl.out}|g' -i $f
done done
mkdir $dev/bin
mv $bin/bin/net-snmp-config $dev/bin
# libraries contain configure options
find $lib/lib -type f -exec remove-references-to -t $bin '{}' +
find $lib/lib -type f -exec remove-references-to -t $dev '{}' +
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {

View File

@ -1,5 +1,5 @@
{ stdenv, fetchFromGitHub, fetchpatch, autoreconfHook { stdenv, fetchFromGitHub, fetchpatch, autoreconfHook
, coreutils, gnugrep, gnused, lm_sensors, net_snmp, openssh, openssl, perl , coreutils, gnugrep, gnused, lm_sensors, net-snmp, openssh, openssl, perl
, dnsutils, libdbi, libmysqlclient, zlib, openldap, procps , dnsutils, libdbi, libmysqlclient, zlib, openldap, procps
, runtimeShell }: , runtimeShell }:
@ -9,7 +9,7 @@ let
majorVersion = "2.2"; majorVersion = "2.2";
minorVersion = ".0"; minorVersion = ".0";
binPath = makeBinPath [ coreutils gnugrep gnused lm_sensors net_snmp procps ]; binPath = makeBinPath [ coreutils gnugrep gnused lm_sensors net-snmp procps ];
in stdenv.mkDerivation { in stdenv.mkDerivation {
name = "monitoring-plugins-${majorVersion}${minorVersion}"; name = "monitoring-plugins-${majorVersion}${minorVersion}";
@ -48,7 +48,7 @@ in stdenv.mkDerivation {
''; '';
# !!! make openssh a runtime dependency only # !!! make openssh a runtime dependency only
buildInputs = [ dnsutils libdbi libmysqlclient net_snmp openldap openssh openssl perl procps zlib ]; buildInputs = [ dnsutils libdbi libmysqlclient net-snmp openldap openssh openssl perl procps zlib ];
nativeBuildInputs = [ autoreconfHook ]; nativeBuildInputs = [ autoreconfHook ];

View File

@ -1,4 +1,4 @@
{ stdenv, buildGoPackage, fetchFromGitHub, net_snmp }: { stdenv, buildGoPackage, fetchFromGitHub, net-snmp }:
buildGoPackage rec { buildGoPackage rec {
pname = "snmp_exporter"; pname = "snmp_exporter";
@ -13,7 +13,7 @@ buildGoPackage rec {
sha256 = "1cnz1wapxs3fkghzy6v90s56vd0ngynypyapcpbmx5y66rlpdxx6"; sha256 = "1cnz1wapxs3fkghzy6v90s56vd0ngynypyapcpbmx5y66rlpdxx6";
}; };
buildInputs = [ net_snmp ]; buildInputs = [ net-snmp ];
doCheck = true; doCheck = true;

View File

@ -1,6 +1,6 @@
{ stdenv, fetchurl, pkgconfig, libevent, libiconv, openssl, pcre, zlib { stdenv, fetchurl, pkgconfig, libevent, libiconv, openssl, pcre, zlib
, odbcSupport ? true, unixODBC , odbcSupport ? true, unixODBC
, snmpSupport ? true, net_snmp , snmpSupport ? true, net-snmp
, sshSupport ? true, libssh2 , sshSupport ? true, libssh2
, sqliteSupport ? false, sqlite , sqliteSupport ? false, sqlite
, mysqlSupport ? false, libmysqlclient , mysqlSupport ? false, libmysqlclient
@ -34,7 +34,7 @@ in
zlib zlib
] ]
++ optional odbcSupport unixODBC ++ optional odbcSupport unixODBC
++ optional snmpSupport net_snmp ++ optional snmpSupport net-snmp
++ optional sqliteSupport sqlite ++ optional sqliteSupport sqlite
++ optional sshSupport libssh2 ++ optional sshSupport libssh2
++ optional mysqlSupport libmysqlclient ++ optional mysqlSupport libmysqlclient

View File

@ -2,7 +2,7 @@
, jabberSupport ? true, iksemel , jabberSupport ? true, iksemel
, ldapSupport ? true, openldap , ldapSupport ? true, openldap
, odbcSupport ? true, unixODBC , odbcSupport ? true, unixODBC
, snmpSupport ? true, net_snmp , snmpSupport ? true, net-snmp
, sshSupport ? true, libssh2 , sshSupport ? true, libssh2
, mysqlSupport ? false, libmysqlclient , mysqlSupport ? false, libmysqlclient
, postgresqlSupport ? false, postgresql , postgresqlSupport ? false, postgresql
@ -38,7 +38,7 @@ in
++ optional odbcSupport unixODBC ++ optional odbcSupport unixODBC
++ optional jabberSupport iksemel ++ optional jabberSupport iksemel
++ optional ldapSupport openldap ++ optional ldapSupport openldap
++ optional snmpSupport net_snmp ++ optional snmpSupport net-snmp
++ optional sshSupport libssh2 ++ optional sshSupport libssh2
++ optional mysqlSupport libmysqlclient ++ optional mysqlSupport libmysqlclient
++ optional postgresqlSupport postgresql; ++ optional postgresqlSupport postgresql;

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, libcap, libnl, readline, net_snmp, less, perl, texinfo, { stdenv, fetchurl, libcap, libnl, readline, net-snmp, less, perl, texinfo,
pkgconfig, c-ares }: pkgconfig, c-ares }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
}; };
buildInputs = buildInputs =
[ readline net_snmp c-ares ] [ readline net-snmp c-ares ]
++ stdenv.lib.optionals stdenv.isLinux [ libcap libnl ]; ++ stdenv.lib.optionals stdenv.isLinux [ libcap libnl ];
nativeBuildInputs = [ pkgconfig perl texinfo ]; nativeBuildInputs = [ pkgconfig perl texinfo ];

View File

@ -1,5 +1,5 @@
{ stdenv, fetchurl, libpcap, bison, flex, cyrus_sasl, tcp_wrappers, { 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 { stdenv.mkDerivation rec {
pname = "argus"; pname = "argus";
@ -10,9 +10,9 @@ stdenv.mkDerivation rec {
sha256 = "1zzf688dbbcb5z2r9v1p28rddns6znzx35nc05ygza6lp7aknkna"; sha256 = "1zzf688dbbcb5z2r9v1p28rddns6znzx35nc05ygza6lp7aknkna";
}; };
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig bison flex ];
buildInputs = [ libpcap bison cyrus_sasl tcp_wrappers flex ]; buildInputs = [ libpcap cyrus_sasl tcp_wrappers ];
propagatedBuildInputs = [ procps which wget lsof net_snmp ]; propagatedBuildInputs = [ procps which wget lsof net-snmp ];
patchPhase = '' patchPhase = ''
substituteInPlace events/argus-extip.pl \ substituteInPlace events/argus-extip.pl \
@ -23,8 +23,8 @@ stdenv.mkDerivation rec {
substituteInPlace events/argus-vmstat.sh \ substituteInPlace events/argus-vmstat.sh \
--replace vm_stat ${procps}/bin/vmstat --replace vm_stat ${procps}/bin/vmstat
substituteInPlace events/argus-snmp.sh \ substituteInPlace events/argus-snmp.sh \
--replace /usr/bin/snmpget ${net_snmp}/bin/snmpget \ --replace /usr/bin/snmpget ${stdenv.lib.getBin net-snmp}/bin/snmpget \
--replace /usr/bin/snmpwalk ${net_snmp}/bin/snmpwalk --replace /usr/bin/snmpwalk ${stdenv.lib.getBin net-snmp}/bin/snmpwalk
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, autoreconfHook, net_snmp }: { stdenv, fetchurl, autoreconfHook, net-snmp }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "ifstat-legacy"; pname = "ifstat-legacy";
@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
sha256 = "01zmv6vk5kh5xmd563xws8a1qnxjb6b6kv59yzz9r3rrghxhd6c5"; sha256 = "01zmv6vk5kh5xmd563xws8a1qnxjb6b6kv59yzz9r3rrghxhd6c5";
}; };
buildInputs = [ net_snmp ]; buildInputs = [ net-snmp ];
nativeBuildInputs = [ autoreconfHook ]; nativeBuildInputs = [ autoreconfHook ];

View File

@ -1,32 +1,28 @@
{ stdenv, fetchFromGitHub, fetchpatch, libnfnetlink, libnl, net_snmp, openssl, pkgconfig }: { stdenv, fetchFromGitHub, nixosTests
, libnfnetlink, libnl, net-snmp, openssl
, pkgconfig, autoreconfHook }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "keepalived"; pname = "keepalived";
version = "1.4.5"; version = "2.0.19";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "acassen"; owner = "acassen";
repo = "keepalived"; repo = "keepalived";
rev = "v${version}"; rev = "v${version}";
sha256 = "12r80rcfxrys826flaqcdlfhcr7q4ccsd62ra1svy9545vf02qmx"; sha256 = "05jgr0f04z69x3zf3b9z04wczl15fnh69bs6j0yw55fij1k9nj4d";
}; };
patches = [
(fetchpatch {
name = "CVE-2018-19115.patch";
url = "https://github.com/acassen/keepalived/pull/961/commits/f28015671a4b04785859d1b4b1327b367b6a10e9.patch";
sha256 = "1jnwk7x4qdgv7fb4jzw6sihv62n8wv04myhgwm2vxn8nfkcgd1mm";
})
];
buildInputs = [ buildInputs = [
libnfnetlink libnfnetlink
libnl libnl
net_snmp net-snmp
openssl openssl
]; ];
nativeBuildInputs = [ pkgconfig ]; passthru.tests.keepalived = nixosTests.keepalived;
nativeBuildInputs = [ pkgconfig autoreconfHook ];
configureFlags = [ configureFlags = [
"--enable-sha1" "--enable-sha1"

View File

@ -1,5 +1,5 @@
{ stdenv, lib, fetchurl, pkgconfig, removeReferencesTo { stdenv, lib, fetchurl, pkgconfig, removeReferencesTo
, libevent, readline, net_snmp, openssl , libevent, readline, net-snmp, openssl
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
]; ];
nativeBuildInputs = [ pkgconfig removeReferencesTo ]; nativeBuildInputs = [ pkgconfig removeReferencesTo ];
buildInputs = [ libevent readline net_snmp openssl ]; buildInputs = [ libevent readline net-snmp openssl ];
enableParallelBuilding = true; enableParallelBuilding = true;

View File

@ -24,7 +24,7 @@
, lm_sensors , lm_sensors
, mongoc , mongoc
, mosquitto , mosquitto
, net_snmp , net-snmp
, postgresql , postgresql
, protobufc , protobufc
, python , python
@ -243,10 +243,10 @@ let
buildInputs = stdenv.lib.optionals stdenv.isLinux [ libatasmart udev ]; buildInputs = stdenv.lib.optionals stdenv.isLinux [ libatasmart udev ];
}; };
snmp = { snmp = {
buildInputs = stdenv.lib.optionals stdenv.isLinux [ net_snmp ]; buildInputs = stdenv.lib.optionals stdenv.isLinux [ net-snmp ];
}; };
snmp_agent = { snmp_agent = {
buildInputs = stdenv.lib.optionals stdenv.isLinux [ net_snmp ]; buildInputs = stdenv.lib.optionals stdenv.isLinux [ net-snmp ];
}; };
statsd = {}; statsd = {};
swap = {}; swap = {};

View File

@ -1,6 +1,6 @@
{ stdenv, fetchurl, pkgconfig, autoreconfHook, libestr, json_c, zlib, pythonPackages, fastJson { stdenv, fetchurl, pkgconfig, autoreconfHook, libestr, json_c, zlib, pythonPackages, fastJson
, libkrb5 ? null, systemd ? null, jemalloc ? null, libmysqlclient ? null, postgresql ? null , libkrb5 ? null, systemd ? null, jemalloc ? null, libmysqlclient ? null, postgresql ? null
, libdbi ? null, net_snmp ? null, libuuid ? null, curl ? null, gnutls ? null , libdbi ? null, net-snmp ? null, libuuid ? null, curl ? null, gnutls ? null
, libgcrypt ? null, liblognorm ? null, openssl ? null, librelp ? null, libksi ? null , libgcrypt ? null, liblognorm ? null, openssl ? null, librelp ? null, libksi ? null
, liblogging ? null, libnet ? null, hadoop ? null, rdkafka ? null , liblogging ? null, libnet ? null, hadoop ? null, rdkafka ? null
, libmongo-client ? null, czmq ? null, rabbitmq-c ? null, hiredis ? null, mongoc ? null , libmongo-client ? null, czmq ? null, rabbitmq-c ? null, hiredis ? null, mongoc ? null
@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig autoreconfHook ]; nativeBuildInputs = [ pkgconfig autoreconfHook ];
buildInputs = [ buildInputs = [
fastJson libestr json_c zlib pythonPackages.docutils libkrb5 jemalloc fastJson libestr json_c zlib pythonPackages.docutils libkrb5 jemalloc
postgresql libdbi net_snmp libuuid curl gnutls libgcrypt liblognorm openssl postgresql libdbi net-snmp libuuid curl gnutls libgcrypt liblognorm openssl
librelp libksi liblogging libnet hadoop rdkafka libmongo-client czmq librelp libksi liblogging libnet hadoop rdkafka libmongo-client czmq
rabbitmq-c hiredis mongoc rabbitmq-c hiredis mongoc
] ++ stdenv.lib.optional (libmysqlclient != null) libmysqlclient ] ++ stdenv.lib.optional (libmysqlclient != null) libmysqlclient
@ -54,7 +54,7 @@ stdenv.mkDerivation rec {
(mkFlag (libmysqlclient != null) "mysql") (mkFlag (libmysqlclient != null) "mysql")
(mkFlag (postgresql != null) "pgsql") (mkFlag (postgresql != null) "pgsql")
(mkFlag (libdbi != null) "libdbi") (mkFlag (libdbi != null) "libdbi")
(mkFlag (net_snmp != null) "snmp") (mkFlag (net-snmp != null) "snmp")
(mkFlag (libuuid != null) "uuid") (mkFlag (libuuid != null) "uuid")
(mkFlag (curl != null) "elasticsearch") (mkFlag (curl != null) "elasticsearch")
(mkFlag (gnutls != null) "gnutls") (mkFlag (gnutls != null) "gnutls")

View File

@ -394,6 +394,7 @@ mapAliases ({
smbclient = samba; # added 2018-04-25 smbclient = samba; # added 2018-04-25
slim = throw "slim has been removed. Please use a different display-manager"; # added 2019-11-11 slim = throw "slim has been removed. Please use a different display-manager"; # added 2019-11-11
slimThemes = throw "slimThemes has been removed because slim has been also"; # added 2019-11-11 slimThemes = throw "slimThemes has been removed because slim has been also"; # added 2019-11-11
net_snmp = net-snmp; # added 2019-12-21
spaceOrbit = space-orbit; # addewd 2016-05-23 spaceOrbit = space-orbit; # addewd 2016-05-23
speech_tools = speech-tools; # added 2018-04-25 speech_tools = speech-tools; # added 2018-04-25
speedtest_cli = speedtest-cli; # added 2015-02-17 speedtest_cli = speedtest-cli; # added 2015-02-17

View File

@ -2081,7 +2081,7 @@ in
libmysqlclient = null; libmysqlclient = null;
postgresql = null; postgresql = null;
libdbi = null; libdbi = null;
net_snmp = null; net-snmp = null;
libuuid = null; libuuid = null;
gnutls = null; gnutls = null;
libgcrypt = null; libgcrypt = null;
@ -15442,7 +15442,7 @@ in
check-esxi-hardware = callPackage ../servers/monitoring/plugins/esxi.nix {}; check-esxi-hardware = callPackage ../servers/monitoring/plugins/esxi.nix {};
net_snmp = callPackage ../servers/monitoring/net-snmp { }; net-snmp = callPackage ../servers/monitoring/net-snmp { };
newrelic-sysmond = callPackage ../servers/monitoring/newrelic-sysmond { }; newrelic-sysmond = callPackage ../servers/monitoring/newrelic-sysmond { };

View File

@ -1803,7 +1803,7 @@ in {
easysnmp = callPackage ../development/python-modules/easysnmp { easysnmp = callPackage ../development/python-modules/easysnmp {
openssl = pkgs.openssl; openssl = pkgs.openssl;
net_snmp = pkgs.net_snmp; net-snmp = pkgs.net-snmp;
}; };
iowait = callPackage ../development/python-modules/iowait {}; iowait = callPackage ../development/python-modules/iowait {};