luasocket: update to 3.1.0
authorW. Michael Petullo <mike@flyn.org>
Tue, 20 Dec 2022 02:08:38 +0000 (20:08 -0600)
committerRosen Penev <rosenp@gmail.com>
Fri, 23 Dec 2022 00:32:17 +0000 (16:32 -0800)
Signed-off-by: W. Michael Petullo <mike@flyn.org>
lang/luasocket/Makefile
lang/luasocket/patches/0001-Add-interface-support.patch

index c0b07e3cb5fd78c8da2825d70fb517e9a8dea30e..7125f78c1b7cc7fbbb7bc8ab8946e5ac9efc1c6a 100644 (file)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=luasocket
-PKG_VERSION:=3.0.0
-PKG_RELEASE:=$(AUTORELEASE)
+PKG_VERSION:=3.1.0
+PKG_RELEASE:=1
 
 PKG_SOURCE:=v$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://github.com/lunarmodules/luasocket/archive/refs/tags
-PKG_HASH:=04d98e40edcee7c7c5f83f0e8ba5503d14b56280e20daceee9e34ed7cf8f1b15
+PKG_HASH:=bf033aeb9e62bcaa8d007df68c119c966418e8c9ef7e4f2d7e96bddeca9cca6e
 
 PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
 PKG_LICENSE:=MIT
@@ -76,13 +76,13 @@ define Package/luasocket/install
        $(INSTALL_DIR) $(1)/usr/lib/lua
        $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/{ltn12,mime,socket}.lua $(1)/usr/lib/lua
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mime-1.0.3.so $(1)/usr/lib/lua
-       $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/socket-3.0-rc1.so $(1)/usr/lib/lua
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/socket-3.0.0.so $(1)/usr/lib/lua
        $(INSTALL_DIR) $(1)/usr/lib/lua/mime
        ln -sf ../mime-1.0.3.so $(1)/usr/lib/lua/mime/core.so
        $(INSTALL_DIR) $(1)/usr/lib/lua/socket
        $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/{ftp,http,smtp,tp,url,headers}.lua $(1)/usr/lib/lua/socket
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/unix.so $(1)/usr/lib/lua/socket
-       ln -sf ../socket-3.0-rc1.so $(1)/usr/lib/lua/socket/core.so
+       ln -sf ../socket-3.0.0.so $(1)/usr/lib/lua/socket/core.so
 endef
 
 
index 43c74e9f5f34ebdfcc4d3d7c446f41301303e4ac..d7bfe2bb830fbfb48c0cfc76d24c4837fbe1ecbd 100644 (file)
@@ -213,7 +213,7 @@ Subject: [PATCH] Add interface resolving
  /*=========================================================================*\
  * Internal functions prototypes
  \*=========================================================================*/
-@@ -389,6 +392,12 @@ static int opt_ip6_setmembership(lua_Sta
+@@ -414,6 +417,12 @@ static int opt_ip6_setmembership(lua_Sta
      if (!lua_isnil(L, -1)) {
          if (lua_isnumber(L, -1)) {
              val.ipv6mr_interface = (unsigned int) lua_tonumber(L, -1);