From: Shuanglei Tao Date: Sat, 1 Oct 2016 13:41:26 +0000 (+0800) Subject: [ci skip] update README.md and use libopenssl for openwrt X-Git-Url: http://git.prime8.dev/?a=commitdiff_plain;h=9636a9ba1ee6caa50b9c2d40c2ca3243604497cd;p=ttyd.git [ci skip] update README.md and use libopenssl for openwrt --- diff --git a/README.md b/README.md index b5d13e1..8dd3759 100644 --- a/README.md +++ b/README.md @@ -11,11 +11,11 @@ ttyd is a simple command-line tool for sharing terminal over the web, inspired b - SSL support based on [OpenSSL](https://www.openssl.org) - Run any custom command with options - Basic authentication support -- Cross platform: macOS, Linux, OpenWrt +- Cross platform: macOS, Linux, [OpenWrt](https://openwrt.org)/[LEDE](https://www.lede-project.org) # Installation -### For Mac OS X users +## Install on macOS Install with [homebrew](http://brew.sh): @@ -24,7 +24,7 @@ brew tap tsl0922/ttyd brew install ttyd ``` -### For Linux users +## Install on Linux Ubuntu 16.04 as example: @@ -36,8 +36,15 @@ cmake .. make && make install ``` -> **NOTE:** You may need to compile libwebsockets from source for ubuntu versions old than 16.04, -> since they have outdated `libwebsockets-dev` package ([Issue #6](https://github.com/tsl0922/ttyd/issues/6)). +> **NOTE:** You may need to compile libwebsockets from source for ubuntu versions old than 16.04, since they have outdated `libwebsockets-dev` package ([Issue #6](https://github.com/tsl0922/ttyd/issues/6)). + +## Install on OpenWrt/LEDE + +```bash +opkg install ttyd +``` + +> **NOTE:** This may only works for [LEDE](https://www.lede-project.org) snapshots currently, if the install command fails, compile it yourself. # Usage diff --git a/openwrt/Makefile b/openwrt/Makefile index 7bf743e..356258a 100644 --- a/openwrt/Makefile +++ b/openwrt/Makefile @@ -29,7 +29,7 @@ define Package/ttyd SECTION:=utils CATEGORY:=Utilities TITLE:=Command-line tool for sharing terminal over the web - DEPENDS:=+openssl +libjson-c +libpthread +libwebsockets-openssl + DEPENDS:=+libopenssl +libjson-c +libpthread +libwebsockets-openssl URL:=https://github.com/tsl0922/ttyd SUBMENU:=Terminal MAINTAINER:=Shuanglei Tao