Merge branch 'openwrt:master' into master
This commit is contained in:
commit
44c8433cd2
130 changed files with 2004 additions and 1175 deletions
6
.github/workflows/multi-arch-test-build.yml
vendored
6
.github/workflows/multi-arch-test-build.yml
vendored
|
@ -15,12 +15,12 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- arch: aarch64_cortex-a53
|
- arch: aarch64_generic
|
||||||
target: mvebu-cortexa53
|
target: armsr-armv8
|
||||||
runtime_test: true
|
runtime_test: true
|
||||||
|
|
||||||
- arch: arm_cortex-a15_neon-vfpv4
|
- arch: arm_cortex-a15_neon-vfpv4
|
||||||
target: armvirt-32
|
target: armsr-armv7
|
||||||
runtime_test: true
|
runtime_test: true
|
||||||
|
|
||||||
- arch: arm_cortex-a9_vfpv3-d16
|
- arch: arm_cortex-a9_vfpv3-d16
|
||||||
|
|
|
@ -8,12 +8,12 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gitlab-runner
|
PKG_NAME:=gitlab-runner
|
||||||
PKG_VERSION:=14.3.2
|
PKG_VERSION:=16.0.2
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://gitlab.com/gitlab-org/gitlab-runner/-/archive/v$(PKG_VERSION)
|
PKG_SOURCE_URL:=https://gitlab.com/gitlab-org/gitlab-runner/-/archive/v$(PKG_VERSION)
|
||||||
PKG_HASH:=f67aeae05349f5c612ea5d8772407237caf4da586c0365e3c7edceec6b853d8c
|
PKG_HASH:=f874b9babe21ae04007abfc901e9ad4c0c1ec22095d4de3e22e176914683cb5d
|
||||||
|
|
||||||
PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec1@gmail.com>
|
PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec1@gmail.com>
|
||||||
PKG_LICENSE:=MIT
|
PKG_LICENSE:=MIT
|
||||||
|
@ -23,7 +23,9 @@ PKG_BUILD_DIR:=$(BUILD_DIR)/gitlab-runner-v$(PKG_VERSION)
|
||||||
PKG_BUILD_DEPENDS:=golang/host
|
PKG_BUILD_DEPENDS:=golang/host
|
||||||
PKG_BUILD_PARALLEL:=1
|
PKG_BUILD_PARALLEL:=1
|
||||||
PKG_BUILD_FLAGS:=no-mips16
|
PKG_BUILD_FLAGS:=no-mips16
|
||||||
|
|
||||||
GO_PKG:=gitlab.com/gitlab-org/gitlab-runner
|
GO_PKG:=gitlab.com/gitlab-org/gitlab-runner
|
||||||
|
GO_PKG_LDFLAGS_X:=$(GO_PKG)/common.VERSION=$(PKG_VERSION)
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
include ../../lang/golang/golang-package.mk
|
include ../../lang/golang/golang-package.mk
|
||||||
|
@ -41,5 +43,12 @@ define Package/gitlab-runner/description
|
||||||
GitLab CI/CD to run jobs in a pipeline.
|
GitLab CI/CD to run jobs in a pipeline.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/gitlab-runner/install
|
||||||
|
$(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR))
|
||||||
|
$(INSTALL_DIR) $(1)/usr/bin/
|
||||||
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gitlab-runner $(1)/usr/bin/
|
||||||
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gitlab-runner-helper $(1)/usr/bin/
|
||||||
|
endef
|
||||||
|
|
||||||
$(eval $(call GoBinPackage,gitlab-runner))
|
$(eval $(call GoBinPackage,gitlab-runner))
|
||||||
$(eval $(call BuildPackage,gitlab-runner))
|
$(eval $(call BuildPackage,gitlab-runner))
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
--- a/common/buildtest/masking.go
|
--- a/common/buildtest/masking.go
|
||||||
+++ b/common/buildtest/masking.go
|
+++ b/common/buildtest/masking.go
|
||||||
@@ -45,7 +45,7 @@ func RunBuildWithMasking(t *testing.T, c
|
@@ -55,7 +55,7 @@ func RunBuildWithMasking(t *testing.T, c
|
||||||
|
|
||||||
buf.Finish()
|
buf.Finish()
|
||||||
|
|
||||||
|
|
3
devel/gitlab-runner/test.sh
Normal file
3
devel/gitlab-runner/test.sh
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
gitlab-runner --version | grep "$PKG_VERSION"
|
|
@ -8,12 +8,12 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=node
|
PKG_NAME:=node
|
||||||
PKG_VERSION:=v18.16.0
|
PKG_VERSION:=v18.16.1
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||||
PKG_SOURCE_URL:=https://nodejs.org/dist/$(PKG_VERSION)
|
PKG_SOURCE_URL:=https://nodejs.org/dist/$(PKG_VERSION)
|
||||||
PKG_HASH:=33d81a233e235a509adda4a4f2209008d04591979de6b3f0f67c1c906093f118
|
PKG_HASH:=e8404f8c8d89fdfdf7e95bbbc6066bd0e571acba58f54492599b615fbeefe272
|
||||||
|
|
||||||
PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>, Adrian Panella <ianchi74@outlook.com>
|
PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>, Adrian Panella <ianchi74@outlook.com>
|
||||||
PKG_LICENSE:=MIT
|
PKG_LICENSE:=MIT
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
--- a/lib/internal/modules/cjs/loader.js
|
--- a/lib/internal/modules/cjs/loader.js
|
||||||
+++ b/lib/internal/modules/cjs/loader.js
|
+++ b/lib/internal/modules/cjs/loader.js
|
||||||
@@ -1389,7 +1389,8 @@ Module._initPaths = function() {
|
@@ -1391,7 +1391,8 @@ Module._initPaths = function() {
|
||||||
path.resolve(process.execPath, '..') :
|
path.resolve(process.execPath, '..') :
|
||||||
path.resolve(process.execPath, '..', '..');
|
path.resolve(process.execPath, '..', '..');
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=php
|
PKG_NAME:=php
|
||||||
PKG_VERSION:=8.2.6
|
PKG_VERSION:=8.2.7
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_MAINTAINER:=Michael Heimpold <mhei@heimpold.de>
|
PKG_MAINTAINER:=Michael Heimpold <mhei@heimpold.de>
|
||||||
|
@ -16,7 +16,7 @@ PKG_CPE_ID:=cpe:/a:php:php
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||||
PKG_SOURCE_URL:=http://www.php.net/distributions/
|
PKG_SOURCE_URL:=http://www.php.net/distributions/
|
||||||
PKG_HASH:=10b796f0ed45574229851212b30a596a76e70ae365322bcaaaf9c00fa7d58cca
|
PKG_HASH:=4b9fb3dcd7184fe7582d7e44544ec7c5153852a2528de3b6754791258ffbdfa0
|
||||||
|
|
||||||
PKG_BUILD_PARALLEL:=1
|
PKG_BUILD_PARALLEL:=1
|
||||||
PKG_BUILD_FLAGS:=no-mips16
|
PKG_BUILD_FLAGS:=no-mips16
|
||||||
|
|
|
@ -11,7 +11,7 @@ PKG_RELEASE:=1
|
||||||
PYPI_NAME:=click
|
PYPI_NAME:=click
|
||||||
PKG_HASH:=7682dc8afb30297001674575ea00d1814d808d6a36af415a82bd481d37ba7b8e
|
PKG_HASH:=7682dc8afb30297001674575ea00d1814d808d6a36af415a82bd481d37ba7b8e
|
||||||
|
|
||||||
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
|
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
||||||
PKG_LICENSE:=BSD-3-Clause
|
PKG_LICENSE:=BSD-3-Clause
|
||||||
PKG_LICENSE_FILES:=LICENSE
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ PKG_RELEASE:=1
|
||||||
PYPI_NAME:=$(PKG_NAME)
|
PYPI_NAME:=$(PKG_NAME)
|
||||||
PKG_HASH:=5dbbc68b317e5e42f327f9021763545dc3fc3bfe22e6deb96aaf1fc38874156a
|
PKG_HASH:=5dbbc68b317e5e42f327f9021763545dc3fc3bfe22e6deb96aaf1fc38874156a
|
||||||
|
|
||||||
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
|
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
||||||
PKG_LICENSE:=BSD-3-Clause
|
PKG_LICENSE:=BSD-3-Clause
|
||||||
PKG_LICENSE_FILES:=LICENSE
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ PKG_HASH:=e528bb70dd6d6299ee429868925df0866e3e919c772b9eff79c8e17920d8f116
|
||||||
|
|
||||||
PKG_LICENSE:=MIT
|
PKG_LICENSE:=MIT
|
||||||
PKG_LICENSE_FILES:=LICENSE.txt
|
PKG_LICENSE_FILES:=LICENSE.txt
|
||||||
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
|
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
||||||
|
|
||||||
PKG_BUILD_DEPENDS:=unixodbc/host
|
PKG_BUILD_DEPENDS:=unixodbc/host
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=python-ble2mqtt
|
PKG_NAME:=python-ble2mqtt
|
||||||
PKG_VERSION:=0.1.7
|
PKG_VERSION:=0.1.7
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PYPI_NAME:=ble2mqtt
|
PYPI_NAME:=ble2mqtt
|
||||||
PKG_HASH:=c57d6823f1133ce0b5e0e3d9f7d2b3fd58d2ad64c0cc86cb3fa180b178999fa6
|
PKG_HASH:=c57d6823f1133ce0b5e0e3d9f7d2b3fd58d2ad64c0cc86cb3fa180b178999fa6
|
||||||
|
@ -38,6 +38,8 @@ endef
|
||||||
define Py3Package/python3-ble2mqtt/install
|
define Py3Package/python3-ble2mqtt/install
|
||||||
$(INSTALL_DIR) $(1)/etc/init.d
|
$(INSTALL_DIR) $(1)/etc/init.d
|
||||||
$(INSTALL_BIN) ./files/ble2mqtt.init $(1)/etc/init.d/ble2mqtt
|
$(INSTALL_BIN) ./files/ble2mqtt.init $(1)/etc/init.d/ble2mqtt
|
||||||
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call Py3Package,python3-ble2mqtt))
|
$(eval $(call Py3Package,python3-ble2mqtt))
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=python-docker
|
PKG_NAME:=python-docker
|
||||||
PKG_VERSION:=6.0.1
|
PKG_VERSION:=6.1.3
|
||||||
PKG_RELEASE:=3
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PYPI_NAME:=docker
|
PYPI_NAME:=docker
|
||||||
PKG_HASH:=896c4282e5c7af5c45e8b683b0b0c33932974fe6e50fc6906a0a83616ab3da97
|
PKG_HASH:=aa6d17830045ba5ef0168d5eaa34d37beeb113948c413affe1d5991fc11f9a20
|
||||||
|
|
||||||
PKG_MAINTAINER:=Javier Marcet <javier@marcet.info>
|
PKG_MAINTAINER:=Javier Marcet <javier@marcet.info>
|
||||||
PKG_LICENSE:=Apache-2.0
|
PKG_LICENSE:=Apache-2.0
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=python-dotenv
|
PKG_NAME:=python-dotenv
|
||||||
PKG_VERSION:=0.21.0
|
PKG_VERSION:=1.0.0
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PYPI_NAME:=python-dotenv
|
PYPI_NAME:=python-dotenv
|
||||||
PKG_HASH:=b77d08274639e3d34145dfa6c7008e66df0f04b7be7a75fd0d5292c191d79045
|
PKG_HASH:=a8df96034aae6d2d50a4ebe8216326c61c3eb64836776504fcca410e5937a3ba
|
||||||
|
|
||||||
PKG_MAINTAINER:=Javier Marcet <javier@marcet.info>
|
PKG_MAINTAINER:=Javier Marcet <javier@marcet.info>
|
||||||
PKG_LICENSE:=BSD-3-Clause
|
PKG_LICENSE:=BSD-3-Clause
|
||||||
|
|
|
@ -5,15 +5,15 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=python-gnupg
|
PKG_NAME:=python-gnupg
|
||||||
PKG_VERSION:=0.4.7
|
PKG_VERSION:=0.5.0
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PYPI_NAME:=$(PKG_NAME)
|
PYPI_NAME:=python-gnupg
|
||||||
PKG_HASH:=2061f56b1942c29b92727bf9aecbd3cea3893acc9cccbdc7eb4604285efe4ac7
|
PKG_HASH:=70758e387fc0e0c4badbcb394f61acbe68b34970a8fed7e0f7c89469fe17912a
|
||||||
|
|
||||||
PKG_LICENSE:=BSD-3-Clause
|
PKG_LICENSE:=BSD-3-Clause
|
||||||
PKG_LICENSE_FILES:=LICENSE.txt
|
PKG_LICENSE_FILES:=LICENSE.txt
|
||||||
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
|
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
||||||
PKG_CPE_ID:=cpe:/a:python:python-gnupg
|
PKG_CPE_ID:=cpe:/a:python:python-gnupg
|
||||||
|
|
||||||
include ../pypi.mk
|
include ../pypi.mk
|
||||||
|
@ -25,8 +25,8 @@ define Package/python3-gnupg
|
||||||
CATEGORY:=Languages
|
CATEGORY:=Languages
|
||||||
SUBMENU:=Python
|
SUBMENU:=Python
|
||||||
TITLE:=A wrapper for GnuPG
|
TITLE:=A wrapper for GnuPG
|
||||||
URL:=https://docs.red-dove.com/python-gnupg/
|
URL:=https://github.com/vsajip/python-gnupg
|
||||||
DEPENDS:=+gnupg +python3-light +python3-logging
|
DEPENDS:=+python3-light +python3-logging
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/python3-gnupg/description
|
define Package/python3-gnupg/description
|
||||||
|
|
|
@ -8,11 +8,11 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=python-hatchling
|
PKG_NAME:=python-hatchling
|
||||||
PKG_VERSION:=1.17.1
|
PKG_VERSION:=1.18.0
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PYPI_NAME:=hatchling
|
PYPI_NAME:=hatchling
|
||||||
PKG_HASH:=76dee5108f929b7eb9102df0a1bf88fa3247d68a44ff1f395e1cf32eaab0c6fa
|
PKG_HASH:=50e99c3110ce0afc3f7bdbadff1c71c17758e476731c27607940cfa6686489ca
|
||||||
|
|
||||||
PKG_LICENSE:=MIT
|
PKG_LICENSE:=MIT
|
||||||
PKG_LICENSE_FILES:=LICENSE.txt
|
PKG_LICENSE_FILES:=LICENSE.txt
|
||||||
|
|
|
@ -2,14 +2,15 @@ include $(TOPDIR)/rules.mk
|
||||||
include $(INCLUDE_DIR)/kernel.mk
|
include $(INCLUDE_DIR)/kernel.mk
|
||||||
|
|
||||||
PKG_NAME:=python-libmodbus
|
PKG_NAME:=python-libmodbus
|
||||||
PKG_VERSION:=0.5.0
|
PKG_VERSION:=0.6.2
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_LICENSE:=BSD-3-Clause
|
|
||||||
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
|
|
||||||
|
|
||||||
PYPI_NAME:=pylibmodbus
|
PYPI_NAME:=pylibmodbus
|
||||||
PKG_HASH:=80f837304ffa8476145ea643f6b98aa94b205013a96f1e5173d7bdc776426aee
|
PKG_HASH:=7989af81f57cc7593c86b2d74201978e931bc80f6bbe62564273477fc7059c20
|
||||||
|
|
||||||
|
PKG_LICENSE:=BSD-3-Clause
|
||||||
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
|
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
||||||
|
|
||||||
include ../pypi.mk
|
include ../pypi.mk
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
@ -19,8 +20,8 @@ define Package/python3-libmodbus
|
||||||
SUBMENU:=Python
|
SUBMENU:=Python
|
||||||
SECTION:=lang
|
SECTION:=lang
|
||||||
CATEGORY:=Languages
|
CATEGORY:=Languages
|
||||||
TITLE:=pylibmodbus
|
TITLE:=Wrapper for libmodbus
|
||||||
URL:=https://pypi.org/project/pylibmodbus
|
URL:=https://github.com/stephane/pylibmodbus
|
||||||
DEPENDS:=+libmodbus \
|
DEPENDS:=+libmodbus \
|
||||||
+python3-light \
|
+python3-light \
|
||||||
+python3-cffi
|
+python3-cffi
|
||||||
|
@ -32,3 +33,4 @@ endef
|
||||||
|
|
||||||
$(eval $(call Py3Package,python3-libmodbus))
|
$(eval $(call Py3Package,python3-libmodbus))
|
||||||
$(eval $(call BuildPackage,python3-libmodbus))
|
$(eval $(call BuildPackage,python3-libmodbus))
|
||||||
|
$(eval $(call BuildPackage,python3-libmodbus-src))
|
||||||
|
|
|
@ -5,19 +5,23 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=python-markupsafe
|
PKG_NAME:=python-markupsafe
|
||||||
PKG_VERSION:=2.1.2
|
PKG_VERSION:=2.1.3
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PYPI_NAME:=MarkupSafe
|
PYPI_NAME:=MarkupSafe
|
||||||
PKG_HASH:=abcabc8c2b26036d62d4c746381a6f7cf60aafcc653198ad678306986b09450d
|
PKG_HASH:=af598ed32d6ae86f1b747b82783958b1a4ab8f617b06fe68795c7f026abbdcad
|
||||||
|
|
||||||
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
|
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
||||||
PKG_LICENSE:=BSD-3-Clause
|
PKG_LICENSE:=BSD-3-Clause
|
||||||
PKG_LICENSE_FILES:=LICENSE.rst
|
PKG_LICENSE_FILES:=LICENSE.rst
|
||||||
|
|
||||||
|
HOST_BUILD_DEPENDS:=python3/host python-build/host python-installer/host python-wheel/host
|
||||||
|
|
||||||
include ../pypi.mk
|
include ../pypi.mk
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
include $(INCLUDE_DIR)/host-build.mk
|
||||||
include ../python3-package.mk
|
include ../python3-package.mk
|
||||||
|
include ../python3-host-build.mk
|
||||||
|
|
||||||
define Package/python3-markupsafe
|
define Package/python3-markupsafe
|
||||||
SECTION:=lang
|
SECTION:=lang
|
||||||
|
@ -39,3 +43,4 @@ endef
|
||||||
$(eval $(call Py3Package,python3-markupsafe))
|
$(eval $(call Py3Package,python3-markupsafe))
|
||||||
$(eval $(call BuildPackage,python3-markupsafe))
|
$(eval $(call BuildPackage,python3-markupsafe))
|
||||||
$(eval $(call BuildPackage,python3-markupsafe-src))
|
$(eval $(call BuildPackage,python3-markupsafe-src))
|
||||||
|
$(eval $(call HostBuild))
|
||||||
|
|
|
@ -8,11 +8,11 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=python-pluggy
|
PKG_NAME:=python-pluggy
|
||||||
PKG_VERSION:=1.0.0
|
PKG_VERSION:=1.2.0
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PYPI_NAME:=pluggy
|
PYPI_NAME:=pluggy
|
||||||
PKG_HASH:=4224373bacce55f955a878bf9cfa763c1e360858e330072059e10bad68531159
|
PKG_HASH:=d12f0c4b579b15f5e054301bb226ee85eeeba08ffec228092f8defbaa3a4c4b3
|
||||||
|
|
||||||
PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec1@gmail.com>, Jeffery To <jeffery.to@gmail.com>
|
PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec1@gmail.com>, Jeffery To <jeffery.to@gmail.com>
|
||||||
PKG_LICENSE:=MIT
|
PKG_LICENSE:=MIT
|
||||||
|
|
|
@ -5,38 +5,38 @@
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
SRC_NAME:=libselinux
|
PKG_NAME:=python-selinux
|
||||||
PKG_NAME:=python3-$(SRC_NAME)
|
PKG_VERSION:=3.5
|
||||||
PKG_VERSION:=3.3
|
PKG_RELEASE:=1
|
||||||
PKG_RELEASE:=3
|
|
||||||
|
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/python-libselinux/$(SRC_NAME)-$(PKG_VERSION)
|
SRC_NAME:=libselinux
|
||||||
PKG_SOURCE:=$(SRC_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(SRC_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://github.com/SELinuxProject/selinux/releases/download/$(PKG_VERSION)
|
PKG_SOURCE_URL:=https://github.com/SELinuxProject/selinux/releases/download/$(PKG_VERSION)
|
||||||
PKG_HASH:=acfdee27633d2496508c28727c3d41d3748076f66d42fccde2e6b9f3463a7057
|
PKG_HASH:=9a3a3705ac13a2ccca2de6d652b6356fead10f36fb33115c185c5ccdf29eec19
|
||||||
PKG_BUILD_DEPENDS:=swig/host
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)/$(SRC_NAME)-$(PKG_VERSION)
|
||||||
|
|
||||||
PKG_MAINTAINER:=Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
PKG_MAINTAINER:=Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||||
PKG_LICENSE:=libselinux-1.0
|
PKG_LICENSE:=libselinux-1.0
|
||||||
PKG_LICENSE_FILES:=LICENSE
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
PKG_CPE_ID:=cpe:/a:selinuxproject:libselinux
|
PKG_CPE_ID:=cpe:/a:selinuxproject:libselinux
|
||||||
|
|
||||||
|
PKG_BUILD_DEPENDS:=swig/host
|
||||||
|
PKG_BUILD_PARALLEL:=1
|
||||||
PYTHON3_PKG_BUILD:=0
|
PYTHON3_PKG_BUILD:=0
|
||||||
PKG_INSTALL:=1
|
|
||||||
MAKE_PATH:=src
|
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
include ../python3-package.mk
|
include ../python3-package.mk
|
||||||
|
|
||||||
define Package/python3-libselinux
|
define Package/python3-selinux
|
||||||
TITLE:=Python bindings for the runtime SELinux library
|
|
||||||
SUBMENU:=Python
|
SUBMENU:=Python
|
||||||
SECTION:=lang
|
SECTION:=lang
|
||||||
CATEGORY:=Languages
|
CATEGORY:=Languages
|
||||||
DEPENDS:=+libpcre +musl-fts +python3 +libselinux
|
TITLE:=SELinux runtime library bindings
|
||||||
|
DEPENDS:=+python3-light +libselinux
|
||||||
URL:=http://selinuxproject.org/page/Main_Page
|
URL:=http://selinuxproject.org/page/Main_Page
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/python3-libselinux/description
|
define Package/python3-selinux/description
|
||||||
libselinux is the runtime SELinux library that provides
|
libselinux is the runtime SELinux library that provides
|
||||||
interfaces (e.g. library functions for the SELinux kernel
|
interfaces (e.g. library functions for the SELinux kernel
|
||||||
APIs like getcon(), other support functions like
|
APIs like getcon(), other support functions like
|
||||||
|
@ -48,34 +48,27 @@ define Package/python3-libselinux/description
|
||||||
This package provides the Python bindings for libselinux.
|
This package provides the Python bindings for libselinux.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
MAKE_VARS += \
|
||||||
|
$(PYTHON3_VARS) \
|
||||||
|
$(HOST_PYTHON3_PIP_VARS) \
|
||||||
|
PYTHON_SETUP_ARGS=--no-compile
|
||||||
|
|
||||||
|
MAKE_FLAGS += \
|
||||||
|
SHLIBDIR=/usr/lib
|
||||||
|
|
||||||
ifneq ($(CONFIG_USE_MUSL),)
|
ifneq ($(CONFIG_USE_MUSL),)
|
||||||
|
MAKE_FLAGS += FTS_LDLIBS=-lfts
|
||||||
TARGET_CFLAGS += -D_LARGEFILE64_SOURCE
|
TARGET_CFLAGS += -D_LARGEFILE64_SOURCE
|
||||||
endif
|
endif
|
||||||
|
|
||||||
MAKE_FLAGS += \
|
|
||||||
FTS_LDLIBS=-lfts \
|
|
||||||
SHLIBDIR=/usr/lib \
|
|
||||||
PYTHON=$(PYTHON3) \
|
|
||||||
PYINC="-I $(PYTHON3_INC_DIR)" \
|
|
||||||
PYLIBS="-lpython$(PYTHON3_VERSION)" \
|
|
||||||
$(PYTHON3_VARS)
|
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
$(call Build/Compile/Default,swigify pywrap)
|
$(call Build/Compile/Default,pywrap)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Install
|
define Build/Install
|
||||||
$(call Build/Install/Default,install-pywrap)
|
$(call Build/Install/Default,install-pywrap)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/InstallDev
|
$(eval $(call Py3Package,python3-selinux))
|
||||||
$(INSTALL_DIR) $(1)$(PYTHON3_PKG_DIR)
|
$(eval $(call BuildPackage,python3-selinux))
|
||||||
$(CP) $(PKG_INSTALL_DIR)$(PYTHON3_PKG_DIR)/* $(1)$(PYTHON3_PKG_DIR)
|
$(eval $(call BuildPackage,python3-selinux-src))
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/python3-libselinux/install
|
|
||||||
$(INSTALL_DIR) $(1)$(PYTHON3_PKG_DIR)
|
|
||||||
$(CP) $(PKG_INSTALL_DIR)$(PYTHON3_PKG_DIR)/* $(1)$(PYTHON3_PKG_DIR)
|
|
||||||
endef
|
|
||||||
|
|
||||||
$(eval $(call BuildPackage,python3-libselinux))
|
|
|
@ -5,38 +5,38 @@
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
SRC_NAME:=libsemanage
|
PKG_NAME:=python-semanage
|
||||||
PKG_NAME:=python3-$(SRC_NAME)
|
PKG_VERSION:=3.5
|
||||||
PKG_VERSION:=3.2
|
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/python-libsemanage/$(SRC_NAME)-$(PKG_VERSION)
|
SRC_NAME:=libsemanage
|
||||||
PKG_SOURCE:=$(SRC_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(SRC_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://github.com/SELinuxProject/selinux/releases/download/$(PKG_VERSION)
|
PKG_SOURCE_URL:=https://github.com/SELinuxProject/selinux/releases/download/$(PKG_VERSION)
|
||||||
PKG_HASH:=d722a55ca4fe2d4e2b30527720db657e6238b28079e69e2e4affeb8e733ee511
|
PKG_HASH:=f53534e50247538280ed0d76c6ce81d8fb3939bd64cadb89da10dba42e40dd9c
|
||||||
PKG_BUILD_DEPENDS:=swig/host
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)/$(SRC_NAME)-$(PKG_VERSION)
|
||||||
|
|
||||||
PKG_MAINTAINER:=Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
PKG_MAINTAINER:=Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||||
PKG_LICENSE:=LGPL-2.1-or-later
|
PKG_LICENSE:=LGPL-2.1-or-later
|
||||||
PKG_LICENSE_FILES:=COPYING
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
PKG_CPE_ID:=cpe:/a:selinuxproject:libsemanage
|
PKG_CPE_ID:=cpe:/a:selinuxproject:libsemanage
|
||||||
|
|
||||||
|
PKG_BUILD_DEPENDS:=swig/host
|
||||||
|
PKG_BUILD_PARALLEL:=1
|
||||||
PYTHON3_PKG_BUILD:=0
|
PYTHON3_PKG_BUILD:=0
|
||||||
PKG_INSTALL:=1
|
|
||||||
MAKE_PATH:=src
|
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
include ../python3-package.mk
|
include ../python3-package.mk
|
||||||
|
|
||||||
define Package/python3-libsemanage
|
define Package/python3-semanage
|
||||||
TITLE:=Python bindings for the SELinux policy management library
|
|
||||||
SUBMENU:=Python
|
SUBMENU:=Python
|
||||||
SECTION:=lang
|
SECTION:=lang
|
||||||
CATEGORY:=Languages
|
CATEGORY:=Languages
|
||||||
DEPENDS:=+python3 +libsemanage
|
TITLE:=SELinux policy management library bindings
|
||||||
|
DEPENDS:=+python3-light +libsemanage
|
||||||
URL:=http://selinuxproject.org/page/Main_Page
|
URL:=http://selinuxproject.org/page/Main_Page
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/python3-libsemanage/description
|
define Package/python3-semanage/description
|
||||||
libsemanage is the policy management library. It uses
|
libsemanage is the policy management library. It uses
|
||||||
libsepol for binary policy manipulation and libselinux for
|
libsepol for binary policy manipulation and libselinux for
|
||||||
interacting with the SELinux system. It also exec's helper
|
interacting with the SELinux system. It also exec's helper
|
||||||
|
@ -46,33 +46,19 @@ define Package/python3-libsemanage/description
|
||||||
change at least for the bootstrapping case (for rpm).
|
change at least for the bootstrapping case (for rpm).
|
||||||
|
|
||||||
This package provides the Python bindings for libsemanage.
|
This package provides the Python bindings for libsemanage.
|
||||||
endef #'
|
endef
|
||||||
|
|
||||||
MAKE_FLAGS += \
|
MAKE_VARS += \
|
||||||
PYTHON=$(PYTHON3) \
|
|
||||||
PYINC="-I $(PYTHON3_INC_DIR)" \
|
|
||||||
PYLIBS="-lpython$(PYTHON3_VERSION)" \
|
|
||||||
$(PYTHON3_VARS)
|
$(PYTHON3_VARS)
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
$(call Build/Compile/Default,swigify pywrap)
|
$(call Build/Compile/Default,pywrap)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Install
|
define Build/Install
|
||||||
$(call Build/Install/Default,install-pywrap)
|
$(call Build/Install/Default,install-pywrap)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Configure
|
$(eval $(call Py3Package,python3-semanage))
|
||||||
endef
|
$(eval $(call BuildPackage,python3-semanage))
|
||||||
|
$(eval $(call BuildPackage,python3-semanage-src))
|
||||||
define Build/InstallDev
|
|
||||||
$(INSTALL_DIR) $(1)$(PYTHON3_PKG_DIR)
|
|
||||||
$(CP) $(PKG_INSTALL_DIR)$(PYTHON3_PKG_DIR)/* $(1)$(PYTHON3_PKG_DIR)
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/python3-libsemanage/install
|
|
||||||
$(INSTALL_DIR) $(1)$(PYTHON3_PKG_DIR)
|
|
||||||
$(CP) $(PKG_INSTALL_DIR)$(PYTHON3_PKG_DIR)/* $(1)$(PYTHON3_PKG_DIR)
|
|
||||||
endef
|
|
||||||
|
|
||||||
$(eval $(call BuildPackage,python3-libsemanage))
|
|
|
@ -1,5 +1,5 @@
|
||||||
#
|
#
|
||||||
# Copyright (C) 2016-2018 OpenWrt.org
|
# Copyright (C) 2015, 2018-2020, 2023 Jeffery To
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
|
@ -8,16 +8,19 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=python-service-identity
|
PKG_NAME:=python-service-identity
|
||||||
PKG_VERSION:=18.1.0
|
PKG_VERSION:=23.1.0
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PYPI_NAME:=service_identity
|
PYPI_NAME:=service-identity
|
||||||
PKG_HASH:=0858a54aabc5b459d1aafa8a518ed2081a285087f349fe3e55197989232e2e2d
|
PYPI_SOURCE_NAME:=service_identity
|
||||||
|
PKG_HASH:=ecb33cd96307755041e978ab14f8b14e13b40f1fbd525a4dc78f46d2b986431d
|
||||||
|
|
||||||
PKG_LICENSE:=MIT
|
PKG_LICENSE:=MIT
|
||||||
PKG_LICENSE_FILES:=LICENSE
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
||||||
|
|
||||||
|
PKG_BUILD_DEPENDS:=python-hatchling/host python-hatch-vcs/host python-hatch-fancy-pypi-readme/host
|
||||||
|
|
||||||
include ../pypi.mk
|
include ../pypi.mk
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
include ../python3-package.mk
|
include ../python3-package.mk
|
||||||
|
|
|
@ -8,11 +8,11 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=python-setuptools
|
PKG_NAME:=python-setuptools
|
||||||
PKG_VERSION:=67.8.0
|
PKG_VERSION:=68.0.0
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PYPI_NAME:=setuptools
|
PYPI_NAME:=setuptools
|
||||||
PKG_HASH:=62642358adc77ffa87233bc4d2354c4b2682d214048f500964dbe760ccedf102
|
PKG_HASH:=baf1fdb41c6da4cd2eae722e135500da913332ab3f2f5c7d33af9b492acb5235
|
||||||
|
|
||||||
PKG_LICENSE:=MIT
|
PKG_LICENSE:=MIT
|
||||||
PKG_LICENSE_FILES:=LICENSE
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=python-stem
|
PKG_NAME:=python-stem
|
||||||
PKG_VERSION:=1.8.1
|
PKG_VERSION:=1.8.2
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PYPI_NAME:=stem
|
PYPI_NAME:=stem
|
||||||
PKG_HASH:=81d43a7c668ba9d7bc1103b2e7a911e9d148294b373d27a59ae8da79ef7a3e2f
|
PKG_HASH:=83fb19ffd4c9f82207c006051480389f80af221a7e4783000aedec4e384eb582
|
||||||
|
|
||||||
PKG_MAINTAINER:=Javier Marcet <javier@marcet.info>
|
PKG_MAINTAINER:=Javier Marcet <javier@marcet.info>
|
||||||
PKG_LICENSE:=LGPL-3.0-only
|
PKG_LICENSE:=LGPL-3.0-only
|
||||||
|
|
|
@ -8,12 +8,12 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=python-typing-extensions
|
PKG_NAME:=python-typing-extensions
|
||||||
PKG_VERSION:=4.6.3
|
PKG_VERSION:=4.7.1
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PYPI_NAME:=typing-extensions
|
PYPI_NAME:=typing-extensions
|
||||||
PYPI_SOURCE_NAME:=typing_extensions
|
PYPI_SOURCE_NAME:=typing_extensions
|
||||||
PKG_HASH:=d91d5919357fe7f681a9f2b5b4cb2a5f1ef0a1e9f59c4d8ff0d3491e05c0ffd5
|
PKG_HASH:=b75ddc264f0ba5615db7ba217daeb99701ad295353c45f9e95963337ceeeffb2
|
||||||
|
|
||||||
PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec1@gmail.com>, Jeffery To <jeffery.to@gmail.com>
|
PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec1@gmail.com>, Jeffery To <jeffery.to@gmail.com>
|
||||||
PKG_LICENSE:=Python-2.0.1 0BSD
|
PKG_LICENSE:=Python-2.0.1 0BSD
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=python-websocket-client
|
PKG_NAME:=python-websocket-client
|
||||||
PKG_VERSION:=1.5.1
|
PKG_VERSION:=1.6.1
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PYPI_NAME:=websocket-client
|
PYPI_NAME:=websocket-client
|
||||||
PKG_HASH:=3f09e6d8230892547132177f575a4e3e73cfdf06526e20cc02aa1c3b47184d40
|
PKG_HASH:=c951af98631d24f8df89ab1019fc365f2227c0892f12fd150e935607c79dd0dd
|
||||||
|
|
||||||
PKG_MAINTAINER:=Javier Marcet <javier@marcet.info>
|
PKG_MAINTAINER:=Javier Marcet <javier@marcet.info>
|
||||||
PKG_LICENSE:=Apache-2.0
|
PKG_LICENSE:=Apache-2.0
|
||||||
|
|
|
@ -5,15 +5,16 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=python-werkzeug
|
PKG_NAME:=python-werkzeug
|
||||||
PKG_VERSION:=2.3.4
|
PKG_VERSION:=2.3.6
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PYPI_NAME:=Werkzeug
|
PYPI_NAME:=Werkzeug
|
||||||
PKG_HASH:=1d5a58e0377d1fe39d061a5de4469e414e78ccb1e1e59c0f5ad6fa1c36c52b76
|
PKG_HASH:=98c774df2f91b05550078891dee5f0eb0cb797a522c757a2452b9cee5b202330
|
||||||
|
|
||||||
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
|
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
||||||
PKG_LICENSE:=BSD-3-Clause
|
PKG_LICENSE:=BSD-3-Clause
|
||||||
PKG_LICENSE_FILES:=LICENSE.rst
|
PKG_LICENSE_FILES:=LICENSE.rst
|
||||||
|
PKG_CPE_ID:=cpe:/a:palletsprojects:werkzeug
|
||||||
|
|
||||||
include ../pypi.mk
|
include ../pypi.mk
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
--- a/src/Makefile
|
|
||||||
+++ b/src/Makefile
|
|
||||||
@@ -139,7 +139,7 @@ SWIGRUBY = swig -Wall -ruby -o $(SWIGRUB
|
|
||||||
all: $(LIBA) $(LIBSO) $(LIBPC)
|
|
||||||
|
|
||||||
pywrap: all selinuxswig_python_exception.i
|
|
||||||
- CFLAGS="$(CFLAGS) $(SWIG_CFLAGS)" $(PYTHON) setup.py build_ext
|
|
||||||
+ LDSHARED="$(CC) -shared" CFLAGS="$(CFLAGS) $(SWIG_CFLAGS)" $(PYTHON) setup.py build_ext
|
|
||||||
|
|
||||||
rubywrap: all $(SWIGRUBYSO)
|
|
||||||
|
|
|
@ -1,21 +0,0 @@
|
||||||
Pkg-config definitions commonly make use of ${exec_prefix} and ${prefix}
|
|
||||||
when defining libdir and includedir, respectively. OpenWrt, for example,
|
|
||||||
relies on this when it adjusts things for cross compiling.
|
|
||||||
|
|
||||||
Signed-off-by: W. Michael Petullo <mike@flyn.org>
|
|
||||||
---
|
|
||||||
src/libselinux.pc.in | 4 ++--
|
|
||||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
--- a/src/libselinux.pc.in
|
|
||||||
+++ b/src/libselinux.pc.in
|
|
||||||
@@ -1,7 +1,7 @@
|
|
||||||
prefix=@prefix@
|
|
||||||
exec_prefix=${prefix}
|
|
||||||
-libdir=@libdir@
|
|
||||||
-includedir=@includedir@
|
|
||||||
+libdir=${exec_prefix}/lib
|
|
||||||
+includedir=${prefix}/include
|
|
||||||
|
|
||||||
Name: libselinux
|
|
||||||
Description: SELinux utility library
|
|
|
@ -15,7 +15,7 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||||
PKG_SOURCE_URL:=@GNOME/vala/$(basename $(PKG_VERSION))
|
PKG_SOURCE_URL:=@GNOME/vala/$(basename $(PKG_VERSION))
|
||||||
PKG_HASH:=e1066221bf7b89cb1fa7327a3888645cb33b604de3bf45aa81132fd040b699bf
|
PKG_HASH:=e1066221bf7b89cb1fa7327a3888645cb33b604de3bf45aa81132fd040b699bf
|
||||||
|
|
||||||
PKG_MAINTAINER:=
|
PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
|
||||||
PKG_LICENSE:=LGPL-2.1-or-later
|
PKG_LICENSE:=LGPL-2.1-or-later
|
||||||
PKG_LICENSE_FILES:=COPYING
|
PKG_LICENSE_FILES:=COPYING
|
||||||
|
|
||||||
|
|
73
lang/vala/patches/001-circumvent-glib-pkgconf-bug.patch
Normal file
73
lang/vala/patches/001-circumvent-glib-pkgconf-bug.patch
Normal file
|
@ -0,0 +1,73 @@
|
||||||
|
This patch circumvents an apparent bug in pkgconf 1.9 that prevents
|
||||||
|
building the OpenWrt Vala package. For a discussion of this, see:
|
||||||
|
|
||||||
|
https://github.com/openwrt/packages/issues/21359
|
||||||
|
|
||||||
|
The pkgconf bug seems similar to the one discussed here:
|
||||||
|
|
||||||
|
https://github.com/pkgconf/pkgconf/issues/268
|
||||||
|
|
||||||
|
--- a/configure
|
||||||
|
+++ b/configure
|
||||||
|
@@ -13598,11 +13598,11 @@ if test -n "$GLIB_CFLAGS"; then
|
||||||
|
elif test -n "$PKG_CONFIG"; then
|
||||||
|
if test -n "$PKG_CONFIG" && \
|
||||||
|
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED gobject-2.0 >= \$GLIB_REQUIRED\""; } >&5
|
||||||
|
- ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED") 2>&5
|
||||||
|
+ ($PKG_CONFIG --exists --print-errors "gobject-2.0 >= $GLIB_REQUIRED glib-2.0 >= $GLIB_REQUIRED") 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||||
|
test $ac_status = 0; }; then
|
||||||
|
- pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED" 2>/dev/null`
|
||||||
|
+ pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 >= $GLIB_REQUIRED glib-2.0 >= $GLIB_REQUIRED" 2>/dev/null`
|
||||||
|
test "x$?" != "x0" && pkg_failed=yes
|
||||||
|
else
|
||||||
|
pkg_failed=yes
|
||||||
|
@@ -13615,11 +13615,11 @@ if test -n "$GLIB_LIBS"; then
|
||||||
|
elif test -n "$PKG_CONFIG"; then
|
||||||
|
if test -n "$PKG_CONFIG" && \
|
||||||
|
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED gobject-2.0 >= \$GLIB_REQUIRED\""; } >&5
|
||||||
|
- ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED") 2>&5
|
||||||
|
+ ($PKG_CONFIG --exists --print-errors "gobject-2.0 >= $GLIB_REQUIRED glib-2.0 >= $GLIB_REQUIRED") 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||||
|
test $ac_status = 0; }; then
|
||||||
|
- pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED" 2>/dev/null`
|
||||||
|
+ pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "gobject-2.0 >= $GLIB_REQUIRED glib-2.0 >= $GLIB_REQUIRED" 2>/dev/null`
|
||||||
|
test "x$?" != "x0" && pkg_failed=yes
|
||||||
|
else
|
||||||
|
pkg_failed=yes
|
||||||
|
@@ -13640,9 +13640,9 @@ else
|
||||||
|
_pkg_short_errors_supported=no
|
||||||
|
fi
|
||||||
|
if test $_pkg_short_errors_supported = yes; then
|
||||||
|
- GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED" 2>&1`
|
||||||
|
+ GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gobject-2.0 >= $GLIB_REQUIRED glib-2.0 >= $GLIB_REQUIRED" 2>&1`
|
||||||
|
else
|
||||||
|
- GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED" 2>&1`
|
||||||
|
+ GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gobject-2.0 >= $GLIB_REQUIRED glib-2.0 >= $GLIB_REQUIRED" 2>&1`
|
||||||
|
fi
|
||||||
|
# Put the nasty error message in config.log where it belongs
|
||||||
|
echo "$GLIB_PKG_ERRORS" >&5
|
||||||
|
--- a/gobject-introspection/Makefile.in
|
||||||
|
+++ b/gobject-introspection/Makefile.in
|
||||||
|
@@ -383,8 +383,8 @@ libgidl_la_SOURCES = \
|
||||||
|
$(NULL)
|
||||||
|
|
||||||
|
libgidl_la_LIBADD = \
|
||||||
|
- $(GLIB_LIBS) \
|
||||||
|
$(GMODULE_LIBS) \
|
||||||
|
+ $(GLIB_LIBS) \
|
||||||
|
$(NULL)
|
||||||
|
|
||||||
|
BUILT_SOURCES = scannerparser.h
|
||||||
|
@@ -400,8 +400,8 @@ gen_introspect_SOURCES = \
|
||||||
|
$(NULL)
|
||||||
|
|
||||||
|
gen_introspect_LDADD = \
|
||||||
|
- $(GLIB_LIBS) \
|
||||||
|
$(GMODULE_LIBS) \
|
||||||
|
+ $(GLIB_LIBS) \
|
||||||
|
libgidl.la \
|
||||||
|
$(NULL)
|
||||||
|
|
|
@ -9,12 +9,12 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=c-ares
|
PKG_NAME:=c-ares
|
||||||
PKG_VERSION:=1.18.1
|
PKG_VERSION:=1.19.1
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://c-ares.org/download
|
PKG_SOURCE_URL:=https://c-ares.org/download
|
||||||
PKG_HASH:=1a7d52a8a84a9fbffb1be9133c0f6e17217d91ea5a6fa61f6b4729cda78ebbcf
|
PKG_HASH:=321700399b72ed0e037d0074c629e7741f6b2ec2dda92956abe3e9671d3e268e
|
||||||
|
|
||||||
PKG_LICENSE:=MIT
|
PKG_LICENSE:=MIT
|
||||||
PKG_LICENSE_FILES:=LICENSE.md
|
PKG_LICENSE_FILES:=LICENSE.md
|
||||||
|
@ -48,6 +48,13 @@ CMAKE_OPTIONS += \
|
||||||
-DCARES_BUILD_TESTS=OFF \
|
-DCARES_BUILD_TESTS=OFF \
|
||||||
-DCARES_BUILD_TOOLS=OFF
|
-DCARES_BUILD_TOOLS=OFF
|
||||||
|
|
||||||
|
define Build/InstallDev
|
||||||
|
$(call Build/InstallDev/cmake,$(1))
|
||||||
|
$(SED) 's,/usr/bin,$$$${prefix}/lib,g' $(1)/usr/lib/pkgconfig/libcares.pc
|
||||||
|
$(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/libcares.pc
|
||||||
|
$(SED) 's,/usr/lib,$$$${prefix}/lib,g' $(1)/usr/lib/pkgconfig/libcares.pc
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/libcares/install
|
define Package/libcares/install
|
||||||
$(INSTALL_DIR) $(1)/usr/lib
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcares.so.* $(1)/usr/lib/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcares.so.* $(1)/usr/lib/
|
||||||
|
|
|
@ -5,8 +5,7 @@ PKG_NAME:=gost_engine
|
||||||
PKG_VERSION:=3.0.1
|
PKG_VERSION:=3.0.1
|
||||||
PKG_HASH:=bfeac85883724cfbe0ecc6d942ac0524b908143e019ab3d3b6abe47a3466a628
|
PKG_HASH:=bfeac85883724cfbe0ecc6d942ac0524b908143e019ab3d3b6abe47a3466a628
|
||||||
PKG_LICENSE:=Apache-2.0
|
PKG_LICENSE:=Apache-2.0
|
||||||
PATCH_DIR=./patches-3
|
PKG_RELEASE:=9
|
||||||
PKG_RELEASE:=8
|
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://github.com/gost-engine/engine/archive/v$(PKG_VERSION)
|
PKG_SOURCE_URL:=https://github.com/gost-engine/engine/archive/v$(PKG_VERSION)
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
--- a/gost_pmeth.c
|
|
||||||
+++ b/gost_pmeth.c
|
|
||||||
@@ -608,7 +608,7 @@ static int pkey_gost_mac_ctrl_str(EVP_PK
|
|
||||||
if (strcmp(type, hexkey_ctrl_string) == 0) {
|
|
||||||
long keylen;
|
|
||||||
int ret;
|
|
||||||
- unsigned char *keybuf = string_to_hex(value, &keylen);
|
|
||||||
+ unsigned char *keybuf = OPENSSL_hexstr2buf(value, &keylen);
|
|
||||||
if (!keybuf || keylen != 32) {
|
|
||||||
GOSTerr(GOST_F_PKEY_GOST_MAC_CTRL_STR,
|
|
||||||
GOST_R_INVALID_MAC_KEY_LENGTH);
|
|
131
libs/gost_engine/patches/040-dont-build-tests.patch
Normal file
131
libs/gost_engine/patches/040-dont-build-tests.patch
Normal file
|
@ -0,0 +1,131 @@
|
||||||
|
--- a/CMakeLists.txt
|
||||||
|
+++ b/CMakeLists.txt
|
||||||
|
@@ -213,128 +213,6 @@ set(GOST_PROV_SOURCE_FILES
|
||||||
|
gost_prov_mac.c
|
||||||
|
)
|
||||||
|
|
||||||
|
-set(TEST_ENVIRONMENT_COMMON
|
||||||
|
- CMAKE_CURRENT_SOURCE_DIR=${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
- PERL5LIB=${CMAKE_CURRENT_SOURCE_DIR}/test
|
||||||
|
- OPENSSL_PROGRAM=${OPENSSL_PROGRAM}
|
||||||
|
- OPENSSL_CRYPTO_LIBRARY=${OPENSSL_CRYPTO_LIBRARY}
|
||||||
|
- )
|
||||||
|
-
|
||||||
|
-set(TEST_ENVIRONMENT_ENGINE
|
||||||
|
- ${TEST_ENVIRONMENT_COMMON}
|
||||||
|
- OPENSSL_ENGINES=${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
|
||||||
|
- OPENSSL_CONF=${CMAKE_CURRENT_SOURCE_DIR}/test/engine.cnf
|
||||||
|
- )
|
||||||
|
-
|
||||||
|
-set(TEST_ENVIRONMENT_PROVIDER
|
||||||
|
- ${TEST_ENVIRONMENT_COMMON}
|
||||||
|
- OPENSSL_MODULES=${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
|
||||||
|
- OPENSSL_CONF=${CMAKE_CURRENT_SOURCE_DIR}/test/provider.cnf
|
||||||
|
- )
|
||||||
|
-
|
||||||
|
-add_executable(test_digest test_digest.c)
|
||||||
|
-target_link_libraries(test_digest OpenSSL::Crypto)
|
||||||
|
-add_test(NAME digest-with-engine COMMAND test_digest)
|
||||||
|
-set_tests_properties(digest-with-engine
|
||||||
|
- PROPERTIES ENVIRONMENT "${TEST_ENVIRONMENT_ENGINE}")
|
||||||
|
-add_test(NAME digest-with-provider COMMAND test_digest)
|
||||||
|
-set_tests_properties(digest-with-provider
|
||||||
|
- PROPERTIES ENVIRONMENT "${TEST_ENVIRONMENT_PROVIDER}")
|
||||||
|
-
|
||||||
|
-add_executable(test_ciphers test_ciphers.c)
|
||||||
|
-target_link_libraries(test_ciphers OpenSSL::Crypto)
|
||||||
|
-add_test(NAME ciphers-with-engine COMMAND test_ciphers)
|
||||||
|
-set_tests_properties(ciphers-with-engine
|
||||||
|
- PROPERTIES ENVIRONMENT "${TEST_ENVIRONMENT_ENGINE}")
|
||||||
|
-add_test(NAME ciphers-with-provider COMMAND test_ciphers)
|
||||||
|
-set_tests_properties(ciphers-with-provider
|
||||||
|
- PROPERTIES ENVIRONMENT "${TEST_ENVIRONMENT_PROVIDER}")
|
||||||
|
-
|
||||||
|
-# test_curves is an internals testing program, it doesn't need a test env
|
||||||
|
-add_executable(test_curves test_curves.c)
|
||||||
|
-target_link_libraries(test_curves gost_core gost_err)
|
||||||
|
-add_test(NAME curves COMMAND test_curves)
|
||||||
|
-
|
||||||
|
-add_executable(test_params test_params.c)
|
||||||
|
-target_link_libraries(test_params OpenSSL::Crypto)
|
||||||
|
-add_test(NAME parameters-with-engine COMMAND test_params)
|
||||||
|
-set_tests_properties(parameters-with-engine
|
||||||
|
- PROPERTIES ENVIRONMENT "${TEST_ENVIRONMENT_ENGINE}")
|
||||||
|
-
|
||||||
|
-add_executable(test_derive test_derive.c)
|
||||||
|
-target_link_libraries(test_derive OpenSSL::Crypto)
|
||||||
|
-add_test(NAME derive-with-engine COMMAND test_derive)
|
||||||
|
-set_tests_properties(derive-with-engine
|
||||||
|
- PROPERTIES ENVIRONMENT "${TEST_ENVIRONMENT_ENGINE}")
|
||||||
|
-
|
||||||
|
-add_executable(test_sign test_sign.c)
|
||||||
|
-target_link_libraries(test_sign OpenSSL::Crypto)
|
||||||
|
-add_test(NAME sign/verify-with-engine COMMAND test_sign)
|
||||||
|
-set_tests_properties(sign/verify-with-engine
|
||||||
|
- PROPERTIES ENVIRONMENT "${TEST_ENVIRONMENT_ENGINE}")
|
||||||
|
-
|
||||||
|
-add_executable(test_tls test_tls.c)
|
||||||
|
-target_link_libraries(test_tls OpenSSL::SSL)
|
||||||
|
-add_test(NAME TLS-with-engine COMMAND test_tls)
|
||||||
|
-set_tests_properties(TLS-with-engine
|
||||||
|
- PROPERTIES ENVIRONMENT "${TEST_ENVIRONMENT_ENGINE}")
|
||||||
|
-
|
||||||
|
-add_executable(test_context test_context.c)
|
||||||
|
-target_link_libraries(test_context OpenSSL::Crypto)
|
||||||
|
-add_test(NAME context-with-engine COMMAND test_context)
|
||||||
|
-set_tests_properties(context-with-engine
|
||||||
|
- PROPERTIES ENVIRONMENT "${TEST_ENVIRONMENT_ENGINE}")
|
||||||
|
-add_test(NAME context-with-provider COMMAND test_context)
|
||||||
|
-set_tests_properties(context-with-provider
|
||||||
|
- PROPERTIES ENVIRONMENT "${TEST_ENVIRONMENT_PROVIDER}")
|
||||||
|
-
|
||||||
|
-# test_keyexpimp is an internals testing program, it doesn't need a test env
|
||||||
|
-add_executable(test_keyexpimp test_keyexpimp.c)
|
||||||
|
-#target_compile_definitions(test_keyexpimp PUBLIC -DOPENSSL_LOAD_CONF)
|
||||||
|
-target_link_libraries(test_keyexpimp gost_core gost_err)
|
||||||
|
-add_test(NAME keyexpimp COMMAND test_keyexpimp)
|
||||||
|
-
|
||||||
|
-# test_gost89 is an internals testing program, it doesn't need a test env
|
||||||
|
-add_executable(test_gost89 test_gost89.c)
|
||||||
|
-target_link_libraries(test_gost89 gost_core gost_err)
|
||||||
|
-add_test(NAME gost89 COMMAND test_gost89)
|
||||||
|
-
|
||||||
|
-if(NOT SKIP_PERL_TESTS)
|
||||||
|
- execute_process(COMMAND perl -MTest2::V0 -e ""
|
||||||
|
- ERROR_QUIET RESULT_VARIABLE MISSING_TEST2_V0)
|
||||||
|
- find_program(HAVE_PROVE NAMES prove)
|
||||||
|
- if(NOT MISSING_TEST2_V0 AND HAVE_PROVE)
|
||||||
|
- add_test(NAME engine
|
||||||
|
- COMMAND prove --merge -PWrapOpenSSL ${CMAKE_CURRENT_SOURCE_DIR}/test :: engine)
|
||||||
|
- set_tests_properties(engine PROPERTIES ENVIRONMENT "${TEST_ENVIRONMENT_ENGINE}")
|
||||||
|
- add_test(NAME provider
|
||||||
|
- COMMAND prove --merge -PWrapOpenSSL ${CMAKE_CURRENT_SOURCE_DIR}/test :: provider)
|
||||||
|
- set_tests_properties(provider PROPERTIES ENVIRONMENT "${TEST_ENVIRONMENT_PROVIDER}")
|
||||||
|
- else()
|
||||||
|
- message(STATUS "No Test2::V0 perl module (engine and provider tests skipped)")
|
||||||
|
- endif()
|
||||||
|
-endif()
|
||||||
|
-
|
||||||
|
-if(NOT MSVC)
|
||||||
|
- add_executable(sign benchmark/sign.c)
|
||||||
|
- target_link_libraries(sign gost_core gost_err ${CLOCK_GETTIME_LIB})
|
||||||
|
-endif()
|
||||||
|
-
|
||||||
|
-# All that may need to load just built engine will have path to it defined.
|
||||||
|
-set(BINARY_TESTS_TARGETS
|
||||||
|
- test_digest
|
||||||
|
- test_ciphers
|
||||||
|
- test_curves
|
||||||
|
- test_params
|
||||||
|
- test_derive
|
||||||
|
- test_sign
|
||||||
|
- test_context
|
||||||
|
- test_keyexpimp
|
||||||
|
- test_gost89
|
||||||
|
- test_tls
|
||||||
|
- )
|
||||||
|
-set_property(TARGET ${BINARY_TESTS_TARGETS} APPEND PROPERTY COMPILE_DEFINITIONS ENGINE_DIR="${OUTPUT_DIRECTORY}")
|
||||||
|
-
|
||||||
|
add_library(gost_core STATIC ${GOST_LIB_SOURCE_FILES})
|
||||||
|
set_target_properties(gost_core PROPERTIES POSITION_INDEPENDENT_CODE ON)
|
||||||
|
target_link_libraries(gost_core PRIVATE OpenSSL::Crypto)
|
|
@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=h2o
|
PKG_NAME:=h2o
|
||||||
PKG_VERSION:=2.2.6
|
PKG_VERSION:=2.2.6
|
||||||
PKG_RELEASE:=13
|
PKG_RELEASE:=14
|
||||||
|
|
||||||
PKG_SOURCE_URL:=https://codeload.github.com/h2o/h2o/tar.gz/v${PKG_VERSION}?
|
PKG_SOURCE_URL:=https://codeload.github.com/h2o/h2o/tar.gz/v${PKG_VERSION}?
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
|
@ -26,7 +26,7 @@ define Package/libh2o-evloop
|
||||||
CATEGORY:=Libraries
|
CATEGORY:=Libraries
|
||||||
TITLE:=H2O Library compiled with its own event loop
|
TITLE:=H2O Library compiled with its own event loop
|
||||||
URL:=https://h2o.examp1e.net/
|
URL:=https://h2o.examp1e.net/
|
||||||
DEPENDS:=+libopenssl +zlib +libyaml
|
DEPENDS:=+libopenssl +zlib
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/libh2o
|
define Package/libh2o
|
||||||
|
|
73
libs/h2o/patches/700-no-mime-map.patch
Normal file
73
libs/h2o/patches/700-no-mime-map.patch
Normal file
|
@ -0,0 +1,73 @@
|
||||||
|
--- a/lib/core/config.c
|
||||||
|
+++ b/lib/core/config.c
|
||||||
|
@@ -1,3 +1,4 @@
|
||||||
|
+
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2014-2016 DeNA Co., Ltd.
|
||||||
|
*
|
||||||
|
@@ -37,7 +38,9 @@ static h2o_hostconf_t *create_hostconf(h
|
||||||
|
hostconf->http2.push_preload = 1; /* enabled by default */
|
||||||
|
h2o_config_init_pathconf(&hostconf->fallback_path, globalconf, NULL, globalconf->mimemap);
|
||||||
|
hostconf->mimemap = globalconf->mimemap;
|
||||||
|
- h2o_mem_addref_shared(hostconf->mimemap);
|
||||||
|
+ if (hostconf->mimemap) {
|
||||||
|
+ h2o_mem_addref_shared(hostconf->mimemap);
|
||||||
|
+ }
|
||||||
|
return hostconf;
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -54,7 +57,9 @@ static void destroy_hostconf(h2o_hostcon
|
||||||
|
}
|
||||||
|
free(hostconf->paths.entries);
|
||||||
|
h2o_config_dispose_pathconf(&hostconf->fallback_path);
|
||||||
|
- h2o_mem_release_shared(hostconf->mimemap);
|
||||||
|
+ if (hostconf->mimemap) {
|
||||||
|
+ h2o_mem_release_shared(hostconf->mimemap);
|
||||||
|
+ }
|
||||||
|
|
||||||
|
free(hostconf);
|
||||||
|
}
|
||||||
|
@@ -136,8 +141,10 @@ void h2o_config_init_pathconf(h2o_pathco
|
||||||
|
h2o_chunked_register(pathconf);
|
||||||
|
if (path != NULL)
|
||||||
|
pathconf->path = h2o_strdup(NULL, path, SIZE_MAX);
|
||||||
|
- h2o_mem_addref_shared(mimemap);
|
||||||
|
- pathconf->mimemap = mimemap;
|
||||||
|
+ if (mimemap) {
|
||||||
|
+ h2o_mem_addref_shared(mimemap);
|
||||||
|
+ pathconf->mimemap = mimemap;
|
||||||
|
+ }
|
||||||
|
pathconf->error_log.emit_request_errors = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -190,7 +197,7 @@ void h2o_config_init(h2o_globalconf_t *c
|
||||||
|
config->http2.latency_optimization.max_additional_delay = 10;
|
||||||
|
config->http2.latency_optimization.max_cwnd = 65535;
|
||||||
|
config->http2.callbacks = H2O_HTTP2_CALLBACKS;
|
||||||
|
- config->mimemap = h2o_mimemap_create();
|
||||||
|
+ // config->mimemap = h2o_mimemap_create();
|
||||||
|
|
||||||
|
h2o_configurator__init_core(config);
|
||||||
|
}
|
||||||
|
@@ -279,7 +286,9 @@ void h2o_config_dispose(h2o_globalconf_t
|
||||||
|
}
|
||||||
|
free(config->hosts);
|
||||||
|
|
||||||
|
- h2o_mem_release_shared(config->mimemap);
|
||||||
|
+ if (config->mimemap) {
|
||||||
|
+ h2o_mem_release_shared(config->mimemap);
|
||||||
|
+ }
|
||||||
|
h2o_configurator__dispose_configurators(config);
|
||||||
|
}
|
||||||
|
|
||||||
|
--- a/lib/core/request.c
|
||||||
|
+++ b/lib/core/request.c
|
||||||
|
@@ -486,7 +486,7 @@ void h2o_req_fill_mime_attributes(h2o_re
|
||||||
|
ssize_t content_type_index;
|
||||||
|
h2o_mimemap_type_t *mime;
|
||||||
|
|
||||||
|
- if (req->res.mime_attr != NULL)
|
||||||
|
+ if (req->res.mime_attr != NULL || req->pathconf->mimemap == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if ((content_type_index = h2o_find_header(&req->res.headers, H2O_TOKEN_CONTENT_TYPE, -1)) != -1 &&
|
11
libs/h2o/patches/800-smaller-write-buffer.patch
Normal file
11
libs/h2o/patches/800-smaller-write-buffer.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- a/include/h2o/http2_internal.h
|
||||||
|
+++ b/include/h2o/http2_internal.h
|
||||||
|
@@ -33,7 +33,7 @@
|
||||||
|
typedef struct st_h2o_http2_conn_t h2o_http2_conn_t;
|
||||||
|
typedef struct st_h2o_http2_stream_t h2o_http2_stream_t;
|
||||||
|
|
||||||
|
-#define H2O_HTTP2_DEFAULT_OUTBUF_SIZE 81920 /* the target size of each write call; connection flow control window + alpha */
|
||||||
|
+#define H2O_HTTP2_DEFAULT_OUTBUF_SIZE 8192 /* the target size of each write call; connection flow control window + alpha */
|
||||||
|
#define H2O_HTTP2_DEFAULT_OUTBUF_SOFT_MAX_SIZE 524288 /* 512KB; stops reading if size exceeds this value */
|
||||||
|
|
||||||
|
/* hpack */
|
|
@ -9,13 +9,13 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=icu4c
|
PKG_NAME:=icu4c
|
||||||
MAJOR_VERSION:=73
|
MAJOR_VERSION:=73
|
||||||
MINOR_VERSION:=1
|
MINOR_VERSION:=2
|
||||||
PKG_VERSION:=$(MAJOR_VERSION).$(MINOR_VERSION)
|
PKG_VERSION:=$(MAJOR_VERSION).$(MINOR_VERSION)
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(MAJOR_VERSION)_$(MINOR_VERSION)-src.tgz
|
PKG_SOURCE:=$(PKG_NAME)-$(MAJOR_VERSION)_$(MINOR_VERSION)-src.tgz
|
||||||
PKG_SOURCE_URL:=https://github.com/unicode-org/icu/releases/download/release-$(MAJOR_VERSION)-$(MINOR_VERSION)
|
PKG_SOURCE_URL:=https://github.com/unicode-org/icu/releases/download/release-$(MAJOR_VERSION)-$(MINOR_VERSION)
|
||||||
PKG_HASH:=a457431de164b4aa7eca00ed134d00dfbf88a77c6986a10ae7774fc076bb8c45
|
PKG_HASH:=818a80712ed3caacd9b652305e01afc7fa167e6f2e94996da44b90c2ab604ce1
|
||||||
|
|
||||||
PKG_LICENSE:=ICU
|
PKG_LICENSE:=ICU
|
||||||
PKG_LICENSE_FILES:=LICENSE
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=libdaq3
|
PKG_NAME:=libdaq3
|
||||||
PKG_VERSION:=3.0.11
|
PKG_VERSION:=3.0.12
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
|
PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
|
||||||
|
@ -17,7 +17,7 @@ PKG_LICENSE:=GPL-2.0-only
|
||||||
|
|
||||||
PKG_SOURCE:=libdaq-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=libdaq-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://codeload.github.com/snort3/libdaq/tar.gz/v$(PKG_VERSION)?
|
PKG_SOURCE_URL:=https://codeload.github.com/snort3/libdaq/tar.gz/v$(PKG_VERSION)?
|
||||||
PKG_HASH:=c9b691e113960cc19c4df6e93eacbdb45c96491da9c81471f3e419b91c04579a
|
PKG_HASH:=dedfdb88de151d61009bdb365322853687b1add4adec248952d2a93b70f584af
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/libdaq-$(PKG_VERSION)
|
PKG_BUILD_DIR:=$(BUILD_DIR)/libdaq-$(PKG_VERSION)
|
||||||
|
|
||||||
PKG_FIXUP:=autoreconf
|
PKG_FIXUP:=autoreconf
|
||||||
|
|
|
@ -9,12 +9,12 @@ include $(TOPDIR)/rules.mk
|
||||||
include $(INCLUDE_DIR)/kernel.mk
|
include $(INCLUDE_DIR)/kernel.mk
|
||||||
|
|
||||||
PKG_NAME:=libpfring
|
PKG_NAME:=libpfring
|
||||||
PKG_VERSION:=8.0.0
|
PKG_VERSION:=8.4.0
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://codeload.github.com/ntop/PF_RING/tar.gz/$(PKG_VERSION)?
|
PKG_SOURCE_URL:=https://codeload.github.com/ntop/PF_RING/tar.gz/$(PKG_VERSION)?
|
||||||
PKG_HASH:=8e733899b736fe2536ef785b2b7d719abe652297fe7fe3a03fc495a87a9b6e82
|
PKG_HASH:=2756a45ab250da11850160beb62aa879075aedfb49bf8f323b404f02b0c36670
|
||||||
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/PF_RING-$(PKG_VERSION)
|
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/PF_RING-$(PKG_VERSION)
|
||||||
|
|
||||||
PKG_MAINTAINER:=Banglang Huang <banglang.huang@foxmail.com>
|
PKG_MAINTAINER:=Banglang Huang <banglang.huang@foxmail.com>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
--- a/userland/configure
|
--- a/userland/configure
|
||||||
+++ b/userland/configure
|
+++ b/userland/configure
|
||||||
@@ -3875,12 +3875,6 @@ $as_echo "no" >&6; }
|
@@ -3868,12 +3868,6 @@ $as_echo "no" >&6; }
|
||||||
if test "$IS_FREEBSD" != "1" && test "$cross_compiling" != "yes" ; then
|
if test "$IS_FREEBSD" != "1" && test "$cross_compiling" != "yes" ; then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if r/w locks are supported" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if r/w locks are supported" >&5
|
||||||
$as_echo_n "checking if r/w locks are supported... " >&6; }
|
$as_echo_n "checking if r/w locks are supported... " >&6; }
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
/* end confdefs.h. */
|
/* end confdefs.h. */
|
||||||
|
|
||||||
@@ -3893,7 +3887,7 @@ else
|
@@ -3886,7 +3880,7 @@ else
|
||||||
|
|
||||||
|
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||||
$as_echo "yes" >&6; }
|
$as_echo "yes" >&6; }
|
||||||
cat >>confdefs.h <<_ACEOF
|
cat >>confdefs.h <<_ACEOF
|
||||||
@@ -3907,7 +3901,6 @@ $as_echo "no" >&6; }
|
@@ -3900,7 +3894,6 @@ $as_echo "no" >&6; }
|
||||||
fi
|
fi
|
||||||
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
||||||
conftest.$ac_objext conftest.beam conftest.$ac_ext
|
conftest.$ac_objext conftest.beam conftest.$ac_ext
|
||||||
|
|
|
@ -0,0 +1,89 @@
|
||||||
|
From 405caa1424358032574230ec5479e64834869298 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Alfredo Cardigliano <cardigliano@ntop.org>
|
||||||
|
Date: Thu, 13 Apr 2023 13:03:28 +0200
|
||||||
|
Subject: [PATCH] Implement probabilistic sampling
|
||||||
|
|
||||||
|
---
|
||||||
|
kernel/linux/pf_ring.h | 4 +++-
|
||||||
|
kernel/pf_ring.c | 34 ++++++++++++++++++++++++----------
|
||||||
|
2 files changed, 27 insertions(+), 11 deletions(-)
|
||||||
|
|
||||||
|
--- a/kernel/linux/pf_ring.h
|
||||||
|
+++ b/kernel/linux/pf_ring.h
|
||||||
|
@@ -1310,7 +1310,9 @@ struct pf_ring_socket {
|
||||||
|
u_char *ring_slots; /* Points to ring_memory+sizeof(FlowSlotInfo) */
|
||||||
|
|
||||||
|
/* Packet Sampling */
|
||||||
|
- u_int32_t pktToSample, sample_rate;
|
||||||
|
+ u_int32_t sample_rate;
|
||||||
|
+ u_int32_t pkts_to_sample;
|
||||||
|
+ u_int32_t sample_rnd_shift;
|
||||||
|
|
||||||
|
/* Virtual Filtering Device */
|
||||||
|
virtual_filtering_device_element *v_filtering_dev;
|
||||||
|
--- a/kernel/pf_ring.c
|
||||||
|
+++ b/kernel/pf_ring.c
|
||||||
|
@@ -3695,6 +3695,26 @@ int bpf_filter_skb(struct sk_buff *skb,
|
||||||
|
|
||||||
|
/* ********************************** */
|
||||||
|
|
||||||
|
+int sample_packet(struct pf_ring_socket *pfr) {
|
||||||
|
+ if(pfr->pkts_to_sample <= 1) {
|
||||||
|
+ u_int32_t rnd = 0;
|
||||||
|
+
|
||||||
|
+ get_random_bytes(&rnd, sizeof(u_int32_t));
|
||||||
|
+ rnd = rnd % pfr->sample_rate;
|
||||||
|
+
|
||||||
|
+ pfr->pkts_to_sample = pfr->sample_rate - pfr->sample_rnd_shift + rnd;
|
||||||
|
+
|
||||||
|
+ pfr->sample_rnd_shift = rnd;
|
||||||
|
+
|
||||||
|
+ return 1; /* Pass packet */
|
||||||
|
+ } else {
|
||||||
|
+ pfr->pkts_to_sample--;
|
||||||
|
+ return 0; /* Discard packet */
|
||||||
|
+ }
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
+/* ********************************** */
|
||||||
|
+
|
||||||
|
u_int32_t default_rehash_rss_func(struct sk_buff *skb, struct pfring_pkthdr *hdr)
|
||||||
|
{
|
||||||
|
return hash_pkt_header(hdr, 0);
|
||||||
|
@@ -3805,12 +3825,9 @@ static int add_skb_to_ring(struct sk_buf
|
||||||
|
if(pfr->sample_rate > 1) {
|
||||||
|
spin_lock_bh(&pfr->ring_index_lock);
|
||||||
|
|
||||||
|
- if(pfr->pktToSample <= 1) {
|
||||||
|
- pfr->pktToSample = pfr->sample_rate;
|
||||||
|
- } else {
|
||||||
|
+ if(!sample_packet(pfr)) {
|
||||||
|
+ /* Discard packet */
|
||||||
|
pfr->slots_info->tot_pkts++;
|
||||||
|
- pfr->pktToSample--;
|
||||||
|
-
|
||||||
|
spin_unlock_bh(&pfr->ring_index_lock);
|
||||||
|
atomic_dec(&pfr->num_ring_users);
|
||||||
|
return(-1);
|
||||||
|
@@ -4161,11 +4178,8 @@ int pf_ring_skb_ring_handler(struct sk_b
|
||||||
|
|
||||||
|
if(pfr->sample_rate > 1) {
|
||||||
|
spin_lock_bh(&pfr->ring_index_lock);
|
||||||
|
- if(pfr->pktToSample <= 1) {
|
||||||
|
- pfr->pktToSample = pfr->sample_rate;
|
||||||
|
- } else {
|
||||||
|
+ if (!sample_packet(pfr)) {
|
||||||
|
pfr->slots_info->tot_pkts++;
|
||||||
|
- pfr->pktToSample--;
|
||||||
|
rc = 0;
|
||||||
|
}
|
||||||
|
spin_unlock_bh(&pfr->ring_index_lock);
|
||||||
|
@@ -7957,7 +7971,7 @@ static int ring_getsockopt(struct socket
|
||||||
|
if(copy_to_user(optval, lowest_if_mac, ETH_ALEN))
|
||||||
|
return(-EFAULT);
|
||||||
|
} else {
|
||||||
|
- char *dev_addr = pfr->ring_dev->dev->dev_addr;
|
||||||
|
+ const char *dev_addr = pfr->ring_dev->dev->dev_addr;
|
||||||
|
|
||||||
|
if (dev_addr == NULL) /* e.g. 'any' device */
|
||||||
|
dev_addr = empty_mac;
|
|
@ -1,6 +1,6 @@
|
||||||
--- a/kernel/pf_ring.c
|
--- a/kernel/pf_ring.c
|
||||||
+++ b/kernel/pf_ring.c
|
+++ b/kernel/pf_ring.c
|
||||||
@@ -3940,7 +3940,7 @@ static int hash_pkt_cluster(ring_cluster_element *cluster_ptr,
|
@@ -3902,7 +3902,7 @@ static int hash_pkt_cluster(ring_cluster
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
/* else, fall through, because it's like 2-tuple for non-TCP packets */
|
/* else, fall through, because it's like 2-tuple for non-TCP packets */
|
||||||
|
@ -9,22 +9,3 @@
|
||||||
case cluster_per_flow_2_tuple:
|
case cluster_per_flow_2_tuple:
|
||||||
case cluster_per_inner_flow_2_tuple:
|
case cluster_per_inner_flow_2_tuple:
|
||||||
flags |= mask_2_tuple;
|
flags |= mask_2_tuple;
|
||||||
@@ -5485,8 +5485,7 @@ static int ring_release(struct socket *sock)
|
|
||||||
remove_cluster_referee(pfr);
|
|
||||||
|
|
||||||
if((pfr->zc_device_entry != NULL)
|
|
||||||
- && pfr->zc_device_entry->zc_dev.dev
|
|
||||||
- && pfr->zc_device_entry->zc_dev.dev->name) {
|
|
||||||
+ && pfr->zc_device_entry->zc_dev.dev) {
|
|
||||||
pfring_release_zc_dev(pfr);
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -5617,8 +5616,6 @@ static int ring_bind(struct socket *sock, struct sockaddr *sa, int addr_len)
|
|
||||||
return(-EINVAL);
|
|
||||||
if(sa->sa_family != PF_RING)
|
|
||||||
return(-EINVAL);
|
|
||||||
- if(sa->sa_data == NULL)
|
|
||||||
- return(-EINVAL);
|
|
||||||
|
|
||||||
memcpy(name, sa->sa_data, sizeof(sa->sa_data));
|
|
||||||
|
|
||||||
|
|
|
@ -8,12 +8,12 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=libuv
|
PKG_NAME:=libuv
|
||||||
PKG_VERSION:=1.44.1
|
PKG_VERSION:=1.45.0
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=http://dist.libuv.org/dist/v$(PKG_VERSION)/
|
PKG_SOURCE_URL:=http://dist.libuv.org/dist/v$(PKG_VERSION)/
|
||||||
PKG_HASH:=9d37b63430fe3b92a9386b949bebd8f0b4784a39a16964c82c9566247a76f64a
|
PKG_HASH:=f5b07f65a1e8166e47983a7ed1f42fae0bee08f7458142170c37332fc676a748
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-v$(PKG_VERSION)
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-v$(PKG_VERSION)
|
||||||
|
|
||||||
PKG_MAINTAINER:=Marko Ratkaj <markoratkaj@gmail.com>
|
PKG_MAINTAINER:=Marko Ratkaj <markoratkaj@gmail.com>
|
||||||
|
|
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=libwebsockets
|
PKG_NAME:=libwebsockets
|
||||||
PKG_VERSION:=4.3.2
|
PKG_VERSION:=4.3.2
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=3
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||||
|
|
|
@ -0,0 +1,26 @@
|
||||||
|
From 722e44cb5b74cae206f47a6dc0d985eba8ed1b2e Mon Sep 17 00:00:00 2001
|
||||||
|
From: Khem Raj <raj.khem@gmail.com>
|
||||||
|
Date: Thu, 26 Jan 2023 17:17:49 -0800
|
||||||
|
Subject: [PATCH] Fix -Werror=enum-int-mismatch in
|
||||||
|
lws_tls_server_abort_connection()
|
||||||
|
|
||||||
|
GCC 13 is findinf this function signature mismatch.
|
||||||
|
|
||||||
|
../git/lib/tls/openssl/openssl-server.c:713:1: error: conflicting types for 'lws_tls_server_abort_connection' due to enum/integer mismatch; have 'int(struct lws *)' [-Werror=enum-int-mismatch]
|
||||||
|
|
||||||
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||||
|
---
|
||||||
|
lib/tls/openssl/openssl-server.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
--- a/lib/tls/openssl/openssl-server.c
|
||||||
|
+++ b/lib/tls/openssl/openssl-server.c
|
||||||
|
@@ -709,7 +709,7 @@ lws_tls_server_new_nonblocking(struct lw
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
-int
|
||||||
|
+enum lws_ssl_capable_status
|
||||||
|
lws_tls_server_abort_connection(struct lws *wsi)
|
||||||
|
{
|
||||||
|
if (wsi->tls.use_ssl)
|
|
@ -0,0 +1,14 @@
|
||||||
|
--- a/lib/tls/mbedtls/mbedtls-server.c
|
||||||
|
+++ b/lib/tls/mbedtls/mbedtls-server.c
|
||||||
|
@@ -264,11 +264,7 @@ lws_tls_server_new_nonblocking(struct lw
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
-#if defined(LWS_AMAZON_RTOS)
|
||||||
|
enum lws_ssl_capable_status
|
||||||
|
-#else
|
||||||
|
-int
|
||||||
|
-#endif
|
||||||
|
lws_tls_server_abort_connection(struct lws *wsi)
|
||||||
|
{
|
||||||
|
if (wsi->tls.use_ssl)
|
|
@ -2,13 +2,13 @@ include $(TOPDIR)/rules.mk
|
||||||
include $(INCLUDE_DIR)/kernel.mk
|
include $(INCLUDE_DIR)/kernel.mk
|
||||||
|
|
||||||
PKG_NAME:=usb-serial-xr_usb_serial_common
|
PKG_NAME:=usb-serial-xr_usb_serial_common
|
||||||
PKG_SOURCE_DATE:=2022-03-30
|
PKG_SOURCE_DATE:=2023-03-21
|
||||||
PKG_SOURCE_VERSION:=ecc6ebe0141b97942d774e6c6be37a330cc11a74
|
PKG_SOURCE_VERSION:=90ad530166f096347a5a57b6f9eb21c422a40fd9
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_URL:=https://github.com/kasbert/epsolar-tracer
|
PKG_SOURCE_URL:=https://github.com/kasbert/epsolar-tracer
|
||||||
PKG_MIRROR_HASH:=487c4259211411d3c435284016f90c6770539c0a6f904f3327f18381a33c23e3
|
PKG_MIRROR_HASH:=0cea56120542d3d546028d17389a3419ca930448005a9208728c40583ccf027d
|
||||||
|
|
||||||
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
|
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
|
||||||
PKG_LICENSE:=GPL-2.0-or-later
|
PKG_LICENSE:=GPL-2.0-or-later
|
||||||
|
|
|
@ -1,42 +0,0 @@
|
||||||
--- a/xr_usb_serial_common-1a/xr_usb_serial_common.c
|
|
||||||
+++ b/xr_usb_serial_common-1a/xr_usb_serial_common.c
|
|
||||||
@@ -258,7 +258,9 @@ static void xr_usb_serial_ctrl_irq(struct urb *urb)
|
|
||||||
{
|
|
||||||
struct xr_usb_serial *xr_usb_serial = urb->context;
|
|
||||||
struct usb_cdc_notification *dr = urb->transfer_buffer;
|
|
||||||
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(3, 9, 0)
|
|
||||||
struct tty_struct *tty;
|
|
||||||
+#endif
|
|
||||||
unsigned char *data;
|
|
||||||
int newctrl;
|
|
||||||
int retval;
|
|
||||||
@@ -390,7 +392,9 @@ static int xr_usb_serial_submit_read_urbs(struct xr_usb_serial *xr_usb_serial, g
|
|
||||||
}
|
|
||||||
static void xr_usb_serial_process_read_urb(struct xr_usb_serial *xr_usb_serial, struct urb *urb)
|
|
||||||
{
|
|
||||||
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(3, 9, 0)
|
|
||||||
struct tty_struct *tty;
|
|
||||||
+#endif
|
|
||||||
if (!urb->actual_length)
|
|
||||||
return;
|
|
||||||
#if LINUX_VERSION_CODE > KERNEL_VERSION(3, 9, 0)
|
|
||||||
@@ -465,7 +469,9 @@ static void xr_usb_serial_write_bulk(struct urb *urb)
|
|
||||||
static void xr_usb_serial_softint(struct work_struct *work)
|
|
||||||
{
|
|
||||||
struct xr_usb_serial *xr_usb_serial = container_of(work, struct xr_usb_serial, work);
|
|
||||||
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(3, 9, 0)
|
|
||||||
struct tty_struct *tty;
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
dev_vdbg(&xr_usb_serial->data->dev, "%s\n", __func__);
|
|
||||||
#if LINUX_VERSION_CODE > KERNEL_VERSION(3, 9, 0)
|
|
||||||
@@ -1631,7 +1637,9 @@ err_out:
|
|
||||||
static int xr_usb_serial_reset_resume(struct usb_interface *intf)
|
|
||||||
{
|
|
||||||
struct xr_usb_serial *xr_usb_serial = usb_get_intfdata(intf);
|
|
||||||
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(3, 9, 0)
|
|
||||||
struct tty_struct *tty;
|
|
||||||
+#endif
|
|
||||||
if (tty_port_initialized(&xr_usb_serial->port)){
|
|
||||||
#if LINUX_VERSION_CODE > KERNEL_VERSION(3, 9, 0)
|
|
||||||
tty_port_tty_hangup(&xr_usb_serial->port, false);
|
|
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=alpine
|
PKG_NAME:=alpine
|
||||||
PKG_VERSION:=2.25
|
PKG_VERSION:=2.25
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=3
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||||
PKG_SOURCE_URL:=https://alpineapp.email/alpine/release/src/Old
|
PKG_SOURCE_URL:=https://alpineapp.email/alpine/release/src/Old
|
||||||
|
@ -20,7 +20,6 @@ PKG_LICENSE:=Apache-2.0
|
||||||
PKG_LICENSE_FILES:=LICENSE
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
|
|
||||||
PKG_INSTALL:=1
|
PKG_INSTALL:=1
|
||||||
PKG_BUILD_PARALLEL:=1
|
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
include $(INCLUDE_DIR)/nls.mk
|
include $(INCLUDE_DIR)/nls.mk
|
||||||
|
|
|
@ -6,12 +6,12 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=grilo-plugins
|
PKG_NAME:=grilo-plugins
|
||||||
PKG_VERSION:=0.3.14
|
PKG_VERSION:=0.3.16
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||||
PKG_SOURCE_URL:=@GNOME/grilo-plugins/0.3/
|
PKG_SOURCE_URL:=@GNOME/grilo-plugins/0.3/
|
||||||
PKG_HASH:=686844b34ec73b24931ff6cc4f6033f0072947a6db60acdc7fb3eaf157a581c8
|
PKG_HASH:=fe6f4dbe586c6b8ba2406394e202f22d009d642a96eb3a54f32f6a21d084cdcb
|
||||||
|
|
||||||
PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
|
PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
|
||||||
PKG_LICENSE:=LGPL-2.1-or-later
|
PKG_LICENSE:=LGPL-2.1-or-later
|
||||||
|
@ -55,7 +55,6 @@ MESON_ARGS += \
|
||||||
-Denable-lua-factory=no \
|
-Denable-lua-factory=no \
|
||||||
-Denable-magnatune=$(if $(CONFIG_PACKAGE_grilo-plugins-magnatune),yes,no) \
|
-Denable-magnatune=$(if $(CONFIG_PACKAGE_grilo-plugins-magnatune),yes,no) \
|
||||||
-Denable-metadata-store=$(if $(CONFIG_PACKAGE_grilo-plugins-metadata-store),yes,no) \
|
-Denable-metadata-store=$(if $(CONFIG_PACKAGE_grilo-plugins-metadata-store),yes,no) \
|
||||||
-Denable-opensubtitles=$(if $(CONFIG_PACKAGE_grilo-plugins-opensubtitles),yes,no) \
|
|
||||||
-Denable-optical-media=no \
|
-Denable-optical-media=no \
|
||||||
-Denable-podcasts=no \
|
-Denable-podcasts=no \
|
||||||
-Denable-raitv=$(if $(CONFIG_PACKAGE_grilo-plugins-raitv),yes,no) \
|
-Denable-raitv=$(if $(CONFIG_PACKAGE_grilo-plugins-raitv),yes,no) \
|
||||||
|
@ -99,7 +98,6 @@ $(eval $(call BuildPlugin,dmap,DAAP and DPAP sharing,daap dpap,libdmapsharing,30
|
||||||
$(eval $(call BuildPlugin,gravatar,Gravatar provider,gravatar,,30))
|
$(eval $(call BuildPlugin,gravatar,Gravatar provider,gravatar,,30))
|
||||||
$(eval $(call BuildPlugin,magnatune,Magnatune sharing,magnatune,,30))
|
$(eval $(call BuildPlugin,magnatune,Magnatune sharing,magnatune,,30))
|
||||||
$(eval $(call BuildPlugin,metadata-store,Metadata Store,metadatastore,,30))
|
$(eval $(call BuildPlugin,metadata-store,Metadata Store,metadatastore,,30))
|
||||||
$(eval $(call BuildPlugin,opensubtitles,Open subtitles provider,opensubtitles,,30))
|
|
||||||
$(eval $(call BuildPlugin,raitv,Rai.tv sharing,raitv,,30))
|
$(eval $(call BuildPlugin,raitv,Rai.tv sharing,raitv,,30))
|
||||||
$(eval $(call BuildPlugin,shoutcast,SHOUTcast sharing,shoutcast,,30))
|
$(eval $(call BuildPlugin,shoutcast,SHOUTcast sharing,shoutcast,,30))
|
||||||
$(eval $(call BuildPlugin,tmdb,TMDb,tmdb,+json-glib,30))
|
$(eval $(call BuildPlugin,tmdb,TMDb,tmdb,+json-glib,30))
|
||||||
|
|
|
@ -6,12 +6,12 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=grilo
|
PKG_NAME:=grilo
|
||||||
PKG_VERSION:=0.3.14
|
PKG_VERSION:=0.3.16
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||||
PKG_SOURCE_URL:=@GNOME/grilo/0.3/
|
PKG_SOURCE_URL:=@GNOME/grilo/0.3/
|
||||||
PKG_HASH:=0369d0b00bb0f59ba5f7aea8cfc665f38df14a5b4182d28c7c1e2cd15b518743
|
PKG_HASH:=884580e8c5ece280df23aa63ff5234b7d48988a404df7d6bfccd1e77b473bd96
|
||||||
|
|
||||||
PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
|
PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
|
||||||
PKG_LICENSE:=LGPL-2.1-or-later
|
PKG_LICENSE:=LGPL-2.1-or-later
|
||||||
|
@ -28,7 +28,7 @@ define Package/grilo
|
||||||
CATEGORY:=Multimedia
|
CATEGORY:=Multimedia
|
||||||
TITLE:=grilo
|
TITLE:=grilo
|
||||||
URL:=https://wiki.gnome.org/Projects/Grilo
|
URL:=https://wiki.gnome.org/Projects/Grilo
|
||||||
DEPENDS:=+glib2 +libsoup +libxml2
|
DEPENDS:=+glib2 +libsoup3 +libxml2
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/grilo/decription
|
define Package/grilo/decription
|
||||||
|
|
|
@ -8,12 +8,12 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=minidlna
|
PKG_NAME:=minidlna
|
||||||
PKG_VERSION:=1.3.2
|
PKG_VERSION:=1.3.3
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=@SF/minidlna
|
PKG_SOURCE_URL:=@SF/minidlna
|
||||||
PKG_HASH:=222ce45a1a60c3ce3de17527955d38e5ff7a4592d61db39577e6bf88e0ae1cb0
|
PKG_HASH:=39026c6d4a139b9180192d1c37225aa3376fdf4f1a74d7debbdbb693d996afa4
|
||||||
|
|
||||||
PKG_MAINTAINER:=
|
PKG_MAINTAINER:=
|
||||||
PKG_LICENSE:=GPL-2.0-or-later BSD-3-Clause
|
PKG_LICENSE:=GPL-2.0-or-later BSD-3-Clause
|
||||||
|
|
|
@ -105,7 +105,7 @@ Subject: [PATCH] Mark all instances of magic_container_s as const
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
@@ -1301,7 +1301,7 @@ BrowseContentDirectory(struct upnphttp *
|
@@ -1305,7 +1305,7 @@ BrowseContentDirectory(struct upnphttp *
|
||||||
"<Result>"
|
"<Result>"
|
||||||
"<DIDL-Lite"
|
"<DIDL-Lite"
|
||||||
CONTENT_DIRECTORY_SCHEMAS;
|
CONTENT_DIRECTORY_SCHEMAS;
|
||||||
|
@ -114,7 +114,7 @@ Subject: [PATCH] Mark all instances of magic_container_s as const
|
||||||
char *zErrMsg = NULL;
|
char *zErrMsg = NULL;
|
||||||
char *sql, *ptr;
|
char *sql, *ptr;
|
||||||
struct Response args;
|
struct Response args;
|
||||||
@@ -1823,7 +1823,7 @@ SearchContentDirectory(struct upnphttp *
|
@@ -1828,7 +1828,7 @@ SearchContentDirectory(struct upnphttp *
|
||||||
"<Result>"
|
"<Result>"
|
||||||
"<DIDL-Lite"
|
"<DIDL-Lite"
|
||||||
CONTENT_DIRECTORY_SCHEMAS;
|
CONTENT_DIRECTORY_SCHEMAS;
|
||||||
|
|
|
@ -1,22 +1,22 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=tvheadend
|
PKG_NAME:=tvheadend
|
||||||
PKG_VERSION:=2022-11-20
|
PKG_VERSION:=2023-06-05
|
||||||
PKG_RELEASE:=3
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_URL:=https://github.com/tvheadend/tvheadend.git
|
PKG_SOURCE_URL:=https://github.com/tvheadend/tvheadend.git
|
||||||
PKG_MIRROR_HASH:=9c1bb3eea3f3539454d17e4c6aabc774a104a772aa34ed39f248521cf6488ce5
|
PKG_MIRROR_HASH:=921506f54a93fa78ba17578a0ef127f4eebd4df0691aef5905cd1eb2eae52bef
|
||||||
PKG_SOURCE_VERSION:=0ff96106aa2e0f9a384c3a2662ca005797a6b399
|
PKG_SOURCE_VERSION:=003fd92707531bdf7ad1753ab028db8748ac5ab8
|
||||||
PKG_SOURCE_DATE:=2022-11-20
|
PKG_SOURCE_DATE:=2023-06-05
|
||||||
|
|
||||||
PKG_LICENSE:=GPL-3.0
|
PKG_LICENSE:=GPL-3.0
|
||||||
PKG_LICENSE_FILES:=LICENSE.md
|
PKG_LICENSE_FILES:=LICENSE.md
|
||||||
|
|
||||||
PKG_BUILD_PARALLEL:=1
|
PKG_BUILD_PARALLEL:=1
|
||||||
PKG_FIXUP:=autoreconf
|
PKG_FIXUP:=autoreconf
|
||||||
|
|
||||||
PKG_BUILD_FLAGS:=no-mips16
|
PKG_BUILD_FLAGS:=no-mips16
|
||||||
|
PKG_BUILD_DEPENDS:=gettext-full/host
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
include $(INCLUDE_DIR)/nls.mk
|
include $(INCLUDE_DIR)/nls.mk
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
--- a/src/intlconv.c
|
|
||||||
+++ b/src/intlconv.c
|
|
||||||
@@ -1,3 +1,6 @@
|
|
||||||
+#ifndef _GNU_SOURCE
|
|
||||||
+#define _GNU_SOURCE
|
|
||||||
+#endif
|
|
||||||
#include <iconv.h>
|
|
||||||
#include "tvheadend.h"
|
|
||||||
#include "intlconv.h"
|
|
|
@ -1,6 +1,6 @@
|
||||||
--- a/src/intlconv.c
|
--- a/src/intlconv.c
|
||||||
+++ b/src/intlconv.c
|
+++ b/src/intlconv.c
|
||||||
@@ -36,9 +36,8 @@ intlconv_test( void )
|
@@ -37,9 +37,8 @@ intlconv_test( void )
|
||||||
(strcmp(s, "ZlutouckyKun") &&
|
(strcmp(s, "ZlutouckyKun") &&
|
||||||
strcmp(s, "Zlutouck'yKun") &&
|
strcmp(s, "Zlutouck'yKun") &&
|
||||||
strcmp(s, "?lu?ou?k?K??"))) {
|
strcmp(s, "?lu?ou?k?K??"))) {
|
||||||
|
|
|
@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=adblock
|
PKG_NAME:=adblock
|
||||||
PKG_VERSION:=4.1.5
|
PKG_VERSION:=4.1.5
|
||||||
PKG_RELEASE:=7
|
PKG_RELEASE:=8
|
||||||
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>
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ A lot of people already use adblocker plugins within their desktop browsers, but
|
||||||
| :------------------ | :-----: | :--- | :--------------- | :-------------------------------------------------------------------------------- |
|
| :------------------ | :-----: | :--- | :--------------- | :-------------------------------------------------------------------------------- |
|
||||||
| adaway | x | S | mobile | [Link](https://github.com/AdAway/adaway.github.io) |
|
| adaway | x | S | mobile | [Link](https://github.com/AdAway/adaway.github.io) |
|
||||||
| adguard | x | L | general | [Link](https://adguard.com) |
|
| adguard | x | L | general | [Link](https://adguard.com) |
|
||||||
| adguard_tracking | | S | tracking | [Link](https://github.com/AdguardTeam/cname-trackers) |
|
| adguard_tracking | | L | tracking | [Link](https://github.com/AdguardTeam/cname-trackers) |
|
||||||
| android_tracking | | S | tracking | [Link](https://github.com/Perflyst/PiHoleBlocklist) |
|
| android_tracking | | S | tracking | [Link](https://github.com/Perflyst/PiHoleBlocklist) |
|
||||||
| andryou | | L | compilation | [Link](https://gitlab.com/andryou/block/-/blob/master/readme.md) |
|
| andryou | | L | compilation | [Link](https://gitlab.com/andryou/block/-/blob/master/readme.md) |
|
||||||
| anti_ad | | L | compilation | [Link](https://github.com/privacy-protection-tools/anti-AD/blob/master/README.md) |
|
| anti_ad | | L | compilation | [Link](https://github.com/privacy-protection-tools/anti-AD/blob/master/README.md) |
|
||||||
|
|
|
@ -14,9 +14,9 @@
|
||||||
"descurl": "https://adguard.com"
|
"descurl": "https://adguard.com"
|
||||||
},
|
},
|
||||||
"adguard_tracking": {
|
"adguard_tracking": {
|
||||||
"url": "https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt",
|
"url": "https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/data/combined_disguised_trackers_justdomains.txt",
|
||||||
"rule": "/^([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
|
"rule": "/^([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
|
||||||
"size": "S",
|
"size": "L",
|
||||||
"focus": "tracking",
|
"focus": "tracking",
|
||||||
"descurl": "https://github.com/AdguardTeam/cname-trackers"
|
"descurl": "https://github.com/AdguardTeam/cname-trackers"
|
||||||
},
|
},
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=banip
|
PKG_NAME:=banip
|
||||||
PKG_VERSION:=0.8.7
|
PKG_VERSION:=0.8.8
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
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>
|
||||||
|
|
||||||
|
|
|
@ -61,12 +61,14 @@ IP address blocking is commonly used to protect against brute force attacks, pre
|
||||||
* Full IPv4 and IPv6 support
|
* Full IPv4 and IPv6 support
|
||||||
* Supports nft atomic Set loading
|
* Supports nft atomic Set loading
|
||||||
* Supports blocking by ASN numbers and by iso country codes
|
* Supports blocking by ASN numbers and by iso country codes
|
||||||
* Supports local allow- and blocklist (IPv4, IPv6, CIDR notation or domain names)
|
* Supports local allow- and blocklist with MAC/IPv4/IPv6 addresses or domain names
|
||||||
|
* Supports concatenation of local MAC addresses with IPv4/IPv6 addresses, e.g. to enforce dhcp assignments
|
||||||
|
* All local input types support ranges in CIDR notation
|
||||||
* Auto-add the uplink subnet or uplink IP to the local allowlist
|
* Auto-add the uplink subnet or uplink IP to the local allowlist
|
||||||
* Provides a small background log monitor to ban unsuccessful login attempts in real-time
|
* Provides a small background log monitor to ban unsuccessful login attempts in real-time (like fail2ban, crowdsec etc.)
|
||||||
* Auto-add unsuccessful LuCI, nginx, Asterisk or ssh login attempts to the local blocklist
|
* Auto-add unsuccessful LuCI, nginx, Asterisk or ssh login attempts to the local blocklist
|
||||||
* Auto-add entire subnets to the blocklist Sets based on an additional RDAP request with the monitored suspicious IP
|
* Auto-add entire subnets to the blocklist Sets based on an additional RDAP request with the monitored suspicious IP
|
||||||
* Fast feed processing as they are handled in parallel as background jobs
|
* Fast feed processing as they are handled in parallel as background jobs (on capable multi-core hardware)
|
||||||
* Per feed it can be defined whether the wan-input chain, the wan-forward chain or the lan-forward chain should be blocked (default: all chains)
|
* Per feed it can be defined whether the wan-input chain, the wan-forward chain or the lan-forward chain should be blocked (default: all chains)
|
||||||
* Automatic blocklist backup & restore, the backups will be used in case of download errors or during startup
|
* Automatic blocklist backup & restore, the backups will be used in case of download errors or during startup
|
||||||
* Automatically selects one of the following download utilities with ssl support: aria2c, curl, uclient-fetch or full wget
|
* Automatically selects one of the following download utilities with ssl support: aria2c, curl, uclient-fetch or full wget
|
||||||
|
@ -188,62 +190,54 @@ Available commands:
|
||||||
:::
|
:::
|
||||||
::: banIP Set Statistics
|
::: banIP Set Statistics
|
||||||
:::
|
:::
|
||||||
Timestamp: 2023-02-25 08:35:37
|
Timestamp: 2023-06-21 07:03:23
|
||||||
------------------------------
|
------------------------------
|
||||||
auto-added to allowlist: 0
|
auto-added to allowlist today: 0
|
||||||
auto-added to blocklist: 4
|
auto-added to blocklist today: 0
|
||||||
|
|
||||||
Set | Elements | WAN-Input (packets) | WAN-Forward (packets) | LAN-Forward (packets)
|
Set | Elements | WAN-Input (packets) | WAN-Forward (packets) | LAN-Forward (packets)
|
||||||
---------------------+--------------+-----------------------+-----------------------+------------------------
|
---------------------+--------------+-----------------------+-----------------------+------------------------
|
||||||
allowlistvMAC | 0 | - | - | OK: 0
|
allowlistv4MAC | 0 | - | - | OK: 0
|
||||||
allowlistv4 | 15 | OK: 0 | OK: 0 | OK: 0
|
allowlistv6MAC | 0 | - | - | OK: 0
|
||||||
|
allowlistv4 | 1 | OK: 0 | OK: 0 | OK: 0
|
||||||
allowlistv6 | 1 | OK: 0 | OK: 0 | OK: 0
|
allowlistv6 | 1 | OK: 0 | OK: 0 | OK: 0
|
||||||
torv4 | 800 | OK: 0 | OK: 0 | OK: 0
|
cinsscorev4 | 13115 | OK: 142 | OK: 0 | -
|
||||||
torv6 | 432 | OK: 0 | OK: 0 | OK: 0
|
deblv4 | 8076 | OK: 5 | OK: 0 | OK: 0
|
||||||
countryv6 | 34282 | OK: 0 | OK: 1 | -
|
countryv6 | 37313 | OK: 0 | OK: 1 | -
|
||||||
countryv4 | 35508 | OK: 1872 | OK: 0 | -
|
countryv4 | 36155 | OK: 33 | OK: 0 | -
|
||||||
dohv6 | 343 | - | - | OK: 0
|
deblv6 | 15 | OK: 0 | OK: 0 | OK: 0
|
||||||
dohv4 | 540 | - | - | OK: 3
|
dropv6 | 35 | OK: 0 | OK: 0 | OK: 0
|
||||||
firehol1v4 | 1670 | OK: 296 | OK: 0 | OK: 16
|
dropv4 | 620 | OK: 0 | OK: 0 | OK: 0
|
||||||
deblv4 | 12402 | OK: 4 | OK: 0 | OK: 0
|
dohv6 | 598 | - | - | OK: 0
|
||||||
deblv6 | 41 | OK: 0 | OK: 0 | OK: 0
|
dohv4 | 902 | - | - | OK: 0
|
||||||
adguardv6 | 12742 | - | - | OK: 161
|
edropv4 | 247 | OK: 0 | OK: 0 | OK: 0
|
||||||
adguardv4 | 23183 | - | - | OK: 212
|
threatviewv4 | 571 | OK: 0 | OK: 0 | OK: 0
|
||||||
adguardtrackersv6 | 169 | - | - | OK: 0
|
firehol1v4 | 877 | OK: 8 | OK: 0 | OK: 0
|
||||||
adguardtrackersv4 | 633 | - | - | OK: 0
|
ipthreatv4 | 5751 | OK: 0 | OK: 0 | OK: 0
|
||||||
adawayv6 | 2737 | - | - | OK: 15
|
urlvirv4 | 169 | OK: 0 | OK: 0 | OK: 0
|
||||||
adawayv4 | 6542 | - | - | OK: 137
|
blocklistv4MAC | 0 | - | - | OK: 0
|
||||||
oisdsmallv6 | 10569 | - | - | OK: 0
|
blocklistv6MAC | 0 | - | - | OK: 0
|
||||||
oisdsmallv4 | 18800 | - | - | OK: 74
|
blocklistv4 | 3 | OK: 0 | OK: 0 | OK: 0
|
||||||
stevenblackv6 | 11901 | - | - | OK: 4
|
blocklistv6 | 0 | OK: 0 | OK: 0 | OK: 0
|
||||||
stevenblackv4 | 16776 | - | - | OK: 139
|
|
||||||
yoyov6 | 215 | - | - | OK: 0
|
|
||||||
yoyov4 | 309 | - | - | OK: 0
|
|
||||||
antipopadsv4 | 1872 | - | - | OK: 0
|
|
||||||
urlhausv4 | 7431 | OK: 0 | OK: 0 | OK: 0
|
|
||||||
antipopadsv6 | 2081 | - | - | OK: 2
|
|
||||||
blocklistvMAC | 0 | - | - | OK: 0
|
|
||||||
blocklistv4 | 1174 | OK: 1 | OK: 0 | OK: 0
|
|
||||||
blocklistv6 | 40 | OK: 0 | OK: 0 | OK: 0
|
|
||||||
---------------------+--------------+-----------------------+-----------------------+------------------------
|
---------------------+--------------+-----------------------+-----------------------+------------------------
|
||||||
30 | 203208 | 12 (2173) | 12 (1) | 28 (763)
|
22 | 104449 | 16 (188) | 16 (1) | 19 (0)
|
||||||
```
|
```
|
||||||
|
|
||||||
**banIP runtime information**
|
**banIP runtime information**
|
||||||
```
|
```
|
||||||
~# /etc/init.d/banip status
|
root@blackhole:~# /etc/init.d/banip status
|
||||||
::: banIP runtime information
|
::: banIP runtime information
|
||||||
+ status : active (nft: ✔, monitor: ✔)
|
+ status : active (nft: ✔, monitor: ✔)
|
||||||
+ version : 0.8.6-2
|
+ version : 0.8.8-1
|
||||||
+ element_count : 172309
|
+ element_count : 104449
|
||||||
+ active_feeds : allowlistvMAC, allowlistv6, allowlistv4, adawayv4, adguardtrackersv4, adawayv6, adguardv6, adguardv4, urlvirv4, adguardtrackersv6, oisdbigv6, oisdbigv4, blocklistvMAC, blocklistv4, blocklistv6
|
+ active_feeds : allowlistv4MAC, allowlistv6MAC, allowlistv4, allowlistv6, cinsscorev4, deblv4, countryv6, countryv4, deblv6, dropv6, dropv4, dohv6, dohv4, edropv4, threatviewv4, firehol1v4, ipthreatv4, urlvirv4, blocklistv4MAC, blocklistv6MAC, blocklistv4, blocklistv6
|
||||||
+ active_devices : br-wan ::: wan, wan6
|
+ active_devices : br-wan ::: wan, wan6
|
||||||
+ active_uplink : 91.64.173.145, 2a12:610c:0:80:848b:3ad0:4e05:abb
|
+ active_uplink : 91.63.198.120, 2a12:810c:0:80:a20d:52c3:5cf:f4f
|
||||||
+ nft_info : priority: -200, policy: performance, loglevel: warn, expiry: -
|
+ nft_info : priority: -200, policy: performance, loglevel: warn, expiry: -
|
||||||
+ run_info : base: /mnt/data/banIP, backup: /mnt/data/banIP/backup, report: /mnt/data/banIP/report, custom feed: ✘
|
+ run_info : base: /mnt/data/banIP, backup: /mnt/data/banIP/backup, report: /mnt/data/banIP/report, custom feed: ✘
|
||||||
+ run_flags : auto: ✔, proto (4/6): ✔/✔, log (wan-inp/wan-fwd/lan-fwd): ✔/✔/✔, dedup: ✔, split: ✘, allowed only: ✘
|
+ run_flags : auto: ✔, proto (4/6): ✔/✔, log (wan-inp/wan-fwd/lan-fwd): ✔/✔/✔, dedup: ✔, split: ✘, allowed only: ✘
|
||||||
+ last_run : action: restart, duration: 0m 22s, date: 2023-05-15 22:39:15
|
+ last_run : action: restart, duration: 0m 19s, date: 2023-06-21 06:45:52
|
||||||
+ system_info : cores: 4, memory: 1798, device: Bananapi BPI-R3, OpenWrt SNAPSHOT r22784-1645c34d56
|
+ system_info : cores: 4, memory: 1634, device: Bananapi BPI-R3, OpenWrt SNAPSHOT r23398-c4be106f4d
|
||||||
```
|
```
|
||||||
|
|
||||||
**banIP search information**
|
**banIP search information**
|
||||||
|
@ -292,14 +286,35 @@ list ban_logterm 'SecurityEvent=\"InvalidAccountID\".*RemoteAddress='
|
||||||
```
|
```
|
||||||
|
|
||||||
**allow-/blocklist handling**
|
**allow-/blocklist handling**
|
||||||
banIP supports local allow and block lists (IPv4, IPv6, CIDR notation or domain names), located in /etc/banip/banip.allowlist and /etc/banip/banip.blocklist.
|
banIP supports local allow and block lists, MAC/IPv4/IPv6 addresses (incl. ranges in CIDR notation) or domain names. These files are located in /etc/banip/banip.allowlist and /etc/banip/banip.blocklist.
|
||||||
Unsuccessful login attempts or suspicious requests will be tracked and added to the local blocklist (see the 'ban_autoblocklist' option). The blocklist behaviour can be further tweaked with the 'ban_nftexpiry' option.
|
Unsuccessful login attempts or suspicious requests will be tracked and added to the local blocklist (see the 'ban_autoblocklist' option). The blocklist behaviour can be further tweaked with the 'ban_nftexpiry' option.
|
||||||
Depending on the options 'ban_autoallowlist' and 'ban_autoallowuplink' the uplink subnet or the uplink IP will be added automatically to local allowlist.
|
Depending on the options 'ban_autoallowlist' and 'ban_autoallowuplink' the uplink subnet or the uplink IP will be added automatically to local allowlist.
|
||||||
Furthermore, you can reference external Allowlist URLs with additional IPv4 and IPv6 feeds (see 'ban_allowurl').
|
Furthermore, you can reference external Allowlist URLs with additional IPv4 and IPv6 feeds (see 'ban_allowurl').
|
||||||
Both local lists also accept domain names as input to allow IP filtering based on these names. The corresponding IPs (IPv4 & IPv6) will be extracted and added to the Sets. You can also start the domain lookup separately via /etc/init.d/banip lookup at any time.
|
Both local lists also accept domain names as input to allow IP filtering based on these names. The corresponding IPs (IPv4 & IPv6) will be extracted and added to the Sets. You can also start the domain lookup separately via /etc/init.d/banip lookup at any time.
|
||||||
|
|
||||||
|
**MAC/IP-binding**
|
||||||
|
banIP supports concatenation of local MAC addresses with IPv4/IPv6 addresses, e.g. to enforce dhcp assignments. Following notations in the local allow and block lists are allowed:
|
||||||
|
```
|
||||||
|
MAC-address only:
|
||||||
|
C8:C2:9B:F7:80:12 => this will be populated to the v4MAC- and v6MAC-Sets with the IP-wildcards 0.0.0.0/0 and ::/0
|
||||||
|
|
||||||
|
MAC-address with IPv4 concatenation:
|
||||||
|
C8:C2:9B:F7:80:12 192.168.1.10 => this will be populated only to v4MAC-Set with the certain IP, no entry in the v6MAC-Set
|
||||||
|
|
||||||
|
MAC-address with IPv6 concatenation:
|
||||||
|
C8:C2:9B:F7:80:12 2a02:810c:0:80:a10e:62c3:5af:f3f => this will be populated only to v6MAC-Set with the certain IP, no entry in the v4MAC-Set
|
||||||
|
|
||||||
|
MAC-address with IPv4 and IPv6 concatenation:
|
||||||
|
C8:C2:9B:F7:80:12 192.168.1.10 => this will be populated to v4MAC-Set with the certain IP
|
||||||
|
C8:C2:9B:F7:80:12 2a02:810c:0:80:a10e:62c3:5af:f3f => this will be populated to v6MAC-Set with the certain IP
|
||||||
|
|
||||||
|
MAC-address with IPv4 and IPv6 wildcard concatenation:
|
||||||
|
C8:C2:9B:F7:80:12 192.168.1.10 => this will be populated to v4MAC-Set with the certain IP
|
||||||
|
C8:C2:9B:F7:80:12 => this will be populated to v6MAC-Set with the IP-wildcard ::/0
|
||||||
|
```
|
||||||
|
|
||||||
**allowlist-only mode**
|
**allowlist-only mode**
|
||||||
banIP supports an "allowlist only" mode. This option restricts the internet access from/to a small number of secure websites/IPs, and block access from/to the rest of the internet. All IPs and Domains which are _not_ listed in the allowlist are blocked.
|
banIP supports an "allowlist only" mode. This option restricts the internet access from/to a small number of secure MACs, IPs or domains, and block access from/to the rest of the internet. All IPs and Domains which are _not_ listed in the allowlist are blocked.
|
||||||
|
|
||||||
**redirect Asterisk security logs to lodg/logread**
|
**redirect Asterisk security logs to lodg/logread**
|
||||||
banIP only supports logfile scanning via logread, so to monitor attacks on Asterisk, its security log must be available via logread. To do this, edit '/etc/asterisk/logger.conf' and add the line 'syslog.local0 = security', then run 'asterisk -rx reload logger' to update the running Asterisk configuration.
|
banIP only supports logfile scanning via logread, so to monitor attacks on Asterisk, its security log must be available via logread. To do this, edit '/etc/asterisk/logger.conf' and add the line 'syslog.local0 = security', then run 'asterisk -rx reload logger' to update the running Asterisk configuration.
|
||||||
|
|
|
@ -23,9 +23,6 @@ ban_rtfile="/var/run/banip_runtime.json"
|
||||||
ban_rdapfile="/var/run/banip_rdap.json"
|
ban_rdapfile="/var/run/banip_rdap.json"
|
||||||
ban_rdapurl="https://rdap.db.ripe.net/ip/"
|
ban_rdapurl="https://rdap.db.ripe.net/ip/"
|
||||||
ban_lock="/var/run/banip.lock"
|
ban_lock="/var/run/banip.lock"
|
||||||
ban_fetchcmd=""
|
|
||||||
ban_fetchparm=""
|
|
||||||
ban_rdapparm=""
|
|
||||||
ban_logreadcmd="$(command -v logread)"
|
ban_logreadcmd="$(command -v logread)"
|
||||||
ban_logcmd="$(command -v logger)"
|
ban_logcmd="$(command -v logger)"
|
||||||
ban_ubuscmd="$(command -v ubus)"
|
ban_ubuscmd="$(command -v ubus)"
|
||||||
|
@ -77,8 +74,11 @@ ban_ifv4=""
|
||||||
ban_ifv6=""
|
ban_ifv6=""
|
||||||
ban_dev=""
|
ban_dev=""
|
||||||
ban_uplink=""
|
ban_uplink=""
|
||||||
|
ban_fetchcmd=""
|
||||||
|
ban_fetchparm=""
|
||||||
ban_fetchinsecure=""
|
ban_fetchinsecure=""
|
||||||
ban_fetchretry="5"
|
ban_fetchretry="5"
|
||||||
|
ban_rdapparm=""
|
||||||
ban_cores=""
|
ban_cores=""
|
||||||
ban_memory=""
|
ban_memory=""
|
||||||
ban_packages=""
|
ban_packages=""
|
||||||
|
@ -189,6 +189,7 @@ f_rmpid() {
|
||||||
for pid in ${pids}; do
|
for pid in ${pids}; do
|
||||||
kill -INT "${pid}" >/dev/null 2>&1
|
kill -INT "${pid}" >/dev/null 2>&1
|
||||||
done
|
done
|
||||||
|
: >"${ban_rdapfile}"
|
||||||
: >"${ban_pidfile}"
|
: >"${ban_pidfile}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -282,7 +283,7 @@ f_conf() {
|
||||||
f_actual() {
|
f_actual() {
|
||||||
local nft monitor
|
local nft monitor
|
||||||
|
|
||||||
if "${ban_nftcmd}" -t list set inet banIP allowlistvMAC >/dev/null 2>&1; then
|
if "${ban_nftcmd}" -t list set inet banIP allowlistv4MAC >/dev/null 2>&1; then
|
||||||
nft="$(f_char "1")"
|
nft="$(f_char "1")"
|
||||||
else
|
else
|
||||||
nft="$(f_char "0")"
|
nft="$(f_char "0")"
|
||||||
|
@ -510,7 +511,7 @@ f_nftinit() {
|
||||||
# nft header (tables and chains)
|
# nft header (tables and chains)
|
||||||
#
|
#
|
||||||
printf "%s\n\n" "#!/usr/sbin/nft -f"
|
printf "%s\n\n" "#!/usr/sbin/nft -f"
|
||||||
if "${ban_nftcmd}" -t list set inet banIP allowlistvMAC >/dev/null 2>&1; then
|
if "${ban_nftcmd}" -t list set inet banIP allowlistv4MAC >/dev/null 2>&1; then
|
||||||
printf "%s\n" "delete table inet banIP"
|
printf "%s\n" "delete table inet banIP"
|
||||||
fi
|
fi
|
||||||
printf "%s\n" "add table inet banIP"
|
printf "%s\n" "add table inet banIP"
|
||||||
|
@ -644,12 +645,16 @@ f_down() {
|
||||||
{
|
{
|
||||||
printf "%s\n\n" "#!/usr/sbin/nft -f"
|
printf "%s\n\n" "#!/usr/sbin/nft -f"
|
||||||
[ -s "${tmp_flush}" ] && "${ban_catcmd}" "${tmp_flush}"
|
[ -s "${tmp_flush}" ] && "${ban_catcmd}" "${tmp_flush}"
|
||||||
if [ "${proto}" = "MAC" ]; then
|
if [ "${proto}" = "4MAC" ]; then
|
||||||
"${ban_awkcmd}" '/^([0-9A-f]{2}:){5}[0-9A-f]{2}([[:space:]]|$)/{printf "%s, ",tolower($1)}' "${tmp_allow}" >"${tmp_file}"
|
"${ban_awkcmd}" '/^([0-9A-f]{2}:){5}[0-9A-f]{2}(\/([0-9]|[1-3][0-9]|4[0-8]))?([[:space:]]+([0-9]{1,3}\.){3}(1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])(\/(1?[0-9]|2?[0-9]|3?[0-2]))?[[:space:]]*$|[[:space:]]+$|$)/{if(!$2)$2="0.0.0.0/0";if(!seen[$1]++)printf "%s . %s, ",tolower($1),$2}' "${tmp_allow}" >"${tmp_file}"
|
||||||
printf "%s\n" "add set inet banIP ${feed} { type ether_addr; policy ${ban_nftpolicy}; $(f_getelements "${tmp_file}") }"
|
printf "%s\n" "add set inet banIP ${feed} { type ether_addr . ipv4_addr; flags interval; auto-merge; policy ${ban_nftpolicy}; $(f_getelements "${tmp_file}") }"
|
||||||
[ -z "${feed_direction##*forwardlan*}" ] && printf "%s\n" "add rule inet banIP lan-forward ether saddr @${feed} counter accept"
|
[ -z "${feed_direction##*forwardlan*}" ] && printf "%s\n" "add rule inet banIP lan-forward ether saddr . ip saddr @${feed} counter accept"
|
||||||
|
elif [ "${proto}" = "6MAC" ]; then
|
||||||
|
"${ban_awkcmd}" '/^([0-9A-f]{2}:){5}[0-9A-f]{2}(\/([0-9]|[1-3][0-9]|4[0-8]))?([[:space:]]+([0-9A-f]{0,4}:){1,7}[0-9A-f]{0,4}:?(\/(1?[0-2][0-8]|[0-9][0-9]))?[[:space:]]*$|[[:space:]]+$|$)/{if(!$2)$2="::/0";if(!seen[$1]++)printf "%s . %s, ",tolower($1),$2}' "${tmp_allow}" >"${tmp_file}"
|
||||||
|
printf "%s\n" "add set inet banIP ${feed} { type ether_addr . ipv6_addr; flags interval; auto-merge; policy ${ban_nftpolicy}; $(f_getelements "${tmp_file}") }"
|
||||||
|
[ -z "${feed_direction##*forwardlan*}" ] && printf "%s\n" "add rule inet banIP lan-forward ether saddr . ip6 saddr @${feed} counter accept"
|
||||||
elif [ "${proto}" = "4" ]; then
|
elif [ "${proto}" = "4" ]; then
|
||||||
"${ban_awkcmd}" '/^(([0-9]{1,3}\.){3}(1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])(\/(1?[0-9]|2?[0-9]|3?[0-2]))?)([[:space:]]|$)/{printf "%s, ",$1}' "${tmp_allow}" >"${tmp_file}"
|
"${ban_awkcmd}" '/^(([0-9]{1,3}\.){3}(1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])(\/(1?[0-9]|2?[0-9]|3?[0-2]))?)([[:space:]].*|$)/{printf "%s, ",$1}' "${tmp_allow}" >"${tmp_file}"
|
||||||
printf "%s\n" "add set inet banIP ${feed} { type ipv4_addr; flags interval; auto-merge; policy ${ban_nftpolicy}; $(f_getelements "${tmp_file}") }"
|
printf "%s\n" "add set inet banIP ${feed} { type ipv4_addr; flags interval; auto-merge; policy ${ban_nftpolicy}; $(f_getelements "${tmp_file}") }"
|
||||||
if [ -z "${feed_direction##*input*}" ]; then
|
if [ -z "${feed_direction##*input*}" ]; then
|
||||||
if [ "${ban_allowlistonly}" = "1" ]; then
|
if [ "${ban_allowlistonly}" = "1" ]; then
|
||||||
|
@ -673,8 +678,8 @@ f_down() {
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
elif [ "${proto}" = "6" ]; then
|
elif [ "${proto}" = "6" ]; then
|
||||||
"${ban_awkcmd}" '!/^([0-9A-f]{2}:){5}[0-9A-f]{2}([[:space:]]|$)/{printf "%s\n",$1}' "${tmp_allow}" |
|
"${ban_awkcmd}" '!/^([0-9A-f]{2}:){5}[0-9A-f]{2}.*/{printf "%s\n",$1}' "${tmp_allow}" |
|
||||||
"${ban_awkcmd}" '/^(([0-9A-f]{0,4}:){1,7}[0-9A-f]{0,4}:?(\/(1?[0-2][0-8]|[0-9][0-9]))?)([[:space:]]|$)/{printf "%s, ",tolower($1)}' >"${tmp_file}"
|
"${ban_awkcmd}" '/^(([0-9A-f]{0,4}:){1,7}[0-9A-f]{0,4}:?(\/(1?[0-2][0-8]|[0-9][0-9]))?)([[:space:]].*|$)/{printf "%s, ",tolower($1)}' >"${tmp_file}"
|
||||||
printf "%s\n" "add set inet banIP ${feed} { type ipv6_addr; flags interval; auto-merge; policy ${ban_nftpolicy}; $(f_getelements "${tmp_file}") }"
|
printf "%s\n" "add set inet banIP ${feed} { type ipv6_addr; flags interval; auto-merge; policy ${ban_nftpolicy}; $(f_getelements "${tmp_file}") }"
|
||||||
if [ -z "${feed_direction##*input*}" ]; then
|
if [ -z "${feed_direction##*input*}" ]; then
|
||||||
if [ "${ban_allowlistonly}" = "1" ]; then
|
if [ "${ban_allowlistonly}" = "1" ]; then
|
||||||
|
@ -704,18 +709,22 @@ f_down() {
|
||||||
{
|
{
|
||||||
printf "%s\n\n" "#!/usr/sbin/nft -f"
|
printf "%s\n\n" "#!/usr/sbin/nft -f"
|
||||||
[ -s "${tmp_flush}" ] && "${ban_catcmd}" "${tmp_flush}"
|
[ -s "${tmp_flush}" ] && "${ban_catcmd}" "${tmp_flush}"
|
||||||
if [ "${proto}" = "MAC" ]; then
|
if [ "${proto}" = "4MAC" ]; then
|
||||||
"${ban_awkcmd}" '/^([0-9A-f]{2}:){5}[0-9A-f]{2}([[:space:]]|$)/{printf "%s, ",tolower($1)}' "${ban_blocklist}" >"${tmp_file}"
|
"${ban_awkcmd}" '/^([0-9A-f]{2}:){5}[0-9A-f]{2}(\/([0-9]|[1-3][0-9]|4[0-8]))?([[:space:]]+([0-9]{1,3}\.){3}(1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])(\/(1?[0-9]|2?[0-9]|3?[0-2]))?[[:space:]]*$|[[:space:]]+$|$)/{if(!$2)$2="0.0.0.0/0";if(!seen[$1]++)printf "%s . %s, ",tolower($1),$2}' "${ban_blocklist}" >"${tmp_file}"
|
||||||
printf "%s\n" "add set inet banIP ${feed} { type ether_addr; policy ${ban_nftpolicy}; $(f_getelements "${tmp_file}") }"
|
printf "%s\n" "add set inet banIP ${feed} { type ether_addr . ipv4_addr; flags interval; auto-merge; policy ${ban_nftpolicy}; $(f_getelements "${tmp_file}") }"
|
||||||
[ -z "${feed_direction##*forwardlan*}" ] && printf "%s\n" "add rule inet banIP lan-forward ether saddr @${feed} ${log_forwardlan} counter reject"
|
[ -z "${feed_direction##*forwardlan*}" ] && printf "%s\n" "add rule inet banIP lan-forward ether saddr . ip saddr @${feed} counter reject"
|
||||||
|
elif [ "${proto}" = "6MAC" ]; then
|
||||||
|
"${ban_awkcmd}" '/^([0-9A-f]{2}:){5}[0-9A-f]{2}(\/([0-9]|[1-3][0-9]|4[0-8]))?([[:space:]]+([0-9A-f]{0,4}:){1,7}[0-9A-f]{0,4}:?(\/(1?[0-2][0-8]|[0-9][0-9]))?[[:space:]]*$|[[:space:]]+$|$)/{if(!$2)$2="::/0";if(!seen[$1]++)printf "%s . %s, ",tolower($1),$2}' "${ban_blocklist}" >"${tmp_file}"
|
||||||
|
printf "%s\n" "add set inet banIP ${feed} { type ether_addr . ipv6_addr; flags interval; auto-merge; policy ${ban_nftpolicy}; $(f_getelements "${tmp_file}") }"
|
||||||
|
[ -z "${feed_direction##*forwardlan*}" ] && printf "%s\n" "add rule inet banIP lan-forward ether saddr . ip6 saddr @${feed} counter reject"
|
||||||
elif [ "${proto}" = "4" ]; then
|
elif [ "${proto}" = "4" ]; then
|
||||||
if [ "${ban_deduplicate}" = "1" ]; then
|
if [ "${ban_deduplicate}" = "1" ]; then
|
||||||
"${ban_awkcmd}" '/^(([0-9]{1,3}\.){3}(1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])(\/(1?[0-9]|2?[0-9]|3?[0-2]))?)([[:space:]]|$)/{printf "%s,\n",$1}' "${ban_blocklist}" >"${tmp_raw}"
|
"${ban_awkcmd}" '/^(([0-9]{1,3}\.){3}(1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])(\/(1?[0-9]|2?[0-9]|3?[0-2]))?)([[:space:]].*|$)/{printf "%s,\n",$1}' "${ban_blocklist}" >"${tmp_raw}"
|
||||||
"${ban_awkcmd}" 'NR==FNR{member[$0];next}!($0 in member)' "${ban_tmpfile}.deduplicate" "${tmp_raw}" 2>/dev/null >"${tmp_split}"
|
"${ban_awkcmd}" 'NR==FNR{member[$0];next}!($0 in member)' "${ban_tmpfile}.deduplicate" "${tmp_raw}" 2>/dev/null >"${tmp_split}"
|
||||||
"${ban_awkcmd}" 'BEGIN{FS="[ ,]"}NR==FNR{member[$1];next}!($1 in member)' "${ban_tmpfile}.deduplicate" "${ban_blocklist}" 2>/dev/null >"${tmp_raw}"
|
"${ban_awkcmd}" 'BEGIN{FS="[ ,]"}NR==FNR{member[$1];next}!($1 in member)' "${ban_tmpfile}.deduplicate" "${ban_blocklist}" 2>/dev/null >"${tmp_raw}"
|
||||||
"${ban_catcmd}" "${tmp_raw}" 2>/dev/null >"${ban_blocklist}"
|
"${ban_catcmd}" "${tmp_raw}" 2>/dev/null >"${ban_blocklist}"
|
||||||
else
|
else
|
||||||
"${ban_awkcmd}" '/^(([0-9]{1,3}\.){3}(1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])(\/(1?[0-9]|2?[0-9]|3?[0-2]))?)([[:space:]]|$)/{printf "%s,\n",$1}' "${ban_blocklist}" >"${tmp_split}"
|
"${ban_awkcmd}" '/^(([0-9]{1,3}\.){3}(1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])(\/(1?[0-9]|2?[0-9]|3?[0-2]))?)([[:space:]].*|$)/{printf "%s,\n",$1}' "${ban_blocklist}" >"${tmp_split}"
|
||||||
fi
|
fi
|
||||||
"${ban_awkcmd}" '{ORS=" ";print}' "${tmp_split}" 2>/dev/null >"${tmp_file}"
|
"${ban_awkcmd}" '{ORS=" ";print}' "${tmp_split}" 2>/dev/null >"${tmp_file}"
|
||||||
printf "%s\n" "add set inet banIP ${feed} { type ipv4_addr; flags interval, timeout; auto-merge; policy ${ban_nftpolicy}; $(f_getelements "${tmp_file}") }"
|
printf "%s\n" "add set inet banIP ${feed} { type ipv4_addr; flags interval, timeout; auto-merge; policy ${ban_nftpolicy}; $(f_getelements "${tmp_file}") }"
|
||||||
|
@ -724,14 +733,14 @@ f_down() {
|
||||||
[ -z "${feed_direction##*forwardlan*}" ] && printf "%s\n" "add rule inet banIP lan-forward ip daddr @${feed} ${log_forwardlan} counter reject with icmp type admin-prohibited"
|
[ -z "${feed_direction##*forwardlan*}" ] && printf "%s\n" "add rule inet banIP lan-forward ip daddr @${feed} ${log_forwardlan} counter reject with icmp type admin-prohibited"
|
||||||
elif [ "${proto}" = "6" ]; then
|
elif [ "${proto}" = "6" ]; then
|
||||||
if [ "${ban_deduplicate}" = "1" ]; then
|
if [ "${ban_deduplicate}" = "1" ]; then
|
||||||
"${ban_awkcmd}" '!/^([0-9A-f]{2}:){5}[0-9A-f]{2}([[:space:]]|$)/{printf "%s\n",$1}' "${ban_blocklist}" |
|
"${ban_awkcmd}" '!/^([0-9A-f]{2}:){5}[0-9A-f]{2}.*/{printf "%s\n",$1}' "${ban_blocklist}" |
|
||||||
"${ban_awkcmd}" '/^(([0-9A-f]{0,4}:){1,7}[0-9A-f]{0,4}:?(\/(1?[0-2][0-8]|[0-9][0-9]))?)([[:space:]]|$)/{printf "%s,\n",tolower($1)}' >"${tmp_raw}"
|
"${ban_awkcmd}" '/^(([0-9A-f]{0,4}:){1,7}[0-9A-f]{0,4}:?(\/(1?[0-2][0-8]|[0-9][0-9]))?)([[:space:]].*|$)/{printf "%s,\n",tolower($1)}' >"${tmp_raw}"
|
||||||
"${ban_awkcmd}" 'NR==FNR{member[$0];next}!($0 in member)' "${ban_tmpfile}.deduplicate" "${tmp_raw}" 2>/dev/null >"${tmp_split}"
|
"${ban_awkcmd}" 'NR==FNR{member[$0];next}!($0 in member)' "${ban_tmpfile}.deduplicate" "${tmp_raw}" 2>/dev/null >"${tmp_split}"
|
||||||
"${ban_awkcmd}" 'BEGIN{FS="[ ,]"}NR==FNR{member[$1];next}!($1 in member)' "${ban_tmpfile}.deduplicate" "${ban_blocklist}" 2>/dev/null >"${tmp_raw}"
|
"${ban_awkcmd}" 'BEGIN{FS="[ ,]"}NR==FNR{member[$1];next}!($1 in member)' "${ban_tmpfile}.deduplicate" "${ban_blocklist}" 2>/dev/null >"${tmp_raw}"
|
||||||
"${ban_catcmd}" "${tmp_raw}" 2>/dev/null >"${ban_blocklist}"
|
"${ban_catcmd}" "${tmp_raw}" 2>/dev/null >"${ban_blocklist}"
|
||||||
else
|
else
|
||||||
"${ban_awkcmd}" '!/^([0-9A-f]{2}:){5}[0-9A-f]{2}([[:space:]]|$)/{printf "%s\n",$1}' "${ban_blocklist}" |
|
"${ban_awkcmd}" '!/^([0-9A-f]{2}:){5}[0-9A-f]{2}.*/{printf "%s\n",$1}' "${ban_blocklist}" |
|
||||||
"${ban_awkcmd}" '/^(([0-9A-f]{0,4}:){1,7}[0-9A-f]{0,4}:?(\/(1?[0-2][0-8]|[0-9][0-9]))?)([[:space:]]|$)/{printf "%s,\n",tolower($1)}' >"${tmp_split}"
|
"${ban_awkcmd}" '/^(([0-9A-f]{0,4}:){1,7}[0-9A-f]{0,4}:?(\/(1?[0-2][0-8]|[0-9][0-9]))?)([[:space:]].*|$)/{printf "%s,\n",tolower($1)}' >"${tmp_split}"
|
||||||
fi
|
fi
|
||||||
"${ban_awkcmd}" '{ORS=" ";print}' "${tmp_split}" 2>/dev/null >"${tmp_file}"
|
"${ban_awkcmd}" '{ORS=" ";print}' "${tmp_split}" 2>/dev/null >"${tmp_file}"
|
||||||
printf "%s\n" "add set inet banIP ${feed} { type ipv6_addr; flags interval, timeout; auto-merge; policy ${ban_nftpolicy}; $(f_getelements "${tmp_file}") }"
|
printf "%s\n" "add set inet banIP ${feed} { type ipv6_addr; flags interval, timeout; auto-merge; policy ${ban_nftpolicy}; $(f_getelements "${tmp_file}") }"
|
||||||
|
@ -1300,10 +1309,10 @@ f_search() {
|
||||||
local item table_sets ip proto hold cnt result_flag="/var/run/banIP.search" input="${1}"
|
local item table_sets ip proto hold cnt result_flag="/var/run/banIP.search" input="${1}"
|
||||||
|
|
||||||
if [ -n "${input}" ]; then
|
if [ -n "${input}" ]; then
|
||||||
ip="$(printf "%s" "${input}" | "${ban_awkcmd}" 'BEGIN{RS="(([0-9]{1,3}\\.){3}[0-9]{1,3})+"}{printf "%s",RT}')"
|
ip="$(printf "%s" "${input}" | "${ban_awkcmd}" 'BEGIN{RS="(([0-9]{1,3}\\.){3}(1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])(\/(1?[0-9]|2?[0-9]|3?[0-2]))?[[:space:]]*$)"}{printf "%s",RT}')"
|
||||||
[ -n "${ip}" ] && proto="v4"
|
[ -n "${ip}" ] && proto="v4"
|
||||||
if [ -z "${proto}" ]; then
|
if [ -z "${proto}" ]; then
|
||||||
ip="$(printf "%s" "${input}" | "${ban_awkcmd}" 'BEGIN{RS="([A-Fa-f0-9]{1,4}::?){3,7}[A-Fa-f0-9]{1,4}"}{printf "%s",RT}')"
|
ip="$(printf "%s" "${input}" | "${ban_awkcmd}" 'BEGIN{RS="(([0-9A-f]{0,4}:){1,7}[0-9A-f]{0,4}:?(\/(1?[0-2][0-8]|[0-9][0-9]))?)([[:space:]].*|$)"}{printf "%s",RT}')"
|
||||||
[ -n "${ip}" ] && proto="v6"
|
[ -n "${ip}" ] && proto="v6"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
@ -1318,10 +1327,7 @@ f_search() {
|
||||||
printf " %s\n" "---"
|
printf " %s\n" "---"
|
||||||
cnt="1"
|
cnt="1"
|
||||||
for item in ${table_sets}; do
|
for item in ${table_sets}; do
|
||||||
if [ -f "${result_flag}" ]; then
|
[ -f "${result_flag}" ] && break
|
||||||
rm -f "${result_flag}"
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
(
|
(
|
||||||
if "${ban_nftcmd}" get element inet banIP "${item}" "{ ${ip} }" >/dev/null 2>&1; then
|
if "${ban_nftcmd}" get element inet banIP "${item}" "{ ${ip} }" >/dev/null 2>&1; then
|
||||||
printf " %s\n" "IP found in Set '${item}'"
|
printf " %s\n" "IP found in Set '${item}'"
|
||||||
|
@ -1333,7 +1339,7 @@ f_search() {
|
||||||
cnt="$((cnt + 1))"
|
cnt="$((cnt + 1))"
|
||||||
done
|
done
|
||||||
wait
|
wait
|
||||||
printf " %s\n" "IP not found"
|
[ -f "${result_flag}" ] && rm -f "${result_flag}" || printf " %s\n" "IP not found"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Set survey
|
# Set survey
|
||||||
|
|
|
@ -45,7 +45,7 @@ fi
|
||||||
|
|
||||||
# init nft namespace
|
# init nft namespace
|
||||||
#
|
#
|
||||||
if [ "${ban_action}" != "reload" ] || ! "${ban_nftcmd}" -t list set inet banIP allowlistvMAC >/dev/null 2>&1; then
|
if [ "${ban_action}" != "reload" ] || ! "${ban_nftcmd}" -t list set inet banIP allowlistv4MAC >/dev/null 2>&1; then
|
||||||
if f_nftinit "${ban_tmpfile}".init.nft; then
|
if f_nftinit "${ban_tmpfile}".init.nft; then
|
||||||
f_log "info" "initialize nft namespace"
|
f_log "info" "initialize nft namespace"
|
||||||
else
|
else
|
||||||
|
@ -56,31 +56,22 @@ fi
|
||||||
# handle downloads
|
# handle downloads
|
||||||
#
|
#
|
||||||
f_log "info" "start banIP download processes"
|
f_log "info" "start banIP download processes"
|
||||||
if [ "${ban_allowlistonly}" = "1" ]; then
|
[ "${ban_allowlistonly}" = "1" ] && ban_feed="" || f_getfeed
|
||||||
ban_feed=""
|
[ "${ban_deduplicate}" = "1" ] && printf "\n" >"${ban_tmpfile}.deduplicate"
|
||||||
else
|
|
||||||
f_getfeed
|
|
||||||
[ "${ban_deduplicate}" = "1" ] && printf "\n" >"${ban_tmpfile}.deduplicate"
|
|
||||||
fi
|
|
||||||
|
|
||||||
cnt="1"
|
cnt="1"
|
||||||
for feed in allowlist ${ban_feed} blocklist; do
|
for feed in allowlist ${ban_feed} blocklist; do
|
||||||
# local feeds
|
# local feeds (sequential processing)
|
||||||
#
|
#
|
||||||
if [ "${feed}" = "allowlist" ] || [ "${feed}" = "blocklist" ]; then
|
if [ "${feed}" = "allowlist" ] || [ "${feed}" = "blocklist" ]; then
|
||||||
for proto in MAC 4 6; do
|
for proto in 4MAC 6MAC 4 6; do
|
||||||
[ "${feed}" = "blocklist" ] && wait
|
[ "${feed}" = "blocklist" ] && wait
|
||||||
(f_down "${feed}" "${proto}") &
|
f_down "${feed}" "${proto}"
|
||||||
[ "${feed}" = "blocklist" ] || { [ "${feed}" = "allowlist" ] && [ "${proto}" = "MAC" ]; } && wait
|
|
||||||
hold="$((cnt % ban_cores))"
|
|
||||||
[ "${hold}" = "0" ] && wait
|
|
||||||
cnt="$((cnt + 1))"
|
|
||||||
done
|
done
|
||||||
wait
|
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# external feeds
|
# external feeds (parallel processing on multicore hardware)
|
||||||
#
|
#
|
||||||
if ! json_select "${feed}" >/dev/null 2>&1; then
|
if ! json_select "${feed}" >/dev/null 2>&1; then
|
||||||
f_log "info" "remove unknown feed '${feed}'"
|
f_log "info" "remove unknown feed '${feed}'"
|
||||||
|
|
|
@ -9,8 +9,8 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=bind
|
PKG_NAME:=bind
|
||||||
PKG_VERSION:=9.18.11
|
PKG_VERSION:=9.18.16
|
||||||
PKG_RELEASE:=3
|
PKG_RELEASE:=1
|
||||||
USERID:=bind=57:bind=57
|
USERID:=bind=57:bind=57
|
||||||
|
|
||||||
PKG_MAINTAINER:=Noah Meyerhans <frodo@morgul.net>
|
PKG_MAINTAINER:=Noah Meyerhans <frodo@morgul.net>
|
||||||
|
@ -22,7 +22,7 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||||
PKG_SOURCE_URL:= \
|
PKG_SOURCE_URL:= \
|
||||||
https://www.mirrorservice.org/sites/ftp.isc.org/isc/bind9/$(PKG_VERSION) \
|
https://www.mirrorservice.org/sites/ftp.isc.org/isc/bind9/$(PKG_VERSION) \
|
||||||
https://ftp.isc.org/isc/bind9/$(PKG_VERSION)
|
https://ftp.isc.org/isc/bind9/$(PKG_VERSION)
|
||||||
PKG_HASH:=8ff3352812230cbcbda42df87cad961f94163d3da457c5e4bef8057fd5df2158
|
PKG_HASH:=c88234fe07ee75c3c8a9e59152fee64b714643de8e22cf98da3db4d0b57e0775
|
||||||
|
|
||||||
PKG_FIXUP:=autoreconf
|
PKG_FIXUP:=autoreconf
|
||||||
PKG_REMOVE_FILES:=aclocal.m4 libtool.m4
|
PKG_REMOVE_FILES:=aclocal.m4 libtool.m4
|
||||||
|
|
|
@ -5,12 +5,12 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=cloudflared
|
PKG_NAME:=cloudflared
|
||||||
PKG_VERSION:=2023.5.1
|
PKG_VERSION:=2023.6.1
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://codeload.github.com/cloudflare/cloudflared/tar.gz/$(PKG_VERSION)?
|
PKG_SOURCE_URL:=https://codeload.github.com/cloudflare/cloudflared/tar.gz/$(PKG_VERSION)?
|
||||||
PKG_HASH:=ee2c2a4b0c290c39475f79ab74972dfbce817df8e5090813cad0e58f33836194
|
PKG_HASH:=7f7509bb364f107541dc810410b763721c39cdfab85799080ccae96d1c4a9cff
|
||||||
|
|
||||||
PKG_LICENSE:=Apache-2.0
|
PKG_LICENSE:=Apache-2.0
|
||||||
PKG_LICENSE_FILES:=LICENSE
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
|
|
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=coova-chilli
|
PKG_NAME:=coova-chilli
|
||||||
PKG_VERSION:=1.6
|
PKG_VERSION:=1.6
|
||||||
PKG_RELEASE:=9.1
|
PKG_RELEASE:=10
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://codeload.github.com/coova/coova-chilli/tar.gz/$(PKG_VERSION)?
|
PKG_SOURCE_URL:=https://codeload.github.com/coova/coova-chilli/tar.gz/$(PKG_VERSION)?
|
||||||
|
|
34
net/coova-chilli/patches/011-kernel517.patch
Normal file
34
net/coova-chilli/patches/011-kernel517.patch
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
From: John Thomson <git@johnthomson.fastmail.com.au>
|
||||||
|
Date: 21 Oct 2022 13:00:00 +1000
|
||||||
|
Subject: [PATCH] xt_coova: fix kernel>=5.17
|
||||||
|
|
||||||
|
Linux kernel 5.17 removed PDE_DATA, and replaced it with pde_data [0]
|
||||||
|
|
||||||
|
[0]: https://github.com/torvalds/linux/commit/359745d78351c6f5442435f81549f0207ece28aa
|
||||||
|
|
||||||
|
Signed-off-by: John Thomson <git@johnthomson.fastmail.com.au>
|
||||||
|
|
||||||
|
--- a/src/linux/xt_coova.c
|
||||||
|
+++ b/src/linux/xt_coova.c
|
||||||
|
@@ -470,7 +470,9 @@ static int coova_seq_open(struct inode *
|
||||||
|
if (st == NULL)
|
||||||
|
return -ENOMEM;
|
||||||
|
|
||||||
|
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0)
|
||||||
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,17,0)
|
||||||
|
+ st->table = pde_data(inode);
|
||||||
|
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0)
|
||||||
|
st->table = PDE_DATA(inode);
|
||||||
|
#else
|
||||||
|
st->table = pde->data;
|
||||||
|
@@ -482,7 +484,9 @@ static ssize_t
|
||||||
|
coova_mt_proc_write(struct file *file, const char __user *input,
|
||||||
|
size_t size, loff_t *loff)
|
||||||
|
{
|
||||||
|
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0)
|
||||||
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,17,0)
|
||||||
|
+ struct coova_table *t = pde_data(file_inode(file));
|
||||||
|
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0)
|
||||||
|
struct coova_table *t = PDE_DATA(file_inode(file));
|
||||||
|
#else
|
||||||
|
const struct proc_dir_entry *pde = PDE(file->f_path.dentry->d_inode);
|
202
net/dnsdist/Config.in
Normal file
202
net/dnsdist/Config.in
Normal file
|
@ -0,0 +1,202 @@
|
||||||
|
menu "Configuration"
|
||||||
|
depends on PACKAGE_dnsdist
|
||||||
|
|
||||||
|
comment "SSL Support"
|
||||||
|
choice
|
||||||
|
prompt "Selected SSL library"
|
||||||
|
default DNSDIST_OPENSSL
|
||||||
|
|
||||||
|
config DNSDIST_GNUTLS
|
||||||
|
bool "GnuTLS"
|
||||||
|
|
||||||
|
config DNSDIST_OPENSSL
|
||||||
|
bool "OpenSSL"
|
||||||
|
|
||||||
|
config DNSDIST_NOSSL
|
||||||
|
bool "No SSL support"
|
||||||
|
|
||||||
|
endchoice
|
||||||
|
|
||||||
|
comment "DNS over HTTPS/TLS Support"
|
||||||
|
depends on !DNSDIST_NOSSL
|
||||||
|
|
||||||
|
config DNSDIST_DNS_OVER_HTTPS
|
||||||
|
depends on DNSDIST_OPENSSL
|
||||||
|
depends on !DNSDIST_NOSSL
|
||||||
|
bool "DNS over HTTPS Support"
|
||||||
|
help
|
||||||
|
"Enables DNS over HTTPS Support for dnsdist"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config DNSDIST_DNS_OVER_HTTPS_OUTGOING
|
||||||
|
depends on DNSDIST_OPENSSL
|
||||||
|
depends on !DNSDIST_NOSSL
|
||||||
|
bool "Outgoing DNS over HTTPS Support"
|
||||||
|
help
|
||||||
|
"Enables Outgoing DNS over HTTPS Support for dnsdist"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config DNSDIST_DNS_OVER_TLS
|
||||||
|
depends on !DNSDIST_NOSSL
|
||||||
|
bool "DNS over TLS Support"
|
||||||
|
help
|
||||||
|
"Enabled DNS over TLS Support for dnsdist"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config DNSDIST_CARBON
|
||||||
|
bool "CARBON support"
|
||||||
|
help
|
||||||
|
"Enable Carbon (Graphite) support for dnsdist"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config DNSDIST_LMDB
|
||||||
|
bool "LMDB support"
|
||||||
|
help
|
||||||
|
"Enable LMDB support for dnsdist"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config DNSDIST_COMPLETION
|
||||||
|
bool "Console completion support"
|
||||||
|
help
|
||||||
|
"Enable console completion for dnsdist"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config DNSDIST_DEBUG_SYMBOLS
|
||||||
|
bool "Debug symbols"
|
||||||
|
help
|
||||||
|
"Enable debug symbols in the dnsdist binary"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config DNSDIST_DELAY_PIPE
|
||||||
|
bool "Delay action support"
|
||||||
|
help
|
||||||
|
"Enable delay action support for dnsdist"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config DNSDIST_DYNBLOCKS
|
||||||
|
bool "Dynamic blocks support"
|
||||||
|
help
|
||||||
|
"Enable dynamic blocks support for dnsdist"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config DNSDIST_DNSTAP
|
||||||
|
bool "DNSTAP support"
|
||||||
|
help
|
||||||
|
"Enable DNSTAP support for dnsdist"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config DNSDIST_EBPF
|
||||||
|
bool "eBPF support"
|
||||||
|
help
|
||||||
|
"Enable eBPF support for dnsdist"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config DNSDIST_ECS_ACTIONS
|
||||||
|
bool "ECS actions"
|
||||||
|
help
|
||||||
|
"Enable actions that control EDNS Client Subnet support for dnsdist"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config DNSDIST_HASHED
|
||||||
|
bool "Hashed credentials"
|
||||||
|
help
|
||||||
|
"Enable credentials hashing support for dnsdist"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config DNSDIST_IPCIPHER
|
||||||
|
bool "IP cipher support"
|
||||||
|
help
|
||||||
|
"Enable IP cipher support for dnsdist"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config DNSDIST_LIBEDIT
|
||||||
|
bool "Build with libedit"
|
||||||
|
help
|
||||||
|
"Build with libedit - for completion, history and line editing"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config DNSDIST_LMDB
|
||||||
|
bool "LMDB support"
|
||||||
|
help
|
||||||
|
"Enable LMDB support for dnsdist"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config DNSDIST_LUA_ADVANCED
|
||||||
|
bool "Lua advanced bindings"
|
||||||
|
help
|
||||||
|
"Enable Lua bindings for queries and responses manipulation in dnsdist"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config DNSDIST_MAC
|
||||||
|
bool "MAC address support"
|
||||||
|
help
|
||||||
|
"Enable MAC address in ring buffers support for dnsdist"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config DNSDIST_NET_SNMP
|
||||||
|
bool "Net-SNMP support"
|
||||||
|
help
|
||||||
|
"Enable Net-SNMP support for dnsdist"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config DNSDIST_OCSP_STAPLING
|
||||||
|
bool "OCSP Stapling support"
|
||||||
|
help
|
||||||
|
"Enable OCSP Stapling support for dnsdist"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config DNSDIST_PIE
|
||||||
|
bool "Position Independent Executable"
|
||||||
|
help
|
||||||
|
"Build dnsdist as a Position-Independent executable. This is required to benefit from ASLR, but significantly increases the required disk space and memory usage"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config DNSDIST_PROTOBUF
|
||||||
|
bool "Protobuf support"
|
||||||
|
help
|
||||||
|
"Enable exporting queries and responses over Protocol Buffer for dnsdist"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config DNSDIST_PROMETHEUS
|
||||||
|
bool "Prometheus support"
|
||||||
|
help
|
||||||
|
"Enable Prometheus support for dnsdist"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config DNSDIST_RE2
|
||||||
|
bool "RE2 support"
|
||||||
|
help
|
||||||
|
"Enable RE2 support for dnsdist"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config DNSDIST_RULES_ALTER
|
||||||
|
bool "Rules altering queries"
|
||||||
|
help
|
||||||
|
"Enable rules altering queries for dnsdist"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config DNSDIST_SECPOLL
|
||||||
|
bool "Security polling"
|
||||||
|
help
|
||||||
|
"Enable security polling support for dnsdist"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config DNSDIST_SODIUM
|
||||||
|
bool "Build with libsodium"
|
||||||
|
help
|
||||||
|
"Build with libsodium - for encrypted console connections, and DNSCrypt"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config DNSDIST_TOP_N
|
||||||
|
bool "Top N bindings"
|
||||||
|
help
|
||||||
|
"Enable bindings to get the top N queries and responses in dnsdist"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config DNSDIST_WEB
|
||||||
|
bool "Internal web server"
|
||||||
|
help
|
||||||
|
"Enable support for the internal web server in dnsdist"
|
||||||
|
default n
|
||||||
|
|
||||||
|
endmenu
|
|
@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=dnsdist
|
PKG_NAME:=dnsdist
|
||||||
PKG_VERSION:=1.8.0
|
PKG_VERSION:=1.8.0
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||||
PKG_SOURCE_URL:=https://downloads.powerdns.com/releases/
|
PKG_SOURCE_URL:=https://downloads.powerdns.com/releases/
|
||||||
|
@ -16,7 +16,6 @@ PKG_CPE_ID:=cpe:/a:powerdns:dnsdist
|
||||||
PKG_INSTALL:=1
|
PKG_INSTALL:=1
|
||||||
PKG_BUILD_PARALLEL:=1
|
PKG_BUILD_PARALLEL:=1
|
||||||
|
|
||||||
PKG_ASLR_PIE:=0
|
|
||||||
PKG_BUILD_DEPENDS:=boost
|
PKG_BUILD_DEPENDS:=boost
|
||||||
|
|
||||||
PKG_CONFIG_DEPENDS:= \
|
PKG_CONFIG_DEPENDS:= \
|
||||||
|
@ -25,138 +24,42 @@ PKG_CONFIG_DEPENDS:= \
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/dnsdist/config
|
define Package/dnsdist/Default
|
||||||
menu "Configuration"
|
|
||||||
depends on PACKAGE_dnsdist
|
|
||||||
|
|
||||||
comment "SSL Support"
|
|
||||||
choice
|
|
||||||
prompt "Selected SSL library"
|
|
||||||
default DNSDIST_OPENSSL
|
|
||||||
|
|
||||||
config DNSDIST_OPENSSL
|
|
||||||
bool "OpenSSL"
|
|
||||||
|
|
||||||
config DNSDIST_GNUTLS
|
|
||||||
bool "GnuTLS"
|
|
||||||
|
|
||||||
config DNSDIST_NOSSL
|
|
||||||
bool "No SSL support"
|
|
||||||
|
|
||||||
endchoice
|
|
||||||
|
|
||||||
comment "DNS over HTTPS/TLS Support"
|
|
||||||
depends on !DNSDIST_NOSSL
|
|
||||||
|
|
||||||
config DNSDIST_DNS_OVER_HTTPS
|
|
||||||
depends on DNSDIST_OPENSSL
|
|
||||||
depends on !DNSDIST_NOSSL
|
|
||||||
bool "DNS over HTTPS Support"
|
|
||||||
help
|
|
||||||
"Enables DNS over HTTPS Support for dnsdist"
|
|
||||||
default y
|
|
||||||
|
|
||||||
config DNSDIST_DNS_OVER_HTTPS_OUTGOING
|
|
||||||
depends on !DNSDIST_NOSSL
|
|
||||||
bool "Outgoing DNS over HTTPS Support"
|
|
||||||
help
|
|
||||||
"Enables Outgoing DNS over HTTPS Support for dnsdist"
|
|
||||||
default y
|
|
||||||
|
|
||||||
config DNSDIST_DNS_OVER_TLS
|
|
||||||
depends on !DNSDIST_NOSSL
|
|
||||||
bool "DNS over TLS Support"
|
|
||||||
help
|
|
||||||
"Enabled DNS over TLS Support for dnsdist"
|
|
||||||
default y
|
|
||||||
|
|
||||||
config DNSDIST_NET_SNMP
|
|
||||||
bool "Net-SNMP support"
|
|
||||||
help
|
|
||||||
"Enable Net-SNMP support for dnsdist"
|
|
||||||
default y
|
|
||||||
|
|
||||||
config DNSDIST_RE2
|
|
||||||
bool "RE2 support"
|
|
||||||
help
|
|
||||||
"Enable RE2 support for dnsdist"
|
|
||||||
default y
|
|
||||||
|
|
||||||
config DNSDIST_DNSTAP
|
|
||||||
bool "DNSTAP support"
|
|
||||||
help
|
|
||||||
"Enable DNSTAP support for dnsdist"
|
|
||||||
default y
|
|
||||||
|
|
||||||
config DNSDIST_SODIUM
|
|
||||||
bool "Build with libsodium"
|
|
||||||
help
|
|
||||||
"Build with libsodium - for encrypted console connections, and DNSCrypt"
|
|
||||||
default y
|
|
||||||
endmenu
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/dnsdist
|
|
||||||
SECTION:=net
|
SECTION:=net
|
||||||
CATEGORY:=Network
|
CATEGORY:=Network
|
||||||
SUBMENU:=IP Addresses and Names
|
SUBMENU:=IP Addresses and Names
|
||||||
TITLE:=dnsdist DNS-, DOS- and abuse-aware loadbalancer
|
TITLE:=dnsdist DNS-, DOS- and abuse-aware loadbalancer $(2)
|
||||||
|
USERID:=dnsdist:dnsdist
|
||||||
DEPENDS:= \
|
DEPENDS:= \
|
||||||
+DNSDIST_DNS_OVER_HTTPS:libh2o-evloop \
|
+ca-bundle \
|
||||||
+DNSDIST_DNS_OVER_HTTPS_OUTGOING:libnghttp2 \
|
|
||||||
+DNSDIST_GNUTLS:libgnutls \
|
|
||||||
+DNSDIST_OPENSSL:libopenssl \
|
|
||||||
+DNSDIST_NET_SNMP:libnetsnmp \
|
|
||||||
+DNSDIST_RE2:re2 \
|
|
||||||
+DNSDIST_DNSTAP:libfstrm \
|
|
||||||
+DNSDIST_SODIUM:libsodium \
|
|
||||||
+libatomic \
|
+libatomic \
|
||||||
+libcap \
|
+libcap \
|
||||||
+libedit \
|
|
||||||
+libstdcpp \
|
+libstdcpp \
|
||||||
+lmdb \
|
+luajit
|
||||||
+luajit \
|
|
||||||
+tinycdb
|
|
||||||
URL:=https://dnsdist.org/
|
URL:=https://dnsdist.org/
|
||||||
|
VARIANT:=$(1)
|
||||||
|
PROVIDES:=dnsdist
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/dnsdist/description
|
define Package/dnsdist/description/Default
|
||||||
dnsdist is a highly DNS-, DoS- and abuse-aware loadbalancer. Its goal in life
|
dnsdist is a highly DNS-, DoS- and abuse-aware loadbalancer. Its goal in life
|
||||||
is to route traffic to the best server, delivering top performance to legitimate
|
is to route traffic to the best server, delivering top performance to legitimate
|
||||||
users while shunting or blocking abusive traffic.
|
users while shunting or blocking abusive traffic.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/dnsdist/conffiles
|
define Package/dnsdist/conffiles/Default
|
||||||
/etc/dnsdist.conf
|
/etc/dnsdist.conf
|
||||||
/etc/config/dnsdist
|
/etc/config/dnsdist
|
||||||
/etc/init.d/dnsdist
|
/etc/init.d/dnsdist
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# not everything groks --disable-nls
|
define Package/dnsdist/config
|
||||||
DISABLE_NLS:=
|
source "$(SOURCE)/Config.in"
|
||||||
|
endef
|
||||||
|
|
||||||
# OpenWRT's setting of CXX destroys dnsdist's -std=c++17
|
define Package/dnsdist/install/Default
|
||||||
# --with-re2 compensates for that because it compensates for a bug in re2.pc that also destroys it
|
|
||||||
# so this addition is for the --without-re2 case
|
|
||||||
#
|
|
||||||
# none of this is pretty
|
|
||||||
TARGET_CXX+=-std=c++17
|
|
||||||
|
|
||||||
CONFIGURE_ARGS+= \
|
|
||||||
--with-pic \
|
|
||||||
--with-lua=luajit \
|
|
||||||
$(if $(CONFIG_DNSDIST_SODIUM),--enable-dnscrypt --with-libsodium,--disable-dnscrypt --without-libsodium) \
|
|
||||||
$(if $(CONFIG_DNSDIST_DNSTAP),--enable-dnstap=yes,--enable-dnstap=no) \
|
|
||||||
$(if $(CONFIG_DNSDIST_RE2),--with,--without)-re2 \
|
|
||||||
$(if $(CONFIG_DNSDIST_NET_SNMP),--with,--without)-net-snmp \
|
|
||||||
$(if $(CONFIG_DNSDIST_GNUTLS),--with,--without)-gnutls \
|
|
||||||
$(if $(CONFIG_DNSDIST_OPENSSL),--with,--without)-libssl \
|
|
||||||
$(if $(CONFIG_DNSDIST_DNS_OVER_TLS),--enable-dns-over-tls,) \
|
|
||||||
$(if $(CONFIG_DNSDIST_DNS_OVER_HTTPS),--enable-dns-over-https,) \
|
|
||||||
$(if $(CONFIG_DNSDIST_DNS_OVER_HTTPS_OUTGOING),--with,--without)-nghttp2
|
|
||||||
|
|
||||||
define Package/dnsdist/install
|
|
||||||
$(INSTALL_DIR) $(1)/etc
|
$(INSTALL_DIR) $(1)/etc
|
||||||
|
$(INSTALL_DIR) $(1)/etc/dnsdist.conf.d
|
||||||
$(INSTALL_CONF) ./files/dnsdist.conf $(1)/etc/dnsdist.conf
|
$(INSTALL_CONF) ./files/dnsdist.conf $(1)/etc/dnsdist.conf
|
||||||
$(INSTALL_DIR) $(1)/etc/config
|
$(INSTALL_DIR) $(1)/etc/config
|
||||||
$(INSTALL_CONF) ./files/dnsdist.config $(1)/etc/config/dnsdist
|
$(INSTALL_CONF) ./files/dnsdist.config $(1)/etc/config/dnsdist
|
||||||
|
@ -166,4 +69,103 @@ define Package/dnsdist/install
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/dnsdist $(1)/usr/bin/
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/dnsdist $(1)/usr/bin/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/dnsdist
|
||||||
|
$(call Package/dnsdist/Default,mini,- minimal version with a restricted feature set)
|
||||||
|
DEPENDS+= \
|
||||||
|
+DNSDIST_LIBEDIT:libedit \
|
||||||
|
+DNSDIST_DNSTAP:libfstrm \
|
||||||
|
+DNSDIST_GNUTLS:libgnutls \
|
||||||
|
+DNSDIST_DNS_OVER_HTTPS:libh2o-evloop \
|
||||||
|
+DNSDIST_NET_SNMP:libnetsnmp \
|
||||||
|
+DNSDIST_DNS_OVER_HTTPS_OUTGOING:libnghttp2 \
|
||||||
|
+DNSDIST_OPENSSL:libopenssl \
|
||||||
|
+DNSDIST_SODIUM:libsodium \
|
||||||
|
+DNSDIST_LMDB:lmdb \
|
||||||
|
+DNSDIST_CDB:tinycdb \
|
||||||
|
+DNSDIST_RE2:re2
|
||||||
|
endef
|
||||||
|
|
||||||
|
Package/dnsdist/description=$(call Package/dnsdist/description/Default)
|
||||||
|
Package/dnsdist/conffiles=$(call Package/dnsdist/conffiles/Default)
|
||||||
|
Package/dnsdist/install=$(call Package/dnsdist/install/Default,$1)
|
||||||
|
|
||||||
|
define Package/dnsdist-full
|
||||||
|
$(call Package/dnsdist/Default,full,- full version with all the features built in)
|
||||||
|
DEPENDS+= \
|
||||||
|
+libedit \
|
||||||
|
+libfstrm \
|
||||||
|
+libgnutls \
|
||||||
|
+libh2o-evloop \
|
||||||
|
+libnetsnmp \
|
||||||
|
+libnghttp2 \
|
||||||
|
+libopenssl \
|
||||||
|
+libsodium \
|
||||||
|
+lmdb \
|
||||||
|
+tinycdb \
|
||||||
|
+re2
|
||||||
|
endef
|
||||||
|
Package/dnsdist-full/description=$(call Package/dnsdist/description/Default)
|
||||||
|
Package/dnsdist-full/conffiles=$(call Package/dnsdist/conffiles/Default)
|
||||||
|
Package/dnsdist-full/install=$(call Package/dnsdist/install/Default,$1)
|
||||||
|
|
||||||
|
# not everything groks --disable-nls
|
||||||
|
DISABLE_NLS:=
|
||||||
|
|
||||||
|
# disable PIE for this package, see CONFIG_DNSDIST_PIE
|
||||||
|
PKG_ASLR_PIE:=0
|
||||||
|
|
||||||
|
ifneq ($(CONFIG_DNSDIST_DEBUG_SYMBOLS),)
|
||||||
|
RSTRIP:=:
|
||||||
|
STRIP:=:
|
||||||
|
endif
|
||||||
|
|
||||||
|
IsEnabled = $(or $(filter full,$(BUILD_VARIANT)),$(CONFIG_$(1)))
|
||||||
|
|
||||||
|
# OpenWRT's setting of CXX destroys dnsdist's -std=c++17
|
||||||
|
# --with-re2 compensates for that because it compensates for a bug in re2.pc that also destroys it
|
||||||
|
# so this addition is for the --without-re2 case
|
||||||
|
#
|
||||||
|
# none of this is pretty
|
||||||
|
TARGET_CXX+=-std=c++17
|
||||||
|
TARGET_CFLAGS+=-Os -fvisibility=hidden -flto -fno-ipa-cp -DNDEBUG
|
||||||
|
TARGET_CXXFLAGS+=-Os -fvisibility=hidden -flto -fno-ipa-cp -DNDEBUG \
|
||||||
|
-DDISABLE_DEPRECATED_DYNBLOCK -DDISABLE_RECVMMSG -DDISABLE_NPN -DDISABLE_FALSE_SHARING_PADDING -DUSE_SINGLE_ACCEPTOR_THREAD -DOPENSSL_NO_ENGINE -DDISABLE_OPENSSL_ERROR_STRINGS \
|
||||||
|
$(if $(call IsEnabled,DNSDIST_CARBON),,-DDISABLE_CARBON) \
|
||||||
|
$(if $(call IsEnabled,DNSDIST_COMPLETION),,-DDISABLE_COMPLETION) \
|
||||||
|
$(if $(call IsEnabled,DNSDIST_DEBUG_SYMBOLS),-g3,) \
|
||||||
|
$(if $(call IsEnabled,DNSDIST_DELAY_PIPE),,-DDISABLE_DELAY_PIPE) \
|
||||||
|
$(if $(call IsEnabled,DNSDIST_DYNBLOCKS),,-DDISABLE_DYNBLOCKS) \
|
||||||
|
$(if $(call IsEnabled,DNSDIST_ECS_ACTIONS),,-DDISABLE_ECS_ACTIONS) \
|
||||||
|
$(if $(call IsEnabled,DNSDIST_HASHED),,-DDISABLE_HASHED_CREDENTIALS) \
|
||||||
|
$(if $(call IsEnabled,DNSDIST_LUA_ADVANCED),,-DDISABLE_NON_FFI_DQ_BINDINGS -DDISABLE_POLICIES_BINDINGS -DDISABLE_DOWNSTREAM_BINDINGS -DDISABLE_DNSHEADER_BINDINGS -DDISABLE_COMBO_ADDR_BINDINGS -DDISABLE_QPS_LIMITER_BINDINGS -DDISABLE_PACKETCACHE_BINDINGS -DDISABLE_CLIENT_STATE_BINDINGS -DDISABLE_DNSPACKET_BINDINGS -DDISABLE_LUA_BINDINGS_RINGS) \
|
||||||
|
$(if $(call IsEnabled,DNSDIST_MAC),-DDNSDIST_RINGS_WITH_MACADDRESS,) \
|
||||||
|
$(if $(call IsEnabled,DNSDIST_OCSP_STAPLING),,-DDISABLE_OCSP_STAPLING) \
|
||||||
|
$(if $(call IsEnabled,DNSDIST_PROTOBUF),,-DDISABLE_PROTOBUF) \
|
||||||
|
$(if $(call IsEnabled,DNSDIST_PROMETHEUS),,-DDISABLE_PROMETHEUS) \
|
||||||
|
$(if $(call IsEnabled,DNSDIST_RULES_ALTER),,-DDISABLE_RULES_ALTERING_QUERIES) \
|
||||||
|
$(if $(call IsEnabled,DNSDIST_SECPOLL),,-DDISABLE_SECPOLL) \
|
||||||
|
$(if $(call IsEnabled,DNSDIST_TOP_N),,-DDISABLE_TOP_N_BINDINGS) \
|
||||||
|
$(if $(call IsEnabled,DNSDIST_WEB),,-DDISABLE_WEB_CONFIG -DDISABLE_BUILTIN_HTML -DDISABLE_LUA_WEB_HANDLERS)
|
||||||
|
|
||||||
|
CONFIGURE_ARGS+= \
|
||||||
|
--with-pic \
|
||||||
|
--with-lua=luajit \
|
||||||
|
--with-libcap \
|
||||||
|
$(if $(call IsEnabled,DNSDIST_PIE),,--disable-hardening) \
|
||||||
|
$(if $(call IsEnabled,DNSDIST_SODIUM),--enable-dnscrypt --with-libsodium,--disable-dnscrypt --without-libsodium) \
|
||||||
|
$(if $(call IsEnabled,DNSDIST_DNSTAP),--enable-dnstap=yes,--enable-dnstap=no) \
|
||||||
|
$(if $(call IsEnabled,DNSDIST_RE2),--with,--without)-re2 \
|
||||||
|
$(if $(call IsEnabled,DNSDIST_NET_SNMP),--with,--without)-net-snmp \
|
||||||
|
$(if $(call IsEnabled,DNSDIST_GNUTLS),--with,--without)-gnutls \
|
||||||
|
$(if $(call IsEnabled,DNSDIST_OPENSSL),--with,--without)-libssl \
|
||||||
|
$(if $(call IsEnabled,DNSDIST_DNS_OVER_TLS),--enable-dns-over-tls,) \
|
||||||
|
$(if $(call IsEnabled,DNSDIST_CDB),--with,--without)-cdb \
|
||||||
|
$(if $(call IsEnabled,DNSDIST_LMDB),--with,--without)-lmdb \
|
||||||
|
$(if $(call IsEnabled,DNSDIST_LIBEDIT),--with,--without)-libedit \
|
||||||
|
$(if $(call IsEnabled,DNSDIST_IPCIPHER),--enable,--disable)-ipcipher \
|
||||||
|
$(if $(call IsEnabled,DNSDIST_EBPF),--with,--without)-ebpf \
|
||||||
|
$(if $(call IsEnabled,DNSDIST_DNS_OVER_HTTPS),--enable-dns-over-https,) \
|
||||||
|
$(if $(call IsEnabled,DNSDIST_DNS_OVER_HTTPS_OUTGOING),--with,--without)-nghttp2
|
||||||
|
|
||||||
$(eval $(call BuildPackage,dnsdist))
|
$(eval $(call BuildPackage,dnsdist))
|
||||||
|
$(eval $(call BuildPackage,dnsdist-full))
|
||||||
|
|
|
@ -5,12 +5,12 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=dnsproxy
|
PKG_NAME:=dnsproxy
|
||||||
PKG_VERSION:=0.50.2
|
PKG_VERSION:=0.51.0
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://codeload.github.com/AdguardTeam/dnsproxy/tar.gz/v$(PKG_VERSION)?
|
PKG_SOURCE_URL:=https://codeload.github.com/AdguardTeam/dnsproxy/tar.gz/v$(PKG_VERSION)?
|
||||||
PKG_HASH:=f65764a196508bc134e05cdb9d282b790641dfe0e8e8aa99b01544317f791487
|
PKG_HASH:=230f13bcfe48a650c0ffd0574092fd956f5fb6351c622ae869d2bd0058a539b4
|
||||||
|
|
||||||
PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
|
PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
|
||||||
PKG_LICENSE:=Apache-2.0
|
PKG_LICENSE:=Apache-2.0
|
||||||
|
|
|
@ -10,12 +10,12 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=haproxy
|
PKG_NAME:=haproxy
|
||||||
PKG_VERSION:=2.6.13
|
PKG_VERSION:=2.8.1
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://www.haproxy.org/download/2.6/src
|
PKG_SOURCE_URL:=https://www.haproxy.org/download/2.8/src
|
||||||
PKG_HASH:=d69ff5233dbca657132ef280d111222ec1e33f5be1c1937d4e9ff516f63f5243
|
PKG_HASH:=485552fcd9d5d5f41aad046f131fc0a7e849bef25a349a040750af0c6fc56807
|
||||||
|
|
||||||
PKG_MAINTAINER:=Thomas Heil <heil@terminal-consulting.de>, \
|
PKG_MAINTAINER:=Thomas Heil <heil@terminal-consulting.de>, \
|
||||||
Christian Lachner <gladiac@gmail.com>
|
Christian Lachner <gladiac@gmail.com>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
CLONEURL=https://git.haproxy.org/git/haproxy-2.6.git
|
CLONEURL=https://git.haproxy.org/git/haproxy-2.8.git
|
||||||
BASE_TAG=v2.6.13
|
BASE_TAG=v2.8.1
|
||||||
TMP_REPODIR=tmprepo
|
TMP_REPODIR=tmprepo
|
||||||
PATCHESDIR=patches
|
PATCHESDIR=patches
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=https-dns-proxy
|
PKG_NAME:=https-dns-proxy
|
||||||
PKG_VERSION:=2023-05-25
|
PKG_VERSION:=2023-05-25
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_URL:=https://github.com/aarond10/https_dns_proxy/
|
PKG_SOURCE_URL:=https://github.com/aarond10/https_dns_proxy/
|
||||||
|
|
|
@ -133,7 +133,7 @@ boot() {
|
||||||
}
|
}
|
||||||
|
|
||||||
start_instance() {
|
start_instance() {
|
||||||
local cfg="$1" param listen_addr listen_port ipv6_resolvers_only p url
|
local cfg="$1" param listen_addr listen_port ipv6_resolvers_only p url iface
|
||||||
|
|
||||||
config_get url "$cfg" 'resolver_url'
|
config_get url "$cfg" 'resolver_url'
|
||||||
config_get_bool ipv6_resolvers_only "$cfg" 'use_ipv6_resolvers_only' '0'
|
config_get_bool ipv6_resolvers_only "$cfg" 'use_ipv6_resolvers_only' '0'
|
||||||
|
@ -158,32 +158,36 @@ start_instance() {
|
||||||
procd_set_param stdout 1
|
procd_set_param stdout 1
|
||||||
procd_set_param respawn
|
procd_set_param respawn
|
||||||
procd_open_data
|
procd_open_data
|
||||||
procd_add_mdns_service "$packageName" 'udp' "$port" "DNS over HTTPS proxy"
|
json_add_object mdns
|
||||||
|
procd_add_mdns_service "$packageName" 'udp' "$port" "DNS over HTTPS proxy"
|
||||||
|
json_close_object
|
||||||
json_add_string url "$url"
|
json_add_string url "$url"
|
||||||
if [ "$force_dns" -ne 0 ]; then
|
if [ "$force_dns" -ne 0 ]; then
|
||||||
json_add_array firewall
|
json_add_array firewall
|
||||||
for p in $force_dns_port; do
|
for iface in $procd_fw_src_interfaces; do
|
||||||
if netstat -tuln | grep 'LISTEN' | grep ":${p}" >/dev/null 2>&1 || [ "$p" = '53' ]; then
|
for p in $force_dns_port; do
|
||||||
json_add_object ''
|
if netstat -tuln | grep 'LISTEN' | grep ":${p}" >/dev/null 2>&1 || [ "$p" = '53' ]; then
|
||||||
json_add_string type redirect
|
json_add_object ''
|
||||||
json_add_string target DNAT
|
json_add_string type redirect
|
||||||
json_add_string src lan
|
json_add_string target DNAT
|
||||||
json_add_string proto 'tcp udp'
|
json_add_string src "$iface"
|
||||||
json_add_string src_dport "$p"
|
json_add_string proto 'tcp udp'
|
||||||
json_add_string dest_port "$p"
|
json_add_string src_dport "$p"
|
||||||
json_add_string family any
|
json_add_string dest_port "$p"
|
||||||
json_add_boolean reflection 0
|
json_add_string family any
|
||||||
json_close_object
|
json_add_boolean reflection 0
|
||||||
else
|
json_close_object
|
||||||
json_add_object ''
|
else
|
||||||
json_add_string type rule
|
json_add_object ''
|
||||||
json_add_string src lan
|
json_add_string type rule
|
||||||
json_add_string dest '*'
|
json_add_string src "$iface"
|
||||||
json_add_string proto 'tcp udp'
|
json_add_string dest '*'
|
||||||
json_add_string dest_port "$p"
|
json_add_string proto 'tcp udp'
|
||||||
json_add_string target REJECT
|
json_add_string dest_port "$p"
|
||||||
json_close_object
|
json_add_string target REJECT
|
||||||
fi
|
json_close_object
|
||||||
|
fi
|
||||||
|
done
|
||||||
done
|
done
|
||||||
json_close_array
|
json_close_array
|
||||||
fi
|
fi
|
||||||
|
@ -216,14 +220,17 @@ start_instance() {
|
||||||
start_service() {
|
start_service() {
|
||||||
local canaryDomains canary_domains_icloud canary_domains_mozilla
|
local canaryDomains canary_domains_icloud canary_domains_mozilla
|
||||||
local dnsmasq_config_update force_dns force_dns_port
|
local dnsmasq_config_update force_dns force_dns_port
|
||||||
|
local procd_fw_src_interfaces
|
||||||
|
|
||||||
local port=5053
|
local port=5053
|
||||||
output "Starting $serviceName "
|
output "Starting $serviceName "
|
||||||
config_load "$packageName"
|
config_load "$packageName"
|
||||||
config_get dnsmasq_config_update 'config' 'dnsmasq_config_update' '*'
|
config_get_bool canary_domains_icloud 'config' 'canary_domains_icloud' '1'
|
||||||
config_get_bool canary_domains_icloud 'config' 'canary_domains_icloud' '1'
|
config_get_bool canary_domains_mozilla 'config' 'canary_domains_mozilla' '1'
|
||||||
config_get_bool canary_domains_mozilla 'config' 'canary_domains_mozilla' '1'
|
config_get_bool force_dns 'config' 'force_dns' '1'
|
||||||
config_get_bool force_dns 'config' 'force_dns' '1'
|
config_get dnsmasq_config_update 'config' 'dnsmasq_config_update' '*'
|
||||||
config_get force_dns_port 'config' 'force_dns_port' '53 853'
|
config_get force_dns_port 'config' 'force_dns_port' '53 853'
|
||||||
|
config_get procd_fw_src_interfaces 'config' 'procd_fw_src_interfaces' 'lan'
|
||||||
if [ "$canary_domains_icloud" -ne 0 ]; then
|
if [ "$canary_domains_icloud" -ne 0 ]; then
|
||||||
canaryDomains="${canaryDomains:+$canaryDomains }${canaryDomainsiCloud}"
|
canaryDomains="${canaryDomains:+$canaryDomains }${canaryDomainsiCloud}"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -8,12 +8,12 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=inadyn
|
PKG_NAME:=inadyn
|
||||||
PKG_VERSION:=2.9.1
|
PKG_VERSION:=2.11.0
|
||||||
PKG_RELEASE:=1
|
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/troglobit/inadyn/releases/download/v$(PKG_VERSION)
|
PKG_SOURCE_URL:=https://github.com/troglobit/inadyn/releases/download/v$(PKG_VERSION)
|
||||||
PKG_HASH:=0094d20cfcd431674b8d658e93169c7589bf8f2b351b2860818a1ca05f0218c5
|
PKG_HASH:=9c8b2a425acb9681564e9fc25a319f2109c7d2ebe1ffe99b06d4a722efb6ecba
|
||||||
|
|
||||||
PKG_MAINTAINER:=
|
PKG_MAINTAINER:=
|
||||||
PKG_LICENSE:=GPL-2.0-or-later
|
PKG_LICENSE:=GPL-2.0-or-later
|
||||||
|
|
|
@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
|
||||||
PKG_NAME:=isc-dhcp
|
PKG_NAME:=isc-dhcp
|
||||||
UPSTREAM_NAME:=dhcp
|
UPSTREAM_NAME:=dhcp
|
||||||
PKG_VERSION:=4.4.3-P1
|
PKG_VERSION:=4.4.3-P1
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=3
|
||||||
|
|
||||||
PKG_LICENSE:=BSD-3-Clause
|
PKG_LICENSE:=BSD-3-Clause
|
||||||
PKG_LICENSE_FILES:=LICENSE
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
|
|
|
@ -274,6 +274,7 @@ static_srvhosts() {
|
||||||
static_host_add() {
|
static_host_add() {
|
||||||
local cfg="$1"
|
local cfg="$1"
|
||||||
local broadcast hostid macn macs mac name ip ips revip leasetime
|
local broadcast hostid macn macs mac name ip ips revip leasetime
|
||||||
|
local force_send extra_options option
|
||||||
|
|
||||||
config_get macs "$cfg" "mac"
|
config_get macs "$cfg" "mac"
|
||||||
[ -n "$macs" ] || return 0
|
[ -n "$macs" ] || return 0
|
||||||
|
@ -296,6 +297,23 @@ static_host_add() {
|
||||||
hex_to_hostid hostid "$hostid" || return 1
|
hex_to_hostid hostid "$hostid" || return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
config_get force_send "$cfg" "force_send"
|
||||||
|
extra_options=
|
||||||
|
local _IFS="$IFS" IFS=','
|
||||||
|
for option in $force_send; do
|
||||||
|
case "$option" in
|
||||||
|
hostname)
|
||||||
|
extra_options="$extra_options${extra_options:+ }0c" ;;
|
||||||
|
domain-name)
|
||||||
|
extra_options="$extra_options${extra_options:+ }0f" ;;
|
||||||
|
fqdn)
|
||||||
|
extra_options="$extra_options${extra_options:+ }51" ;;
|
||||||
|
*)
|
||||||
|
echo "unknown option: $option" >&2 ;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
IFS="$_IFS"
|
||||||
|
|
||||||
macn=0
|
macn=0
|
||||||
for mac in $macs; do
|
for mac in $macs; do
|
||||||
macn=$(( macn + 1 ))
|
macn=$(( macn + 1 ))
|
||||||
|
@ -328,6 +346,9 @@ static_host_add() {
|
||||||
fi
|
fi
|
||||||
config_list_foreach "$cfg" "routes" append_routes
|
config_list_foreach "$cfg" "routes" append_routes
|
||||||
config_list_foreach "$cfg" "dhcp_option" append_dhcp_options
|
config_list_foreach "$cfg" "dhcp_option" append_dhcp_options
|
||||||
|
if [ -n "$extra_options" ]; then
|
||||||
|
echo -e " if exists dhcp-parameter-request-list {\n option dhcp-parameter-request-list = concat(option dhcp-parameter-request-list, $extra_options);\n }"
|
||||||
|
fi
|
||||||
echo "}"
|
echo "}"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -348,7 +369,9 @@ gen_dhcp_subnet() {
|
||||||
local cfg="$1"
|
local cfg="$1"
|
||||||
|
|
||||||
echo "subnet $NETWORK netmask $NETMASK {"
|
echo "subnet $NETWORK netmask $NETMASK {"
|
||||||
echo " range $START $END;"
|
if [ -n "$START" ] && [ -n "$END" ]; then
|
||||||
|
echo " range $START $END;"
|
||||||
|
fi
|
||||||
echo " option subnet-mask $netmask;"
|
echo " option subnet-mask $netmask;"
|
||||||
if [ "$BROADCAST" != "0.0.0.0" ] ; then
|
if [ "$BROADCAST" != "0.0.0.0" ] ; then
|
||||||
echo " option broadcast-address $BROADCAST;"
|
echo " option broadcast-address $BROADCAST;"
|
||||||
|
@ -387,10 +410,13 @@ dhcpd_add() {
|
||||||
[ -n "$net" ] || return 0
|
[ -n "$net" ] || return 0
|
||||||
|
|
||||||
config_get start "$cfg" "start"
|
config_get start "$cfg" "start"
|
||||||
[ -n "$start" ] || return 0
|
|
||||||
|
|
||||||
config_get limit "$cfg" "limit"
|
config_get limit "$cfg" "limit"
|
||||||
[ -n "$limit" ] || return 0
|
|
||||||
|
case "$start:$limit" in
|
||||||
|
":*"|"*:")
|
||||||
|
echo "dhcpd: start/limit must be used together in $cfg" >&2
|
||||||
|
return 0
|
||||||
|
esac
|
||||||
|
|
||||||
network_get_subnet subnet "$net" || return 0
|
network_get_subnet subnet "$net" || return 0
|
||||||
network_get_device ifname "$net" || return 0
|
network_get_device ifname "$net" || return 0
|
||||||
|
|
|
@ -8,12 +8,12 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=knot
|
PKG_NAME:=knot
|
||||||
PKG_VERSION:=3.2.7
|
PKG_VERSION:=3.2.8
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||||
PKG_SOURCE_URL:=https://secure.nic.cz/files/knot-dns/
|
PKG_SOURCE_URL:=https://secure.nic.cz/files/knot-dns/
|
||||||
PKG_HASH:=d3b7872ac8aa80f7f54ddb1bb3b1e2f90ec55f7270a2c4a9338eab42b7d2767b
|
PKG_HASH:=ef419a428f327def77780bc90eda763b51e6121fe548543da84b9eb96a261a6e
|
||||||
|
|
||||||
PKG_MAINTAINER:=Daniel Salzman <daniel.salzman@nic.cz>
|
PKG_MAINTAINER:=Daniel Salzman <daniel.salzman@nic.cz>
|
||||||
PKG_LICENSE:=GPL-3.0 LGPL-2.0 0BSD BSD-3-Clause OLDAP-2.8
|
PKG_LICENSE:=GPL-3.0 LGPL-2.0 0BSD BSD-3-Clause OLDAP-2.8
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=krb5
|
PKG_NAME:=krb5
|
||||||
PKG_VERSION:=1.20.1
|
PKG_VERSION:=1.21
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
|
PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
|
||||||
|
@ -18,8 +18,8 @@ PKG_LICENSE_FILES:=NOTICE
|
||||||
PKG_CPE_ID:=cpe:/a:mit:kerberos
|
PKG_CPE_ID:=cpe:/a:mit:kerberos
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://web.mit.edu/kerberos/dist/krb5/1.20
|
PKG_SOURCE_URL:=https://web.mit.edu/kerberos/dist/krb5/1.21
|
||||||
PKG_HASH:=704aed49b19eb5a7178b34b2873620ec299db08752d6a8574f95d41879ab8851
|
PKG_HASH:=69f8aaff85484832df67a4bbacd99b9259bd95aab8c651fbbe65cdc9620ea93b
|
||||||
|
|
||||||
PKG_BUILD_PARALLEL:=1
|
PKG_BUILD_PARALLEL:=1
|
||||||
PKG_INSTALL:=1
|
PKG_INSTALL:=1
|
||||||
|
|
|
@ -8,15 +8,15 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=linuxptp
|
PKG_NAME:=linuxptp
|
||||||
PKG_VERSION:=3.1.1
|
PKG_VERSION:=4.0
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
|
||||||
PKG_SOURCE_URL:=@SF/$(PKG_NAME)/v$(PKG_VERSION)
|
PKG_SOURCE_URL:=@SF/$(PKG_NAME)/v$(PKG_VERSION)
|
||||||
PKG_HASH:=94d6855f9b7f2d8e9b0ca6d384e3fae6226ce6fc012dbad02608bdef3be1c0d9
|
PKG_HASH:=d27d5ef296bb3d285e22e69f75ae023b4b42a2f4655130d6d390d8afcbc3d933
|
||||||
|
|
||||||
PKG_MAINTAINER:=Wojciech Dubowik <Wojciech.Dubowik@westermo.com>
|
PKG_MAINTAINER:=Wojciech Dubowik <Wojciech.Dubowik@westermo.com>
|
||||||
PKG_LICENSE:=GPL-2.0
|
PKG_LICENSE:=GPL-2.0-only
|
||||||
PKG_LICENSE_FILES:=COPYING
|
PKG_LICENSE_FILES:=COPYING
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
--- a/ts2phc_slave.c
|
--- a/ts2phc_pps_sink.c
|
||||||
+++ b/ts2phc_slave.c
|
+++ b/ts2phc_pps_sink.c
|
||||||
@@ -4,6 +4,9 @@
|
@@ -4,6 +4,9 @@
|
||||||
* @note Copyright (C) 2019 Balint Ferencz <fernya@sch.bme.hu>
|
* @note Copyright (C) 2019 Balint Ferencz <fernya@sch.bme.hu>
|
||||||
* @note SPDX-License-Identifier: GPL-2.0+
|
* @note SPDX-License-Identifier: GPL-2.0+
|
||||||
|
|
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=modemmanager
|
PKG_NAME:=modemmanager
|
||||||
PKG_SOURCE_VERSION:=1.20.6
|
PKG_SOURCE_VERSION:=1.20.6
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=3
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_URL:=https://gitlab.freedesktop.org/mobile-broadband/ModemManager.git
|
PKG_SOURCE_URL:=https://gitlab.freedesktop.org/mobile-broadband/ModemManager.git
|
||||||
|
|
|
@ -273,6 +273,14 @@ mm_report_event() {
|
||||||
local subsystem="$3"
|
local subsystem="$3"
|
||||||
local sysfspath="$4"
|
local sysfspath="$4"
|
||||||
|
|
||||||
|
# Do not save virtual devices
|
||||||
|
local virtual
|
||||||
|
virtual="$(echo "$sysfspath" | cut -d'/' -f4)"
|
||||||
|
[ "$virtual" = "virtual" ] && {
|
||||||
|
mm_log "debug" "sysfspath is a virtual device ($sysfspath)"
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
# Track/untrack events in cache
|
# Track/untrack events in cache
|
||||||
case "${action}" in
|
case "${action}" in
|
||||||
"add")
|
"add")
|
||||||
|
|
|
@ -368,11 +368,6 @@ proto_modemmanager_setup() {
|
||||||
proto_set_available "${interface}" 0
|
proto_set_available "${interface}" 0
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
[ -e "${device}" ] || {
|
|
||||||
echo "Device not found in sysfs"
|
|
||||||
proto_set_available "${interface}" 0
|
|
||||||
return 1
|
|
||||||
}
|
|
||||||
|
|
||||||
# validate that ModemManager is handling the modem at the sysfs path
|
# validate that ModemManager is handling the modem at the sysfs path
|
||||||
modemstatus=$(mmcli --modem="${device}" --output-keyvalue)
|
modemstatus=$(mmcli --modem="${device}" --output-keyvalue)
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=netbird
|
PKG_NAME:=netbird
|
||||||
PKG_VERSION:=0.21.1
|
PKG_VERSION:=0.21.7
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://codeload.github.com/netbirdio/netbird/tar.gz/v$(PKG_VERSION)?
|
PKG_SOURCE_URL:=https://codeload.github.com/netbirdio/netbird/tar.gz/v$(PKG_VERSION)?
|
||||||
PKG_HASH:=e305bd2f49565e365a5022f0f0e9e9cabf273718fe2aec5f2380ef9a4d528b6e
|
PKG_HASH:=f2a18a6b9e6af15c182fd023cc47aecb2062d3da586820746f4987856d20f0ac
|
||||||
|
|
||||||
PKG_MAINTAINER:=Oskari Rauta <oskari.rauta@gmail.com>
|
PKG_MAINTAINER:=Oskari Rauta <oskari.rauta@gmail.com>
|
||||||
PKG_LICENSE:=BSD-3-Clause
|
PKG_LICENSE:=BSD-3-Clause
|
||||||
|
@ -18,7 +18,7 @@ PKG_BUILD_FLAGS:=no-mips16
|
||||||
|
|
||||||
GO_PKG:=github.com/netbirdio/netbird
|
GO_PKG:=github.com/netbirdio/netbird
|
||||||
GO_PKG_BUILD_PKG:=$(GO_PKG)/client
|
GO_PKG_BUILD_PKG:=$(GO_PKG)/client
|
||||||
GO_PKG_LDFLAGS_X:=$(GO_PKG)/client/system.version=$(PKG_VERSION)
|
GO_PKG_LDFLAGS_X:=$(GO_PKG)/version.version=$(PKG_VERSION)
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
include ../../lang/golang/golang-package.mk
|
include ../../lang/golang/golang-package.mk
|
||||||
|
@ -40,6 +40,10 @@ define Package/netbird/description
|
||||||
gateways, and so forth.
|
gateways, and so forth.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/netbird/conffiles
|
||||||
|
/etc/netbird/config.json
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/netbird/install
|
define Package/netbird/install
|
||||||
$(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR))
|
$(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR))
|
||||||
$(INSTALL_DIR) $(1)/usr/bin $(1)/etc/init.d
|
$(INSTALL_DIR) $(1)/usr/bin $(1)/etc/init.d
|
||||||
|
|
|
@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=netsniff-ng
|
PKG_NAME:=netsniff-ng
|
||||||
PKG_VERSION:=0.6.8
|
PKG_VERSION:=0.6.8
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=3
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://codeload.github.com/netsniff-ng/netsniff-ng/tar.gz/v$(PKG_VERSION)?
|
PKG_SOURCE_URL:=https://codeload.github.com/netsniff-ng/netsniff-ng/tar.gz/v$(PKG_VERSION)?
|
||||||
|
|
|
@ -0,0 +1,57 @@
|
||||||
|
From 519aae7b91454e45b0528809e94c5008cdf0c060 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Zahari Doychev <zdoychev@maxlinear.com>
|
||||||
|
Date: Thu, 8 Dec 2022 17:40:17 +0100
|
||||||
|
Subject: [PATCH] mausezahn: use getopt_long instead of getopt
|
||||||
|
|
||||||
|
The musl getopt stops processing the options at the first non-option
|
||||||
|
argument comapared to the glibc variant. Using getopt_long fixes this
|
||||||
|
problem.
|
||||||
|
|
||||||
|
Signed-off-by: Zahari Doychev <zahari.doychev@linux.com>
|
||||||
|
---
|
||||||
|
staging/mausezahn.c | 13 ++++++-------
|
||||||
|
1 file changed, 6 insertions(+), 7 deletions(-)
|
||||||
|
|
||||||
|
--- a/staging/mausezahn.c
|
||||||
|
+++ b/staging/mausezahn.c
|
||||||
|
@@ -23,7 +23,8 @@
|
||||||
|
#include <sys/ioctl.h>
|
||||||
|
#include <netinet/in.h>
|
||||||
|
#include <stdarg.h>
|
||||||
|
-
|
||||||
|
+#include <getopt.h>
|
||||||
|
+
|
||||||
|
#include "mz.h"
|
||||||
|
#include "cli.h"
|
||||||
|
#include "mops.h"
|
||||||
|
@@ -447,9 +448,7 @@ int getopts (int argc, char *argv[])
|
||||||
|
char unit;
|
||||||
|
|
||||||
|
opterr = 1; // let getopt print error message if necessary
|
||||||
|
-
|
||||||
|
-
|
||||||
|
- while ((c = getopt(argc, argv, short_options)) != -1)
|
||||||
|
+ while ((c = getopt_long(argc, argv, short_options, NULL, NULL)) != -1) {
|
||||||
|
switch (c) {
|
||||||
|
case '4':
|
||||||
|
tx.eth_type = 0x0800;
|
||||||
|
@@ -646,7 +645,7 @@ int getopts (int argc, char *argv[])
|
||||||
|
fprintf (stderr," mz/getopts: Could not handle arguments properly!\n");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
-
|
||||||
|
+ }
|
||||||
|
// ********************************************
|
||||||
|
// Handle additional arguments
|
||||||
|
// ********************************************
|
||||||
|
@@ -660,8 +659,8 @@ int getopts (int argc, char *argv[])
|
||||||
|
"-- Verbose mode --\n"
|
||||||
|
"\n");
|
||||||
|
}
|
||||||
|
-
|
||||||
|
- if (argc<2) {
|
||||||
|
+
|
||||||
|
+ if (optind+2 < argc) {
|
||||||
|
help();
|
||||||
|
}
|
||||||
|
|
73
net/openelp/Makefile
Normal file
73
net/openelp/Makefile
Normal file
|
@ -0,0 +1,73 @@
|
||||||
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
PKG_NAME:=openelp
|
||||||
|
PKG_VERSION:=0.9.2
|
||||||
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
|
PKG_SOURCE_URL:=https://codeload.github.com/cottsay/openelp/tar.gz/v$(PKG_VERSION)?
|
||||||
|
PKG_HASH:=1427a2fe6f22856a66b9c687d7f14b7915abeeed64951ae596084f9366ec4256
|
||||||
|
|
||||||
|
PKG_MAINTAINER:=Scott K Logan <logans@cottsay.net>
|
||||||
|
PKG_LICENSE:=BSD-3-Clause
|
||||||
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
|
|
||||||
|
CMAKE_INSTALL:=1
|
||||||
|
|
||||||
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
include $(INCLUDE_DIR)/cmake.mk
|
||||||
|
|
||||||
|
define Package/libopenelp
|
||||||
|
SECTION:=libs
|
||||||
|
CATEGORY:=Libraries
|
||||||
|
TITLE:=Open Source EchoLink Proxy Library
|
||||||
|
URL:=https://github.com/cottsay/openelp
|
||||||
|
DEPENDS:=+libpcre2
|
||||||
|
ABI_VERSION:=0
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/openelp
|
||||||
|
SECTION:=net
|
||||||
|
CATEGORY:=Network
|
||||||
|
TITLE:=Open Source EchoLink Proxy
|
||||||
|
URL:=https://github.com/cottsay/openelp
|
||||||
|
DEPENDS:=+libopenelp
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/libopenelp/description
|
||||||
|
Library backing OpenELP - an open source EchoLink proxy.
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/openelp/description
|
||||||
|
OpenELP is an open source EchoLink proxy for Linux and Windows. It aims
|
||||||
|
to be efficient and maintain a small footprint, while still implementing
|
||||||
|
all of the features present in the official EchoLink proxy.
|
||||||
|
|
||||||
|
OpenELP also has the ability to bind to multiple network interfaces
|
||||||
|
which are routed to unique external IP addresses, and therefore is
|
||||||
|
capable of accepting connections from multiple clients simultaneously.
|
||||||
|
endef
|
||||||
|
|
||||||
|
CMAKE_OPTIONS += \
|
||||||
|
-DSYSCONF_INSTALL_DIR=/etc
|
||||||
|
|
||||||
|
define Package/openelp/conffiles
|
||||||
|
/etc/ELProxy.conf
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/libopenelp/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libopenelp.so.* $(1)/usr/lib/
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/openelp/install
|
||||||
|
$(INSTALL_DIR) $(1)/etc
|
||||||
|
$(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/ELProxy.conf $(1)/etc/
|
||||||
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/openelpd $(1)/usr/bin/
|
||||||
|
$(INSTALL_DIR) $(1)/etc/init.d
|
||||||
|
$(INSTALL_BIN) ./files/openelp.init $(1)/etc/init.d/openelp
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call BuildPackage,libopenelp))
|
||||||
|
$(eval $(call BuildPackage,openelp))
|
30
net/openelp/files/openelp.init
Executable file
30
net/openelp/files/openelp.init
Executable file
|
@ -0,0 +1,30 @@
|
||||||
|
#!/bin/sh /etc/rc.common
|
||||||
|
|
||||||
|
START=90
|
||||||
|
STOP=10
|
||||||
|
|
||||||
|
USE_PROCD=1
|
||||||
|
|
||||||
|
NAME="openelp"
|
||||||
|
PROG="/usr/bin/openelpd"
|
||||||
|
CONFFILE="/etc/ELProxy.conf"
|
||||||
|
|
||||||
|
extra_command "close" "Close the proxy to new connections"
|
||||||
|
extra_command "version" "Show version information"
|
||||||
|
|
||||||
|
start_service() {
|
||||||
|
procd_open_instance
|
||||||
|
procd_set_param command "$PROG"
|
||||||
|
procd_append_param command -F -q -S "$CONFFILE"
|
||||||
|
procd_set_param stderr 1
|
||||||
|
procd_set_param file "$CONFFILE"
|
||||||
|
procd_close_instance
|
||||||
|
}
|
||||||
|
|
||||||
|
close() {
|
||||||
|
procd_send_signal openelp '*' USR1
|
||||||
|
}
|
||||||
|
|
||||||
|
version() {
|
||||||
|
"$PROG" -V
|
||||||
|
}
|
7
net/openelp/test.sh
Normal file
7
net/openelp/test.sh
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
"openelp")
|
||||||
|
openelpd -V | grep "$2"
|
||||||
|
;;
|
||||||
|
esac
|
|
@ -6,15 +6,15 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=rclone
|
PKG_NAME:=rclone
|
||||||
PKG_VERSION:=1.62.2
|
PKG_VERSION:=1.63.0
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://codeload.github.com/rclone/rclone/tar.gz/v$(PKG_VERSION)?
|
PKG_SOURCE_URL:=https://codeload.github.com/rclone/rclone/tar.gz/v$(PKG_VERSION)?
|
||||||
PKG_HASH:=6741c81ae5b5cb48a04055f280f6e220ed4b35d26fe43f59510d0f7740044748
|
PKG_HASH:=755af528052f946e8d41a3e96e5dbf8f03ecfe398f9d0fdeb7ca1a59208a75db
|
||||||
|
|
||||||
PKG_LICENSE:=MIT
|
PKG_LICENSE:=MIT
|
||||||
PKG_LICENSE_FILE:=LICENSE
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
PKG_MAINTAINER:=Elon Huang <elonhhuang@gmail.com> \
|
PKG_MAINTAINER:=Elon Huang <elonhhuang@gmail.com> \
|
||||||
Tianling Shen <cnsztl@immortalwrt.org>
|
Tianling Shen <cnsztl@immortalwrt.org>
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=sing-box
|
PKG_NAME:=sing-box
|
||||||
PKG_VERSION:=1.2.6
|
PKG_VERSION:=1.3.0
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://codeload.github.com/SagerNet/sing-box/tar.gz/v$(PKG_VERSION)?
|
PKG_SOURCE_URL:=https://codeload.github.com/SagerNet/sing-box/tar.gz/v$(PKG_VERSION)?
|
||||||
PKG_HASH:=8f7adf55ed9afe6ec0dd8b04ed64dd3a6243578ee779f909dfb3778fa2dbda10
|
PKG_HASH:=e89ffdadf11d4b34d12b2c0659efea0f0786b2396ea4638c61a06e7772783ca5
|
||||||
|
|
||||||
PKG_LICENSE:=GPL-3.0-or-later
|
PKG_LICENSE:=GPL-3.0-or-later
|
||||||
PKG_LICENSE_FILES:=LICENSE
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
|
|
|
@ -6,12 +6,12 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=snort3
|
PKG_NAME:=snort3
|
||||||
PKG_VERSION:=3.1.63.0
|
PKG_VERSION:=3.1.64.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:=7ca415ac8098cd5ee001dc751966d4a6028961ca9cfc788447b7ea7048f53f85
|
PKG_HASH:=57be62557178526059ded86d0bebf8a57aa4a46db9390a48ae030b6e45f1dc61
|
||||||
|
|
||||||
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
|
||||||
|
|
|
@ -8,12 +8,12 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=strongswan
|
PKG_NAME:=strongswan
|
||||||
PKG_VERSION:=5.9.10
|
PKG_VERSION:=5.9.11
|
||||||
PKG_RELEASE:=5
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||||
PKG_SOURCE_URL:=https://download.strongswan.org/ https://download2.strongswan.org/
|
PKG_SOURCE_URL:=https://download.strongswan.org/ https://download2.strongswan.org/
|
||||||
PKG_HASH:=3b72789e243c9fa6f0a01ccaf4f83766eba96a5e5b1e071d36e997572cf34654
|
PKG_HASH:=ddf53f1f26ad26979d5f55e8da95bd389552f5de3682e35593f9a70b2584ed2d
|
||||||
PKG_LICENSE:=GPL-2.0-or-later
|
PKG_LICENSE:=GPL-2.0-or-later
|
||||||
PKG_MAINTAINER:=Philip Prindeville <philipp@redfish-solutions.com>, Noel Kuntze <noel.kuntze@thermi.consulting>
|
PKG_MAINTAINER:=Philip Prindeville <philipp@redfish-solutions.com>, Noel Kuntze <noel.kuntze@thermi.consulting>
|
||||||
PKG_CPE_ID:=cpe:/a:strongswan:strongswan
|
PKG_CPE_ID:=cpe:/a:strongswan:strongswan
|
||||||
|
|
|
@ -154,14 +154,16 @@ is_aead() {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
add_esp_proposal() {
|
config_esp_proposal() {
|
||||||
|
local conf="$1"
|
||||||
|
|
||||||
local encryption_algorithm
|
local encryption_algorithm
|
||||||
local hash_algorithm
|
local hash_algorithm
|
||||||
local dh_group
|
local dh_group
|
||||||
|
|
||||||
config_get encryption_algorithm "$1" encryption_algorithm
|
config_get encryption_algorithm "$conf" encryption_algorithm
|
||||||
config_get hash_algorithm "$1" hash_algorithm
|
config_get hash_algorithm "$conf" hash_algorithm
|
||||||
config_get dh_group "$1" dh_group
|
config_get dh_group "$conf" dh_group
|
||||||
|
|
||||||
# check for AEAD and clobber hash_algorithm if set
|
# check for AEAD and clobber hash_algorithm if set
|
||||||
if is_aead "$encryption_algorithm" && [ -n "$hash_algorithm" ]; then
|
if is_aead "$encryption_algorithm" && [ -n "$hash_algorithm" ]; then
|
||||||
|
@ -173,27 +175,29 @@ add_esp_proposal() {
|
||||||
crypto="${crypto:+${crypto},}${encryption_algorithm}${hash_algorithm:+-${hash_algorithm}}${dh_group:+-${dh_group}}"
|
crypto="${crypto:+${crypto},}${encryption_algorithm}${hash_algorithm:+-${hash_algorithm}}${dh_group:+-${dh_group}}"
|
||||||
}
|
}
|
||||||
|
|
||||||
parse_esp_proposal() {
|
iter_esp_proposal() {
|
||||||
local conf="$1"
|
local conf="$1"
|
||||||
local var="$2"
|
local var="$2"
|
||||||
|
|
||||||
local crypto=""
|
local crypto=""
|
||||||
|
|
||||||
config_list_foreach "$conf" crypto_proposal add_esp_proposal
|
config_list_foreach "$conf" crypto_proposal config_esp_proposal
|
||||||
|
|
||||||
export -n "$var=$crypto"
|
export -n "$var=$crypto"
|
||||||
}
|
}
|
||||||
|
|
||||||
add_ike_proposal() {
|
config_ike_proposal() {
|
||||||
|
local conf="$1"
|
||||||
|
|
||||||
local encryption_algorithm
|
local encryption_algorithm
|
||||||
local hash_algorithm
|
local hash_algorithm
|
||||||
local dh_group
|
local dh_group
|
||||||
local prf_algorithm
|
local prf_algorithm
|
||||||
|
|
||||||
config_get encryption_algorithm "$1" encryption_algorithm
|
config_get encryption_algorithm "$conf" encryption_algorithm
|
||||||
config_get hash_algorithm "$1" hash_algorithm
|
config_get hash_algorithm "$conf" hash_algorithm
|
||||||
config_get dh_group "$1" dh_group
|
config_get dh_group "$conf" dh_group
|
||||||
config_get prf_algorithm "$1" prf_algorithm
|
config_get prf_algorithm "$conf" prf_algorithm
|
||||||
|
|
||||||
# check for AEAD and clobber hash_algorithm if set
|
# check for AEAD and clobber hash_algorithm if set
|
||||||
if is_aead "$encryption_algorithm" && [ -n "$hash_algorithm" ]; then
|
if is_aead "$encryption_algorithm" && [ -n "$hash_algorithm" ]; then
|
||||||
|
@ -205,20 +209,20 @@ add_ike_proposal() {
|
||||||
crypto="${crypto:+${crypto},}${encryption_algorithm}${hash_algorithm:+-${hash_algorithm}}${prf_algorithm:+-${prf_algorithm}}${dh_group:+-${dh_group}}"
|
crypto="${crypto:+${crypto},}${encryption_algorithm}${hash_algorithm:+-${hash_algorithm}}${prf_algorithm:+-${prf_algorithm}}${dh_group:+-${dh_group}}"
|
||||||
}
|
}
|
||||||
|
|
||||||
parse_ike_proposal() {
|
iter_ike_proposal() {
|
||||||
local conf="$1"
|
local conf="$1"
|
||||||
local var="$2"
|
local var="$2"
|
||||||
|
|
||||||
local crypto=""
|
local crypto=""
|
||||||
|
|
||||||
config_list_foreach "$conf" crypto_proposal add_ike_proposal
|
config_list_foreach "$conf" crypto_proposal config_ike_proposal
|
||||||
|
|
||||||
export -n "$var=$crypto"
|
export -n "$var=$crypto"
|
||||||
}
|
}
|
||||||
|
|
||||||
config_child() {
|
config_child() {
|
||||||
# Generic ipsec conn section shared by tunnel and transport
|
# Generic ipsec conn section shared by tunnel and transport
|
||||||
local config_name="$1"
|
local conf="$1"
|
||||||
local mode="$2"
|
local mode="$2"
|
||||||
|
|
||||||
local hw_offload
|
local hw_offload
|
||||||
|
@ -241,29 +245,29 @@ config_child() {
|
||||||
local rekeypackets
|
local rekeypackets
|
||||||
local lifepackets
|
local lifepackets
|
||||||
|
|
||||||
config_get startaction "$1" startaction "route"
|
config_get startaction "$conf" startaction "route"
|
||||||
config_get local_nat "$1" local_nat ""
|
config_get local_nat "$conf" local_nat ""
|
||||||
config_get updown "$1" updown ""
|
config_get updown "$conf" updown ""
|
||||||
config_get firewall "$1" firewall ""
|
config_get firewall "$conf" firewall ""
|
||||||
config_get lifetime "$1" lifetime ""
|
config_get lifetime "$conf" lifetime ""
|
||||||
config_get dpdaction "$1" dpdaction "none"
|
config_get dpdaction "$conf" dpdaction "none"
|
||||||
config_get closeaction "$1" closeaction "none"
|
config_get closeaction "$conf" closeaction "none"
|
||||||
config_get if_id "$1" if_id ""
|
config_get if_id "$conf" if_id ""
|
||||||
config_get rekeytime "$1" rekeytime ""
|
config_get rekeytime "$conf" rekeytime ""
|
||||||
config_get_bool ipcomp "$1" ipcomp 0
|
config_get_bool ipcomp "$conf" ipcomp 0
|
||||||
config_get interface "$1" interface ""
|
config_get interface "$conf" interface ""
|
||||||
config_get hw_offload "$1" hw_offload ""
|
config_get hw_offload "$conf" hw_offload ""
|
||||||
config_get priority "$1" priority ""
|
config_get priority "$conf" priority ""
|
||||||
config_get rekeybytes "$1" rekeybytes ""
|
config_get rekeybytes "$conf" rekeybytes ""
|
||||||
config_get lifebytes "$1" lifebytes ""
|
config_get lifebytes "$conf" lifebytes ""
|
||||||
config_get rekeypackets "$1" rekeypackets ""
|
config_get rekeypackets "$conf" rekeypackets ""
|
||||||
config_get lifepackets "$1" lifepackets ""
|
config_get lifepackets "$conf" lifepackets ""
|
||||||
|
|
||||||
config_list_foreach "$1" local_subnet append_var local_subnet ","
|
config_list_foreach "$conf" local_subnet append_var local_subnet ","
|
||||||
config_list_foreach "$1" remote_subnet append_var remote_subnet ","
|
config_list_foreach "$conf" remote_subnet append_var remote_subnet ","
|
||||||
|
|
||||||
local esp_proposal
|
local esp_proposal
|
||||||
parse_esp_proposal "$1" esp_proposal
|
iter_esp_proposal "$conf" esp_proposal
|
||||||
|
|
||||||
# translate from ipsec to swanctl
|
# translate from ipsec to swanctl
|
||||||
case "$startaction" in
|
case "$startaction" in
|
||||||
|
@ -329,7 +333,7 @@ config_child() {
|
||||||
|
|
||||||
[ -n "$local_nat" ] && local_subnet="$local_nat"
|
[ -n "$local_nat" ] && local_subnet="$local_nat"
|
||||||
|
|
||||||
swanctl_xappend3 "$config_name {"
|
swanctl_xappend3 "$conf {"
|
||||||
|
|
||||||
[ -n "$local_subnet" ] && swanctl_xappend4 "local_ts = $local_subnet"
|
[ -n "$local_subnet" ] && swanctl_xappend4 "local_ts = $local_subnet"
|
||||||
[ -n "$remote_subnet" ] && swanctl_xappend4 "remote_ts = $remote_subnet"
|
[ -n "$remote_subnet" ] && swanctl_xappend4 "remote_ts = $remote_subnet"
|
||||||
|
@ -380,6 +384,7 @@ config_transport() {
|
||||||
|
|
||||||
config_pool() {
|
config_pool() {
|
||||||
local conf="$1"
|
local conf="$1"
|
||||||
|
|
||||||
local addrs
|
local addrs
|
||||||
local dns
|
local dns
|
||||||
local nbns
|
local nbns
|
||||||
|
@ -390,15 +395,15 @@ config_pool() {
|
||||||
local split_include
|
local split_include
|
||||||
local split_exclude
|
local split_exclude
|
||||||
|
|
||||||
config_get addrs "$1" addrs
|
config_get addrs "$conf" addrs
|
||||||
config_list_foreach "$1" dns append_var dns ","
|
config_list_foreach "$conf" dns append_var dns ","
|
||||||
config_list_foreach "$1" nbns append_var nbns ","
|
config_list_foreach "$conf" nbns append_var nbns ","
|
||||||
config_list_foreach "$1" dhcp append_var dhcp ","
|
config_list_foreach "$conf" dhcp append_var dhcp ","
|
||||||
config_list_foreach "$1" netmask append_var netmask ","
|
config_list_foreach "$conf" netmask append_var netmask ","
|
||||||
config_list_foreach "$1" server append_var server ","
|
config_list_foreach "$conf" server append_var server ","
|
||||||
config_list_foreach "$1" subnet append_var subnet ","
|
config_list_foreach "$conf" subnet append_var subnet ","
|
||||||
config_list_foreach "$1" split_include append_var split_include ","
|
config_list_foreach "$conf" split_include append_var split_include ","
|
||||||
config_list_foreach "$1" split_exclude append_var split_exclude ","
|
config_list_foreach "$conf" split_exclude append_var split_exclude ","
|
||||||
|
|
||||||
swanctl_xappend1 "$conf {"
|
swanctl_xappend1 "$conf {"
|
||||||
[ -n "$addrs" ] && swanctl_xappend2 "addrs = $addrs"
|
[ -n "$addrs" ] && swanctl_xappend2 "addrs = $addrs"
|
||||||
|
@ -413,8 +418,8 @@ config_pool() {
|
||||||
swanctl_xappend1 "}"
|
swanctl_xappend1 "}"
|
||||||
}
|
}
|
||||||
|
|
||||||
config_connection() {
|
config_remote() {
|
||||||
local config_name="$1"
|
local conf="$1"
|
||||||
|
|
||||||
local enabled
|
local enabled
|
||||||
local gateway
|
local gateway
|
||||||
|
@ -436,30 +441,30 @@ config_connection() {
|
||||||
local remote_ca_certs
|
local remote_ca_certs
|
||||||
local pools
|
local pools
|
||||||
|
|
||||||
config_get_bool enabled "$1" enabled 0
|
config_get_bool enabled "$conf" enabled 0
|
||||||
[ $enabled -eq 0 ] && return
|
[ $enabled -eq 0 ] && return
|
||||||
|
|
||||||
config_get gateway "$1" gateway
|
config_get gateway "$conf" gateway
|
||||||
config_get pre_shared_key "$1" pre_shared_key
|
config_get pre_shared_key "$conf" pre_shared_key
|
||||||
config_get auth_method "$1" authentication_method
|
config_get auth_method "$conf" authentication_method
|
||||||
config_get local_identifier "$1" local_identifier ""
|
config_get local_identifier "$conf" local_identifier ""
|
||||||
config_get remote_identifier "$1" remote_identifier ""
|
config_get remote_identifier "$conf" remote_identifier ""
|
||||||
config_get local_ip "$1" local_ip "%any"
|
config_get local_ip "$conf" local_ip "%any"
|
||||||
config_get keyingtries "$1" keyingtries "3"
|
config_get keyingtries "$conf" keyingtries "3"
|
||||||
config_get dpddelay "$1" dpddelay "30s"
|
config_get dpddelay "$conf" dpddelay "30s"
|
||||||
config_get inactivity "$1" inactivity
|
config_get inactivity "$conf" inactivity
|
||||||
config_get keyexchange "$1" keyexchange "ikev2"
|
config_get keyexchange "$conf" keyexchange "ikev2"
|
||||||
config_get fragmentation "$1" fragmentation "yes"
|
config_get fragmentation "$conf" fragmentation "yes"
|
||||||
config_get_bool mobike "$1" mobike 1
|
config_get_bool mobike "$conf" mobike 1
|
||||||
config_get local_cert "$1" local_cert ""
|
config_get local_cert "$conf" local_cert ""
|
||||||
config_get local_key "$1" local_key ""
|
config_get local_key "$conf" local_key ""
|
||||||
config_get ca_cert "$1" ca_cert ""
|
config_get ca_cert "$conf" ca_cert ""
|
||||||
config_get rekeytime "$1" rekeytime
|
config_get rekeytime "$conf" rekeytime
|
||||||
config_get overtime "$1" overtime
|
config_get overtime "$conf" overtime
|
||||||
|
|
||||||
config_list_foreach "$1" local_sourceip append_var local_sourceip ","
|
config_list_foreach "$conf" local_sourceip append_var local_sourceip ","
|
||||||
config_list_foreach "$1" remote_ca_certs append_var remote_ca_certs ","
|
config_list_foreach "$conf" remote_ca_certs append_var remote_ca_certs ","
|
||||||
config_list_foreach "$1" pools append_var pools ","
|
config_list_foreach "$conf" pools append_var pools ","
|
||||||
|
|
||||||
case "$fragmentation" in
|
case "$fragmentation" in
|
||||||
0)
|
0)
|
||||||
|
@ -485,7 +490,7 @@ config_connection() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local ike_proposal
|
local ike_proposal
|
||||||
parse_ike_proposal "$1" ike_proposal
|
iter_ike_proposal "$conf" ike_proposal
|
||||||
|
|
||||||
[ -n "$firewall" ] && fatal "Firewall not supported"
|
[ -n "$firewall" ] && fatal "Firewall not supported"
|
||||||
|
|
||||||
|
@ -505,9 +510,9 @@ config_connection() {
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
swanctl_xappend0 "# config for $config_name"
|
swanctl_xappend0 "# config for $conf"
|
||||||
swanctl_xappend0 "connections {"
|
swanctl_xappend0 "connections {"
|
||||||
swanctl_xappend1 "$config_name {"
|
swanctl_xappend1 "$conf {"
|
||||||
swanctl_xappend2 "local_addrs = $local_ip"
|
swanctl_xappend2 "local_addrs = $local_ip"
|
||||||
swanctl_xappend2 "remote_addrs = $remote_gateway"
|
swanctl_xappend2 "remote_addrs = $remote_gateway"
|
||||||
|
|
||||||
|
@ -531,9 +536,9 @@ config_connection() {
|
||||||
|
|
||||||
swanctl_xappend2 "children {"
|
swanctl_xappend2 "children {"
|
||||||
|
|
||||||
config_list_foreach "$1" tunnel config_tunnel
|
config_list_foreach "$conf" tunnel config_tunnel
|
||||||
|
|
||||||
config_list_foreach "$1" transport config_transport
|
config_list_foreach "$conf" transport config_transport
|
||||||
|
|
||||||
swanctl_xappend2 "}"
|
swanctl_xappend2 "}"
|
||||||
|
|
||||||
|
@ -573,7 +578,7 @@ config_connection() {
|
||||||
|
|
||||||
if [ -n "$ca_cert" ]; then
|
if [ -n "$ca_cert" ]; then
|
||||||
swanctl_xappend0 "authorities {"
|
swanctl_xappend0 "authorities {"
|
||||||
swanctl_xappend1 "$config_name {"
|
swanctl_xappend1 "$conf {"
|
||||||
swanctl_xappend2 "cacert = $ca_cert"
|
swanctl_xappend2 "cacert = $ca_cert"
|
||||||
swanctl_xappend1 "}"
|
swanctl_xappend1 "}"
|
||||||
swanctl_xappend0 "}"
|
swanctl_xappend0 "}"
|
||||||
|
@ -583,7 +588,7 @@ config_connection() {
|
||||||
swanctl_xappend0 ""
|
swanctl_xappend0 ""
|
||||||
|
|
||||||
swanctl_xappend0 "secrets {"
|
swanctl_xappend0 "secrets {"
|
||||||
swanctl_xappend1 "ike-$config_name {"
|
swanctl_xappend1 "ike-$conf {"
|
||||||
swanctl_xappend2 "secret = $pre_shared_key"
|
swanctl_xappend2 "secret = $pre_shared_key"
|
||||||
if [ -n "$local_identifier" ]; then
|
if [ -n "$local_identifier" ]; then
|
||||||
swanctl_xappend2 "id1 = $local_identifier"
|
swanctl_xappend2 "id1 = $local_identifier"
|
||||||
|
@ -598,7 +603,7 @@ config_connection() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
swanctl_xappend0 "pools {"
|
swanctl_xappend0 "pools {"
|
||||||
config_list_foreach "$1" pools config_pool
|
config_list_foreach "$conf" pools config_pool
|
||||||
swanctl_xappend0 "}"
|
swanctl_xappend0 "}"
|
||||||
|
|
||||||
swanctl_xappend0 ""
|
swanctl_xappend0 ""
|
||||||
|
@ -609,18 +614,20 @@ do_preamble() {
|
||||||
}
|
}
|
||||||
|
|
||||||
config_ipsec() {
|
config_ipsec() {
|
||||||
|
local conf="$1"
|
||||||
|
|
||||||
local rtinstall_enabled
|
local rtinstall_enabled
|
||||||
local routing_table
|
local routing_table
|
||||||
local routing_table_id
|
local routing_table_id
|
||||||
local interface
|
local interface
|
||||||
local interface_list
|
local interface_list
|
||||||
|
|
||||||
config_get debug "$1" debug 0
|
config_get debug "$conf" debug 0
|
||||||
config_get_bool rtinstall_enabled "$1" rtinstall_enabled 1
|
config_get_bool rtinstall_enabled "$conf" rtinstall_enabled 1
|
||||||
[ $rtinstall_enabled -eq 1 ] && install_routes=yes || install_routes=no
|
[ $rtinstall_enabled -eq 1 ] && install_routes=yes || install_routes=no
|
||||||
|
|
||||||
# prepare extra charon config option ignore_routing_tables
|
# prepare extra charon config option ignore_routing_tables
|
||||||
for routing_table in $(config_get "$1" "ignore_routing_tables"); do
|
for routing_table in $(config_get "$conf" "ignore_routing_tables"); do
|
||||||
if [ "$routing_table" -ge 0 ] 2>/dev/null; then
|
if [ "$routing_table" -ge 0 ] 2>/dev/null; then
|
||||||
routing_table_id=$routing_table
|
routing_table_id=$routing_table
|
||||||
else
|
else
|
||||||
|
@ -630,7 +637,7 @@ config_ipsec() {
|
||||||
[ -n "$routing_table_id" ] && append routing_tables_ignored "$routing_table_id"
|
[ -n "$routing_table_id" ] && append routing_tables_ignored "$routing_table_id"
|
||||||
done
|
done
|
||||||
|
|
||||||
config_list_foreach "$1" interface append_var interface_list
|
config_list_foreach "$conf" interface append_var interface_list
|
||||||
|
|
||||||
if [ -z "$interface_list" ]; then
|
if [ -z "$interface_list" ]; then
|
||||||
WAIT_FOR_INTF=0
|
WAIT_FOR_INTF=0
|
||||||
|
@ -673,7 +680,7 @@ prepare_env() {
|
||||||
|
|
||||||
config_load ipsec
|
config_load ipsec
|
||||||
config_foreach config_ipsec ipsec
|
config_foreach config_ipsec ipsec
|
||||||
config_foreach config_connection remote
|
config_foreach config_remote remote
|
||||||
|
|
||||||
do_postamble
|
do_postamble
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,22 +12,22 @@ PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
GEOIP_VER:=202306010100
|
GEOIP_VER:=202306150049
|
||||||
GEOIP_FILE:=geoip.dat.$(GEOIP_VER)
|
GEOIP_FILE:=geoip.dat.$(GEOIP_VER)
|
||||||
define Download/geoip
|
define Download/geoip
|
||||||
URL:=https://github.com/v2fly/geoip/releases/download/$(GEOIP_VER)/
|
URL:=https://github.com/v2fly/geoip/releases/download/$(GEOIP_VER)/
|
||||||
URL_FILE:=geoip.dat
|
URL_FILE:=geoip.dat
|
||||||
FILE:=$(GEOIP_FILE)
|
FILE:=$(GEOIP_FILE)
|
||||||
HASH:=033864e77e40f8b9c1a5254bf85881515c51340d3d11e142a4e01594eb151914
|
HASH:=811085edc67057690c783e735182db32e5a4b446ee5f6d70ef9e12960ce910da
|
||||||
endef
|
endef
|
||||||
|
|
||||||
GEOSITE_VER:=20230601044045
|
GEOSITE_VER:=20230620033122
|
||||||
GEOSITE_FILE:=dlc.dat.$(GEOSITE_VER)
|
GEOSITE_FILE:=dlc.dat.$(GEOSITE_VER)
|
||||||
define Download/geosite
|
define Download/geosite
|
||||||
URL:=https://github.com/v2fly/domain-list-community/releases/download/$(GEOSITE_VER)/
|
URL:=https://github.com/v2fly/domain-list-community/releases/download/$(GEOSITE_VER)/
|
||||||
URL_FILE:=dlc.dat
|
URL_FILE:=dlc.dat
|
||||||
FILE:=$(GEOSITE_FILE)
|
FILE:=$(GEOSITE_FILE)
|
||||||
HASH:=d20bcd23c185dd3102a2106ad5370bc615cfb33d9a818daaadefe7a2068fb9ef
|
HASH:=caecb282d72bf6bfc7977257cadd436e59cb7eea8f6aabb0eae656ae4bf57d76
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/v2ray-geodata/template
|
define Package/v2ray-geodata/template
|
||||||
|
|
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=vsftpd
|
PKG_NAME:=vsftpd
|
||||||
PKG_VERSION:=3.0.5
|
PKG_VERSION:=3.0.5
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://security.appspot.com/downloads/
|
PKG_SOURCE_URL:=https://security.appspot.com/downloads/
|
||||||
|
@ -52,6 +52,7 @@ Package/vsftpd-tls/conffiles=$(Package/vsftpd/conffiles)
|
||||||
|
|
||||||
ifneq ($(CONFIG_USE_MUSL),)
|
ifneq ($(CONFIG_USE_MUSL),)
|
||||||
NLSSTRING:=-lcrypt
|
NLSSTRING:=-lcrypt
|
||||||
|
TARGET_CFLAGS += -D_LARGEFILE64_SOURCE
|
||||||
else ifneq ($(CONFIG_USE_GLIBC),)
|
else ifneq ($(CONFIG_USE_GLIBC),)
|
||||||
NLSSTRING:=-lcrypt
|
NLSSTRING:=-lcrypt
|
||||||
else
|
else
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue