keepalived: Add derivation
This commit is contained in:
parent
f893ac0622
commit
511fc648b5
35
pkgs/tools/networking/keepalived/default.nix
Normal file
35
pkgs/tools/networking/keepalived/default.nix
Normal file
@ -0,0 +1,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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -1927,6 +1927,8 @@ let
|
|||||||
|
|
||||||
kdbplus = callPackage_i686 ../applications/misc/kdbplus { };
|
kdbplus = callPackage_i686 ../applications/misc/kdbplus { };
|
||||||
|
|
||||||
|
keepalived = callPackage ../tools/networking/keepalived { };
|
||||||
|
|
||||||
kexectools = callPackage ../os-specific/linux/kexectools { };
|
kexectools = callPackage ../os-specific/linux/kexectools { };
|
||||||
|
|
||||||
keybase = callPackage ../applications/misc/keybase { };
|
keybase = callPackage ../applications/misc/keybase { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user