mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 23:18:42 +01:00
rtty: Add package
A reverse proxy WebTTY. It is composed of the client and the server. Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
This commit is contained in:
committed by
Yousong Zhou
parent
4d5c752f45
commit
8a7797d67a
Executable
+93
@@ -0,0 +1,93 @@
|
||||
#
|
||||
# Copyright (C) 2018 Jianhui Zhao
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=rtty
|
||||
PKG_VERSION:=2.2.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_VERSION:=v$(PKG_VERSION)
|
||||
PKG_SOURCE_URL=https://github.com/zhaojh329/rtty.git
|
||||
PKG_MIRROR_HASH:=23a203351fdd47acfd16d3c3b3e3d51dd65a5d9e8ca89d4b1521d40c40616102
|
||||
|
||||
PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_SOURCE_SUBDIR)
|
||||
|
||||
PKG_LICENSE:=GPL-3.0
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
PKG_MAINTAINER:=Jianhui Zhao <jianhuizhao329@gmail.com>
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include $(INCLUDE_DIR)/cmake.mk
|
||||
|
||||
define Package/rtty/default
|
||||
SECTION:=utils
|
||||
CATEGORY:=Utilities
|
||||
SUBMENU:=Terminal
|
||||
TITLE:=A reverse proxy WebTTY
|
||||
DEPENDS:=+libblobmsg-json
|
||||
endef
|
||||
|
||||
define Package/rtty/default/description
|
||||
A reverse proxy WebTTY. This is the client part running on devices to be managed.
|
||||
endef
|
||||
|
||||
define Package/rtty-nossl
|
||||
$(Package/rtty/default)
|
||||
TITLE += (NO SSL)
|
||||
DEPENDS += +libuwsc-nossl
|
||||
VARIANT:=nossl
|
||||
CONFLICTS:=rtty-openssl rtty-wolfssl rtty-mbedtls
|
||||
endef
|
||||
|
||||
define Package/rtty-openssl
|
||||
$(Package/rtty/default)
|
||||
TITLE += (openssl)
|
||||
DEPENDS += +libuwsc-openssl
|
||||
VARIANT:=openssl
|
||||
CONFLICTS:=rtty-wolfssl rtty-mbedtls
|
||||
endef
|
||||
|
||||
define Package/rtty-wolfssl
|
||||
$(Package/rtty/default)
|
||||
TITLE += (wolfssl)
|
||||
DEPENDS += +libuwsc-wolfssl
|
||||
VARIANT:=wolfssl
|
||||
CONFLICTS:=rtty-mbedtls
|
||||
endef
|
||||
|
||||
define Package/rtty-mbedtls
|
||||
$(Package/rtty/default)
|
||||
TITLE += (mbedtls)
|
||||
DEPENDS += +libuwsc-mbedtls
|
||||
VARIANT:=mbedtls
|
||||
endef
|
||||
|
||||
Package/rtty-nossl/description = $(Package/rtty/default/description)
|
||||
Package/rtty-openssl/description = $(Package/rtty/default/description)
|
||||
Package/rtty-wolfssl/description = $(Package/rtty/default/description)
|
||||
Package/rtty-mbedtls/description = $(Package/rtty/default/description)
|
||||
|
||||
define Package/rtty/default/install
|
||||
$(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d $(1)/etc/config
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/rtty $(1)/usr/sbin
|
||||
$(INSTALL_BIN) ./files/rtty.init $(1)/etc/init.d/rtty
|
||||
$(INSTALL_CONF) ./files/rtty.config $(1)/etc/config/rtty
|
||||
endef
|
||||
|
||||
Package/rtty-nossl/install = $(Package/rtty/default/install)
|
||||
Package/rtty-openssl/install = $(Package/rtty/default/install)
|
||||
Package/rtty-wolfssl/install = $(Package/rtty/default/install)
|
||||
Package/rtty-mbedtls/install = $(Package/rtty/default/install)
|
||||
|
||||
$(eval $(call BuildPackage,rtty-nossl))
|
||||
$(eval $(call BuildPackage,rtty-mbedtls))
|
||||
$(eval $(call BuildPackage,rtty-wolfssl))
|
||||
$(eval $(call BuildPackage,rtty-openssl))
|
||||
|
||||
Reference in New Issue
Block a user