You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2016 Shuanglei Tao <tsl0922@gmail.com>
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=ttyd
  9. PKG_VERSION:=1.6.3
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/tsl0922/ttyd/tar.gz/$(PKG_VERSION)?
  13. PKG_HASH:=1116419527edfe73717b71407fb6e06f46098fc8a8e6b0bb778c4c75dc9f64b9
  14. PKG_MAINTAINER:=Shuanglei Tao <tsl0922@gmail.com>
  15. PKG_LICENSE:=MIT
  16. PKG_LICENSE_FILES:=LICENSE
  17. include $(INCLUDE_DIR)/package.mk
  18. include ../../devel/ninja/ninja-cmake.mk
  19. define Package/ttyd
  20. SECTION:=utils
  21. CATEGORY:=Utilities
  22. TITLE:=Command-line tool for sharing terminal over the web
  23. DEPENDS:=+libopenssl +libjson-c +libuv +zlib +libwebsockets-full
  24. URL:=https://github.com/tsl0922/ttyd
  25. SUBMENU:=Terminal
  26. endef
  27. define Package/ttyd/description
  28. ttyd is a command-line tool for sharing terminal over the web.
  29. endef
  30. define Package/ttyd/conffiles
  31. /etc/config/ttyd
  32. endef
  33. define Package/ttyd/install
  34. $(INSTALL_DIR) $(1)/usr/bin
  35. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ttyd $(1)/usr/bin/
  36. $(INSTALL_DIR) $(1)/etc/config/
  37. $(INSTALL_CONF) ./files/ttyd.config $(1)/etc/config/ttyd
  38. $(INSTALL_DIR) $(1)/etc/init.d/
  39. $(INSTALL_BIN) ./files/ttyd.init $(1)/etc/init.d/ttyd
  40. endef
  41. $(eval $(call BuildPackage,ttyd))