2022-01-25 03:21:06 +00:00
|
|
|
{ lib, stdenv, fetchurl, openssl, gmp, zlib, iproute2, nettools, pkg-config }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gvpe";
|
2022-01-25 03:21:06 +00:00
|
|
|
version = "3.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://ftp.gnu.org/gnu/gvpe/gvpe-${version}.tar.gz";
|
2022-01-25 03:21:06 +00:00
|
|
|
sha256 = "sha256-8evVctclu5QOCAdxocEIZ8NQnc2DFvYRSBRQPcux6LM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-01-25 03:21:06 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ openssl gmp zlib ];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-tcp"
|
|
|
|
"--enable-http-proxy"
|
|
|
|
"--enable-dns"
|
2022-01-25 03:21:06 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-25 03:21:06 +00:00
|
|
|
postPatch = ''
|
2023-11-16 04:20:00 +00:00
|
|
|
sed -e 's@"/sbin/ifconfig.*"@"${iproute2}/sbin/ip link set dev $IFNAME address $MAC mtu $MTU"@' -i src/device-linux.C
|
2020-04-24 23:36:52 +00:00
|
|
|
sed -e 's@/sbin/ifconfig@${nettools}/sbin/ifconfig@g' -i src/device-*.C
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A protected multinode virtual network";
|
|
|
|
homepage = "http://software.schmorp.de/pkg/gvpe.html";
|
|
|
|
maintainers = [ maintainers.raskin ];
|
|
|
|
platforms = with platforms; linux ++ freebsd;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
}
|