2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2019-01-10 19:41:38 +01:00
|
|
|
, libpcap
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "ubridge";
|
2020-03-27 11:07:29 +01:00
|
|
|
version = "0.9.18";
|
2019-01-10 19:41:38 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "GNS3";
|
|
|
|
repo = "ubridge";
|
|
|
|
rev = "v${version}";
|
2020-03-27 11:07:29 +01:00
|
|
|
sha256 = "0jg66jhhpv4c9340fsdp64hf9h253i8r81fknxa0gq241ripp3jn";
|
2019-01-10 19:41:38 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace "/usr/local/bin" "$out/bin" \
|
|
|
|
--replace "setcap" "#setcap"
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ libpcap ];
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-01-10 19:41:38 +01:00
|
|
|
description = "Bridge for UDP tunnels, Ethernet, TAP, and VMnet interfaces";
|
|
|
|
longDescription = ''
|
|
|
|
uBridge is a simple application to create user-land bridges between
|
|
|
|
various technologies. Currently bridging between UDP tunnels, Ethernet
|
|
|
|
and TAP interfaces is supported. Packet capture is also supported.
|
|
|
|
'';
|
|
|
|
inherit (src.meta) homepage;
|
2020-03-24 16:27:20 +01:00
|
|
|
changelog = "https://github.com/GNS3/ubridge/releases/tag/v${version}";
|
2019-01-10 19:41:38 +01:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ primeos ];
|
|
|
|
};
|
|
|
|
}
|