package/luaunbound: new package

a dependency for prosody

Signed-off-by: Francois Perrad <francois.perrad.86@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Francois Perrad
2026-10-05 15:40:55 +02:00
committed by Thomas Petazzoni
parent 237f432e3a
commit caf363495a
5 changed files with 48 additions and 0 deletions

View File

@@ -790,6 +790,7 @@ menu "Lua libraries/modules"
source "package/luasocket/Config.in"
source "package/luasql-sqlite3/Config.in"
source "package/luasyslog/Config.in"
source "package/luaunbound/Config.in"
source "package/lutok/Config.in"
source "package/luv/Config.in"
source "package/luvi/Config.in"

View File

@@ -0,0 +1,7 @@
config BR2_PACKAGE_LUAUNBOUND
bool "luaunbound"
select BR2_PACKAGE_UNBOUND
help
A binding to libunbound.
https://www.zash.se/luaunbound.html

View File

@@ -0,0 +1,3 @@
# computed by luarocks/buildroot
sha256 99f4fb8695327f06d37013bfe09cad5103158d803941bbc3caed9328ecafd5bf luaunbound-1.1.0-1.src.rock
sha256 b02daf9bb40ed6504df2bcc7b51d78abea4cc3fe7a9819bcdc01d122dd3ac5f0 luaunbound-1.1.0/LICENSE

View File

@@ -0,0 +1,12 @@
################################################################################
#
# luaunbound
#
################################################################################
LUAUNBOUND_VERSION = 1.1.0-1
LUAUNBOUND_LICENSE = MIT
LUAUNBOUND_LICENSE_FILES = $(LUAUNBOUND_SUBDIR)/LICENSE
LUAUNBOUND_DEPENDENCIES = unbound
$(eval $(luarocks-package))

View File

@@ -0,0 +1,25 @@
from tests.package.test_lua import TestLuaBase
class TestLuaLuaunbound(TestLuaBase):
config = TestLuaBase.config + \
"""
BR2_PACKAGE_LUA=y
BR2_PACKAGE_LUAUNBOUND=y
"""
def test_run(self):
self.login()
self.module_test("lunbound")
class TestLuajitLuaunbound(TestLuaBase):
config = TestLuaBase.config + \
"""
BR2_PACKAGE_LUAJIT=y
BR2_PACKAGE_LUAUNBOUND=y
"""
def test_run(self):
self.login()
self.module_test("lunbound")