1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00
nixpkgs/pkgs/os-specific/linux/ipsec-tools/default.nix

52 lines
1.7 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, fetchpatch, linuxHeaders, readline, openssl, flex, kerberos, pam }:
2012-10-20 12:06:09 +01:00
# 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 {
2014-03-03 10:08:41 +00:00
name = "ipsec-tools-0.8.2";
2012-10-20 12:06:09 +01:00
src = fetchurl {
url = "mirror://sourceforge/ipsec-tools/${name}.tar.bz2";
2014-03-03 10:08:41 +00:00
sha256 = "0b9gfbz78k2nj0k7jdlm5kajig628ja9qm0z5yksiwz22s3v7dlf";
2012-10-20 12:06:09 +01:00
};
buildInputs = [ readline openssl flex kerberos pam ];
2012-10-20 12:06:09 +01:00
patches = [
./dont-create-localstatedir-during-install.patch
./CVE-2015-4047.patch
(fetchpatch {
url = "https://anonscm.debian.org/cgit/pkg-ipsec-tools/pkg-ipsec-tools.git/plain/debian/patches/CVE-2016-10396.patch?id=62ac12648a4eb7c5ba5dba0f81998d1acf310d8b";
sha256 = "1kf7j2pf1blni52z7q41n0yisqb7gvk01lvldr319zaxxg7rm84a";
})
];
2012-10-20 12:06:09 +01:00
# fix build with newer gcc versions
preConfigure = ''substituteInPlace configure --replace "-Werror" "" '';
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"
];
2012-10-20 12:06:09 +01:00
2018-08-29 23:32:24 +01:00
meta = with stdenv.lib; {
homepage = http://ipsec-tools.sourceforge.net/;
2012-10-20 12:06:09 +01:00
description = "Port of KAME's IPsec utilities to the Linux-2.6 IPsec implementation";
2018-08-29 23:32:24 +01:00
license = licenses.bsd3;
platforms = platforms.linux;
2012-10-20 12:06:09 +01:00
};
}