2015-06-15 13:10:46 +01:00
|
|
|
{ stdenv, fetchurl, openssl, gmp, zlib, iproute, nettools }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gvpe-${version}";
|
2017-03-02 01:23:36 +00:00
|
|
|
version = "3.0";
|
2015-06-15 13:10:46 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://ftp.gnu.org/gnu/gvpe/gvpe-${version}.tar.gz";
|
2017-03-02 01:23:36 +00:00
|
|
|
sha256 = "1v61mj25iyd91z0ir7cmradkkcm1ffbk52c96v293ibsvjs2s2hf";
|
2015-06-15 13:10:46 +01:00
|
|
|
};
|
|
|
|
|
2017-11-15 21:33:53 +00:00
|
|
|
patches = [ ./gvpe-3.0-glibc-2.26.patch ];
|
|
|
|
|
2015-06-15 13:10:46 +01:00
|
|
|
buildInputs = [ openssl gmp zlib ];
|
2009-09-01 21:12:01 +01:00
|
|
|
|
2009-09-01 22:00:34 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-tcp"
|
|
|
|
"--enable-http-proxy"
|
|
|
|
"--enable-dns"
|
|
|
|
];
|
2009-09-01 21:12:01 +01:00
|
|
|
|
2015-06-15 13:10:46 +01:00
|
|
|
preBuild = ''
|
|
|
|
sed -e 's@"/sbin/ifconfig.*"@"${iproute}/sbin/ip link set $IFNAME address $MAC mtu $MTU"@' -i src/device-linux.C
|
|
|
|
sed -e 's@/sbin/ifconfig@${nettools}/sbin/ifconfig@g' -i src/device-*.C
|
|
|
|
'';
|
2015-09-15 05:27:19 +01:00
|
|
|
|
2009-09-01 21:12:01 +01:00
|
|
|
meta = {
|
2015-06-15 13:10:46 +01:00
|
|
|
description = "A protected multinode virtual network";
|
|
|
|
maintainers = [ stdenv.lib.maintainers.raskin ];
|
|
|
|
platforms = with stdenv.lib.platforms; linux ++ freebsd;
|
2009-09-01 21:12:01 +01:00
|
|
|
};
|
|
|
|
}
|