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.

56 lines
1.8 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:=6.6.1
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_VERSION:=v$(PKG_VERSION)
  13. PKG_SOURCE_URL=https://codeload.github.com/zhaojh329/rtty/tar.gz/v$(PKG_VERSION)?
  14. PKG_HASH:=4a46bd80f738ccb9aeea7c0cb8aa5ac364fd964d9ccc1bc3faf7b68eae17007c
  15. CMAKE_INSTALL:=1
  16. PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_SOURCE_SUBDIR)
  17. PKG_LICENSE:=LGPL-2.1
  18. PKG_LICENSE_FILES:=LICENSE
  19. PKG_MAINTAINER:=Jianhui Zhao <jianhuizhao329@gmail.com>
  20. include $(INCLUDE_DIR)/package.mk
  21. include $(INCLUDE_DIR)/cmake.mk
  22. define Package/rtty/Default
  23. TITLE:=Access your terminals from anywhere via the web
  24. SECTION:=utils
  25. CATEGORY:=Utilities
  26. SUBMENU:=Terminal
  27. URL:=https://github.com/zhaojh329/rtty
  28. DEPENDS:=$(2)
  29. VARIANT:=$(1)
  30. PROVIDES:=rtty
  31. endef
  32. Package/rtty-openssl=$(call Package/rtty/Default,openssl,+PACKAGE_rtty-openssl:libuwsc-openssl)
  33. Package/rtty-wolfssl=$(call Package/rtty/Default,wolfssl,+PACKAGE_rtty-wolfssl:libuwsc-wolfssl)
  34. Package/rtty-mbedtls=$(call Package/rtty/Default,mbedtls,+PACKAGE_rtty-mbedtls:libuwsc-mbedtls)
  35. Package/rtty-nossl=$(call Package/rtty/Default,nossl,+PACKAGE_rtty-nossl:libuwsc-nossl)
  36. define Package/rtty-$(BUILD_VARIANT)/install
  37. $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d $(1)/etc/config
  38. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/rtty $(1)/usr/sbin
  39. $(INSTALL_BIN) ./files/rtty.init $(1)/etc/init.d/rtty
  40. $(INSTALL_CONF) ./files/rtty.config $(1)/etc/config/rtty
  41. endef
  42. $(eval $(call BuildPackage,rtty-openssl))
  43. $(eval $(call BuildPackage,rtty-wolfssl))
  44. $(eval $(call BuildPackage,rtty-mbedtls))
  45. $(eval $(call BuildPackage,rtty-nossl))