2016-09-27 16:54:49 +00:00
|
|
|
#
|
|
|
|
# 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
|
2019-10-17 05:03:16 +00:00
|
|
|
PKG_VERSION:=1.5.2
|
2019-07-16 15:57:09 +00:00
|
|
|
PKG_RELEASE:=1
|
2016-09-27 16:54:49 +00:00
|
|
|
|
2018-02-24 16:31:03 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=https://codeload.github.com/tsl0922/ttyd/tar.gz/$(PKG_VERSION)?
|
2019-10-17 05:03:16 +00:00
|
|
|
PKG_HASH:=b5b62ec2ce08add0173e6d1dfdd879e55f02f9490043e89f389981a62e87d376
|
2016-09-27 16:54:49 +00:00
|
|
|
|
|
|
|
PKG_LICENSE:=MIT
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
2019-07-16 15:57:09 +00:00
|
|
|
PKG_MAINTAINER:=Shuanglei Tao <tsl0922@gmail.com>
|
2016-09-27 16:54:49 +00:00
|
|
|
|
2019-04-10 21:55:37 +00:00
|
|
|
PKG_BUILD_DEPENDS:=vim/host
|
2016-09-27 16:54:49 +00:00
|
|
|
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
|
2018-02-24 16:31:03 +00:00
|
|
|
DEPENDS:=+libopenssl +libjson-c +libpthread +libwebsockets-full
|
2016-09-27 16:54:49 +00:00
|
|
|
URL:=https://github.com/tsl0922/ttyd
|
|
|
|
SUBMENU:=Terminal
|
|
|
|
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/
|
2019-10-17 05:03:16 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/config/
|
|
|
|
$(INSTALL_CONF) ./files/ttyd.config $(1)/etc/config/ttyd
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d/
|
|
|
|
$(INSTALL_BIN) ./files/ttyd.init $(1)/etc/init.d/ttyd
|
2016-09-27 16:54:49 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,ttyd))
|