mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-07-14 09:56:59 +08:00
frpc: bump to v0.25.3
This commit is contained in:
parent
f47089ddf8
commit
b78d343d52
@ -1,70 +1,92 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2015-2016 OpenWrt.org
|
# Copyright (C) 2019 Xingwang Liao
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v3.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
|
# See /LICENSE for more information.
|
||||||
#
|
#
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=frpc
|
PKG_NAME:=frp
|
||||||
PKG_VERSION:=0.24.1
|
PKG_VERSION:=0.25.3
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
ifeq ($(ARCH),mipsel)
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
FRPC_ARCH:=mipsle
|
PKG_SOURCE_URL:=https://codeload.github.com/fatedier/frp/tar.gz/v$(PKG_VERSION)?
|
||||||
endif
|
PKG_HASH:=68281965d04567d55f143b4a4c4d4369c1962937d80484b6b48e96a5dcf0b2e4
|
||||||
ifeq ($(ARCH),mips)
|
|
||||||
FRPC_ARCH:=mips
|
|
||||||
endif
|
|
||||||
ifeq ($(ARCH),i386)
|
|
||||||
FRPC_ARCH:=386
|
|
||||||
endif
|
|
||||||
ifeq ($(ARCH),x86_64)
|
|
||||||
FRPC_ARCH:=amd64
|
|
||||||
endif
|
|
||||||
ifeq ($(ARCH),arm)
|
|
||||||
FRPC_ARCH:=arm
|
|
||||||
endif
|
|
||||||
ifeq ($(ARCH),aarch64)
|
|
||||||
FRPC_ARCH:=arm64
|
|
||||||
endif
|
|
||||||
|
|
||||||
PKG_LICENSE:=Apache-2.0
|
PKG_LICENSE:=Apache-2.0
|
||||||
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
|
PKG_MAINTAINER:=Xingwang Liao <kuoruan@gmail.com>
|
||||||
|
|
||||||
PKG_SOURCE_URL:=https://github.com/fatedier/frp/releases/download/v$(PKG_VERSION)
|
PKG_BUILD_DEPENDS:=golang/host
|
||||||
PKG_SOURCE:=frp_$(PKG_VERSION)_linux_$(FRPC_ARCH).tar.gz
|
PKG_BUILD_PARALLEL:=1
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/frp_$(PKG_VERSION)_linux_$(FRPC_ARCH)
|
PKG_USE_MIPS16:=0
|
||||||
PKG_HASH:=skip
|
|
||||||
|
GO_PKG:=github.com/fatedier/frp
|
||||||
|
GO_PKG_BUILD_PKG:=github.com/fatedier/frp/cmd/...
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
include $(TOPDIR)/feeds/packages/lang/golang/golang-package.mk
|
||||||
|
|
||||||
define Package/$(PKG_NAME)
|
define Package/frp/Default
|
||||||
SECTION:=net
|
TITLE:=A fast reverse proxy
|
||||||
CATEGORY:=Network
|
URL:=https://github.com/fatedier/frp
|
||||||
TITLE:=FRPC Client
|
|
||||||
DEPENDS:=
|
|
||||||
URL:=https://github.com/fatedier/frp/releases
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/frp/Default/description
|
||||||
|
frp is a fast reverse proxy to help you expose a local server behind a NAT or firewall
|
||||||
define Package/$(PKG_NAME)/description
|
to the internet. As of now, it supports tcp & udp, as well as httpand https protocols,
|
||||||
frp is a fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet
|
where requests can be forwarded to internal services by domain name.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Prepare
|
define frp/templates
|
||||||
$(PKG_UNPACK)
|
define Package/$(1)
|
||||||
|
$$(call Package/frp/Default)
|
||||||
|
TITLE+= ($(1))
|
||||||
|
USERID:=frp=7000:frp=7000
|
||||||
|
SECTION:=net
|
||||||
|
CATEGORY:=Network
|
||||||
|
SUBMENU:=Web Servers/Proxies
|
||||||
|
DEPENDS:=$$(GO_ARCH_DEPENDS)
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/$(1)/description
|
||||||
|
$$(call Package/frp/Default/description)
|
||||||
|
|
||||||
|
This package contains the $(1).
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/$(1)/install
|
||||||
|
$$(INSTALL_DIR) $$(1)/usr/bin
|
||||||
|
$$(INSTALL_BIN) $$(GO_PKG_BUILD_BIN_DIR)/$(1) $$(1)/usr/bin/
|
||||||
|
endef
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Configure
|
define Package/golang-github-fatedier-frp-dev
|
||||||
|
$(call Package/frp/Default)
|
||||||
|
$(call GoPackage/GoSubMenu)
|
||||||
|
TITLE+= (source files)
|
||||||
|
PKGARCH:=all
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/golang-github-fatedier-frp-dev/description
|
||||||
|
$(call Package/frp/Default/description)
|
||||||
|
|
||||||
|
This package provides the source files for frpc/frps.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
|
$(call GoPackage/Build/Compile,-ldflags "-s -w")
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/$(PKG_NAME)/install
|
FRP_COMPONENTS:=frpc frps
|
||||||
$(INSTALL_DIR) $(1)/usr/bin
|
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/frpc $(1)/usr/bin/
|
|
||||||
endef
|
|
||||||
|
|
||||||
$(eval $(call BuildPackage,$(PKG_NAME)))
|
$(foreach component,$(FRP_COMPONENTS), \
|
||||||
|
$(eval $(call frp/templates,$(component))) \
|
||||||
|
$(eval $(call GoBinPackage,$(component))) \
|
||||||
|
$(eval $(call BuildPackage,$(component))) \
|
||||||
|
)
|
||||||
|
|
||||||
|
$(eval $(call GoSrcPackage,golang-github-fatedier-frp-dev))
|
||||||
|
$(eval $(call BuildPackage,golang-github-fatedier-frp-dev))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user