From 037dbe64d861e3d5580ecac608bd278afc9bbcc6 Mon Sep 17 00:00:00 2001 From: Julien Olivain Date: Tue, 22 Nov 2022 21:31:29 +0100 Subject: [PATCH] package/python-magic-wormhole-transit-relay: new package Transit Relay server for Magic-Wormhole. This repository implements the Magic-Wormhole "Transit Relay", a server that helps clients establish bulk-data transit connections even when both are behind NAT boxes. Each side makes a TCP connection to this server and presents a handshake. Two connections with identical handshakes are glued together, allowing them to pretend they have a direct connection. https://github.com/magic-wormhole/magic-wormhole-transit-relay Signed-off-by: Julien Olivain Signed-off-by: Thomas Petazzoni --- DEVELOPERS | 1 + package/Config.in | 1 + .../python-magic-wormhole-transit-relay/Config.in | 15 +++++++++++++++ .../python-magic-wormhole-transit-relay.hash | 5 +++++ .../python-magic-wormhole-transit-relay.mk | 14 ++++++++++++++ 5 files changed, 36 insertions(+) create mode 100644 package/python-magic-wormhole-transit-relay/Config.in create mode 100644 package/python-magic-wormhole-transit-relay/python-magic-wormhole-transit-relay.hash create mode 100644 package/python-magic-wormhole-transit-relay/python-magic-wormhole-transit-relay.mk diff --git a/DEVELOPERS b/DEVELOPERS index afc079a609..5776d6d7a5 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1696,6 +1696,7 @@ F: package/python-gnupg/ F: package/python-hkdf/ F: package/python-magic-wormhole/ F: package/python-magic-wormhole-mailbox-server/ +F: package/python-magic-wormhole-transit-relay/ F: package/python-pyalsa/ F: package/python-spake2/ F: package/rdma-core/ diff --git a/package/Config.in b/package/Config.in index 2ef403168a..b5418c56f6 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1122,6 +1122,7 @@ menu "External python modules" source "package/python-m2crypto/Config.in" source "package/python-magic-wormhole/Config.in" source "package/python-magic-wormhole-mailbox-server/Config.in" + source "package/python-magic-wormhole-transit-relay/Config.in" source "package/python-mako/Config.in" source "package/python-markdown/Config.in" source "package/python-markdown2/Config.in" diff --git a/package/python-magic-wormhole-transit-relay/Config.in b/package/python-magic-wormhole-transit-relay/Config.in new file mode 100644 index 0000000000..1a743c10fe --- /dev/null +++ b/package/python-magic-wormhole-transit-relay/Config.in @@ -0,0 +1,15 @@ +config BR2_PACKAGE_PYTHON_MAGIC_WORMHOLE_TRANSIT_RELAY + bool "python-magic-wormhole-transit-relay" + select BR2_PACKAGE_PYTHON_TWISTED # runtime + help + Transit Relay server for Magic-Wormhole. + + This repository implements the Magic-Wormhole "Transit + Relay", a server that helps clients establish bulk-data + transit connections even when both are behind NAT + boxes. Each side makes a TCP connection to this server and + presents a handshake. Two connections with identical + handshakes are glued together, allowing them to pretend they + have a direct connection. + + https://github.com/magic-wormhole/magic-wormhole-transit-relay diff --git a/package/python-magic-wormhole-transit-relay/python-magic-wormhole-transit-relay.hash b/package/python-magic-wormhole-transit-relay/python-magic-wormhole-transit-relay.hash new file mode 100644 index 0000000000..f131477a40 --- /dev/null +++ b/package/python-magic-wormhole-transit-relay/python-magic-wormhole-transit-relay.hash @@ -0,0 +1,5 @@ +# md5, sha256 from https://pypi.org/pypi/magic-wormhole-transit-relay/json +md5 aa575a4e22b3d5099674ba88b136a9a2 magic-wormhole-transit-relay-0.2.1.tar.gz +sha256 cb4801b46890eaff97286e0e3fec62d1d52ffe317d140083b6336a1fb4e8fa5e magic-wormhole-transit-relay-0.2.1.tar.gz +# Locally computed sha256 checksums +sha256 d70f6469bb210c2aa4c0dfd74f498ef5f0467a137d8296479088e7243c5884eb LICENSE diff --git a/package/python-magic-wormhole-transit-relay/python-magic-wormhole-transit-relay.mk b/package/python-magic-wormhole-transit-relay/python-magic-wormhole-transit-relay.mk new file mode 100644 index 0000000000..e4ffe6e7a6 --- /dev/null +++ b/package/python-magic-wormhole-transit-relay/python-magic-wormhole-transit-relay.mk @@ -0,0 +1,14 @@ +################################################################################ +# +# python-magic-wormhole-transit-relay +# +################################################################################ + +PYTHON_MAGIC_WORMHOLE_TRANSIT_RELAY_VERSION = 0.2.1 +PYTHON_MAGIC_WORMHOLE_TRANSIT_RELAY_SOURCE = magic-wormhole-transit-relay-$(PYTHON_MAGIC_WORMHOLE_TRANSIT_RELAY_VERSION).tar.gz +PYTHON_MAGIC_WORMHOLE_TRANSIT_RELAY_SITE = https://files.pythonhosted.org/packages/21/c9/be25bb30e327037e009657960fc594d089b118c0d81cc6a200cad1bb3852 +PYTHON_MAGIC_WORMHOLE_TRANSIT_RELAY_SETUP_TYPE = setuptools +PYTHON_MAGIC_WORMHOLE_TRANSIT_RELAY_LICENSE = MIT +PYTHON_MAGIC_WORMHOLE_TRANSIT_RELAY_LICENSE_FILES = LICENSE + +$(eval $(python-package))