diff --git a/package/Config.in b/package/Config.in index a82e369aff..33568a1b16 100644 --- a/package/Config.in +++ b/package/Config.in @@ -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" diff --git a/package/luaunbound/Config.in b/package/luaunbound/Config.in new file mode 100644 index 0000000000..cc4e06818e --- /dev/null +++ b/package/luaunbound/Config.in @@ -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 diff --git a/package/luaunbound/luaunbound.hash b/package/luaunbound/luaunbound.hash new file mode 100644 index 0000000000..dbf1c602ea --- /dev/null +++ b/package/luaunbound/luaunbound.hash @@ -0,0 +1,3 @@ +# computed by luarocks/buildroot +sha256 99f4fb8695327f06d37013bfe09cad5103158d803941bbc3caed9328ecafd5bf luaunbound-1.1.0-1.src.rock +sha256 b02daf9bb40ed6504df2bcc7b51d78abea4cc3fe7a9819bcdc01d122dd3ac5f0 luaunbound-1.1.0/LICENSE diff --git a/package/luaunbound/luaunbound.mk b/package/luaunbound/luaunbound.mk new file mode 100644 index 0000000000..d1523699ed --- /dev/null +++ b/package/luaunbound/luaunbound.mk @@ -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)) diff --git a/support/testing/tests/package/test_luaunbound.py b/support/testing/tests/package/test_luaunbound.py new file mode 100644 index 0000000000..9446f946c1 --- /dev/null +++ b/support/testing/tests/package/test_luaunbound.py @@ -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")