mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-30 06:25:15 +08:00
🎉 Sync 2026-09-19 19:24:04
This commit is contained in:
1 parent
429c630d89
commit
367fd81688
11 files changed
+492
No files matched your search
@@ -0,0 +1,57 @@
|
||||
#
|
||||
# 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:=20230206.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://github.com/wangyu-/tinyfecVPN.git
|
||||
PKG_SOURCE_VERSION:=cbdf9beed3d03558b70d54e712453293f1d824f0
|
||||
PKG_MIRROR_HASH:=skip
|
||||
|
||||
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:=+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 += \
|
||||
cc_cross=$(TARGET_CXX) \
|
||||
nolimit_cross
|
||||
|
||||
define Build/Configure
|
||||
$(SED) 's,cross:git_version,cross:,g' $(PKG_BUILD_DIR)/makefile
|
||||
echo 'const char *gitversion = "$(PKG_SOURCE_VERSION)";' > $(PKG_BUILD_DIR)/git_version.h
|
||||
|
||||
$(call Build/Configure/Default)
|
||||
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))
|
||||
Reference in new issue
Block a user