keepalived: 1.2.19 -> 1.3.2

This commit is contained in:
Marius Bergmann 2017-02-13 19:36:12 +01:00
parent 397e59b4c9
commit 4ebfc19335

View File

@ -1,32 +1,28 @@
{ 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
postPatch = '' libnl
sed -i 's,$(DESTDIR)/usr/share,$out/share,g' Makefile.in net_snmp
''; openssl
# 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 = [
"--sysconfdir=/etc"
"--localstatedir=/var"
"--enable-snmp"
"--enable-sha1"
]; ];
installFlags = [ nativeBuildInputs = [ pkgconfig ];
"sysconfdir=\${out}/etc"
configureFlags = [
"--enable-sha1"
"--enable-snmp"
]; ];
meta = with stdenv.lib; { meta = with stdenv.lib; {