+++ /dev/null
-debhelper-build-stamp
-files
-*.substvars
-install
+++ /dev/null
-ttyd (1.5.2-1) unstable; urgency=medium
-
- * New upstream release.
-
- -- Shuanglei Tao <tsl0922@gmail.com> Mon, 5 Aug 2019 21:34:50 +0800
-
-ttyd (1.5.1-1) unstable; urgency=medium
-
- * New upstream release.
-
- -- Shuanglei Tao <tsl0922@gmail.com> Sun, 12 Jul 2019 20:56:00 +0800
-
-ttyd (1.5.0-1) unstable; urgency=medium
-
- * New upstream release.
-
- -- Shuanglei Tao <tsl0922@gmail.com> Sun, 23 Jun 2019 19:04:15 +0800
-
-ttyd (1.4.4-1) unstable; urgency=medium
-
- * New upstream release.
-
- -- Shuanglei Tao <tsl0922@gmail.com> Sat, 21 Apr 2019 10:28:00 +0800
-
-ttyd (1.4.3-1) unstable; urgency=medium
-
- * New upstream release.
-
- -- Shuanglei Tao <tsl0922@gmail.com> Sat, 20 Apr 2019 13:35:00 +0800
-
-ttyd (1.4.2-1) unstable; urgency=medium
-
- * New upstream release.
-
- -- Shuanglei Tao <tsl0922@gmail.com> Tue, 12 Sep 2018 12:17:00 +0800
-
-ttyd (1.4.1-1) unstable; urgency=medium
-
- * New upstream release.
-
- -- Shuanglei Tao <tsl0922@gmail.com> Tue, 4 Sep 2018 11:52:50 +0800
-
-ttyd (1.4.0-1) unstable; urgency=medium
-
- * New upstream release.
-
- -- Shuanglei Tao <tsl0922@gmail.com> Thu, 18 Jan 2018 20:32:20 +0800
-
-ttyd (1.3.3-1) unstable; urgency=medium
-
- * New upstream release.
-
- -- Boyuan Yang <073plan@gmail.com> Mon, 24 Jul 2017 15:47:53 +0800
-
-ttyd (1.3.2-1) unstable; urgency=medium
-
- * New upstream release.
- + Add support for --max-clients option.
- + Upgrade to use xterm.js 2.5.0.
- + Add man page for ttyd(1).
-
- -- Boyuan Yang <073plan@gmail.com> Fri, 21 Apr 2017 18:12:43 +0800
-
-ttyd (1.3.1-1) unstable; urgency=medium
-
- * Initial release.
-
- -- Boyuan Yang <073plan@gmail.com> Thu, 30 Mar 2017 12:10:50 +0800
+++ /dev/null
-Source: ttyd
-Section: utils
-Priority: optional
-Maintainer: Boyuan Yang <073plan@gmail.com>
-Build-Depends:
- debhelper (>= 9),
- cmake,
- pkg-config,
- libwebsockets-dev,
- libjson-c-dev,
- libssl-dev,
- xxd | vim-common,
-Standards-Version: 3.9.8
-Homepage: https://tsl0922.github.io/ttyd/
-Vcs-Git: https://github.com/tsl0922/ttyd.git
-Vcs-Browser: https://github.com/tsl0922/ttyd.git
-
-Package: ttyd
-Architecture: any
-Depends:
- ${misc:Depends},
- ${shlibs:Depends},
-Description: Web terminal sharing tool
- Ttyd is a simple command-line tool for sharing terminal over the web, inspired
- by GoTTY.
- .
- Features include:
- * Built on top of Libwebsockets with C for speed
- * Fully-featured terminal based on Xterm.js with CJK and IME support
- * SSL support based on OpenSSL
- * Run any custom command with options
- * Basic authentication support and many other custom options
- * Cross platform: macOS, Linux, FreeBSD, OpenWrt/LEDE, Windows
+++ /dev/null
-Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
-Upstream-Name: ttyd
-Upstream-Contact: Shuanglei Tao <tsl0922@gmail.com>
-Source: https://github.com/tsl0922/ttyd
-
-Files: *
-Copyright: 2016-2017 Shuanglei Tao <tsl0922@gmail.com>
-License: Expat
-
-Files: debian/*
-Copyright: 2017 Boyuan Yang <073plan@gmail.com>
-License: Expat
-
-License: Expat
- Copyright (c) 2016 Shuanglei Tao <tsl0922@gmail.com>
- .
- Permission is hereby granted, free of charge, to any person obtaining a copy
- of this software and associated documentation files (the "Software"), to deal
- in the Software without restriction, including without limitation the rights
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- copies of the Software, and to permit persons to whom the Software is
- furnished to do so, subject to the following conditions:
- .
- The above copyright notice and this permission notice shall be included in all
- copies or substantial portions of the Software.
- .
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- SOFTWARE.
+++ /dev/null
-#!/usr/bin/make -f
-# See debhelper(7) (uncomment to enable)
-# output every command that modifies files on the build system.
-#export DH_VERBOSE = 1
-
-# see FEATURE AREAS in dpkg-buildflags(1)
-export DEB_BUILD_MAINT_OPTIONS = hardening=+all
-export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
-
-# main packaging script based on dh7 syntax
-%:
- dh $@
+++ /dev/null
-3.0 (quilt)
+++ /dev/null
-man/ttyd.1
+++ /dev/null
-version=4
-opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%ttyd-$1.tar.gz%" \
- https://github.com/tsl0922/ttyd/tags \
- (?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian uupdate
+++ /dev/null
-# Building ttyd with [MSYS2][1]
-
-1. Download and install the **latest** version of [MSYS2][1], make sure you've updated the package database.
-2. Install required dependencies: `pacman -S git binutils` and if you are using a 32bit Windows, also: `pacman -S mingw-w64-i686-cmake`
-3. Build json-c and libwebsockets: cd to package dir and run `makepkg -s && pacman -U *.pkg.tar.xz`.
-4. Build ttyd: cd to ttyd dir and run `makepkg --skipchecksums`.
-
- [1]: http://msys2.github.io
+++ /dev/null
-# Maintainer: Shuanglei Tao <tsl0922@gmail.com>
-
-pkgname=json-c
-pkgver=0.13.1
-pkgrel=1
-pkgdesc="A JSON implementation in C"
-arch=('i686' 'x86_64')
-url="https://github.com/json-c/json-c"
-license=('MIT')
-makedepends=('gcc' 'make' 'autoconf')
-source=("https://s3.amazonaws.com/json-c_releases/releases/${pkgname}-${pkgver}.tar.gz")
-sha256sums=('b87e608d4d3f7bfdd36ef78d56d53c74e66ab278d318b71e6002a369d36f4873')
-
-build() {
- cd ${srcdir}/${pkgname}-${pkgver}
- ./configure \
- --prefix=/usr \
- --enable-shared \
- --enable-static
- make
-}
-
-package() {
- options=('staticlibs')
- cd ${srcdir}/${pkgname}-${pkgver}
- make DESTDIR="$pkgdir" install
-}
\ No newline at end of file
+++ /dev/null
-# Maintainer: Shuanglei Tao <tsl0922@gmail.com>
-
-pkgname="libwebsockets"
-pkgver=2.4.2
-pkgrel=1
-pkgdesc="A lightweight pure C library for websockets (msys)"
-arch=('i686' 'x86_64')
-url="http://libwebsockets.org"
-license=('LGPL 2.1')
-makedepends=('gcc' 'cmake' 'zlib-devel' 'openssl-devel')
-source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/warmcat/${pkgname}/archive/v${pkgver}.tar.gz")
-sha256sums=('73012d7fcf428dedccc816e83a63a01462e27819d5537b8e0d0c7264bfacfad6')
-
-prepare() {
- cd "${srcdir}/${pkgname}-${pkgver}"
-}
-
-build() {
- mkdir -p "${srcdir}/build-${CARCH}"
- cd "${srcdir}/build-${CARCH}"
-
- cmake \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DLWS_USE_BUNDLED_ZLIB=OFF \
- -DLWS_WITHOUT_TESTAPPS=ON \
- -DCMAKE_BUILD_TYPE=Release \
- ../${pkgname}-${pkgver}
-
- make
-}
-
-package() {
- depends=('zlib-devel' 'openssl-devel')
- options=('staticlibs')
- cd "${srcdir}/build-${CARCH}"
- make DESTDIR=${pkgdir} install
-}
\ No newline at end of file
+++ /dev/null
-# Maintainer: Shuanglei Tao <tsl0922@gmail.com>
-
-pkgname="ttyd"
-pkgver=1.5.2
-pkgrel=1
-pkgdesc="A command-line tool for sharing terminal over the web"
-arch=('i686' 'x86_64')
-url="https://github.com/tsl0922/ttyd"
-license=('MIT')
-makedepends=('gcc' 'cmake' 'json-c' 'libwebsockets' 'vim')
-source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/tsl0922/${pkgname}/archive/${pkgver}.tar.gz")
-sha256sums=('757a9b5b5dd3de801d7db8fab6035d97ea144b02a51c78bdab28a8e07bcf05d6')
-
-prepare() {
- cd "${srcdir}/${pkgname}-${pkgver}"
-}
-
-build() {
- mkdir -p "${srcdir}/build-${CARCH}"
- cd "${srcdir}/build-${CARCH}"
-
- cmake \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_BUILD_TYPE=Release \
- ../${pkgname}-${pkgver}
-
- make
-}
-
-package() {
- options=('staticlibs' 'strip')
- cd "${srcdir}/build-${CARCH}"
- make DESTDIR=${pkgdir} install
-}
+++ /dev/null
-# Building with OpenWrt/LEDE SDK
-
-Ubuntu 64bit and LEDE `ar71xx` as example:
-
-```bash
-sudo apt-get install build-essential subversion libncurses5-dev zlib1g-dev gawk gcc-multilib flex git-core gettext libssl-dev
-curl -sLo- https://downloads.lede-project.org/snapshots/targets/ar71xx/generic/lede-sdk-ar71xx-generic_gcc-5.4.0_musl-1.1.15.Linux-x86_64.tar.xz | tar Jx
-cd lede-sdk-ar71xx-generic_gcc-5.4.0_musl-1.1.15.Linux-x86_64
-./scripts/feeds update -a
-./scripts/feeds install -a
-make defconfig
-make package/feeds/packages/ttyd/compile V=99
-```
-
-The compiled `.ipk` package will be in the `bin/packages` folder.
\ No newline at end of file
+++ /dev/null
-# Copyright (C) 2016 Openwrt.org
-#
-# This is free software, licensed under the Apache License, Version 2.0 .
-#
-
-include $(TOPDIR)/rules.mk
-
-LUCI_TITLE:=LuCI support for ttyd
-LUCI_DEPENDS:=+ttyd
-LUCI_PKGARCH:=all
-PKG_VERSION:=1.0
-PKG_RELEASE:=1
-
-include ../../luci.mk
-
-# call BuildPackage - OpenWrt buildroot signature
-
+++ /dev/null
-module("luci.controller.terminal", package.seeall)
-
-function index()
- if not (luci.sys.call("pidof ttyd > /dev/null") == 0) then
- return
- end
-
- entry({"admin", "system", "terminal"}, template("terminal"), _("Terminal"), 10).leaf = true
-end
\ No newline at end of file
+++ /dev/null
-<%+header%>
-<div class="cbi-map">
- <h2 name="content"><%=translate("Terminal")%></h2>
- <iframe id="terminal" style="width: 100%; min-height: 500px; border: none; border-radius: 3px;"></iframe>
-</div>
-<script type="text/javascript">
- document.getElementById("terminal").src = window.location.protocol + "//" + window.location.hostname + ":7681";
-</script>
-<%+footer%>
\ No newline at end of file
+++ /dev/null
-msgid ""
-msgstr "Content-Type: text/plain; charset=UTF-8"
-
-msgid "Terminal"
-msgstr "终端"
+++ /dev/null
-#!/bin/sh /etc/rc.common
-
-START=99
-SERVICE_WRITE_PID=1
-SERVICE_DAEMONIZE=1
-
-start() {
- logger -t TTYD 'Starting ttyd service'
- service_start /usr/bin/ttyd -i br-lan /bin/login
- return 0
-}
-
-stop() {
- if [ -n "`pidof ttyd`" ]; then
- logger -t TTYD 'Shutting down ttyd service'
- service_stop /usr/bin/ttyd
- fi
- return 0
-}
-
-restart() {
- logger -t TTYD 'Restarting ttyd service'
- stop
- sleep 2
- start
-}
+++ /dev/null
-#
-# Copyright (C) 2016 Shuanglei Tao <tsl0922@gmail.com>
-#
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
-
-include $(TOPDIR)/rules.mk
-
-PKG_NAME:=ttyd
-PKG_VERSION:=1.5.2
-PKG_RELEASE:=1
-
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_PROTO:=git
-PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
-PKG_SOURCE_URL:=https://github.com/tsl0922/ttyd.git
-PKG_SOURCE_VERSION:=$(PKG_VERSION)
-
-PKG_LICENSE:=MIT
-PKG_LICENSE_FILES:=LICENSE
-
-CMAKE_INSTALL:=1
-
-include $(INCLUDE_DIR)/package.mk
-include $(INCLUDE_DIR)/cmake.mk
-
-define Package/ttyd
- SECTION:=utils
- CATEGORY:=Utilities
- TITLE:=Command-line tool for sharing terminal over the web
- DEPENDS:=+libopenssl +libjson-c +libpthread +libwebsockets-openssl
- URL:=https://github.com/tsl0922/ttyd
- SUBMENU:=Terminal
- MAINTAINER:=Shuanglei Tao <tsl0922@gmail.com>
-endef
-
-define Package/ttyd/description
-ttyd is a command-line tool for sharing terminal over the web.
-endef
-
-define Package/ttyd/install
- $(INSTALL_DIR) $(1)/usr/bin
- $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ttyd $(1)/usr/bin/
-endef
-
-$(eval $(call BuildPackage,ttyd))