keepalived: 1.2.19 -> 1.3.2
This commit is contained in:
parent
397e59b4c9
commit
4ebfc19335
@ -1,33 +1,29 @@
|
|||||||
{ stdenv, fetchurl, openssl, net_snmp, libnl }:
|
{ stdenv, fetchFromGitHub, libnfnetlink, libnl, net_snmp, openssl, pkgconfig }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "keepalived-1.2.19";
|
name = "keepalived-${version}";
|
||||||
|
version = "1.3.2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "http://keepalived.org/software/${name}.tar.gz";
|
owner = "acassen";
|
||||||
sha256 = "0lrq963pxhgh74qmxjyy5hvxdfpm4r50v4vsrp559n0w5irsxyrj";
|
repo = "keepalived";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "1mfw8116b7j8y37l382v154yssm635kbm72f4x8303g5zwg6n6qx";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ openssl net_snmp libnl ];
|
buildInputs = [
|
||||||
|
libnfnetlink
|
||||||
|
libnl
|
||||||
|
net_snmp
|
||||||
|
openssl
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
sed -i 's,$(DESTDIR)/usr/share,$out/share,g' Makefile.in
|
|
||||||
'';
|
|
||||||
|
|
||||||
# It doesn't know about the include/libnl<n> directory
|
|
||||||
NIX_CFLAGS_COMPILE="-I${libnl.dev}/include/libnl3";
|
|
||||||
NIX_LDFLAGS="-lnl-3 -lnl-genl-3";
|
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--sysconfdir=/etc"
|
|
||||||
"--localstatedir=/var"
|
|
||||||
"--enable-snmp"
|
|
||||||
"--enable-sha1"
|
"--enable-sha1"
|
||||||
];
|
"--enable-snmp"
|
||||||
|
];
|
||||||
installFlags = [
|
|
||||||
"sysconfdir=\${out}/etc"
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://keepalived.org;
|
homepage = http://keepalived.org;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user