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.

93 lines
2.5 KiB

  1. #
  2. # Copyright (C) 2018 Jianhui Zhao
  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:=rtty
  9. PKG_VERSION:=4.1.2
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_VERSION:=v$(PKG_VERSION)
  13. PKG_SOURCE_URL=https://github.com/zhaojh329/rtty.git
  14. PKG_MIRROR_HASH:=f0791728f21815cd2164889a494c14be2f7683c4200193a6270e9ff9b70a5ad6
  15. PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_SOURCE_SUBDIR)
  16. PKG_LICENSE:=LGPL-2.1
  17. PKG_LICENSE_FILES:=LICENSE
  18. PKG_MAINTAINER:=Jianhui Zhao <jianhuizhao329@gmail.com>
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/cmake.mk
  21. define Package/rtty/default
  22. SECTION:=utils
  23. CATEGORY:=Utilities
  24. SUBMENU:=Terminal
  25. TITLE:=A reverse proxy WebTTY
  26. DEPENDS:=+libblobmsg-json
  27. endef
  28. define Package/rtty/default/description
  29. A reverse proxy WebTTY. This is the client part running on devices to be managed.
  30. endef
  31. define Package/rtty-nossl
  32. $(Package/rtty/default)
  33. TITLE += (NO SSL)
  34. DEPENDS += +libuwsc-nossl
  35. VARIANT:=nossl
  36. CONFLICTS:=rtty-openssl rtty-wolfssl rtty-mbedtls
  37. endef
  38. define Package/rtty-openssl
  39. $(Package/rtty/default)
  40. TITLE += (openssl)
  41. DEPENDS += +libuwsc-openssl
  42. VARIANT:=openssl
  43. CONFLICTS:=rtty-wolfssl rtty-mbedtls
  44. endef
  45. define Package/rtty-wolfssl
  46. $(Package/rtty/default)
  47. TITLE += (wolfssl)
  48. DEPENDS += +libuwsc-wolfssl
  49. VARIANT:=wolfssl
  50. CONFLICTS:=rtty-mbedtls
  51. endef
  52. define Package/rtty-mbedtls
  53. $(Package/rtty/default)
  54. TITLE += (mbedtls)
  55. DEPENDS += +libuwsc-mbedtls
  56. VARIANT:=mbedtls
  57. endef
  58. Package/rtty-nossl/description = $(Package/rtty/default/description)
  59. Package/rtty-openssl/description = $(Package/rtty/default/description)
  60. Package/rtty-wolfssl/description = $(Package/rtty/default/description)
  61. Package/rtty-mbedtls/description = $(Package/rtty/default/description)
  62. define Package/rtty/default/install
  63. $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d $(1)/etc/config
  64. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/rtty $(1)/usr/sbin
  65. $(INSTALL_BIN) ./files/rtty.init $(1)/etc/init.d/rtty
  66. $(INSTALL_CONF) ./files/rtty.config $(1)/etc/config/rtty
  67. endef
  68. Package/rtty-nossl/install = $(Package/rtty/default/install)
  69. Package/rtty-openssl/install = $(Package/rtty/default/install)
  70. Package/rtty-wolfssl/install = $(Package/rtty/default/install)
  71. Package/rtty-mbedtls/install = $(Package/rtty/default/install)
  72. $(eval $(call BuildPackage,rtty-nossl))
  73. $(eval $(call BuildPackage,rtty-mbedtls))
  74. $(eval $(call BuildPackage,rtty-wolfssl))
  75. $(eval $(call BuildPackage,rtty-openssl))