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 Dec 11, 2024
2 parents cdf711b + 0ca4794 commit 21dd2ba
Show file tree
Hide file tree
Showing 27 changed files with 362 additions and 146 deletions.
6 changes: 3 additions & 3 deletions lang/luajit2/Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=luajit2
PKG_SOURCE_DATE:=2024-11-04
PKG_SOURCE_DATE:=2024-11-13
PKG_VERSION:=2.1.$(subst -,.,$(PKG_SOURCE_DATE))
PKG_RELEASE:=1

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/openresty/luajit2
PKG_SOURCE_VERSION:=24d0c668883b65b13c8b5357805c6d4113e0ba6a
PKG_MIRROR_HASH:=d4e2743d7e92be51b1773fba997564a5b229f1b1cb2f3863bb7e27d4fd8a5cdb
PKG_SOURCE_VERSION:=098183d9d24b8942a26dcc720fe8725b287ec77f
PKG_MIRROR_HASH:=a177f59e47ce45b84fe51c736121d03c39dd3273a6aac0c429d16cc8448deb5c

PKG_MAINTAINER:=Javier Marcet <[email protected]>
PKG_LICENSE:=MIT
Expand Down
7 changes: 6 additions & 1 deletion lang/python/python-certifi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=python-certifi
PKG_VERSION:=2024.2.2
PKG_RELEASE:=1
PKG_RELEASE:=2

PKG_MAINTAINER:=Eneas U de Queiroz <[email protected]>
PKG_LICENSE:=MPL-2.0
Expand All @@ -16,9 +16,13 @@ PKG_LICENSE_FILES:=LICENSE
PYPI_NAME:=certifi
PKG_HASH:=0569859f95fc761b18b45ef421b1290a0f65f147e92a1e5eb3e635f9a5e4e66f

HOST_BUILD_DEPENDS:=python3/host python-build/host python-installer/host python-wheel/host

include ../pypi.mk
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/host-build.mk
include ../python3-package.mk
include ../python3-host-build.mk

define Package/python3-certifi
SUBMENU:=Python
Expand All @@ -38,3 +42,4 @@ endef
$(eval $(call Py3Package,python3-certifi))
$(eval $(call BuildPackage,python3-certifi))
$(eval $(call BuildPackage,python3-certifi-src))
$(eval $(call HostBuild))
7 changes: 6 additions & 1 deletion lang/python/python-chardet/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,19 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=python-chardet
PKG_VERSION:=5.2.0
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_LICENSE:=LGPL-2.1

PYPI_NAME:=chardet
PKG_HASH:=1b3b6ff479a8c414bc3fa2c0852995695c4a026dcd6d0633b2dd092ca39c1cf7

HOST_BUILD_DEPENDS:=python3/host python-build/host python-installer/host python-wheel/host

include ../pypi.mk
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/host-build.mk
include ../python3-package.mk
include ../python3-host-build.mk

define Package/python3-chardet
SUBMENU:=Python
Expand Down Expand Up @@ -45,3 +49,4 @@ endef
$(eval $(call Py3Package,python3-chardet))
$(eval $(call BuildPackage,python3-chardet))
$(eval $(call BuildPackage,python3-chardet-src))
$(eval $(call HostBuild))
6 changes: 5 additions & 1 deletion lang/python/python-idna/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=python-idna
PKG_VERSION:=3.6
PKG_RELEASE:=1
PKG_RELEASE:=2

PYPI_NAME:=idna
PKG_HASH:=9ecdbbd083b06798ae1e86adcbfe8ab1479cf864e4ee30fe4e46a003d12491ca
Expand All @@ -19,10 +19,13 @@ PKG_LICENSE_FILES:=LICENSE.md
PKG_MAINTAINER:=Jeffery To <[email protected]>

PKG_BUILD_DEPENDS:=python-flit-core/host
HOST_BUILD_DEPENDS:=python3/host python-build/host python-installer/host python-flit-core/host

include ../pypi.mk
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/host-build.mk
include ../python3-package.mk
include ../python3-host-build.mk

define Package/python3-idna
SECTION:=lang
Expand All @@ -43,3 +46,4 @@ endef
$(eval $(call Py3Package,python3-idna))
$(eval $(call BuildPackage,python3-idna))
$(eval $(call BuildPackage,python3-idna-src))
$(eval $(call HostBuild))
4 changes: 2 additions & 2 deletions lang/python/python-pycares/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=python-pycares
PKG_VERSION:=4.4.0
PKG_VERSION:=4.5.0
PKG_RELEASE:=1

