Skip to content

Commit

Permalink
Merge Official Source
Browse files Browse the repository at this point in the history
Signed-off-by: Tianling Shen <[email protected]>
  • Loading branch information
1715173329 committed Nov 20, 2024
2 parents f6830ac + 6945c7b commit 5b10166
Show file tree
Hide file tree
Showing 8 changed files with 61 additions and 27 deletions.
6 changes: 3 additions & 3 deletions admin/qbee-agent/Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=qbee-agent
PKG_VERSION:=2024.36
PKG_VERSION:=2024.45
PKG_RELEASE:=1

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/qbee-io/qbee-agent.git
PKG_SOURCE_VERSION:=d52fb5e69b479550636570a2db6cebe06f5f129b
PKG_MIRROR_HASH:=58b4e7b741754bf86d315eb32e43d4a8b80c8b8f5a95cf94b77f48c193385d60
PKG_SOURCE_VERSION:=bdf5f11771964dbb69a0d8f1f93e69f75e5a83c5
PKG_MIRROR_HASH:=b0f62bfe66ecb33a4f703b372d66ba5cfcf15330fa1c7c60c0bd136f55727142

PKG_LICENSE:=Apache-2.0
PKG_LICENSE_FILES:=LICENSE
Expand Down
12 changes: 6 additions & 6 deletions net/alist/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=alist
PKG_VERSION:=3.39.1
PKG_VERSION:=3.39.2
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/alist-org/alist/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=f211a3b35b6c600a94dbee9041cb5e167284613be383c5944afef6b0b86ab330
PKG_SOURCE_URL:=https://codeload.github.com/AlistGo/alist/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=c455b3fc14f4fd2b81ce1a590113027e3cb278a66a77fd5d21f3a295eb3ea987

PKG_LICENSE:=AGPL-3.0-only
PKG_LICENSE_FILES:=LICENSE
Expand Down Expand Up @@ -49,13 +49,13 @@ define Package/alist/conffiles
/etc/config/alist
endef

WEB_VERSION:=3.39.0
WEB_VERSION:=3.39.2
WEB_FILE:=$(PKG_NAME)-web-$(WEB_VERSION).tar.gz
define Download/alist-web
URL:=https://github.com/alist-org/alist-web/releases/download/$(WEB_VERSION)/
URL:=https://github.com/AlistGo/alist-web/releases/download/$(WEB_VERSION)/
URL_FILE:=dist.tar.gz
FILE:=$(WEB_FILE)
HASH:=59f5dae6fed76ca708b12a7a6323ef85cdee48861ffafb8864c785b7d7c36e89
HASH:=d998315aff5544e7d7248214d02a3b04a92366bf0ac50fb4791b23833e8b543a
endef

define Build/Prepare
Expand Down
6 changes: 3 additions & 3 deletions net/hev-socks5-server/Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=hev-socks5-server
PKG_VERSION:=2.6.8
PKG_VERSION:=2.6.9
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://github.com/heiher/hev-socks5-server/releases/download/$(PKG_VERSION)
PKG_HASH:=43fadd353767fdd6b750948289fdae855a473f9335fb5a4e42c5d362dc99d0a8
PKG_HASH:=40b4c0df7d1982f56aecce0b51091111d81e08ee7def83920a23284fdaf91e84

PKG_MAINTAINER:=Ray Wang <[email protected]>
PKG_LICENSE:=MIT
Expand Down
6 changes: 3 additions & 3 deletions net/hev-socks5-tproxy/Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=hev-socks5-tproxy
PKG_VERSION:=2.5.7
PKG_VERSION:=2.5.8
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://github.com/heiher/hev-socks5-tproxy/releases/download/$(PKG_VERSION)
PKG_HASH:=b5f29fef18ffe335fce4d6f96ce83c8bee04ce29fda420ba7248252d3b210578
PKG_HASH:=f8ca8ab2dcfd4e0f4c595f3407644ec6b9798f7c1c8637f95c5cd59f85afde9b

PKG_MAINTAINER:=Ray Wang <[email protected]>
PKG_LICENSE:=MIT
Expand Down
6 changes: 3 additions & 3 deletions net/hev-socks5-tunnel/Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=hev-socks5-tunnel
PKG_VERSION:=2.7.3
PKG_VERSION:=2.7.5
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://github.com/heiher/hev-socks5-tunnel/releases/download/$(PKG_VERSION)
PKG_HASH:=613c4132cfed26ccd6e9f59a3e8590723f07969ac677f4957cbe000b13737fea
PKG_HASH:=a6dffa86d1a4f95025386a666628781415fb15e3d8e846d777e5a06086e5c769

