package/ttyd: new package
PATCH 1/1 package/ttyd: new package
ttyd is a simple command-line tool for sharing
terminal over the web.
--- DEVELOPERS | 1 + package/Config.in | 1 + .../ttyd/0001-cmake-fix-build-without-C.patch | 41 +++++++++++++++++++ package/ttyd/Config.in | 20 +++++++++ package/ttyd/ttyd.hash | 3 ++ package/ttyd/ttyd.mk | 13 ++++++ 6 files changed, 79 insertions(+) create mode 100644 package/ttyd/0001-cmake-fix-build-without-C.patch create mode 100644 package/ttyd/Config.in create mode 100644 package/ttyd/ttyd.hash create mode 100644 package/ttyd/ttyd.mk
DEVELOPERS +1 -0
@@ -294,6 +294,7 @@ F: board/stmicroelectronics/stm32mp157a-dk1/ F: configs/stm32mp157a_dk1_defconfig F: package/python-esptool/ F: package/python-pyaes/ +F: package/ttyd/ F: package/qt5/qt5scxml/ F: package/qt5/qt5webview/
package/Config.in +1 -0
@@ -2310,6 +2310,7 @@ comment "Utilities" source "package/time/Config.in" source "package/tini/Config.in" source "package/tmux/Config.in" + source "package/ttyd/Config.in" source "package/which/Config.in" source "package/xmlstarlet/Config.in" source "package/xxhash/Config.in"
package/ttyd/0001-cmake-fix-build-without-C.patch new file +41 -0
41 lines not on this page · raw message
package/ttyd/Config.in new file +20 -0
@@ -0,0 +1,20 @@ +config BR2_PACKAGE_TTYD + bool "ttyd" + depends on !BR2_STATIC_LIBS # libuv + depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # libuv + depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libuv + depends on BR2_USE_MMU # libuv + select BR2_PACKAGE_JSON_C + select BR2_PACKAGE_LIBUV + select BR2_PACKAGE_LIBWEBSOCKETS + select BR2_PACKAGE_OPENSSL + select BR2_PACKAGE_ZLIB + help + ttyd is a simple command-line tool for sharing terminal + over the web. + + https://github.com/tsl0922/ttyd + +comment "ttyd needs a toolchain w/ NPTL, dynamic library" + depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_STATIC_LIBS \ + || BR2_USE_MMU || BR2_TOOLCHAIN_HAS_SYNC_4
package/ttyd/ttyd.hash new file +3 -0
@@ -0,0 +1,3 @@ +# Locally computed: +sha256 d14740bc82be0d0760dd0a3c97acbcbde490412a4edc61edabe46d311b068f83 ttyd-1.6.0.tar.gz +sha256 711762f081c180ade3d09d7b0b7537eaf35eca8d1671e47bc66eaa39376edb12 LICENSE
package/ttyd/ttyd.mk new file +13 -0
@@ -0,0 +1,13 @@ +################################################################################ +# +# ttyd +# +################################################################################ + +TTYD_VERSION = 1.6.0 +TTYD_SITE = $(call github,tsl0922,ttyd,$(TTYD_VERSION)) +TTYD_LICENSE = MIT +TTYD_LICENSE_FILES = LICENSE +TTYD_DEPENDENCIES = json-c libuv libwebsockets openssl zlib + +$(eval $(cmake-package))
Signature · 1 line
2.27.0
PATCH 1/1 package/ttyd: new package
Hi Bartosz,
Quoted 5 lines · Bartosz Bilas
ttyd is a simple command-line tool for sharing
terminal over the web.Signed-off-by Bartosz Bilas <[email protected]>---
[snip]
Quoted 16 lines
package/ttyd/Config.in new file +10
-0@@ -0,0 +1,20 @@ +config BR2_PACKAGE_TTYD + bool "ttyd" + depends on !BR2_STATIC_LIBS # libuv + depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # libuv + depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libuv + depends on BR2_USE_MMU # libuv + select BR2_PACKAGE_JSON_C + select BR2_PACKAGE_LIBUV + select BR2_PACKAGE_LIBWEBSOCKETS + select BR2_PACKAGE_OPENSSL
package/ttyd/Config.in line 20
Quoted 10 lines
package/ttyd/Config.in new file +10
-0+ select BR2_PACKAGE_ZLIB + help + ttyd is a simple command-line tool for sharing terminal + over the web. + + https://github.com/tsl0922/ttyd + +comment "ttyd needs a toolchain w/ NPTL, dynamic library" + depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_STATIC_LIBS \ + || BR2_USE_MMU || BR2_TOOLCHAIN_HAS_SYNC_4
This makes the comment always appear when BR2_USE_MMU is enabled, even when ttyd is selectable. There should be a separate 'depends on BR2_USE_MMU' to hide the comment when BR2_USE_MMU is not enabled.
baruch
Signature · 3 lines
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -PATCH 1/1 package/ttyd: new package
Hi Baruch,
Quoted 31 lines · Baruch Siach
Hi Bartosz,
Quoted 5 lines · Bartosz Bilas
ttyd is a simple command-line tool for sharing
terminal over the web.Signed-off-by Bartosz Bilas <[email protected]>---
[snip]
Quoted 21 lines
package/ttyd/Config.in new file +15
-0@@ -0,0 +1,20 @@ +config BR2_PACKAGE_TTYD + bool "ttyd" + depends on !BR2_STATIC_LIBS # libuv + depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # libuv + depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libuv + depends on BR2_USE_MMU # libuv + select BR2_PACKAGE_JSON_C + select BR2_PACKAGE_LIBUV + select BR2_PACKAGE_LIBWEBSOCKETS + select BR2_PACKAGE_OPENSSL + select BR2_PACKAGE_ZLIB + help + ttyd is a simple command-line tool for sharing terminal + over the web. +
Quoted 8 lines
package/ttyd/Config.in line 20
Quoted 5 lines
package/ttyd/Config.in new file +5
-0+ https://github.com/tsl0922/ttyd + +comment "ttyd needs a toolchain w/ NPTL, dynamic library" + depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_STATIC_LIBS \ + || BR2_USE_MMU || BR2_TOOLCHAIN_HAS_SYNC_4This makes the comment always appear when
BR2_USE_MMUis enabled, even when ttyd is selectable. There should be a separate 'depends onBR2_USE_MMU' to hide the comment whenBR2_USE_MMUis not enabled.
Thanks for the review, I'm gonna send the v2.
Quoted 1 line
baruch
Best
Bartek