2015-06-15 13:10:46 +01:00
|
|
|
{ stdenv, fetchurl, openssl, gmp, zlib, iproute, nettools }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gvpe-${version}";
|
|
|
|
version = "2.25";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://ftp.gnu.org/gnu/gvpe/gvpe-${version}.tar.gz";
|
|
|
|
sha256 = "1gsipcysvsk80gvyn9jnk9g0xg4ng9yd5zp066jnmpgs52d2vhvk";
|
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|