PKG_MAINTAINER:=Ray Wang <[email protected]>
PKG_LICENSE:=MIT
Expand Down
4 changes: 2 additions & 2 deletions net/kafs-client/Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=kafs-client
PKG_VERSION:=0.5-9957339e
PKG_VERSION:=0.5~9957339e
PKG_RELEASE:=2

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://gitlab.com/linux-afs/kafs-client.git
PKG_SOURCE_VERSION:=99573359e25c1e31b84b23592ff72ae40c8756f5
PKG_MIRROR_HASH:=69436e5e8760be7bf2fd50a316a6596ee910e3dfd888bdea8a2ee506a0a5c5f2
PKG_MIRROR_HASH:=0accad975a25d9f3a7c55613c7cf172c021d3e31d4b86e79d35bf5a96463ec1f

PKG_LICENSE:=GPL-2.0
PKG_LICENSE_FILES:=LICENSE
Expand Down
2 changes: 1 addition & 1 deletion net/strongswan/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=strongswan
PKG_VERSION:=5.9.14
PKG_RELEASE:=4
PKG_RELEASE:=5

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=https://download.strongswan.org/ https://download2.strongswan.org/
Expand Down
46 changes: 40 additions & 6 deletions net/strongswan/files/swanctl.init
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,21 @@ config_pool() {
swanctl_xappend1 "}"
}

config_mschapv2_secret() {
local conf="$1"

local id
local secret

config_get id "$conf" id
config_get secret "$conf" secret

swanctl_xappend1 "eap-${conf} {"
swanctl_xappend2 "id = $id"
swanctl_xappend2 "secret = $secret"
swanctl_xappend1 "}"
}

config_remote() {
local conf="$1"

Expand All @@ -445,6 +460,7 @@ config_remote() {
local rekeytime
local remote_ca_certs
local pools
local eap_id

config_get_bool enabled "$conf" enabled 0
[ $enabled -eq 0 ] && return
Expand All @@ -466,6 +482,8 @@ config_remote() {
config_get ca_cert "$conf" ca_cert ""
config_get rekeytime "$conf" rekeytime
config_get overtime "$conf" overtime
config_get send_cert "$conf" send_cert
config_get eap_id "$conf" eap_id "%any"

config_list_foreach "$conf" local_sourceip append_var local_sourceip ","
config_list_foreach "$conf" remote_ca_certs append_var remote_ca_certs ","
Expand Down Expand Up @@ -525,18 +543,22 @@ config_remote() {
[ -n "$fragmentation" ] && swanctl_xappend2 "fragmentation = $fragmentation"
[ -n "$pools" ] && swanctl_xappend2 "pools = $pools"

local local_auth_method="$auth_method"
[ "$auth_method" = "eap-mschapv2" ] && local_auth_method="pubkey"

swanctl_xappend2 "local {"
swanctl_xappend3 "auth = $auth_method"
swanctl_xappend3 "auth = $local_auth_method"

[ -n "$local_identifier" ] && swanctl_xappend3 "id = \"$local_identifier\""
[ "$auth_method" = pubkey ] && [ -n "$local_cert" ] && \
[ "$local_auth_method" = pubkey ] && [ -n "$local_cert" ] && \
swanctl_xappend3 "certs = $local_cert"
swanctl_xappend2 "}"

swanctl_xappend2 "remote {"
swanctl_xappend3 "auth = $auth_method"
[ -n "$remote_identifier" ] && swanctl_xappend3 "id = \"$remote_identifier\""
[ -n "$remote_ca_certs" ] && swanctl_xappend3 "cacerts = \"$remote_ca_certs\""
[ "$auth_method" = eap-mschapv2 ] && swanctl_xappend3 "eap_id = $eap_id"
swanctl_xappend2 "}"

swanctl_xappend2 "children {"
Expand All @@ -560,6 +582,8 @@ config_remote() {
;;
esac

[ -n "$send_cert" ] && swanctl_xappend2 "send_cert = $send_cert"

[ $mobike -eq 1 ] && swanctl_xappend2 "mobike = yes" || swanctl_xappend2 "mobike = no"

if [ -n "$rekeytime" ]; then
Expand Down Expand Up @@ -603,14 +627,13 @@ config_remote() {
fi
swanctl_xappend1 "}"
swanctl_xappend0 "}"
elif [ "$auth_method" = eap-mschapv2 ]; then
# EAP-MSCHAPv2 secrets are handled in config_mschapv2_secrets globally
: # empty command
else
fatal "AuthenticationMode $auth_mode not supported"
fi

swanctl_xappend0 "pools {"
config_list_foreach "$conf" pools config_pool
swanctl_xappend0 "}"

swanctl_xappend0 ""
}

Expand Down Expand Up @@ -686,6 +709,17 @@ prepare_env() {
config_load ipsec
config_foreach config_ipsec ipsec
config_foreach config_remote remote

swanctl_xappend0 "# Global config"
swanctl_xappend0 ""

swanctl_xappend0 "pools {"
config_foreach config_pool pools
swanctl_xappend0 "}"

swanctl_xappend0 "secrets {"
config_foreach config_mschapv2_secret mschapv2_secrets
swanctl_xappend0 "}"

do_postamble
}
Expand Down

0 comments on commit 5b10166

Please sign in to comment.