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.

50 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.5.2
  10. PKG_RELEASE:=1
  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:=b5b62ec2ce08add0173e6d1dfdd879e55f02f9490043e89f389981a62e87d376
  14. PKG_LICENSE:=MIT
  15. PKG_LICENSE_FILES:=LICENSE
  16. PKG_MAINTAINER:=Shuanglei Tao <tsl0922@gmail.com>
  17. PKG_BUILD_DEPENDS:=vim/host
  18. CMAKE_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/cmake.mk
  21. define Package/ttyd
  22. SECTION:=utils
  23. CATEGORY:=Utilities
  24. TITLE:=Command-line tool for sharing terminal over the web
  25. DEPENDS:=+libopenssl +libjson-c +libpthread +libwebsockets-full
  26. URL:=https://github.com/tsl0922/ttyd
  27. SUBMENU:=Terminal
  28. endef
  29. define Package/ttyd/description
  30. ttyd is a command-line tool for sharing terminal over the web.
  31. endef
  32. define Package/ttyd/install
  33. $(INSTALL_DIR) $(1)/usr/bin
  34. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ttyd $(1)/usr/bin/
  35. $(INSTALL_DIR) $(1)/etc/config/
  36. $(INSTALL_CONF) ./files/ttyd.config $(1)/etc/config/ttyd
  37. $(INSTALL_DIR) $(1)/etc/init.d/
  38. $(INSTALL_BIN) ./files/ttyd.init $(1)/etc/init.d/ttyd
  39. endef
  40. $(eval $(call BuildPackage,ttyd))