2021-12-15 15:20:08 +00:00
|
|
|
{ lib, stdenv, fetchurl, openssl, gmp, zlib, iproute2, nettools, pkg-config }:
|
2015-06-15 13:10:46 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "gvpe";
|
2021-12-15 15:20:08 +00:00
|
|
|
version = "3.1";
|
2015-06-15 13:10:46 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = "https://ftp.gnu.org/gnu/gvpe/gvpe-${version}.tar.gz";
|
2021-12-15 15:20:08 +00:00
|
|
|
sha256 = "sha256-8evVctclu5QOCAdxocEIZ8NQnc2DFvYRSBRQPcux6LM=";
|
2015-06-15 13:10:46 +01:00
|
|
|
};
|
|
|
|
|
2021-12-15 15:20:08 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
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"
|
2021-12-15 15:20:08 +00:00
|
|
|
];
|
2009-09-01 21:12:01 +01:00
|
|
|
|
2021-12-15 15:20:08 +00:00
|
|
|
postPatch = ''
|
2021-03-14 16:05:16 +00:00
|
|
|
sed -e 's@"/sbin/ifconfig.*"@"${iproute2}/sbin/ip link set $IFNAME address $MAC mtu $MTU"@' -i src/device-linux.C
|
2015-06-15 13:10:46 +01:00
|
|
|
sed -e 's@/sbin/ifconfig@${nettools}/sbin/ifconfig@g' -i src/device-*.C
|
|
|
|
'';
|
2015-09-15 05:27:19 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-06-15 13:10:46 +01:00
|
|
|
description = "A protected multinode virtual network";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://software.schmorp.de/pkg/gvpe.html";
|
2018-09-10 20:26:36 +01:00
|
|
|
maintainers = [ maintainers.raskin ];
|
|
|
|
platforms = with platforms; linux ++ freebsd;
|
|
|
|
license = licenses.gpl2;
|
2009-09-01 21:12:01 +01:00
|
|
|
};
|
|
|
|
}
|