PYPI_NAME:=pycares
PKG_HASH:=f47579d508f2f56eddd16ce72045782ad3b1b3b678098699e2b6a1b30733e1c2
PKG_HASH:=025b6c2ffea4e9fb8f9a097381c2fecb24aff23fbd6906e70da22ec9ba60e19d

PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE
Expand Down
6 changes: 5 additions & 1 deletion lang/python/python-urllib3/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=python-urllib3
PKG_VERSION:=2.0.4
PKG_RELEASE:=1
PKG_RELEASE:=2

PKG_MAINTAINER:=Josef Schlehofer <[email protected]>
PKG_LICENSE:=MIT
Expand All @@ -20,10 +20,13 @@ PYPI_NAME:=urllib3
PKG_HASH:=8d22f86aae8ef5e410d4f539fde9ce6b2113a001bb4d189e0aed70642d602b11

PKG_BUILD_DEPENDS:=python-hatchling/host
HOST_BUILD_DEPENDS:=python-hatchling/host

include ../pypi.mk
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/host-build.mk
include ../python3-package.mk
include ../python3-host-build.mk

define Package/python3-urllib3
SUBMENU:=Python
Expand All @@ -41,3 +44,4 @@ endef
$(eval $(call Py3Package,python3-urllib3))
$(eval $(call BuildPackage,python3-urllib3))
$(eval $(call BuildPackage,python3-urllib3-src))
$(eval $(call HostBuild))
5 changes: 2 additions & 3 deletions libs/libdrm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ endef
define Package/libdrm-etnaviv
$(call Package/libdrm/Default)
TITLE+= for Vivante GPUs
DEPENDS:=+libdrm @(arm||aarch64||mips||mipsel||mips64||mips64el)
DEPENDS:=+libdrm @(arm||aarch64||mips||mipsel||mips64||mips64el||riscv64)
endef

define Package/libdrm-etnaviv/description
Expand All @@ -78,8 +78,7 @@ endef
define Package/libdrm-intel
$(call Package/libdrm/Default)
TITLE+= for Intel integrated GPUs
DEPENDS:=+libdrm +libpciaccess @(x86||x86_64)

DEPENDS:=+libdrm +libpciaccess @(i386||i686||x86_64)
endef

define Package/libdrm-intel/description
Expand Down
2 changes: 1 addition & 1 deletion net/adblock-fast/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=adblock-fast
PKG_VERSION:=1.1.2
PKG_RELEASE:=16
PKG_RELEASE:=18
PKG_MAINTAINER:=Stan Grishin <[email protected]>
PKG_LICENSE:=AGPL-3.0-or-later

Expand Down
15 changes: 12 additions & 3 deletions net/adblock-fast/files/etc/init.d/adblock-fast
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,12 @@ resolver() {
uci_add_list_if_new 'dhcp' "$cfg" 'addnhosts' "$dnsmasqAddnhostsFile"
;;
cleanup|unbound.adb_list)
config_get confdir "$cfg" 'confdir' '/tmp/dnsmasq.d'
# shellcheck disable=SC2016
if grep -q 'config_get dnsmasqconfdir "$cfg" confdir "/tmp/dnsmasq${cfg:+.$cfg}.d"' '/etc/init.d/dnsmasq'; then
config_get confdir "$cfg" 'confdir' "/tmp/dnsmasq${cfg:+.$cfg}.d"
else
config_get confdir "$cfg" 'confdir' '/tmp/dnsmasq.d'
fi
rm -f "${confdir}/${dnsmasqConfFile}" "${confdir}/${dnsmasqIpsetFile}" "${confdir}/${dnsmasqNftsetFile}"
uci_remove_list 'dhcp' "$cfg" 'addnhosts' "$dnsmasqAddnhostsFile"
if [ "$(uci_get 'dhcp' "$cfg" 'serversfile')" = "$dnsmasqServersFile" ]; then
Expand All @@ -875,13 +880,17 @@ resolver() {
;;
esac
}
# shellcheck disable=SC2317
# shellcheck disable=SC2016,SC2317
_dnsmasq_instance_init() {
local cfg="$1" param="$2" confdir confdirFile
[ -s "/etc/config/dhcp" ] || return 0
case "$param" in
dnsmasq.conf|dnsmasq.ipset|dnsmasq.nftset)
config_get confdir "$cfg" 'confdir' '/tmp/dnsmasq.d'
if grep -q 'config_get dnsmasqconfdir "$cfg" confdir "/tmp/dnsmasq${cfg:+.$cfg}.d"' '/etc/init.d/dnsmasq'; then
config_get confdir "$cfg" 'confdir' "/tmp/dnsmasq${cfg:+.$cfg}.d"
else
config_get confdir "$cfg" 'confdir' '/tmp/dnsmasq.d'
fi
confdirFile="${confdir}/${outputFile}"
if ! str_contains "$outputDnsmasqFileList" "$confdirFile"; then
outputDnsmasqFileList="${outputDnsmasqFileList:+$outputDnsmasqFileList }${confdirFile}"
Expand Down
4 changes: 2 additions & 2 deletions net/dhtd/Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=dhtd
PKG_VERSION:=1.0.4
PKG_VERSION:=1.0.5
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/mwarning/dhtd/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=77b106fb05a2b7c5bb777513cf47a8f2b729672520d9772ffe82b86036b45d0f
PKG_HASH:=2b88977c474f35b611124bed226648dfc7fb98fd0e922360e8b8d42443028fa5

