Skip to contentSkip to conversation

package/redir: new package

PATCH New Peter Seiderer 2 participants 5 messages Jul 20, 2020 – Aug 16, 2020

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/3 package/redir: new package

---
Changes v1 -> v2:
- no changes

---
 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 5bed3e7439..422c665f27 100644
@@ -2048,6 +2048,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 22531d4fb5..bf29e603ec 100644
@@ -2176,6 +2176,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 v2 2/3 package/libuev: new package

---
Changes v1 -> v2:
- no changes

---
 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 422c665f27..a27cbd6927 100644
@@ -2041,6 +2041,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 bf29e603ec..458afc4b9f 100644
@@ -1736,6 +1736,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 v2 2/3 package/libuev: new package

Quoted 4 lines · On Mon, 20 Jul 2020 22:48:24 +0200 Peter Seiderer <[email protected]> wrote:

---
Changes v1 -> v2:
- no changes

Quoted 10 lines
---
 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

Applied to next, thanks.

Thomas

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

PATCH v2 3/3 package/uredir: new package

In reply to Peter Seiderer

---
Changes v1 -> v2:
- change download url to fix match with provided md5 sum

---
 DEVELOPERS                 |  1 +
 package/Config.in          |  1 +
 package/uredir/Config.in   |  9 +++++++++
 package/uredir/uredir.hash |  4 ++++
 package/uredir/uredir.mk   | 14 ++++++++++++++
 5 files changed, 29 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 a27cbd6927..c83f273929 100644
@@ -2050,6 +2050,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 458afc4b9f..4a5b5f50c7 100644
@@ -2232,6 +2232,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..00c816c2dd
@@ -0,0 +1,4 @@
+# From https://github.com/troglobit/uredir/releases/download/v3.3/uredir-3.3.tar.gz.md5
+md5  a42ee27e84de2e08e35ee733508bb6ea  uredir-3.3.tar.gz
+# License files
+sha256  e4b8fd3375ce44e5e03be199724a8785510ea5fa58ed92a7a34fd0ccbd35db10  LICENSE
package/uredir/uredir.mk new file +14 -0
new file mode 100644
index 0000000000..6ca394730e
@@ -0,0 +1,14 @@
+################################################################################
+#
+# uredir
+#
+################################################################################
+
+UREDIR_VERSION = 3.3
+UREDIR_SOURCE = uredir-$(UREDIR_VERSION).tar.gz
+UREDIR_SITE = https://github.com/troglobit/uredir/releases/download/v$(UREDIR_VERSION)
+UREDIR_LICENSE = ISC
+UREDIR_LICENSE_FILES = LICENSE
+UREDIR_DEPENDENCIES = host-pkgconf libuev
+
+$(eval $(autotools-package))
Signature · 1 line
2.27.0
#4 lore raw

PATCH v2 3/3 package/uredir: new package

Quoted 4 lines · On Mon, 20 Jul 2020 22:48:25 +0200 Peter Seiderer <[email protected]> wrote:

---
Changes v1 -> v2:
- change download url to fix match with provided md5 sum

Quoted 10 lines
---
 DEVELOPERS                 |  1 +
 package/Config.in          |  1 +
 package/uredir/Config.in   |  9 +++++++++
 package/uredir/uredir.hash |  4 ++++
 package/uredir/uredir.mk   | 14 ++++++++++++++
 5 files changed, 29 insertions(+)
 create mode 100644 package/uredir/Config.in
 create mode 100644 package/uredir/uredir.hash
 create mode 100644 package/uredir/uredir.mk

Applied to next, thanks.

Thomas

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