2014-12-22 20:24:19 +03:00
|
|
|
{ stdenv, fetchurl, gmp, pkgconfig, python, autoreconfHook }:
|
2014-09-16 22:10:37 +04:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-11-14 23:22:14 +03:00
|
|
|
name = "strongswan-5.2.1";
|
2014-09-16 22:10:37 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.strongswan.org/${name}.tar.bz2";
|
2014-11-14 23:22:14 +03:00
|
|
|
sha256 = "05cjjd7gg65bl6fswj2r2i13nn1nk4x86s06y75gwfdvnlrsnlga";
|
2014-09-16 22:10:37 +04:00
|
|
|
};
|
|
|
|
|
2014-11-25 04:50:17 +03:00
|
|
|
dontPatchELF = true;
|
|
|
|
|
2014-12-22 20:24:19 +03:00
|
|
|
buildInputs = [ gmp pkgconfig python autoreconfHook ];
|
|
|
|
|
|
|
|
patches = [
|
2014-12-22 22:55:01 +03:00
|
|
|
./ext_auth-path.patch
|
2014-12-22 20:24:19 +03:00
|
|
|
./firewall_defaults.patch
|
2014-12-22 22:55:01 +03:00
|
|
|
./updown-path.patch
|
2014-12-22 20:24:19 +03:00
|
|
|
];
|
2014-09-19 09:09:00 +04:00
|
|
|
|
2014-10-14 12:02:02 +04:00
|
|
|
configureFlags = [ "--enable-swanctl" "--enable-cmd" ];
|
2014-09-16 22:10:37 +04:00
|
|
|
|
2014-11-11 09:40:52 +03:00
|
|
|
NIX_LDFLAGS = "-lgcc_s" ;
|
|
|
|
|
2014-09-16 22:10:37 +04:00
|
|
|
meta = {
|
|
|
|
maintainers = [ stdenv.lib.maintainers.shlevy ];
|
|
|
|
description = "OpenSource IPsec-based VPN Solution";
|
|
|
|
homepage = https://www.strongswan.org;
|
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2014-11-26 23:04:59 +03:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
2014-09-16 22:10:37 +04:00
|
|
|
};
|
|
|
|
}
|