ike: add missing dependencies, note kernel compatibility
This commit is contained in:
parent
caea2b6fd3
commit
68e37cf417
@ -1,8 +1,12 @@
|
||||
{ stdenv, fetchurl, cmake, openssl, libedit, flex, bison, qt4, makeWrapper, gcc }:
|
||||
{ stdenv, fetchurl, cmake, openssl, libedit, flex, bison, qt4, makeWrapper
|
||||
, gcc, nettools, iproute, linuxHeaders }:
|
||||
|
||||
# NOTE: use $out/etc/iked.conf as sample configuration and also set: dhcp_file "/etc/iked.dhcp";
|
||||
# launch with "iked -f /etc/iked.conf"
|
||||
|
||||
# NOTE: my testings reveal that kernels 3.11.10 and 3.12.6 won't let the traffic through the tunnel,
|
||||
# so I'm sticking with 3.4
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "ike-2.2.1";
|
||||
|
||||
@ -11,11 +15,13 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0fhyr2psd93b0zf7yfb72q3nqnh65mymgq5jpjcsj9jv5kfr6l8y";
|
||||
};
|
||||
|
||||
buildInputs = [ cmake openssl libedit flex bison qt4 makeWrapper ];
|
||||
buildInputs = [ cmake openssl libedit flex bison qt4 makeWrapper nettools iproute ];
|
||||
|
||||
configurePhase = ''
|
||||
mkdir -p $out/{bin,sbin,lib}
|
||||
cmake -DQTGUI=YES -DETCDIR=$out/etc -DLIBDIR=$out/lib -DSBINDIR=$out/sbin -DBINDIR=$out/bin -DMANDIR=$out/man -DNATT=YES -DCMAKE_INSTALL_PREFIX:BOOL=$out
|
||||
cmake -DQTGUI=YES -DETCDIR=$out/etc -DLIBDIR=$out/lib -DSBINDIR=$out/sbin -DBINDIR=$out/bin \
|
||||
-DKRNINC="${linuxHeaders}/include/" -DTESTS=YES \
|
||||
-DMANDIR=$out/man -DNATT=YES -DCMAKE_INSTALL_PREFIX:BOOL=$out
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
|
Loading…
Reference in New Issue
Block a user