2021-03-14 17:05:16 +01:00
|
|
|
{ lib, stdenv, fetchurl, openssl, gmp, zlib, iproute2, nettools }:
|
2015-06-15 14:10:46 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "gvpe";
|
2017-03-02 02:23:36 +01:00
|
|
|
version = "3.0";
|
2015-06-15 14:10:46 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 20:43:35 +02:00
|
|
|
url = "https://ftp.gnu.org/gnu/gvpe/gvpe-${version}.tar.gz";
|
2017-03-02 02:23:36 +01:00
|
|
|
sha256 = "1v61mj25iyd91z0ir7cmradkkcm1ffbk52c96v293ibsvjs2s2hf";
|
2015-06-15 14:10:46 +02:00
|
|
|
};
|
|
|
|
|
2017-11-15 22:33:53 +01:00
|
|
|
patches = [ ./gvpe-3.0-glibc-2.26.patch ];
|
|
|
|
|
2015-06-15 14:10:46 +02:00
|
|
|
buildInputs = [ openssl gmp zlib ];
|
2009-09-01 22:12:01 +02:00
|
|
|
|
2009-09-01 23:00:34 +02:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-tcp"
|
|
|
|
"--enable-http-proxy"
|
|
|
|
"--enable-dns"
|
|
|
|
];
|
2009-09-01 22:12:01 +02:00
|
|
|
|
2015-06-15 14:10:46 +02:00
|
|
|
preBuild = ''
|
2021-03-14 17:05:16 +01:00
|
|
|
sed -e 's@"/sbin/ifconfig.*"@"${iproute2}/sbin/ip link set $IFNAME address $MAC mtu $MTU"@' -i src/device-linux.C
|
2015-06-15 14:10:46 +02:00
|
|
|
sed -e 's@/sbin/ifconfig@${nettools}/sbin/ifconfig@g' -i src/device-*.C
|
|
|
|
'';
|
2015-09-15 06:27:19 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2015-06-15 14:10:46 +02:00
|
|
|
description = "A protected multinode virtual network";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://software.schmorp.de/pkg/gvpe.html";
|
2018-09-10 21:26:36 +02:00
|
|
|
maintainers = [ maintainers.raskin ];
|
|
|
|
platforms = with platforms; linux ++ freebsd;
|
|
|
|
license = licenses.gpl2;
|
2009-09-01 22:12:01 +02:00
|
|
|
};
|
|
|
|
}
|