Skip to contentSkip to conversation

package/redir: new package

PATCH Superseded Peter Seiderer 2 participants 6 messages Jul 14, 2020 – Aug 16, 2020

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 package/redir: new package

---
 DEVELOPERS               |  1 +
 package/Config.in        |  1 +
 package/redir/Config.in  |  7 +++++++
 package/redir/redir.hash |  4 ++++
 package/redir/redir.mk   | 17 +++++++++++++++++
 5 files changed, 30 insertions(+)
 create mode 100644 package/redir/Config.in
 create mode 100644 package/redir/redir.hash
 create mode 100644 package/redir/redir.mk
DEVELOPERS +1 -0
index efbb676b48..69ef58e72f 100644
@@ -2045,6 +2045,7 @@ F:	package/python-gpiozero/
 F:	package/qt5/
 F:	package/quotatool/
 F:	package/racehound/
+F:	package/redir/
 
 N:	Peter Thompson <[email protected]>
 F:	package/sdl2_gfx/
package/Config.in +1 -0
index aafaa312a1..9592920f3a 100644
@@ -2175,6 +2175,7 @@ endif
 	source "package/rabbitmq-server/Config.in"
 	source "package/radvd/Config.in"
 	source "package/reaver/Config.in"
+	source "package/redir/Config.in"
 	source "package/rp-pppoe/Config.in"
 	source "package/rpcbind/Config.in"
 	source "package/rsh-redone/Config.in"
package/redir/Config.in new file +7 -0
new file mode 100644
index 0000000000..6e51c64218
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_REDIR
+	bool "redir"
+	depends on BR2_USE_MMU # fork()
+	help
+	  This is a TCP port redirector for UNIX.
+
+	  https://github.com/troglobit/redir
package/redir/redir.hash new file +4 -0
new file mode 100644
index 0000000000..8cc19f6ac6
@@ -0,0 +1,4 @@
+# From https://github.com/troglobit/redir/releases/download/v3.3/redir-3.3.tar.xz.md5
+md5  b452e1ca6faded7bab9c76dd61d9d983  redir-3.3.tar.xz
+# License files
+sha256  8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643  COPYING
package/redir/redir.mk new file +17 -0
new file mode 100644
index 0000000000..ea02d43a12
@@ -0,0 +1,17 @@
+################################################################################
+#
+# redir
+#
+################################################################################
+
+REDIR_VERSION = 3.3
+REDIR_SOURCE = redir-$(REDIR_VERSION).tar.xz
+REDIR_SITE = https://github.com/troglobit/redir/releases/download/v$(REDIR_VERSION)
+REDIR_LICENSE = GPL-2.0+
+REDIR_LICENSE_FILES = COPYING
+REDIR_CONF_OPTS = \
+	--disable-compat \
+	--enable-shaper \
+	--enable-ftp
+
+$(eval $(autotools-package))
Signature · 1 line
2.27.0
#1 lore raw

PATCH 2/3 package/libuev: new package

---
 DEVELOPERS                 |  1 +
 package/Config.in          |  1 +
 package/libuev/Config.in   |  6 ++++++
 package/libuev/libuev.hash |  4 ++++
 package/libuev/libuev.mk   | 15 +++++++++++++++
 5 files changed, 27 insertions(+)
 create mode 100644 package/libuev/Config.in
 create mode 100644 package/libuev/libuev.hash
 create mode 100644 package/libuev/libuev.mk
DEVELOPERS +1 -0
index 69ef58e72f..b07bb040c2 100644
@@ -2038,6 +2038,7 @@ F:	package/gstreamer1/gst1-validate/
 F:	package/gstreamer1/gstreamer1-editing-services/
 F:	package/iwd/
 F:	package/libevdev/
+F:	package/libuev/
 F:	package/log4cplus/
 F:	package/postgresql/
 F:	package/python-colorzero/
package/Config.in +1 -0
index 9592920f3a..c9601a01fe 100644
@@ -1735,6 +1735,7 @@ menu "Networking"
 	source "package/libtirpc/Config.in"
 	source "package/libtorrent/Config.in"
 	source "package/libtorrent-rasterbar/Config.in"
+	source "package/libuev/Config.in"
 	source "package/libuhttpd/Config.in"
 	source "package/libupnp/Config.in"
 	source "package/libupnp18/Config.in"
package/libuev/Config.in new file +6 -0
new file mode 100644
index 0000000000..bb50099cee
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_LIBUEV
+	bool "libuev"
+	help
+	  Simple event loop for Linux.
+
+	  https://github.com/troglobit/libuev
package/libuev/libuev.hash new file +4 -0
new file mode 100644
index 0000000000..fece0e9b65
@@ -0,0 +1,4 @@
+# From https://github.com/troglobit/libuev/releases/download/v2.3.1/libuev-2.3.1.tar.xz.md5
+md5  ec601f69f69477858fa023a75da23793  libuev-2.3.1.tar.xz
+# License files
+sha256  3c2bf3fdd85687242ba6f2b02b6ce5176aba15b5e1a2ccb8b608439197ec4641  LICENSE
package/libuev/libuev.mk new file +15 -0
new file mode 100644
index 0000000000..c7b73b4221
@@ -0,0 +1,15 @@
+################################################################################
+#
+# libuev
+#
+################################################################################
+
+LIBUEV_VERSION = 2.3.1
+LIBUEV_SOURCE = libuev-$(LIBUEV_VERSION).tar.xz
+LIBUEV_SITE = https://github.com/troglobit/libuev/releases/download/v$(LIBUEV_VERSION)
+LIBUEV_LICENSE = MIT
+LIBUEV_LICENSE_FILES = LICENSE
+LIBUEV_INSTALL_STAGING = YES
+LIBUEV_CONF_OPTS = --disable-examples
+
+$(eval $(autotools-package))
Signature · 1 line
2.27.0
#2 lore raw

