blob: 8331e4af683330331e8e773151f296aeab03e914 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
{ stdenv, fetchurl, openssl, net_snmp }:
stdenv.mkDerivation rec {
name = "keepalived-1.2.17";
src = fetchurl {
url = "http://keepalived.org/software/${name}.tar.gz";
sha256 = "1w7px8phx3pyb3b56m3nz1a9ncx26q34fgy8j4n2dpi284jmqm6z";
};
buildInputs = [ openssl net_snmp ];
postPatch = ''
sed -i 's,$(DESTDIR)/usr/share,$out/share,g' Makefile.in
'';
configureFlags = [
"--sysconfdir=/etc"
"--localstatedir=/var"
"--enable-snmp"
"--enable-sha1"
];
installFlags = [
"sysconfdir=\${out}/etc"
];
meta = with stdenv.lib; {
homepage = http://keepalived.org;
description = "routing software written in C";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ wkennington ];
};
}
|