FreeBSD Bugzilla – Attachment 238400 Details for
Bug 268039
[NEW PORT] security/lua-argon2: Lua C binding for the Argon2 password hashing function
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
lua-argon2.diff
0002-Lua-C-binding-for-the-Argon2-password-hashing-functi.patch (text/plain), 3.62 KB, created by
Manuel Wiesinger
on 2022-11-28 12:48:53 UTC
(
hide
)
Description:
lua-argon2.diff
Filename:
MIME Type:
Creator:
Manuel Wiesinger
Created:
2022-11-28 12:48:53 UTC
Size:
3.62 KB
patch
obsolete
>From 9da8a8425c1dbf73d7a0e56b10d8570fdf0d6a0b Mon Sep 17 00:00:00 2001 >From: Manuel Wiesinger <mdw@FreeBSD.org> >Date: Mon, 28 Nov 2022 13:33:26 +0100 >Subject: [PATCH 2/2] Lua C binding for the Argon2 password hashing function > >--- > security/lua-argon2/Makefile | 26 ++++++++++++++++++++ > security/lua-argon2/distinfo | 3 +++ > security/lua-argon2/files/patch-Makefile | 22 +++++++++++++++++ > security/lua-argon2/files/patch-src_argon2.c | 10 ++++++++ > security/lua-argon2/pkg-descr | 2 ++ > 5 files changed, 63 insertions(+) > create mode 100644 security/lua-argon2/Makefile > create mode 100644 security/lua-argon2/distinfo > create mode 100644 security/lua-argon2/files/patch-Makefile > create mode 100644 security/lua-argon2/files/patch-src_argon2.c > create mode 100644 security/lua-argon2/pkg-descr > >diff --git a/security/lua-argon2/Makefile b/security/lua-argon2/Makefile >new file mode 100644 >index 000000000000..647a2c42c3b9 >--- /dev/null >+++ b/security/lua-argon2/Makefile >@@ -0,0 +1,26 @@ >+PORTNAME= argon2 >+DISTVERSION= 3.0.1 >+CATEGORIES= security >+PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX} >+ >+MAINTAINER= mdw@FreeBSD.org >+COMMENT= Lua C binding for the Argon2 password hashing function >+WWW= https://github.com/thibaultcha/lua-argon2 >+ >+LICENSE= MIT >+ >+LIB_DEPENDS+= libargon2.so:security/libargon2 >+ >+USES= lua:module compiler:c11 >+ >+USE_GITHUB= yes >+GH_ACCOUNT= thibaultcha >+GH_PROJECT= lua-argon2 >+ >+PLIST_FILES= ${LUA_MODLIBDIR}/argon2.so >+ >+do-install: >+ @${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR} >+ ${INSTALL_LIB} ${WRKSRC}/argon2.so ${STAGEDIR}${LUA_MODLIBDIR} >+ >+.include <bsd.port.mk> >diff --git a/security/lua-argon2/distinfo b/security/lua-argon2/distinfo >new file mode 100644 >index 000000000000..a16649e6c8df >--- /dev/null >+++ b/security/lua-argon2/distinfo >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1664113729 >+SHA256 (thibaultcha-lua-argon2-3.0.1_GH0.tar.gz) = d109c6e8e93cd9e27e8738567a998a2763d56252cc1abca1f0f2ac36ef8ce0f4 >+SIZE (thibaultcha-lua-argon2-3.0.1_GH0.tar.gz) = 13836 >diff --git a/security/lua-argon2/files/patch-Makefile b/security/lua-argon2/files/patch-Makefile >new file mode 100644 >index 000000000000..afe585237143 >--- /dev/null >+++ b/security/lua-argon2/files/patch-Makefile >@@ -0,0 +1,22 @@ >+--- Makefile.orig 2018-06-11 02:10:23 UTC >++++ Makefile >+@@ -1,8 +1,7 @@ >+ LIB_NAME = argon2 >+ >+-CC ?= gcc >+-LDFLAGS ?= -shared >+-CFLAGS ?= -O2 -fPIC -ansi -Wall -Werror -Wpedantic >++LDFLAGS += -shared >++CFLAGS += -fPIC -std=c11 -Wall -Wpedantic >+ >+ PREFIX ?= /usr/local >+ ARGON2_INCDIR ?= $(PREFIX)/include >+@@ -17,7 +16,7 @@ BUILD_LDFLAGS = -L$(ARGON2_LIBDIR) -largon2 >+ all: $(LIB_NAME).so >+ >+ $(LIB_NAME).so: $(LIB_NAME).o >+- $(CC) $(LDFLAGS) -o $@ $< $(BUILD_LDFLAGS) >++ $(CC) $(LDFLAGS) -o $@ $(LIB_NAME).o $(BUILD_LDFLAGS) >+ >+ $(LIB_NAME).o: src/$(LIB_NAME).c >+ $(CC) $(CFLAGS) -c $< -o $@ $(BUILD_CFLAGS) >diff --git a/security/lua-argon2/files/patch-src_argon2.c b/security/lua-argon2/files/patch-src_argon2.c >new file mode 100644 >index 000000000000..427a1d7e2247 >--- /dev/null >+++ b/security/lua-argon2/files/patch-src_argon2.c >@@ -0,0 +1,10 @@ >+--- src/argon2.c.orig 2022-09-25 20:11:00 UTC >++++ src/argon2.c >+@@ -486,7 +486,7 @@ static const luaL_Reg largon2[] = { { "verify", largon >+ { NULL, NULL } }; >+ >+-int >++LUALIB_API int >+ luaopen_argon2(lua_State *L) >+ { >+ lua_newtable(L); >diff --git a/security/lua-argon2/pkg-descr b/security/lua-argon2/pkg-descr >new file mode 100644 >index 000000000000..9d546e70012c >--- /dev/null >+++ b/security/lua-argon2/pkg-descr >@@ -0,0 +1,2 @@ >+Lua C binding for the Argon2 password hashing function. Compatible with Lua 5.x >+and LuaJIT. >-- >2.38.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 268039
: 238400