PATCH 3/3 package/uredir: new package

In reply to Peter Seiderer

The provided download hash ([1]) differes from actual one, so use the locally calculated one.

[1] https://github.com/troglobit/uredir/releases/download/v3.3/uredir-3.3.tar.gz.md5

---
 DEVELOPERS                 |  1 +
 package/Config.in          |  1 +
 package/uredir/Config.in   |  9 +++++++++
 package/uredir/uredir.hash |  4 ++++
 package/uredir/uredir.mk   | 15 +++++++++++++++
 5 files changed, 30 insertions(+)
 create mode 100644 package/uredir/Config.in
 create mode 100644 package/uredir/uredir.hash
 create mode 100644 package/uredir/uredir.mk
DEVELOPERS +1 -0
index b07bb040c2..c0006d046a 100644
@@ -2047,6 +2047,7 @@ F:	package/qt5/
 F:	package/quotatool/
 F:	package/racehound/
 F:	package/redir/
+F:	package/uredir/
 
 N:	Peter Thompson <[email protected]>
 F:	package/sdl2_gfx/
package/Config.in +1 -0
index c9601a01fe..86ed5fe696 100644
@@ -2231,6 +2231,7 @@ endif
 	source "package/unbound/Config.in"
 	source "package/ushare/Config.in"
 	source "package/ussp-push/Config.in"
+	source "package/uredir/Config.in"
 	source "package/vde2/Config.in"
 	source "package/vdr/Config.in"
 	source "package/vdr-plugin-vnsiserver/Config.in"
package/uredir/Config.in new file +9 -0
new file mode 100644
index 0000000000..99206cfe47
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_UREDIR
+	bool "uredir"
+	select BR2_PACKAGE_LIBUEV
+	help
+	  A small Linux daemon to redirect UDP connections. It can be
+	  used to forward connections on small and embedded systems that
+	  do not have (or want to use) iptables.
+
+	  https://github.com/troglobit/uredir
package/uredir/uredir.hash new file +4 -0
new file mode 100644
index 0000000000..d3dddbcaa2
@@ -0,0 +1,4 @@
+# Locally calculated
+md5  154c90eca41909b80cc8c00e567a00e7  uredir-3.3.tar.gz
+# License files
+sha256  e4b8fd3375ce44e5e03be199724a8785510ea5fa58ed92a7a34fd0ccbd35db10  LICENSE
package/uredir/uredir.mk new file +15 -0
new file mode 100644
index 0000000000..8d74a0fb3d
@@ -0,0 +1,15 @@
+################################################################################
+#
+# uredir
+#
+################################################################################
+
+UREDIR_VERSION = 3.3
+UREDIR_SITE = $(call github,troglobit,uredir,v$(UREDIR_VERSION))
+UREDIR_LICENSE = ISC
+UREDIR_LICENSE_FILES = LICENSE
+# no configure provided by tarball download
+UREDIR_AUTORECONF = YES
+UREDIR_DEPENDENCIES = host-pkgconf libuev
+
+$(eval $(autotools-package))
Signature · 1 line
2.27.0
#3 lore raw

PATCH 3/3 package/uredir: new package

Quoted 2 lines · On Tue, 14 Jul 2020 22:24:07 +0200 Peter Seiderer <[email protected]> wrote:

The provided download hash ([1]) differes from actual one, so use the locally calculated one.

This is quite worrying. Did you report this upstream ?

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#4 lore raw

PATCH 3/3 package/uredir: new package

Hello Thomas,

Quoted 7 lines · Thomas Petazzoni
Quoted 2 lines · On Tue, 14 Jul 2020 22:24:07 +0200 Peter Seiderer <[email protected]> wrote:

The provided download hash ([1]) differes from actual one, so use the locally calculated one.

This is quite worrying. Did you report this upstream ?

Re-checked, it was my fault, did take the wrong download url/method, using the right one fixes the match with the provided md5 sum, will re-send...

Regards,
Peter

Quoted 2 lines

Thomas

#5 lore raw

PATCH 1/3 package/redir: new package

In reply to Peter Seiderer
Quoted 11 lines · On Tue, 14 Jul 2020 22:24:05 +0200 Peter Seiderer <[email protected]> wrote:
---
 DEVELOPERS               |  1 +
 package/Config.in        |  1 +
 package/redir/Config.in  |  7 +++++++
 package/redir/redir.hash |  4 ++++
 package/redir/redir.mk   | 17 +++++++++++++++++
 5 files changed, 30 insertions(+)
 create mode 100644 package/redir/Config.in
 create mode 100644 package/redir/redir.hash
 create mode 100644 package/redir/redir.mk

Applied to next, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com