nixpkgs-suyu/pkgs/os-specific/linux/ipsec-tools/default.nix

46 lines
1.3 KiB
Nix
Raw Normal View History

2012-10-20 13:06:09 +02:00
{ stdenv, fetchurl, linuxHeaders, readline, openssl, flex, krb5, pam }:
# TODO: These tools are supposed to work under NetBSD and FreeBSD as
# well, so I guess it's not appropriate to place this expression in
# "os-specific/linux/ipsec-tools". Since I cannot verify that the
# expression actually builds on those platforms, I'll leave it here for
# the time being.
stdenv.mkDerivation rec {
2013-07-22 16:25:02 +02:00
name = "ipsec-tools-0.8.1";
2012-10-20 13:06:09 +02:00
src = fetchurl {
url = "mirror://sourceforge/ipsec-tools/${name}.tar.bz2";
2013-07-22 16:25:02 +02:00
sha256 = "1m1x2planqqxi0587g7d8xhy0gkyfaxs3ry4hhdh0bw46sxrajps";
2012-10-20 13:06:09 +02:00
};
buildInputs = [ readline openssl flex krb5 pam ];
patches = [ ./dont-create-localstatedir-during-install.patch ];
# fix build with newer gcc versions
preConfigure = ''substituteInPlace configure --replace "-Werror" "" '';
2012-10-20 13:06:09 +02:00
configureFlags = ''
--sysconfdir=/etc --localstatedir=/var
--with-kernel-headers=${linuxHeaders}/include
--disable-security-context
--enable-adminport
--enable-dpd
--enable-frag
--enable-gssapi
--enable-hybrid
--enable-natt
--enable-shared
--enable-stats
'';
meta = {
homepage = "http://ipsec-tools.sourceforge.net/";
description = "Port of KAME's IPsec utilities to the Linux-2.6 IPsec implementation";
platforms = stdenv.lib.platforms.linux;
maintainers = [stdenv.lib.maintainers.simons];
};
}