From 48c8cfebf052b2cceea481aee0311d6b3ff8cd85 Mon Sep 17 00:00:00 2001 From: Luca Matei Pintilie Date: Sat, 24 Feb 2024 22:06:20 +0100 Subject: [PATCH 1/2] New package: lua-unbound-1.0.0 --- srcpkgs/lua51-unbound | 1 + srcpkgs/lua52-unbound | 1 + srcpkgs/lua53-unbound | 1 + srcpkgs/lua54-unbound/template | 83 ++++++++++++++++++++++++++++++++++ 4 files changed, 86 insertions(+) create mode 120000 srcpkgs/lua51-unbound create mode 120000 srcpkgs/lua52-unbound create mode 120000 srcpkgs/lua53-unbound create mode 100644 srcpkgs/lua54-unbound/template diff --git a/srcpkgs/lua51-unbound b/srcpkgs/lua51-unbound new file mode 120000 index 00000000000000..e7bb715780e25b --- /dev/null +++ b/srcpkgs/lua51-unbound @@ -0,0 +1 @@ +lua54-unbound \ No newline at end of file diff --git a/srcpkgs/lua52-unbound b/srcpkgs/lua52-unbound new file mode 120000 index 00000000000000..e7bb715780e25b --- /dev/null +++ b/srcpkgs/lua52-unbound @@ -0,0 +1 @@ +lua54-unbound \ No newline at end of file diff --git a/srcpkgs/lua53-unbound b/srcpkgs/lua53-unbound new file mode 120000 index 00000000000000..e7bb715780e25b --- /dev/null +++ b/srcpkgs/lua53-unbound @@ -0,0 +1 @@ +lua54-unbound \ No newline at end of file diff --git a/srcpkgs/lua54-unbound/template b/srcpkgs/lua54-unbound/template new file mode 100644 index 00000000000000..4b6749be7307d1 --- /dev/null +++ b/srcpkgs/lua54-unbound/template @@ -0,0 +1,83 @@ +# Template file for 'lua54-unbound' +pkgname=lua54-unbound +version=1.0.0 +revision=1 +_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4" +hostmakedepends="pkg-config" +makedepends="unbound-devel" +for _lua_version in $_lua_versions +do + hostmakedepends+=" ${_lua_version/./}" + makedepends+=" ${_lua_version/./}-devel" +done +depends="lua54" +_desc="Binding to libunbound for Lua" +short_desc="${_desc} (5.4.x)" +maintainer="Luca Matei Pintilie " +license="MIT" +homepage="https://www.zash.se/luaunbound.html" +#changelog="" +distfiles="https://code.zash.se/dl/luaunbound/luaunbound-${version}.tar.gz" +checksum=6de45aa64c21cf0ecbccb734b7c1eda8873a6135bbe142fbf353f772a90750d3 + +post_extract() { + mkdir -p lua51 + mv * lua51 || true + cp -a lua51 lua52 + cp -a lua51 lua53 + cp -a lua51 lua54 +} + +do_build() { + for _lua_version in $_lua_versions + do + cd "${wrksrc}/${_lua_version/./}" + make \ + LD="$CC" \ + CC="$CC" \ + LUA_PC="${_lua_version}" \ + ${makejobs} + done +} + +do_install() { + cd ${wrksrc}/lua51 + vinstall lunbound.so 755 usr/lib/lua/5.1/ + + cd ${wrksrc}/lua52 + vinstall lunbound.so 755 usr/lib/lua/5.2/ + + cd ${wrksrc}/lua53 + vinstall lunbound.so 755 usr/lib/lua/5.3/ + + cd ${wrksrc}/lua54 + vinstall lunbound.so 755 usr/lib/lua/5.4/ + vlicense LICENSE +} + +lua51-unbound_package() { + depends="lua51" + short_desc="${_desc} (5.1.x)" + pkg_install() { + vmove usr/lib/lua/5.1 + vlicense ${wrksrc}/lua51/LICENSE + } +} + +lua52-unbound_package() { + depends="lua52" + short_desc="${_desc} (5.2.x)" + pkg_install() { + vmove usr/lib/lua/5.2 + vlicense ${wrksrc}/lua52/LICENSE + } +} + +lua53-unbound_package() { + depends="lua53" + short_desc="${_desc} (5.3.x)" + pkg_install() { + vmove usr/lib/lua/5.3 + vlicense ${wrksrc}/lua53/LICENSE + } +} From e4fc91625aa3b1740cf03c11b724593263624587 Mon Sep 17 00:00:00 2001 From: Luca Matei Pintilie Date: Sat, 24 Feb 2024 22:09:27 +0100 Subject: [PATCH 2/2] prosody: add lua51-unbound as a dependency --- srcpkgs/prosody/template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srcpkgs/prosody/template b/srcpkgs/prosody/template index aa59bebadba329..36a2dc2a616221 100644 --- a/srcpkgs/prosody/template +++ b/srcpkgs/prosody/template @@ -1,7 +1,7 @@ # Template file for 'prosody' pkgname=prosody version=0.12.1 -revision=4 +revision=5 build_style=configure configure_args=" --ostype=linux @@ -21,7 +21,7 @@ conf_files=" make_dirs="/var/lib/prosody 0755 prosody prosody" makedepends="lua51-devel openssl-devel libidn-devel icu-devel" depends="lua51-luasocket lua51-luafilesystem lua51-luaexpat lua51-luasec - lua51-BitOp" + lua51-BitOp lua51-unbound" short_desc="Lightweight and extensible Jabber/XMPP server written in Lua" maintainer="Orphaned " license="MIT"