PKG_MAINTAINER:=Moritz Warning <[email protected]>
PKG_LICENSE:=MIT
Expand Down
8 changes: 4 additions & 4 deletions net/haproxy/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=haproxy
PKG_VERSION:=3.0.6
PKG_RELEASE:=1
PKG_RELEASE:=2

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://www.haproxy.org/download/3.0/src
Expand Down Expand Up @@ -46,7 +46,7 @@ endef
define Package/haproxy
$(call Package/haproxy/Default)
TITLE+=with SSL support
DEPENDS+= +libpcre2 +libltdl +zlib +libpthread +liblua5.3 +libopenssl +libncurses +libreadline +libatomic
DEPENDS+= +libpcre2 +libltdl +zlib +libpthread +liblua5.4 +libopenssl +libncurses +libreadline +libatomic
VARIANT:=ssl
endef

Expand All @@ -59,7 +59,7 @@ define Package/haproxy-nossl
$(call Package/haproxy/Default)
TITLE+=without SSL support
VARIANT:=nossl
DEPENDS+= +libpcre2 +libltdl +zlib +libpthread +liblua5.3 +libatomic
DEPENDS+= +libpcre2 +libltdl +zlib +libpthread +liblua5.4 +libatomic
CONFLICTS:=haproxy
endef

Expand Down Expand Up @@ -92,7 +92,7 @@ define Build/Compile
DESTDIR="$(PKG_INSTALL_DIR)" \
CC="$(TARGET_CC)" \
PCREDIR="$(STAGING_DIR)/usr/" \
USE_LUA=1 LUA_LIB_NAME="lua5.3" LUA_INC="$(STAGING_DIR)/usr/include/lua5.3" LUA_LIB="$(STAGING_DIR)/usr/lib" \
USE_LUA=1 LUA_LIB_NAME="lua5.4" LUA_INC="$(STAGING_DIR)/usr/include/lua5.4" LUA_LIB="$(STAGING_DIR)/usr/lib" \
SMALL_OPTS="-DBUFSIZE=16384 -DMAXREWRITE=1030 -DSYSTEM_MAXCONN=165530" \
USE_ZLIB=1 USE_PCRE2=1 USE_PCRE2_JIT=1 USE_PTHREAD_PSHARED=1 USE_LIBATOMIC=1 USE_PROMEX=1 \
VERSION="$(PKG_VERSION)" SUBVERS="-$(PKG_RELEASE)" \
Expand Down
4 changes: 2 additions & 2 deletions net/knot/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=knot
PKG_VERSION:=3.4.2
PKG_VERSION:=3.4.3
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://secure.nic.cz/files/knot-dns/
PKG_HASH:=d835285c1057d45effa1479cfe1f107a50e83d11c1c6d36f270deda88799883e
PKG_HASH:=fb153f07805f4679e836f143a74f5cd204ae71c3acbea7ab05ef8e012c6e905c

PKG_MAINTAINER:=Daniel Salzman <[email protected]>
PKG_LICENSE:=GPL-3.0 LGPL-2.0 0BSD BSD-3-Clause OLDAP-2.8
Expand Down
6 changes: 3 additions & 3 deletions net/ksmbd-tools/Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=ksmbd-tools
PKG_VERSION:=3.5.2
PKG_RELEASE:=1
PKG_VERSION:=3.5.3
PKG_RELEASE:=2

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/cifsd-team/ksmbd-tools/releases/download/$(PKG_VERSION)
PKG_HASH:=5da7fb4cb4368f9abf56f6f9fbc17b25e387876bed9ff7ee0d6f1140ef07c8d7
PKG_HASH:=e8d55cc53825170d7e5213d48a92b8251dc0d1351601283f6d0995cfd789b4d0

