53 lines
1.4 KiB
Makefile
53 lines
1.4 KiB
Makefile
#
|
|
# Copyright (c) 2017 Yu Wang <wangyucn@gmail.com>
|
|
#
|
|
# This is free software, licensed under the MIT.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=tinyfecVPN
|
|
PKG_VERSION:=20210116.0
|
|
PKG_RELEASE:=1
|
|
|
|
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_LICENSE:=MIT
|
|
PKG_MAINTAINER:=Yu Wang
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/tinyfecVPN
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
SUBMENU:=VPN
|
|
TITLE:=A Network Improving Tool
|
|
URL:=https://github.com/wangyu-/tinyfecVPN
|
|
DEPENDS:=+libpthread +libstdcpp +kmod-tun
|
|
endef
|
|
|
|
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
|
|
|
|
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
|
|
endef
|
|
|
|
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))
|