🎉 Sync 2026-09-19 19:24:04

This commit is contained in:
github-actions[bot] committed 2026-09-19 19:24:04 +08:00
1 parent 84f8f35c02
commit 983e89bc36
11 files changed
+492

No files matched your search

+37
View File
@@ -0,0 +1,37 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=njit8021xclient
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/bitdust/njit8021xclient.git
PKG_SOURCE_DATE:=2018-11-24
PKG_SOURCE_VERSION:=dd28c17f24275bbbf4c44504b832c0f1e6b9ae40
PKG_MIRROR_HASH:=skip
PKG_FIXUP:=autoreconf
PKG_BUILD_PARALLEL:=1
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
define Package/njit8021xclient
SECTION:=net
CATEGORY:=Network
SUBMENU:=Campus Network
TITLE:=NJIT 802.1X client program
DEPENDS:=+libopenssl +libpcap
endef
define Package/njit8021xclient/description
802.1X client from Nanjing Institude of Technology, compatable with
H3C iNode 802.1X client. Support H3C/iNode's private authentication
protocol V7.10.
endef
define Package/njit8021xclient/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/njit-client $(1)/usr/sbin/
endef
$(eval $(call BuildPackage,njit8021xclient))
+57
View File
@@ -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))
+64
View File
@@ -0,0 +1,64 @@
#
# Copyright (C) 2018-2019 wongsyrone
#
# This is free software, licensed under the GNU General Public License v3.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=trojan
PKG_VERSION:=1.16.0
PKG_RELEASE:=5
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/trojan-gfw/trojan/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=skip
PKG_BUILD_PARALLEL:=1
PKG_BUILD_DEPENDS:=openssl
PKG_BUILD_FLAGS:=gc-sections lto
PKG_LICENSE:=GPL-3.0
PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=GreaterFire
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
TARGET_CXXFLAGS += -Wall -Wextra
TARGET_CXXFLAGS += $(FPIC)
# CXX standard
TARGET_CXXFLAGS += -std=c++11
TARGET_CXXFLAGS := $(filter-out -O%,$(TARGET_CXXFLAGS)) -O3
CMAKE_OPTIONS += \
-DENABLE_MYSQL=OFF \
-DENABLE_NAT=ON \
-DENABLE_REUSE_PORT=ON \
-DENABLE_SSL_KEYLOG=ON \
-DENABLE_TLS13_CIPHERSUITES=ON \
-DFORCE_TCP_FASTOPEN=OFF \
-DSYSTEMD_SERVICE=OFF \
-DOPENSSL_USE_STATIC_LIBS=FALSE \
-DBoost_DEBUG=ON \
-DBoost_NO_BOOST_CMAKE=ON
define Package/trojan
SECTION:=net
CATEGORY:=Network
SUBMENU:=Web Servers/Proxies
TITLE:=An unidentifiable mechanism that helps you bypass GFW
URL:=https://github.com/trojan-gfw/trojan
DEPENDS:= \
+libpthread +libstdcpp +libopenssl \
+boost +boost-program_options +boost-date_time
endef
define Package/trojan/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/trojan $(1)/usr/sbin/trojan
endef
$(eval $(call BuildPackage,trojan))
@@ -0,0 +1,11 @@
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -43,7 +43,7 @@ if(MSVC)
add_definitions(-DBOOST_DATE_TIME_NO_LIB)
endif()
-find_package(OpenSSL 1.1.0 REQUIRED)
+find_package(OpenSSL 1.1.1 REQUIRED)
include_directories(${OPENSSL_INCLUDE_DIR})
target_link_libraries(trojan ${OPENSSL_LIBRARIES})
if(OPENSSL_VERSION VERSION_GREATER_EQUAL 1.1.1)
@@ -0,0 +1,16 @@
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -36,7 +36,12 @@ set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
target_link_libraries(trojan ${CMAKE_THREAD_LIBS_INIT})
-find_package(Boost 1.66.0 REQUIRED COMPONENTS system program_options)
+find_package(Boost 1.66.0 REQUIRED)
+if (Boost_MAJOR_VERSION LESS_EQUAL 1 AND Boost_MINOR_VERSION LESS 89)
+ find_package(Boost 1.66.0 REQUIRED COMPONENTS system program_options)
+else()
+ find_package(Boost 1.66.0 REQUIRED COMPONENTS program_options)
+endif()
include_directories(${Boost_INCLUDE_DIR})
target_link_libraries(trojan ${Boost_LIBRARIES})
if(MSVC)
+57
View File
@@ -0,0 +1,57 @@
#
# Copyright (c) 2017 Yu Wang <wangyucn@gmail.com>
# Copyright (c) 2020 Nishant Sharma <nishant@hopbox.in>
#
# This is free software, licensed under MIT
#
include $(TOPDIR)/rules.mk
PKG_NAME:=UDPspeeder
PKG_VERSION:=20230206.0
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=b6a1b5941d9ebb6ef4f6866abdf1e03a47b99b2d
PKG_SOURCE_URL:=https://github.com/wangyu-/UDPspeeder
PKG_MIRROR_HASH:=skip
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=Nishant Sharma <nishant@hopbox.in>, Toni Uhlig <matzeton@googlemail.com>
PKG_BUILD_PARALLEL:=1
PKG_BUILD_FLAGS:=no-mips16
include $(INCLUDE_DIR)/package.mk
define Package/UDPspeeder
SECTION:=net
CATEGORY:=Network
TITLE:=UDP Network Speed-Up Tool
URL:=https://github.com/wangyu-/UDPspeeder
DEPENDS:=+libstdcpp +librt +libatomic
endef
define Package/UDPspeeder/description
A Tunnel which Improves your Network Quality on a High-latency Lossy Link by using Forward Error Correction,for All Traffics(TCP/UDP/ICMP)
endef
MAKE_FLAGS += cross gitversion="$(PKG_VERSION)"
define Package/UDPspeeder/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/speederv2_cross $(1)/usr/bin/udpspeeder
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) ./files/udpspeeder-config $(1)/etc/config/udpspeeder
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/udpspeeder-init $(1)/etc/init.d/udpspeeder
endef
define Package/UDPspeeder/conffiles
/etc/config/udpspeeder
endef
$(eval $(call BuildPackage,UDPspeeder))
+30
View File
@@ -0,0 +1,30 @@
config udpspeeder 'tunnel1'
option enabled '1'
option server '1'
option mode '0'
option local '0.0.0.0:4095'
option remote '127.0.0.1:443'
option disable_obscure '1'
option fec '1:3,2:4,8:6,20:10'
option fix_latency '1'
config udpspeeder 'tunnel2'
option enabled '1'
option server '1'
option mode '0'
option mtu '1250'
option timeout '8'
option local '0.0.0.0:4096'
option remote '127.0.0.1:444'
option report '10'
option disable_obscure '1'
option fec '1:3,2:4,8:6,20:10'
option interval '0'
option disable_fec '0'
option sock_buf '1024'
option log_level '4'
option decode_buf '2000'
option fix_latency '1'
option queue_len '200'
+123
View File
@@ -0,0 +1,123 @@
#!/bin/sh /etc/rc.common
# Copyright (C) 2015 OpenWrt.org
# Copyright (C) 2020 Nishant Sharma <nishant@hopbox.in>
START=89
STOP=11
USE_PROCD=1
PROG=/usr/bin/udpspeeder
validate_udpspeeder_section() {
uci_validate_section udpspeeder udpspeeder "${1}" \
'enabled:bool:0' \
'server:bool:0' \
'mode:integer:0' \
'mtu:integer:1250' \
'timeout:integer:8' \
'local:string' \
'remote:string' \
'key:string' \
'report:integer:10' \
'disable_obscure:bool:0' \
'interval:integer:0' \
'fec:string:20:10' \
'disable_fec:bool:0' \
'sock_buf:integer:1024' \
'log_level:integer:4' \
'decode_buf:integer:2000' \
'fix_latency:bool:0' \
'queue_len:integer:200'
}
start_instance() {
local section="$1"
local server mode mtu timeout local remote key report disable_obscure fifo interval \
fec disable_fec sock_buf queue_len decode_buf sock_buf log_level enabled
fifo="/tmp/udpspeeder-${section}.fifo"
validate_udpspeeder_section $section || {
echo "validation failed"
return 1
}
if [ "${enabled}" -ne 1 ]
then
return 1
fi
procd_open_instance
procd_set_param respawn
procd_set_param stderr 1
procd_set_param stdout 1
procd_set_param command "${PROG}"
if [ "${server}" -eq 1 ]
then
procd_append_param command -s
else
procd_append_param command -c
fi
if [ "${disable_fec}" -eq 1 ]
then
procd_append_param command --disable-fec
else
procd_append_param command --fec "${fec}"
fi
if [ "${fix_latency}" -eq 1 ] && [ "${mode}" -eq 0 ]
then
procd_append_param command --fix-latency
fi
if [ "${disable_obscure}" -eq 1 ]
then
procd_append_param command --disable-obscure
fi
[ -z "${key}" ] || procd_append_param command --key "${key}"
procd_append_param command -l "${local}"
procd_append_param command -r "${remote}"
procd_append_param command --mode "${mode}"
procd_append_param command --report "${report}"
procd_append_param command --interval "${interval}"
procd_append_param command --mtu "${mtu}"
procd_append_param command --timeout "${timeout}"
procd_append_param command --sock-buf "${sock_buf}"
procd_append_param command --decode-buf "${decode_buf}"
procd_append_param command --queue-len "${queue_len}"
procd_append_param command --log-level "${log_level}"
procd_append_param command --fifo "${fifo}"
procd_append_param command --disable-color
# procd_set_param respawn ${respawn_threshold:-3600} ${respawn_timeout:-5} ${respawn_retry:-5}
procd_close_instance
}
start_service() {
config_load 'udpspeeder'
config_foreach start_instance 'udpspeeder'
}
stop_service()
{
service_stop ${PROG}
}
service_triggers()
{
procd_add_reload_trigger "udpspeeder"
procd_add_validation validate_udpspeeder_section
}
reload_service() {
restart
}
@@ -0,0 +1,35 @@
From 7597b341540c10285a52f1917192bda580da051b Mon Sep 17 00:00:00 2001
From: David Connolly <david@connol.ly>
Date: Sun, 5 Jul 2026 21:40:39 +0100
Subject: [PATCH] build the cross target with the toolchain CXX and flags
Build the cross target with $(CXX) and append $(CXXFLAGS)/$(LDFLAGS), so
the package builds with the OpenWrt toolchain and picks up its hardening
flags instead of a compiler path hardcoded to the author's machine. Read
gitversion from an overridable variable so the version can be injected via
make flags instead of rewriting the makefile.
Signed-off-by: David Connolly <david@connol.ly>
---
makefile | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
--- a/makefile
+++ b/makefile
@@ -51,7 +51,7 @@ cygwin:git_version
#targes for general cross compile
cross:git_version
- ${cc_cross} -o ${NAME}_cross -I. ${SOURCES} ${FLAGS} -lrt -O2
+ ${CXX} -o ${NAME}_cross -I. ${SOURCES} ${FLAGS} ${CXXFLAGS} ${LDFLAGS} -lrt -O2
cross2:git_version
${cc_cross} -o ${NAME}_cross -I. ${SOURCES} ${FLAGS} -lrt -static -lgcc_eh -O2
@@ -115,5 +115,6 @@ clean:
rm -f ${NAME} ${NAME}_cross ${NAME}.exe ${NAME}_wepoll.exe ${NAME}_mac
rm -f git_version.h
+gitversion ?= $(shell git rev-parse HEAD 2>/dev/null)
git_version:
- echo "const char *gitversion = \"$(shell git rev-parse HEAD)\";" > git_version.h
+ echo "const char *gitversion = \"$(gitversion)\";" > git_version.h
+51
View File
@@ -0,0 +1,51 @@
#
# Copyright (C) 2016-2020 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=webui-aria2
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_DATE:=2021-09-01
PKG_SOURCE_URL:=https://github.com/ziahamza/webui-aria2.git
PKG_SOURCE_VERSION:=109903f0e2774cf948698cd95a01f77f33d7dd2c
PKG_MIRROR_HASH:=skip
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=Hsing-Wang Liao <kuoruan@gmail.com>
include $(INCLUDE_DIR)/package.mk
define Package/webui-aria2
SECTION:=net
CATEGORY:=Network
SUBMENU:=Download Manager
TITLE:=An interface to interact with aria2
URL:=https://github.com/ziahamza/webui-aria2
DEPENDS:=+aria2
PKGARCH:=all
endef
define Package/webui-aria2/description
The aim for this project is to create the worlds best and hottest
interface to interact with aria2. Very simple to use.
endef
define Build/Compile
endef
define Package/webui-aria2/install
$(INSTALL_DIR) $(1)/www/webui-aria2
$(CP) \
$(PKG_BUILD_DIR)/docs/* \
$(PKG_BUILD_DIR)/{LICENSE,favicon.ico} \
$(1)/www/webui-aria2
endef
$(eval $(call BuildPackage,webui-aria2))
@@ -0,0 +1,11 @@
--- a/docs/index.html
+++ b/docs/index.html
@@ -3,7 +3,7 @@
<!-- {{{ head -->
<head>
- <link rel="icon" href="../favicon.ico" />
+ <link rel="icon" href="favicon.ico" />
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">