git: 133bd2e5eaf1 - main - security/lua-bcrypt: 2.1-4=>2.3-1
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 29 Nov 2022 23:55:56 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=133bd2e5eaf1c3800f4bf95bac6af68f4181fec2
commit 133bd2e5eaf1c3800f4bf95bac6af68f4181fec2
Author: Manuel Wiesinger <mdw@FreeBSD.org>
AuthorDate: 2022-11-29 23:53:37 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2022-11-29 23:55:37 +0000
security/lua-bcrypt: 2.1-4=>2.3-1
- uses luarocks instead of gmake
- supports pre-c99 compilers
PR: 268067
Tested by: bofh
Approved by: mdw (Submitter is MAINTAINER)
Relnotes: https://github.com/mikejsavage/lua-bcrypt/releases/tag/v2.3-1
---
security/lua-bcrypt/Makefile | 10 +++++++---
security/lua-bcrypt/distinfo | 6 +++---
security/lua-bcrypt/files/patch-Makefile | 11 +++++++++++
3 files changed, 21 insertions(+), 6 deletions(-)
diff --git a/security/lua-bcrypt/Makefile b/security/lua-bcrypt/Makefile
index d04867d46c1b..d72feb925337 100644
--- a/security/lua-bcrypt/Makefile
+++ b/security/lua-bcrypt/Makefile
@@ -1,7 +1,6 @@
PORTNAME= bcrypt
DISTVERSIONPREFIX= v
-DISTVERSION= 2.1-4
-PORTREVISION= 2
+DISTVERSION= 2.3-1
CATEGORIES= security
PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
@@ -10,15 +9,20 @@ COMMENT= Library providing OpenBSD's bcrypt hash function for Lua
WWW= https://github.com/mikejsavage/lua-bcrypt/
LICENSE= ISCL
+LICENSE_FILE= ${WRKSRC}/LICENSE
-USES= compiler:c11 gmake lua:module
+BUILD_DEPENDS= luarocks${LUA_VER_STR}:devel/lua-luarocks
+USES= lua:module
USE_GITHUB= yes
GH_ACCOUNT= mikejsavage
GH_PROJECT= lua-bcrypt
PLIST_FILES= ${LUA_MODLIBDIR}/bcrypt.so
+post-patch:
+ @${REINPLACE_CMD} -e 's|luarocks|luarocks${LUA_VER_STR}|g' ${WRKSRC}/Makefile
+
do-install:
@${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR}
${INSTALL_LIB} ${WRKSRC}/bcrypt.so ${STAGEDIR}${LUA_MODLIBDIR}
diff --git a/security/lua-bcrypt/distinfo b/security/lua-bcrypt/distinfo
index 0e490e351a4d..5b4bfe9a03f5 100644
--- a/security/lua-bcrypt/distinfo
+++ b/security/lua-bcrypt/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1561014297
-SHA256 (mikejsavage-lua-bcrypt-v2.1-4_GH0.tar.gz) = 60565f2d83f7b67b7d4c8a975b96d29873ce00b48efe10226c4bf008974c8373
-SIZE (mikejsavage-lua-bcrypt-v2.1-4_GH0.tar.gz) = 37985
+TIMESTAMP = 1669752623
+SHA256 (mikejsavage-lua-bcrypt-v2.3-1_GH0.tar.gz) = 09a2086be58c0a422aa3f28de82c3bc4e2c7f641b8b7382195e38abc75e71b37
+SIZE (mikejsavage-lua-bcrypt-v2.3-1_GH0.tar.gz) = 17767
diff --git a/security/lua-bcrypt/files/patch-Makefile b/security/lua-bcrypt/files/patch-Makefile
new file mode 100644
index 000000000000..15d7eda7051f
--- /dev/null
+++ b/security/lua-bcrypt/files/patch-Makefile
@@ -0,0 +1,11 @@
+--- Makefile.orig 2022-11-29 22:22:33 UTC
++++ Makefile
+@@ -1,5 +1,7 @@
++CFLAGS+=-fPIC -Wall -Wextra
++
+ all:
+- luarocks make CFLAGS="-O2 -fPIC -Wall -Wextra" --local
++ luarocks make --pack-binary-rock CFLAGS="${CFLAGS}"
+
+ debug:
+ luarocks make CFLAGS="-fPIC -g -Wall -Wextra" --local