tinyfecVPN: switch git source
As github tarball doesn't include the files of submodules, so switch to git source to fetch them. Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
This commit is contained in:
parent
257fa9bfdc
commit
c1282d2709
@ -9,11 +9,13 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=tinyfecVPN
|
||||
PKG_VERSION:=20210116.0
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://codeload.github.com/wangyu-/tinyfecVPN/tar.gz/$(PKG_VERSION)?
|
||||
PKG_HASH:=4e7494dcee9398a51497689c319bea7184152780fc06a2e05b6f9c16a6a9ea6e
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://github.com/wangyu-/tinyfecVPN.git
|
||||
PKG_SOURCE_DATE:=2021-01-17
|
||||
PKG_SOURCE_VERSION:=c9b98721ea1d62ab8e1c4c9e2a0ed04394dfe0ae
|
||||
PKG_MIRROR_HASH:=28cdadf0f162e52d3c6b10b6a6cdcd22e80783b36b33e341b5dea156bfb75b74
|
||||
|
||||
PKG_LICENSE:=MIT
|
||||
PKG_MAINTAINER:=Yu Wang
|
||||
@ -22,7 +24,7 @@ PKG_BUILD_PARALLEL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/tinyfecVPN
|
||||
define Package/tinyfecvpn
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
SUBMENU:=VPN
|
||||
@ -31,7 +33,7 @@ define Package/tinyfecVPN
|
||||
DEPENDS:=+libpthread +libstdcpp +kmod-tun
|
||||
endef
|
||||
|
||||
define Package/tinyfecVPN/description
|
||||
define Package/tinyfecvpn/description
|
||||
A Lightweight VPN with Build-in Forward Error Correction Support (or A Network Improving Tool
|
||||
which works at VPN mode). Improves your Network Quality on a High-latency Lossy Link.
|
||||
endef
|
||||
@ -41,12 +43,14 @@ MAKE_FLAGS += cross
|
||||
define Build/Configure
|
||||
sed -i 's/cc_cross=.*/cc_cross=$(TARGET_CXX)/g' $(PKG_BUILD_DIR)/makefile
|
||||
sed -i '/\*gitversion/d' $(PKG_BUILD_DIR)/makefile
|
||||
echo 'const char *gitversion = "$(PKG_VERSION)";' > $(PKG_BUILD_DIR)/git_version.h
|
||||
echo 'const char *gitversion = "$(PKG_SOURCE_VERSION)";' > $(PKG_BUILD_DIR)/git_version.h
|
||||
|
||||
$(call Build/Configure/Default)
|
||||
endef
|
||||
|
||||
define Package/tinyfecVPN/install
|
||||
define Package/tinyfecvpn/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/tinyvpn_cross $(1)/usr/bin/tinyvpn
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,tinyfecVPN))
|
||||
$(eval $(call BuildPackage,tinyfecvpn))
|
||||
|
Loading…
x
Reference in New Issue
Block a user