update frpc makefile

This commit is contained in:
coolsnowwolf 2018-06-16 11:31:52 +08:00
parent 8dbb586e6f
commit a380ea6883
6 changed files with 32 additions and 18 deletions

View File

@ -7,8 +7,34 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=frpc
PKG_VERSION:=0.13
PKG_RELEASE:=20171022
PKG_VERSION:=0.20.0
PKG_RELEASE:=1
ifeq ($(ARCH),mipsel)
FRPC_ARCH:=mipsle
endif
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),arm64)
FRPC_ARCH:=arm64
endif
PKG_LICENSE:=Apache-2.0
PKG_SOURCE_URL:=https://github.com/fatedier/frp/releases/download/v$(PKG_VERSION)
PKG_SOURCE:=frp_$(PKG_VERSION)_linux_$(FRPC_ARCH).tar.gz
PKG_BUILD_DIR:=$(BUILD_DIR)/frp_$(PKG_VERSION)_linux_$(FRPC_ARCH)
PKG_HASH:=skip
include $(INCLUDE_DIR)/package.mk
@ -20,11 +46,14 @@ define Package/$(PKG_NAME)
URL:=https://github.com/fatedier/frp/releases
endef
define Package/$(PKG_NAME)/description
frp is a fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet
endef
define Build/Prepare
$(PKG_UNPACK)
endef
define Build/Configure
@ -35,22 +64,7 @@ endef
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/usr/bin
ifeq ($(ARCH),mipsel)
$(INSTALL_BIN) ./files/7620n/frpc $(1)/usr/bin/
endif
ifeq ($(ARCH),mips)
$(INSTALL_BIN) ./files/ar71xx/frpc $(1)/usr/bin/
endif
ifeq ($(ARCH),i386)
$(INSTALL_BIN) ./files/x86/frpc $(1)/usr/bin/
endif
ifeq ($(ARCH),x86_64)
$(INSTALL_BIN) ./files/x86_64/frpc $(1)/usr/bin/
endif
ifeq ($(ARCH),arm)
$(INSTALL_BIN) ./files/arm/frpc $(1)/usr/bin/
endif
$(INSTALL_BIN) $(PKG_BUILD_DIR)/frpc $(1)/usr/bin/
endef
$(eval $(call BuildPackage,$(PKG_NAME)))

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.