2019-10-29 22:56:51 +00:00
|
|
|
{ stdenv, fetchFromGitHub, fetchpatch, libnfnetlink, libnl, net_snmp, openssl, pkgconfig }:
|
2015-06-27 21:33:21 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "keepalived";
|
2019-10-29 22:56:34 +00:00
|
|
|
version = "1.4.5";
|
2017-02-13 18:36:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "acassen";
|
|
|
|
repo = "keepalived";
|
|
|
|
rev = "v${version}";
|
2019-10-29 22:56:34 +00:00
|
|
|
sha256 = "12r80rcfxrys826flaqcdlfhcr7q4ccsd62ra1svy9545vf02qmx";
|
2015-06-27 21:33:21 +00:00
|
|
|
};
|
|
|
|
|
2019-10-29 22:56:51 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "CVE-2018-19115.patch";
|
|
|
|
url = "https://github.com/acassen/keepalived/pull/961/commits/f28015671a4b04785859d1b4b1327b367b6a10e9.patch";
|
|
|
|
sha256 = "1jnwk7x4qdgv7fb4jzw6sihv62n8wv04myhgwm2vxn8nfkcgd1mm";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2017-02-13 18:36:12 +00:00
|
|
|
buildInputs = [
|
|
|
|
libnfnetlink
|
|
|
|
libnl
|
|
|
|
net_snmp
|
|
|
|
openssl
|
|
|
|
];
|
2015-06-27 21:33:21 +00:00
|
|
|
|
2017-02-13 18:36:12 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2015-06-28 02:59:44 +00:00
|
|
|
|
2015-06-27 21:33:21 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-sha1"
|
2017-02-13 18:36:12 +00:00
|
|
|
"--enable-snmp"
|
|
|
|
];
|
2015-06-27 21:33:21 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-04-14 23:25:45 +00:00
|
|
|
homepage = https://keepalived.org;
|
2016-06-20 10:53:46 +00:00
|
|
|
description = "Routing software written in C";
|
2015-06-27 21:33:21 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|