lua-openssl: update to version 0.8.2-1
authorMaciej Krüger <mkg20001@gmail.com>
Wed, 25 May 2022 14:56:59 +0000 (16:56 +0200)
committerRosen Penev <rosenp@gmail.com>
Fri, 27 May 2022 03:39:30 +0000 (20:39 -0700)
Signed-off-by: Maciej Krüger <mkg20001@gmail.com>
lang/lua-openssl/Makefile
lang/lua-openssl/patches/010-cmake.patch [deleted file]
lang/lua-openssl/patches/010-no-luajit.patch [new file with mode: 0644]
lang/lua-openssl/patches/020-no-luajit.patch [deleted file]

index 6c2e1025830eb274f0c4be7585a169fb8d0f3b65..5257fb757c314cab677c13bca04ed535f18077e2 100644 (file)
@@ -12,8 +12,8 @@ PKG_RELEASE:=$(AUTORELEASE)
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL:=https://github.com/zhaozg/lua-openssl.git
-PKG_SOURCE_VERSION:=0.8.0-6
-PKG_MIRROR_HASH:=d3b80bcde0463b3106cb8cdd1b255fa894ac5af02640c9f3c98ae706d3659267
+PKG_SOURCE_VERSION:=0.8.2-1
+PKG_MIRROR_HASH:=3a7c8fcd76389970671bc8d07fe7a06225e537850b1ad209dda436fb3b5ea0cb
 
 PKG_MAINTAINER:=Amnon Paz <pazamnon@gmail.com>
 PKG_LICENSE:=MIT
diff --git a/lang/lua-openssl/patches/010-cmake.patch b/lang/lua-openssl/patches/010-cmake.patch
deleted file mode 100644 (file)
index f9ff532..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-From a88d7f4348e54abba47a96f9ec4ffe7c60ba9400 Mon Sep 17 00:00:00 2001
-From: O <codetypes@gmail.com>
-Date: Fri, 30 Jul 2021 17:17:45 +0800
-Subject: [PATCH] build so file on mac
-
----
- CMakeLists.txt | 18 +++++++++++++-----
- 1 file changed, 13 insertions(+), 5 deletions(-)
-
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -20,7 +20,7 @@ find_package(Threads REQUIRED)
- add_definitions(-DPTHREADS)
- if(BUILD_SHARED_LUA_OPENSSL)
--    set(LUA_OPENSSL_LIBTYPE SHARED)
-+    set(LUA_OPENSSL_LIBTYPE MODULE)
-     if(WIN32)
-         add_definitions(-DLUA_BUILD_AS_DLL)
-         set(EXTRA_LIBS "ws2_32.lib" "crypt32.lib")
-@@ -45,7 +45,7 @@ add_library(lua-openssl ${LUA_OPENSSL_LI
-     src/dsa.c
-     src/ec.c
-     src/engine.c
--    src/mac.c
-+    src/hmac.c
-     src/lbn.c
-     src/lhash.c
-     src/misc.c
-@@ -73,7 +73,7 @@ add_library(lua-openssl ${LUA_OPENSSL_LI
- target_include_directories(lua-openssl PUBLIC
-     ${OPENSSL_INCLUDE_DIR}
--    ${LUA_INCLUDE_DIRS}
-+    ${LUA_INCLUDE_DIR}
-     deps
-     deps/lua-compat/c-api
-     deps/auxiliar
-@@ -81,17 +81,25 @@ target_include_directories(lua-openssl P
- target_link_libraries(lua-openssl PUBLIC
-     ${OPENSSL_LIBRARIES}
--    ${LUA_LIBRARIES}
-     ${EXTRA_LIBS}
-     Threads::Threads
- )
-+if(WIN32)
-+    target_link_libraries(lua-openssl PUBLIC
-+        ${LUA_LIBRARIES}
-+    )
-+endif()
-+
-+if(APPLE)
-+    target_link_options(lua-openssl PUBLIC -bundle -undefined dynamic_lookup)
-+endif()
-+
- target_compile_options(lua-openssl PRIVATE -DLUA_LIB)
- set_target_properties(lua-openssl PROPERTIES
-     PREFIX ""
-     OUTPUT_NAME "openssl"
--    VERSION 0.8.0.0 SOVERSION 0
- )
- install(TARGETS lua-openssl
diff --git a/lang/lua-openssl/patches/010-no-luajit.patch b/lang/lua-openssl/patches/010-no-luajit.patch
new file mode 100644 (file)
index 0000000..502e2ca
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -8,7 +8,6 @@ option(BUILD_SHARED_LUA_OPENSSL "Shared
+ include(GNUInstallDirs)
+-find_package(LuaJIT)
+ if(NOT LUAJIT_FOUND)
+     find_package(Lua REQUIRED)
+ endif()
diff --git a/lang/lua-openssl/patches/020-no-luajit.patch b/lang/lua-openssl/patches/020-no-luajit.patch
deleted file mode 100644 (file)
index 502e2ca..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -8,7 +8,6 @@ option(BUILD_SHARED_LUA_OPENSSL "Shared
- include(GNUInstallDirs)
--find_package(LuaJIT)
- if(NOT LUAJIT_FOUND)
-     find_package(Lua REQUIRED)
- endif()