mirror of
https://github.com/openwrt/packages.git
synced 2026-10-13 23:07:42 +04:00
Updated from 4.04.856 to 5.06.909.
Changes:
- Switch from git clone to tarball download
- Add start_time/end_time scheduling support for tcp/http/https/socks5
- Add service_type validation for tcp (ssh/mstsc/rdp/vnc/telnet)
- Add iod proxy type support
- Add WAN up auto-restart trigger
- Add -s startup parameter
Signed-off-by: Dengfeng Liu <liudf0716@gmail.com>
(cherry picked from commit a1103ac37e)
55 lines
1.4 KiB
Makefile
55 lines
1.4 KiB
Makefile
#
|
|
# Copyright (C) 2022 Dengfeng Liu
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v3.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=xfrpc
|
|
PKG_VERSION:=5.06.909
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://codeload.github.com/liudf0716/xfrpc/tar.gz/$(PKG_VERSION)?
|
|
PKG_HASH:=7742bedbe929f5bfb386af2025de744aa38bc6f531e1f86a1fbb7318e3ec8f72
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/xfrpc-$(PKG_VERSION)
|
|
|
|
PKG_MAINTAINER:=Dengfeng Liu <liudf0716@gmail.com>
|
|
PKG_LICENSE:=GPL-3.0-or-later
|
|
PKG_LICENSE_FILES:=COPYING
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
define Package/xfrpc
|
|
SUBMENU:=Web Servers/Proxies
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
DEPENDS:=+zlib +libjson-c +libevent2 +libevent2-openssl
|
|
TITLE:= C language fast reverse proxy client
|
|
URL:=https://github.com/liudf0716/xfrpc
|
|
endef
|
|
|
|
define Package/xfrpc/description
|
|
xfrpc is C language fast reverse proxy client
|
|
compare with golang version frpc
|
|
xfrpc can run in almost all openwrt device
|
|
endef
|
|
|
|
define Package/xfrpc/conffiles
|
|
/etc/config/xfrpc
|
|
endef
|
|
|
|
define Package/xfrpc/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/xfrpc $(1)/usr/bin/xfrpc
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
$(INSTALL_BIN) ./files/xfrpc.init $(1)/etc/init.d/xfrpc
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
$(CP) ./files/xfrpc.conf $(1)/etc/config/xfrpc
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,xfrpc))
|