PKG_LICENSE:=GPL-2.0-or-later
PKG_LICENSE_FILES:=COPYING
Expand Down
5 changes: 0 additions & 5 deletions net/ksmbd-tools/files/ksmbd.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,3 @@
ipc timeout = 20
deadtime = 15
map to guest = Bad User
smb2 max read = 64K
smb2 max write = 64K
smb2 max trans = 64K
cache read buffers = no
cache trans buffers = no
24 changes: 24 additions & 0 deletions net/ksmbd-tools/files/ksmbd.init
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,28 @@ config_get_sane()
set -- "$(echo "$1" | tr -d '<>[]{};%?=#\n')"
}

config_get_ram()
{
ramsize=$(grep MemTotal /proc/meminfo | awk '{print $2}')
if [ "$ramsize" -lt 65537 ];then
printf "\tsmb2 max read = 64K\n"
printf "\tsmb2 max write = 64K\n"
printf "\tsmb2 max trans = 64K\n"
printf "\tcache read buffers = no\n"
printf "\tcache trans buffers = no\n"
elif [ "$ramsize" -lt 134073 ];then
printf "\tsmb2 max read = 128K\n"
printf "\tsmb2 max write = 128K\n"
printf "\tsmb2 max trans = 128K\n"
printf "\tcache read buffers = no\n"
printf "\tcache trans buffers = no\n"
elif [ "$ramsize" -lt 262146 ];then
printf "\tsmb2 max read = 1M\n"
printf "\tsmb2 max write = 1M\n"
printf "\tsmb2 max trans = 1M\n"
fi
}

smb_header()
{
config_get_sane SMBD_IFACE "$1" interface "lan"
Expand Down Expand Up @@ -41,6 +63,8 @@ smb_header()
/etc/ksmbd/ksmbd.conf.template > /var/etc/ksmbd/ksmbd.conf

{
config_get_ram

printf "\n######### Dynamic written config options #########\n"

if [ "$ALLOW_LEGACY_PROTOCOLS" -eq 1 ]; then
Expand Down
2 changes: 1 addition & 1 deletion net/ksmbd-tools/patches/030-glib.patch
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@@ -21,6 +21,7 @@ include_dirs = include_directories(
glib_dep = dependency(
'glib-2.0',
version: '>= 2.44',
version: '>= 2.58',
+ static: true,
)
libnl_dep = dependency(
Expand Down
2 changes: 1 addition & 1 deletion net/microsocks/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=microsocks
PKG_VERSION:=1.0.4
PKG_RELEASE:=1
PKG_RELEASE:=2

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/rofl0r/microsocks/tar.gz/v$(PKG_VERSION)?
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
From c81760cc3f1b6db22c7c9694efe7f3be115c2caf Mon Sep 17 00:00:00 2001
From: rofl0r <[email protected]>
Date: Fri, 17 May 2024 14:38:16 +0000
Subject: [PATCH] use a bigger thread stack by default

apparently newer musl versions require more stack for the TCP-based
DNS resolver.

closes #73
---
sockssrv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- a/sockssrv.c
+++ b/sockssrv.c
@@ -47,7 +47,7 @@
#endif

#ifdef PTHREAD_STACK_MIN
-#define THREAD_STACK_SIZE MAX(8*1024, PTHREAD_STACK_MIN)
+#define THREAD_STACK_SIZE MAX(16*1024, PTHREAD_STACK_MIN)
#else
#define THREAD_STACK_SIZE 64*1024
#endif
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
From 0343813e0410b469d591bc61b9a546ee2c2c15f6 Mon Sep 17 00:00:00 2001
From: rofl0r <[email protected]>
Date: Fri, 17 May 2024 14:40:11 +0000
Subject: [PATCH] mute warning about shadow declaration of bind_addr

---
sockssrv.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

--- a/sockssrv.c
+++ b/sockssrv.c
@@ -112,8 +112,8 @@ struct thread {
static void dolog(const char* fmt, ...) { }
#endif

-static struct addrinfo* addr_choose(struct addrinfo* list, union sockaddr_union* bind_addr) {
- int af = SOCKADDR_UNION_AF(bind_addr);
+static struct addrinfo* addr_choose(struct addrinfo* list, union sockaddr_union* bindaddr) {
+ int af = SOCKADDR_UNION_AF(bindaddr);
if(af == AF_UNSPEC) return list;
struct addrinfo* p;
for(p=list; p; p=p->ai_next)
Loading

0 comments on commit 21dd2ba

Please sign in to comment.