Merge branch 'openwrt:master' into master
This commit is contained in:
commit
526264d53e
17 changed files with 269 additions and 60 deletions
2
.github/workflows/entrypoint.sh
vendored
2
.github/workflows/entrypoint.sh
vendored
|
@ -39,5 +39,5 @@ for PKG in /ci/*.ipk; do
|
||||||
echo "No test.sh script available"
|
echo "No test.sh script available"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
opkg remove "$PKG_NAME" --force-removal-of-dependent-packages --force-remove
|
opkg remove "$PKG_NAME" --force-removal-of-dependent-packages --force-remove --autoremove || true
|
||||||
done
|
done
|
||||||
|
|
|
@ -76,8 +76,10 @@ define GoCompiler/Default/Install/Bin
|
||||||
$(INSTALL_BIN) -p "$(1)/bin/$(4)"/* "$(2)/lib/go-$(3)/bin/"
|
$(INSTALL_BIN) -p "$(1)/bin/$(4)"/* "$(2)/lib/go-$(3)/bin/"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(INSTALL_DIR) "$(2)/lib/go-$(3)/pkg"
|
if [ -d "$(1)/pkg/$(4)$(if $(5),_$(5))" ]; then \
|
||||||
$(CP) "$(1)/pkg/$(4)$(if $(5),_$(5))" "$(2)/lib/go-$(3)/pkg/"
|
$(INSTALL_DIR) "$(2)/lib/go-$(3)/pkg" ; \
|
||||||
|
$(CP) "$(1)/pkg/$(4)$(if $(5),_$(5))" "$(2)/lib/go-$(3)/pkg/" ; \
|
||||||
|
fi
|
||||||
|
|
||||||
$(INSTALL_DIR) "$(2)/lib/go-$(3)/pkg/tool/$(4)"
|
$(INSTALL_DIR) "$(2)/lib/go-$(3)/pkg/tool/$(4)"
|
||||||
$(INSTALL_BIN) -p "$(1)/pkg/tool/$(4)"/* "$(2)/lib/go-$(3)/pkg/tool/$(4)/"
|
$(INSTALL_BIN) -p "$(1)/pkg/tool/$(4)"/* "$(2)/lib/go-$(3)/pkg/tool/$(4)/"
|
||||||
|
|
|
@ -65,6 +65,10 @@ unexport \
|
||||||
GOPPC64 \
|
GOPPC64 \
|
||||||
GOWASM
|
GOWASM
|
||||||
|
|
||||||
|
# Environment variables for use with code coverage:
|
||||||
|
unexport \
|
||||||
|
GOCOVERDIR
|
||||||
|
|
||||||
# Special-purpose environment variables:
|
# Special-purpose environment variables:
|
||||||
unexport \
|
unexport \
|
||||||
GCCGOTOOLDIR \
|
GCCGOTOOLDIR \
|
||||||
|
@ -202,12 +206,11 @@ GO_ARCH_DEPENDS:=@(aarch64||arm||i386||i686||mips||mips64||mips64el||mipsel||pow
|
||||||
|
|
||||||
# ASLR/PIE
|
# ASLR/PIE
|
||||||
|
|
||||||
# From https://go.dev/src/cmd/internal/sys/supported.go
|
# From https://go.dev/src/internal/platform/supported.go
|
||||||
GO_PIE_SUPPORTED_OS_ARCH:= \
|
GO_PIE_SUPPORTED_OS_ARCH:= \
|
||||||
android_386 android_amd64 android_arm android_arm64 \
|
android_386 android_amd64 android_arm android_arm64 \
|
||||||
linux_386 linux_amd64 linux_arm linux_arm64 \
|
linux_386 linux_amd64 linux_arm linux_arm64 \
|
||||||
\
|
windows_386 windows_amd64 windows_arm windows_arm64 \
|
||||||
windows_386 windows_amd64 windows_arm \
|
|
||||||
\
|
\
|
||||||
darwin_amd64 darwin_arm64 \
|
darwin_amd64 darwin_arm64 \
|
||||||
ios_amd64 ios_arm64 \
|
ios_amd64 ios_arm64 \
|
||||||
|
@ -219,7 +222,7 @@ GO_PIE_SUPPORTED_OS_ARCH:= \
|
||||||
linux_ppc64le linux_riscv64 linux_s390x
|
linux_ppc64le linux_riscv64 linux_s390x
|
||||||
|
|
||||||
# From https://go.dev/src/cmd/go/internal/work/init.go
|
# From https://go.dev/src/cmd/go/internal/work/init.go
|
||||||
go_pie_install_suffix=$(if $(filter $(1),aix_ppc64 windows_386 windows_amd64 windows_arm),,shared)
|
go_pie_install_suffix=$(if $(filter $(1),aix_ppc64 windows_386 windows_amd64 windows_arm windows_arm64),,shared)
|
||||||
|
|
||||||
ifneq ($(filter $(GO_HOST_OS_ARCH),$(GO_PIE_SUPPORTED_OS_ARCH)),)
|
ifneq ($(filter $(GO_HOST_OS_ARCH),$(GO_PIE_SUPPORTED_OS_ARCH)),)
|
||||||
GO_HOST_PIE_SUPPORTED:=1
|
GO_HOST_PIE_SUPPORTED:=1
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
GO_VERSION_MAJOR_MINOR:=1.19
|
GO_VERSION_MAJOR_MINOR:=1.20
|
||||||
GO_VERSION_PATCH:=7
|
GO_VERSION_PATCH:=2
|
||||||
|
|
||||||
PKG_NAME:=golang
|
PKG_NAME:=golang
|
||||||
PKG_VERSION:=$(GO_VERSION_MAJOR_MINOR)$(if $(GO_VERSION_PATCH),.$(GO_VERSION_PATCH))
|
PKG_VERSION:=$(GO_VERSION_MAJOR_MINOR)$(if $(GO_VERSION_PATCH),.$(GO_VERSION_PATCH))
|
||||||
|
@ -20,7 +20,7 @@ GO_SOURCE_URLS:=https://dl.google.com/go/ \
|
||||||
|
|
||||||
PKG_SOURCE:=go$(PKG_VERSION).src.tar.gz
|
PKG_SOURCE:=go$(PKG_VERSION).src.tar.gz
|
||||||
PKG_SOURCE_URL:=$(GO_SOURCE_URLS)
|
PKG_SOURCE_URL:=$(GO_SOURCE_URLS)
|
||||||
PKG_HASH:=775bdf285ceaba940da8a2fe20122500efd7a0b65dbcee85247854a8d7402633
|
PKG_HASH:=4d0e2850d197b4ddad3bdb0196300179d095bb3aefd4dfbc3b36702c3728f8ab
|
||||||
|
|
||||||
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
||||||
PKG_LICENSE:=BSD-3-Clause
|
PKG_LICENSE:=BSD-3-Clause
|
||||||
|
@ -63,6 +63,8 @@ HOST_GO_VALID_OS_ARCH:= \
|
||||||
aix_ppc64 \
|
aix_ppc64 \
|
||||||
js_wasm \
|
js_wasm \
|
||||||
\
|
\
|
||||||
|
freebsd_riscv64 \
|
||||||
|
\
|
||||||
linux_ppc64 linux_ppc64le \
|
linux_ppc64 linux_ppc64le \
|
||||||
linux_mips linux_mipsle linux_mips64 linux_mips64le \
|
linux_mips linux_mipsle linux_mips64 linux_mips64le \
|
||||||
linux_loong64 linux_riscv64 linux_s390x \
|
linux_loong64 linux_riscv64 linux_s390x \
|
||||||
|
@ -86,6 +88,12 @@ BOOTSTRAP_GO_VALID_OS_ARCH:= \
|
||||||
solaris_amd64 \
|
solaris_amd64 \
|
||||||
windows_386 windows_amd64
|
windows_386 windows_amd64
|
||||||
|
|
||||||
|
BOOTSTRAP_1_17_SOURCE:=go1.17.13.src.tar.gz
|
||||||
|
BOOTSTRAP_1_17_SOURCE_URL:=$(GO_SOURCE_URLS)
|
||||||
|
BOOTSTRAP_1_17_HASH:=a1a48b23afb206f95e7bbaa9b898d965f90826f6f1d1fc0c1d784ada0cd300fd
|
||||||
|
|
||||||
|
BOOTSTRAP_1_17_BUILD_DIR:=$(HOST_BUILD_DIR)/.go_bootstrap_1.17
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/host-build.mk
|
include $(INCLUDE_DIR)/host-build.mk
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
include ../golang-compiler.mk
|
include ../golang-compiler.mk
|
||||||
|
@ -94,6 +102,7 @@ include ../golang-package.mk
|
||||||
PKG_UNPACK:=$(HOST_TAR) -C "$(PKG_BUILD_DIR)" --strip-components=1 -xzf "$(DL_DIR)/$(PKG_SOURCE)"
|
PKG_UNPACK:=$(HOST_TAR) -C "$(PKG_BUILD_DIR)" --strip-components=1 -xzf "$(DL_DIR)/$(PKG_SOURCE)"
|
||||||
HOST_UNPACK:=$(HOST_TAR) -C "$(HOST_BUILD_DIR)" --strip-components=1 -xzf "$(DL_DIR)/$(PKG_SOURCE)"
|
HOST_UNPACK:=$(HOST_TAR) -C "$(HOST_BUILD_DIR)" --strip-components=1 -xzf "$(DL_DIR)/$(PKG_SOURCE)"
|
||||||
BOOTSTRAP_UNPACK:=$(HOST_TAR) -C "$(BOOTSTRAP_BUILD_DIR)" --strip-components=1 -xzf "$(DL_DIR)/$(BOOTSTRAP_SOURCE)"
|
BOOTSTRAP_UNPACK:=$(HOST_TAR) -C "$(BOOTSTRAP_BUILD_DIR)" --strip-components=1 -xzf "$(DL_DIR)/$(BOOTSTRAP_SOURCE)"
|
||||||
|
BOOTSTRAP_1_17_UNPACK:=$(HOST_TAR) -C "$(BOOTSTRAP_1_17_BUILD_DIR)" --strip-components=1 -xzf "$(DL_DIR)/$(BOOTSTRAP_1_17_SOURCE)"
|
||||||
|
|
||||||
# don't strip ELF executables in test data
|
# don't strip ELF executables in test data
|
||||||
RSTRIP:=:
|
RSTRIP:=:
|
||||||
|
@ -181,8 +190,7 @@ ifeq ($(BOOTSTRAP_ROOT_DIR),)
|
||||||
$(eval $(call Download,golang-bootstrap))
|
$(eval $(call Download,golang-bootstrap))
|
||||||
|
|
||||||
define Bootstrap/Prepare
|
define Bootstrap/Prepare
|
||||||
mkdir -p "$(BOOTSTRAP_BUILD_DIR)"
|
mkdir -p "$(BOOTSTRAP_BUILD_DIR)" && $(BOOTSTRAP_UNPACK) ;
|
||||||
$(BOOTSTRAP_UNPACK)
|
|
||||||
endef
|
endef
|
||||||
Hooks/HostPrepare/Post+=Bootstrap/Prepare
|
Hooks/HostPrepare/Post+=Bootstrap/Prepare
|
||||||
|
|
||||||
|
@ -190,6 +198,23 @@ ifeq ($(BOOTSTRAP_ROOT_DIR),)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
# Bootstrap 1.17
|
||||||
|
|
||||||
|
define Download/golang-bootstrap-1.17
|
||||||
|
FILE:=$(BOOTSTRAP_1_17_SOURCE)
|
||||||
|
URL:=$(BOOTSTRAP_1_17_SOURCE_URL)
|
||||||
|
HASH:=$(BOOTSTRAP_1_17_HASH)
|
||||||
|
endef
|
||||||
|
$(eval $(call Download,golang-bootstrap-1.17))
|
||||||
|
|
||||||
|
define Bootstrap-1.17/Prepare
|
||||||
|
mkdir -p "$(BOOTSTRAP_1_17_BUILD_DIR)" && $(BOOTSTRAP_1_17_UNPACK) ;
|
||||||
|
endef
|
||||||
|
Hooks/HostPrepare/Post+=Bootstrap-1.17/Prepare
|
||||||
|
|
||||||
|
$(eval $(call GoCompiler/AddProfile,Bootstrap-1.17,$(BOOTSTRAP_1_17_BUILD_DIR),,bootstrap-1.17,$(GO_HOST_OS_ARCH)))
|
||||||
|
|
||||||
|
|
||||||
# Host
|
# Host
|
||||||
|
|
||||||
ifeq ($(GO_HOST_PIE_SUPPORTED),1)
|
ifeq ($(GO_HOST_PIE_SUPPORTED),1)
|
||||||
|
@ -220,8 +245,13 @@ define Host/Compile
|
||||||
$(HOST_GO_VARS) \
|
$(HOST_GO_VARS) \
|
||||||
)
|
)
|
||||||
|
|
||||||
$(call GoCompiler/Host/Make, \
|
$(call GoCompiler/Bootstrap-1.17/Make, \
|
||||||
GOROOT_BOOTSTRAP="$(BOOTSTRAP_ROOT_DIR)" \
|
GOROOT_BOOTSTRAP="$(BOOTSTRAP_ROOT_DIR)" \
|
||||||
|
$(HOST_GO_VARS) \
|
||||||
|
)
|
||||||
|
|
||||||
|
$(call GoCompiler/Host/Make, \
|
||||||
|
GOROOT_BOOTSTRAP="$(BOOTSTRAP_1_17_BUILD_DIR)" \
|
||||||
$(if $(HOST_GO_ENABLE_PIE),GO_LDFLAGS="-buildmode pie") \
|
$(if $(HOST_GO_ENABLE_PIE),GO_LDFLAGS="-buildmode pie") \
|
||||||
$(HOST_GO_VARS) \
|
$(HOST_GO_VARS) \
|
||||||
)
|
)
|
||||||
|
|
|
@ -13,7 +13,7 @@ Fixes #22040.
|
||||||
|
|
||||||
--- a/src/cmd/link/internal/ld/lib.go
|
--- a/src/cmd/link/internal/ld/lib.go
|
||||||
+++ b/src/cmd/link/internal/ld/lib.go
|
+++ b/src/cmd/link/internal/ld/lib.go
|
||||||
@@ -1502,25 +1502,20 @@ func (ctxt *Link) hostlink() {
|
@@ -1535,25 +1535,20 @@ func (ctxt *Link) hostlink() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ctxt.Arch.InFamily(sys.ARM, sys.ARM64) && buildcfg.GOOS == "linux" {
|
if ctxt.Arch.InFamily(sys.ARM, sys.ARM64) && buildcfg.GOOS == "linux" {
|
||||||
|
|
39
lang/python/python-aio-mqtt-mod/Makefile
Normal file
39
lang/python/python-aio-mqtt-mod/Makefile
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
#
|
||||||
|
# Copyright (C) 2023
|
||||||
|
#
|
||||||
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
|
# See /LICENSE for more information.
|
||||||
|
#
|
||||||
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
PKG_NAME:=python-aio-mqtt-mod
|
||||||
|
PKG_VERSION:=0.3.3
|
||||||
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
|
PYPI_NAME:=aio-mqtt-mod
|
||||||
|
PKG_HASH:=2271f8a2fd6c6aea914896dc3d4dd6e384cd0da405b06dcfa566bd01f968bf9d
|
||||||
|
|
||||||
|
PKG_MAINTAINER:=Quintin Hill <stuff@quintin.me.uk>
|
||||||
|
PKG_LICENSE:=Apache-2.0
|
||||||
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
|
|
||||||
|
include ../pypi.mk
|
||||||
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
include ../python3-package.mk
|
||||||
|
|
||||||
|
define Package/python3-aio-mqtt-mod
|
||||||
|
SECTION:=lang
|
||||||
|
CATEGORY:=Languages
|
||||||
|
SUBMENU:=Python
|
||||||
|
TITLE:=Asynchronous MQTT client
|
||||||
|
URL:=https://github.com/devbis/aio-mqtt
|
||||||
|
DEPENDS:=+python3-light +python3-asyncio +python3-openssl
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/python3-aio-mqtt-mod/description
|
||||||
|
Asynchronous MQTT client for 3.1.1 protocol version (mod).
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call Py3Package,python3-aio-mqtt-mod))
|
||||||
|
$(eval $(call BuildPackage,python3-aio-mqtt-mod))
|
||||||
|
$(eval $(call BuildPackage,python3-aio-mqtt-mod-src))
|
40
lang/python/python-ble2mqtt/Makefile
Normal file
40
lang/python/python-ble2mqtt/Makefile
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
#
|
||||||
|
# Copyright (C) 2023
|
||||||
|
#
|
||||||
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
|
# See /LICENSE for more information.
|
||||||
|
#
|
||||||
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
PKG_NAME:=python-ble2mqtt
|
||||||
|
PKG_VERSION:=0.1.5
|
||||||
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
|
PYPI_NAME:=ble2mqtt
|
||||||
|
PKG_HASH:=0015cae0c36badb48cbd4a1c8b1a8029e45ab0891a95363fe00624c2629b4510
|
||||||
|
|
||||||
|
PKG_MAINTAINER:=Quintin Hill <stuff@quintin.me.uk>
|
||||||
|
PKG_LICENSE:=MIT
|
||||||
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
|
|
||||||
|
include ../pypi.mk
|
||||||
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
include ../python3-package.mk
|
||||||
|
|
||||||
|
define Package/python3-ble2mqtt
|
||||||
|
SECTION:=lang
|
||||||
|
CATEGORY:=Languages
|
||||||
|
SUBMENU:=Python
|
||||||
|
TITLE:=Bluetooth to MQTT bridge
|
||||||
|
URL:=https://github.com/devbis/ble2mqtt/
|
||||||
|
DEPENDS:=+python3-light +python3-aio-mqtt-mod +python3-asyncio +python3-bleak +python3-logging
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/python3-ble2mqtt/description
|
||||||
|
Bluetooth to MQTT bridge, add your bluetooth-capable (including controllable)
|
||||||
|
devices to your smart home
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call Py3Package,python3-ble2mqtt))
|
||||||
|
$(eval $(call BuildPackage,python3-ble2mqtt))
|
||||||
|
$(eval $(call BuildPackage,python3-ble2mqtt-src))
|
43
lang/python/python-bleak/Makefile
Normal file
43
lang/python/python-bleak/Makefile
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
#
|
||||||
|
# Copyright (C) 2023
|
||||||
|
#
|
||||||
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
|
# See /LICENSE for more information.
|
||||||
|
#
|
||||||
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
PKG_NAME:=python-bleak
|
||||||
|
PKG_VERSION:=0.20.0
|
||||||
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
|
PYPI_NAME:=bleak
|
||||||
|
PKG_HASH:=7f6fe69454ad5d4c0ab05ae4a9aa1aabd6926d7128eab2fac4ef8a58a72999ee
|
||||||
|
|
||||||
|
PKG_MAINTAINER:=Quintin Hill <stuff@quintin.me.uk>
|
||||||
|
PKG_LICENSE:=MIT
|
||||||
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
|
|
||||||
|
include ../pypi.mk
|
||||||
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
include ../python3-package.mk
|
||||||
|
|
||||||
|
define Package/python3-bleak
|
||||||
|
SECTION:=lang
|
||||||
|
CATEGORY:=Languages
|
||||||
|
SUBMENU:=Python
|
||||||
|
TITLE:=Bluetooth Low Energy platform Agnostic Klient
|
||||||
|
URL:=https://github.com/hbldh/bleak
|
||||||
|
DEPENDS:=+python3-light +python3-async-timeout +python3-asyncio \
|
||||||
|
+python3-dbus-fast +python3-ctypes +python3-logging
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/python3-bleak/description
|
||||||
|
Bleak is an acronym for Bluetooth Low Energy platform Agnostic Klient.
|
||||||
|
Bleak is a GATT client software, capable of connecting to BLE devices acting
|
||||||
|
as GATT servers. It is designed to provide a asynchronous, cross-platform
|
||||||
|
Python API to connect and communicate with e.g. sensors.
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call Py3Package,python3-bleak))
|
||||||
|
$(eval $(call BuildPackage,python3-bleak))
|
||||||
|
$(eval $(call BuildPackage,python3-bleak-src))
|
43
lang/python/python-dbus-fast/Makefile
Normal file
43
lang/python/python-dbus-fast/Makefile
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
#
|
||||||
|
# Copyright (C) 2023
|
||||||
|
#
|
||||||
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
|
# See /LICENSE for more information.
|
||||||
|
#
|
||||||
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
PKG_NAME:=python-dbus-fast
|
||||||
|
PKG_VERSION:=1.84.2
|
||||||
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
|
PYPI_NAME:=dbus-fast
|
||||||
|
PYPI_SOURCE_NAME:=dbus_fast
|
||||||
|
PKG_HASH:=62b00b85c5835bff1d7ab5b12d494e588d92612bedbd7ca86176861729b8e4bc
|
||||||
|
|
||||||
|
PKG_MAINTAINER:=Quintin Hill <stuff@quintin.me.uk>
|
||||||
|
PKG_LICENSE:=MIT
|
||||||
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
|
|
||||||
|
include ../pypi.mk
|
||||||
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
include ../python3-package.mk
|
||||||
|
|
||||||
|
define Package/python3-dbus-fast
|
||||||
|
SECTION:=lang
|
||||||
|
CATEGORY:=Languages
|
||||||
|
SUBMENU:=Python
|
||||||
|
TITLE:=A faster version of dbus-next
|
||||||
|
URL:=https://github.com/Bluetooth-Devices/dbus-fast
|
||||||
|
DEPENDS:=+python3-light +python3-async-timeout +python3-asyncio \
|
||||||
|
+python3-logging +python3-urllib +python3-xml
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/python3-dbus-fast/description
|
||||||
|
dbus-fast is a Python library for DBus that aims to be a performant fully
|
||||||
|
featured high level library primarily geared towards integration of
|
||||||
|
applications into Linux desktop and mobile environments.
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call Py3Package,python3-dbus-fast))
|
||||||
|
$(eval $(call BuildPackage,python3-dbus-fast))
|
||||||
|
$(eval $(call BuildPackage,python3-dbus-fast-src))
|
|
@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=banip
|
PKG_NAME:=banip
|
||||||
PKG_VERSION:=0.8.2
|
PKG_VERSION:=0.8.2
|
||||||
PKG_RELEASE:=4
|
PKG_RELEASE:=5
|
||||||
PKG_LICENSE:=GPL-3.0-or-later
|
PKG_LICENSE:=GPL-3.0-or-later
|
||||||
PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
|
PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
|
||||||
|
|
||||||
|
|
|
@ -79,7 +79,7 @@ f_system() {
|
||||||
local cpu core
|
local cpu core
|
||||||
|
|
||||||
ban_memory="$("${ban_awkcmd}" '/^MemAvailable/{printf "%s",int($2/1000)}' "/proc/meminfo" 2>/dev/null)"
|
ban_memory="$("${ban_awkcmd}" '/^MemAvailable/{printf "%s",int($2/1000)}' "/proc/meminfo" 2>/dev/null)"
|
||||||
ban_ver="$(${ban_ubuscmd} -S call rpc-sys packagelist 2>/dev/null | jsonfilter -ql1 -e '@.packages.banip')"
|
ban_ver="$(${ban_ubuscmd} -S call rpc-sys packagelist '{ "all": true }' 2>/dev/null | jsonfilter -ql1 -e '@.packages.banip')"
|
||||||
ban_sysver="$(${ban_ubuscmd} -S call system board 2>/dev/null | jsonfilter -ql1 -e '@.model' -e '@.release.description' |
|
ban_sysver="$(${ban_ubuscmd} -S call system board 2>/dev/null | jsonfilter -ql1 -e '@.model' -e '@.release.description' |
|
||||||
"${ban_awkcmd}" 'BEGIN{RS="";FS="\n"}{printf "%s, %s",$1,$2}')"
|
"${ban_awkcmd}" 'BEGIN{RS="";FS="\n"}{printf "%s, %s",$1,$2}')"
|
||||||
if [ -z "${ban_cores}" ]; then
|
if [ -z "${ban_cores}" ]; then
|
||||||
|
@ -928,7 +928,7 @@ f_genstatus() {
|
||||||
# get status information
|
# get status information
|
||||||
#
|
#
|
||||||
f_getstatus() {
|
f_getstatus() {
|
||||||
local key keylist type value index_key1 index_key2 index_value1 index_value2 actual="${1}"
|
local key keylist type value index_key1 index_key2 index_value1 index_value2
|
||||||
|
|
||||||
[ -z "${ban_dev}" ] && f_conf
|
[ -z "${ban_dev}" ] && f_conf
|
||||||
json_load_file "${ban_rtfile}" >/dev/null 2>&1
|
json_load_file "${ban_rtfile}" >/dev/null 2>&1
|
||||||
|
@ -1262,7 +1262,11 @@ f_mail() {
|
||||||
|
|
||||||
# load mail template
|
# load mail template
|
||||||
#
|
#
|
||||||
[ -r "${ban_mailtemplate}" ] && . "${ban_mailtemplate}" || f_log "info" "the mail template is missing"
|
if [ -r "${ban_mailtemplate}" ]; then
|
||||||
|
. "${ban_mailtemplate}"
|
||||||
|
else
|
||||||
|
f_log "info" "the mail template is missing"
|
||||||
|
fi
|
||||||
[ -z "${mail_text}" ] && f_log "info" "the 'mail_text' template variable is empty"
|
[ -z "${mail_text}" ] && f_log "info" "the 'mail_text' template variable is empty"
|
||||||
[ "${ban_debug}" = "1" ] && msmtp_debug="--debug"
|
[ "${ban_debug}" = "1" ] && msmtp_debug="--debug"
|
||||||
|
|
||||||
|
|
|
@ -138,8 +138,13 @@ hold="$((cnt % ban_cores))"
|
||||||
f_rmset
|
f_rmset
|
||||||
f_rmdir "${ban_tmpdir}"
|
f_rmdir "${ban_tmpdir}"
|
||||||
f_genstatus "active"
|
f_genstatus "active"
|
||||||
[ "${ban_mailnotification}" = "1" ] && [ -n "${ban_mailreceiver}" ] && [ -x "${ban_mailcmd}" ] && f_mail
|
|
||||||
f_log "info" "finished banIP download processes"
|
f_log "info" "finished banIP download processes"
|
||||||
|
if [ "${ban_mailnotification}" = "1" ] && [ -n "${ban_mailreceiver}" ] && [ -x "${ban_mailcmd}" ]; then
|
||||||
|
(
|
||||||
|
sleep ${ban_triggerdelay}
|
||||||
|
f_mail
|
||||||
|
) &
|
||||||
|
fi
|
||||||
rm -rf "${ban_lock}"
|
rm -rf "${ban_lock}"
|
||||||
|
|
||||||
# start detached log service
|
# start detached log service
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
tw;Taiwan
|
|
||||||
af;Afghanistan
|
af;Afghanistan
|
||||||
|
ax;Åland Islands
|
||||||
al;Albania
|
al;Albania
|
||||||
dz;Algeria
|
dz;Algeria
|
||||||
as;American Samoa
|
as;American Samoa
|
||||||
|
@ -25,7 +25,6 @@ bj;Benin
|
||||||
bm;Bermuda
|
bm;Bermuda
|
||||||
bt;Bhutan
|
bt;Bhutan
|
||||||
bo;Bolivia
|
bo;Bolivia
|
||||||
bq;Caribbean Netherlands
|
|
||||||
ba;Bosnia
|
ba;Bosnia
|
||||||
bw;Botswana
|
bw;Botswana
|
||||||
bv;Bouvet Island
|
bv;Bouvet Island
|
||||||
|
@ -36,32 +35,30 @@ bn;Brunei
|
||||||
bg;Bulgaria
|
bg;Bulgaria
|
||||||
bf;Burkina Faso
|
bf;Burkina Faso
|
||||||
bi;Burundi
|
bi;Burundi
|
||||||
cv;Cape Verde
|
|
||||||
kh;Cambodia
|
kh;Cambodia
|
||||||
cm;Cameroon
|
cm;Cameroon
|
||||||
ca;Canada
|
ca;Canada
|
||||||
|
cv;Cape Verde
|
||||||
|
bq;Caribbean Netherlands
|
||||||
ky;Cayman Islands
|
ky;Cayman Islands
|
||||||
cf;Central African Republic
|
cf;Central African Republic
|
||||||
td;Chad
|
td;Chad
|
||||||
cl;Chile
|
cl;Chile
|
||||||
cn;China
|
cn;China
|
||||||
hk;Hong Kong
|
|
||||||
mo;Macau
|
|
||||||
cx;Christmas Island
|
cx;Christmas Island
|
||||||
cc;Cocos (Keeling) Islands
|
cc;Cocos (Keeling) Islands
|
||||||
co;Colombia
|
co;Colombia
|
||||||
km;Comoros
|
km;Comoros
|
||||||
cg;Congo - Brazzaville
|
cg;Congo - Brazzaville
|
||||||
|
cd;Congo - Kinshasa
|
||||||
ck;Cook Islands
|
ck;Cook Islands
|
||||||
cr;Costa Rica
|
cr;Costa Rica
|
||||||
|
ci;Côte d’Ivoire
|
||||||
hr;Croatia
|
hr;Croatia
|
||||||
cu;Cuba
|
cu;Cuba
|
||||||
cw;Curaçao
|
cw;Curaçao
|
||||||
cy;Cyprus
|
cy;Cyprus
|
||||||
cz;Czechia
|
cz;Czechia
|
||||||
ci;Côte d’Ivoire
|
|
||||||
kp;North Korea
|
|
||||||
cd;Congo - Kinshasa
|
|
||||||
dk;Denmark
|
dk;Denmark
|
||||||
dj;Djibouti
|
dj;Djibouti
|
||||||
dm;Dominica
|
dm;Dominica
|
||||||
|
@ -100,8 +97,8 @@ gw;Guinea-Bissau
|
||||||
gy;Guyana
|
gy;Guyana
|
||||||
ht;Haiti
|
ht;Haiti
|
||||||
hm;Heard & McDonald Islands
|
hm;Heard & McDonald Islands
|
||||||
va;Vatican City
|
|
||||||
hn;Honduras
|
hn;Honduras
|
||||||
|
hk;Hong Kong
|
||||||
hu;Hungary
|
hu;Hungary
|
||||||
is;Iceland
|
is;Iceland
|
||||||
in;India
|
in;India
|
||||||
|
@ -130,6 +127,7 @@ ly;Libya
|
||||||
li;Liechtenstein
|
li;Liechtenstein
|
||||||
lt;Lithuania
|
lt;Lithuania
|
||||||
lu;Luxembourg
|
lu;Luxembourg
|
||||||
|
mo;Macau
|
||||||
mg;Madagascar
|
mg;Madagascar
|
||||||
mw;Malawi
|
mw;Malawi
|
||||||
my;Malaysia
|
my;Malaysia
|
||||||
|
@ -143,6 +141,7 @@ mu;Mauritius
|
||||||
yt;Mayotte
|
yt;Mayotte
|
||||||
mx;Mexico
|
mx;Mexico
|
||||||
fm;Micronesia
|
fm;Micronesia
|
||||||
|
md;Moldova
|
||||||
mc;Monaco
|
mc;Monaco
|
||||||
mn;Mongolia
|
mn;Mongolia
|
||||||
me;Montenegro
|
me;Montenegro
|
||||||
|
@ -162,10 +161,13 @@ ng;Nigeria
|
||||||
nu;Niue
|
nu;Niue
|
||||||
nf;Norfolk Island
|
nf;Norfolk Island
|
||||||
mp;Northern Mariana Islands
|
mp;Northern Mariana Islands
|
||||||
|
kp;North Korea
|
||||||
|
mk;North Macedonia
|
||||||
no;Norway
|
no;Norway
|
||||||
om;Oman
|
om;Oman
|
||||||
pk;Pakistan
|
pk;Pakistan
|
||||||
pw;Palau
|
pw;Palau
|
||||||
|
ps;Palestine
|
||||||
pa;Panama
|
pa;Panama
|
||||||
pg;Papua New Guinea
|
pg;Papua New Guinea
|
||||||
py;Paraguay
|
py;Paraguay
|
||||||
|
@ -176,19 +178,10 @@ pl;Poland
|
||||||
pt;Portugal
|
pt;Portugal
|
||||||
pr;Puerto Rico
|
pr;Puerto Rico
|
||||||
qa;Qatar
|
qa;Qatar
|
||||||
kr;South Korea
|
re;Réunion
|
||||||
md;Moldova
|
|
||||||
ro;Romania
|
ro;Romania
|
||||||
ru;Russia
|
ru;Russia
|
||||||
rw;Rwanda
|
rw;Rwanda
|
||||||
re;Réunion
|
|
||||||
bl;St. Barthélemy
|
|
||||||
sh;St. Helena
|
|
||||||
kn;St. Kitts & Nevis
|
|
||||||
lc;St. Lucia
|
|
||||||
mf;St. Martin
|
|
||||||
pm;St. Pierre & Miquelon
|
|
||||||
vc;St. Vincent & Grenadines
|
|
||||||
ws;Samoa
|
ws;Samoa
|
||||||
sm;San Marino
|
sm;San Marino
|
||||||
st;São Tomé & Príncipe
|
st;São Tomé & Príncipe
|
||||||
|
@ -205,19 +198,27 @@ sb;Solomon Islands
|
||||||
so;Somalia
|
so;Somalia
|
||||||
za;South Africa
|
za;South Africa
|
||||||
gs;South Georgia & South Sandwich Islands
|
gs;South Georgia & South Sandwich Islands
|
||||||
|
kr;South Korea
|
||||||
ss;South Sudan
|
ss;South Sudan
|
||||||
es;Spain
|
es;Spain
|
||||||
lk;Sri Lanka
|
lk;Sri Lanka
|
||||||
ps;Palestine
|
bl;St. Barthélemy
|
||||||
|
sh;St. Helena
|
||||||
|
kn;St. Kitts & Nevis
|
||||||
|
lc;St. Lucia
|
||||||
|
mf;St. Martin
|
||||||
|
pm;St. Pierre & Miquelon
|
||||||
|
vc;St. Vincent & Grenadines
|
||||||
sd;Sudan
|
sd;Sudan
|
||||||
sr;Suriname
|
sr;Suriname
|
||||||
sj;Svalbard & Jan Mayen
|
sj;Svalbard & Jan Mayen
|
||||||
se;Sweden
|
se;Sweden
|
||||||
ch;Switzerland
|
ch;Switzerland
|
||||||
sy;Syria
|
sy;Syria
|
||||||
|
tw;Taiwan
|
||||||
tj;Tajikistan
|
tj;Tajikistan
|
||||||
|
tz;Tanzania
|
||||||
th;Thailand
|
th;Thailand
|
||||||
mk;North Macedonia
|
|
||||||
tl;Timor-Leste
|
tl;Timor-Leste
|
||||||
tg;Togo
|
tg;Togo
|
||||||
tk;Tokelau
|
tk;Tokelau
|
||||||
|
@ -232,13 +233,13 @@ ug;Uganda
|
||||||
ua;Ukraine
|
ua;Ukraine
|
||||||
ae;United Arab Emirates
|
ae;United Arab Emirates
|
||||||
gb;United Kingdom
|
gb;United Kingdom
|
||||||
tz;Tanzania
|
|
||||||
um;U.S. Outlying Islands
|
|
||||||
vi;U.S. Virgin Islands
|
|
||||||
us;United States
|
us;United States
|
||||||
uy;Uruguay
|
uy;Uruguay
|
||||||
|
um;U.S. Outlying Islands
|
||||||
|
vi;U.S. Virgin Islands
|
||||||
uz;Uzbekistan
|
uz;Uzbekistan
|
||||||
vu;Vanuatu
|
vu;Vanuatu
|
||||||
|
va;Vatican City
|
||||||
ve;Venezuela
|
ve;Venezuela
|
||||||
vn;Vietnam
|
vn;Vietnam
|
||||||
wf;Wallis & Futuna
|
wf;Wallis & Futuna
|
||||||
|
@ -246,4 +247,3 @@ eh;Western Sahara
|
||||||
ye;Yemen
|
ye;Yemen
|
||||||
zm;Zambia
|
zm;Zambia
|
||||||
zw;Zimbabwe
|
zw;Zimbabwe
|
||||||
ax;Åland Islands
|
|
||||||
|
|
|
@ -19,6 +19,7 @@ ban_funlib="/usr/lib/banip-functions.sh"
|
||||||
ban_pidfile="/var/run/banip.pid"
|
ban_pidfile="/var/run/banip.pid"
|
||||||
ban_lock="/var/run/banip.lock"
|
ban_lock="/var/run/banip.lock"
|
||||||
|
|
||||||
|
[ "${action}" = "boot" ] && /etc/init.d/banip running && exit 0
|
||||||
[ "${action}" = "stop" ] && ! /etc/init.d/banip running && exit 0
|
[ "${action}" = "stop" ] && ! /etc/init.d/banip running && exit 0
|
||||||
[ ! -r "${ban_funlib}" ] && { [ "${action}" = "start" ] || [ "${action}" = "restart" ] || [ "${action}" = "reload" ] || [ "${action}" = "stop" ] || [ "${action}" = "report" ] || [ "${action}" = "search" ] || [ "${action}" = "survey" ] || [ "${action}" = "status" ]; } && exit 1
|
[ ! -r "${ban_funlib}" ] && { [ "${action}" = "start" ] || [ "${action}" = "restart" ] || [ "${action}" = "reload" ] || [ "${action}" = "stop" ] || [ "${action}" = "report" ] || [ "${action}" = "search" ] || [ "${action}" = "survey" ] || [ "${action}" = "status" ]; } && exit 1
|
||||||
[ -d "${ban_lock}" ] && { [ "${action}" = "start" ] || [ "${action}" = "restart" ] || [ "${action}" = "reload" ]; } && exit 1
|
[ -d "${ban_lock}" ] && { [ "${action}" = "start" ] || [ "${action}" = "restart" ] || [ "${action}" = "reload" ]; } && exit 1
|
||||||
|
@ -60,6 +61,7 @@ stop_service() {
|
||||||
"${ban_nftcmd}" delete table inet banIP >/dev/null 2>&1
|
"${ban_nftcmd}" delete table inet banIP >/dev/null 2>&1
|
||||||
f_genstatus "stopped"
|
f_genstatus "stopped"
|
||||||
f_rmpid
|
f_rmpid
|
||||||
|
rm -rf "${ban_lock}"
|
||||||
}
|
}
|
||||||
|
|
||||||
restart() {
|
restart() {
|
||||||
|
@ -72,10 +74,8 @@ status() {
|
||||||
}
|
}
|
||||||
|
|
||||||
status_service() {
|
status_service() {
|
||||||
local actual="${1}"
|
|
||||||
|
|
||||||
[ -z "$(command -v "f_system")" ] && . "${ban_funlib}"
|
[ -z "$(command -v "f_system")" ] && . "${ban_funlib}"
|
||||||
[ -n "${actual}" ] && f_actual || f_getstatus
|
f_getstatus
|
||||||
}
|
}
|
||||||
|
|
||||||
report() {
|
report() {
|
||||||
|
|
|
@ -9,15 +9,15 @@ include $(TOPDIR)/rules.mk
|
||||||
include $(INCLUDE_DIR)/nls.mk
|
include $(INCLUDE_DIR)/nls.mk
|
||||||
|
|
||||||
PKG_NAME:=curl
|
PKG_NAME:=curl
|
||||||
PKG_VERSION:=7.88.1
|
PKG_VERSION:=8.0.1
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||||
PKG_SOURCE_URL:=https://github.com/curl/curl/releases/download/curl-$(subst .,_,$(PKG_VERSION))/ \
|
PKG_SOURCE_URL:=https://github.com/curl/curl/releases/download/curl-$(subst .,_,$(PKG_VERSION))/ \
|
||||||
https://dl.uxnr.de/mirror/curl/ \
|
https://dl.uxnr.de/mirror/curl/ \
|
||||||
https://curl.askapache.com/download/ \
|
https://curl.askapache.com/download/ \
|
||||||
https://curl.se/download/
|
https://curl.se/download/
|
||||||
PKG_HASH:=1dae31b2a7c1fe269de99c0c31bb488346aab3459b5ffca909d6938249ae415f
|
PKG_HASH:=0a381cd82f4d00a9a334438b8ca239afea5bfefcfa9a1025f2bf118e79e0b5f0
|
||||||
|
|
||||||
PKG_LICENSE:=MIT
|
PKG_LICENSE:=MIT
|
||||||
PKG_LICENSE_FILES:=COPYING
|
PKG_LICENSE_FILES:=COPYING
|
||||||
|
|
|
@ -200,14 +200,14 @@ snmpd_extend_add() {
|
||||||
}
|
}
|
||||||
|
|
||||||
snmpd_disk_add() {
|
snmpd_disk_add() {
|
||||||
local cfg="$1"
|
local cfg="$1"
|
||||||
local disk='disk'
|
local disk='disk'
|
||||||
|
|
||||||
config_get partition "$cfg" partition
|
config_get partition "$cfg" partition
|
||||||
[ -n "$partition" ] || return 0
|
[ -n "$partition" ] || return 0
|
||||||
config_get size "$cfg" size
|
config_get size "$cfg" size
|
||||||
[ -n "$size" ] || return 0
|
[ -n "$size" ] || return 0
|
||||||
echo "$disk $partition $size" >> $CONFIGFILE
|
echo "$disk $partition $size" >> $CONFIGFILE
|
||||||
}
|
}
|
||||||
|
|
||||||
snmpd_engineid_add() {
|
snmpd_engineid_add() {
|
||||||
|
@ -336,7 +336,7 @@ start_service() {
|
||||||
procd_close_instance
|
procd_close_instance
|
||||||
}
|
}
|
||||||
|
|
||||||
stop_service() {
|
service_stopped() {
|
||||||
[ -f "$CONFIGFILE" ] || return
|
[ -f "$CONFIGFILE" ] || return
|
||||||
rm -f "$CONFIGFILE"
|
rm -f "$CONFIGFILE"
|
||||||
procd_set_config_changed firewall
|
procd_set_config_changed firewall
|
||||||
|
|
|
@ -6,12 +6,12 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=snort3
|
PKG_NAME:=snort3
|
||||||
PKG_VERSION:=3.1.57.0
|
PKG_VERSION:=3.1.58.0
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://github.com/snort3/snort3/archive/refs/tags/
|
PKG_SOURCE_URL:=https://github.com/snort3/snort3/archive/refs/tags/
|
||||||
PKG_HASH:=cec779dde2fbf7e3d20b721c04b89f6f84ef663bf1afba06535188e7c766721c
|
PKG_HASH:=c2b37899db42e2db9a05089abbe0ba48633c6c48496d2c64565500b4f9061d78
|
||||||
|
|
||||||
PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
|
PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
|
||||||
PKG_LICENSE:=GPL-2.0-only
|
PKG_LICENSE:=GPL-2.0-only
|
||||||
|
|
Loading…
Reference in a new issue