2021-02-05 17:12:51 +00:00
|
|
|
{ stdenv, lib, fetchurl, pkg-config, removeReferencesTo
|
2020-04-24 23:36:52 +00:00
|
|
|
, libevent, readline, net-snmp, openssl
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "lldpd";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "1.0.14";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://media.luffy.cx/files/lldpd/${pname}-${version}.tar.gz";
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-p0gZIU8Ral28QHo9SQyqAbpAGiSVF6yCajdAWcEtEug=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--localstatedir=/var"
|
|
|
|
"--enable-pie"
|
|
|
|
"--with-snmp"
|
|
|
|
"--with-systemdsystemunitdir=\${out}/lib/systemd/system"
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config removeReferencesTo ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ libevent readline net-snmp openssl ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" "man" "doc" ];
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
find $out -type f -exec remove-references-to -t ${stdenv.cc} '{}' +
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "802.1ab implementation (LLDP) to help you locate neighbors of all your equipments";
|
2021-12-06 16:07:01 +00:00
|
|
|
homepage = "https://lldpd.github.io/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ fpletz ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|