View | Details | Raw Unified | Return to bug 268039
Collapse All | Expand All

(-)b/security/lua-argon2/Makefile (+26 lines)
Added Link Here
1
PORTNAME=	argon2
2
DISTVERSION=	3.0.1
3
CATEGORIES=	security
4
PKGNAMEPREFIX=	${LUA_PKGNAMEPREFIX}
5
6
MAINTAINER=	mdw@FreeBSD.org
7
COMMENT=	Lua C binding for the Argon2 password hashing function
8
WWW=		https://github.com/thibaultcha/lua-argon2
9
10
LICENSE=	MIT
11
12
LIB_DEPENDS+=	libargon2.so:security/libargon2
13
14
USES=		lua:module compiler:c11
15
16
USE_GITHUB=	yes
17
GH_ACCOUNT=	thibaultcha
18
GH_PROJECT=	lua-argon2
19
20
PLIST_FILES=	${LUA_MODLIBDIR}/argon2.so
21
22
do-install:
23
	@${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR}
24
	${INSTALL_LIB} ${WRKSRC}/argon2.so ${STAGEDIR}${LUA_MODLIBDIR}
25
26
.include <bsd.port.mk>
(-)b/security/lua-argon2/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1664113729
2
SHA256 (thibaultcha-lua-argon2-3.0.1_GH0.tar.gz) = d109c6e8e93cd9e27e8738567a998a2763d56252cc1abca1f0f2ac36ef8ce0f4
3
SIZE (thibaultcha-lua-argon2-3.0.1_GH0.tar.gz) = 13836
(-)b/security/lua-argon2/files/patch-Makefile (+22 lines)
Added Link Here
1
--- Makefile.orig	2018-06-11 02:10:23 UTC
2
+++ Makefile
3
@@ -1,8 +1,7 @@
4
 LIB_NAME = argon2
5
6
-CC      ?= gcc
7
-LDFLAGS ?= -shared
8
-CFLAGS  ?= -O2 -fPIC -ansi -Wall -Werror -Wpedantic
9
+LDFLAGS += -shared
10
+CFLAGS  += -fPIC -std=c11 -Wall -Wpedantic
11
12
 PREFIX        ?= /usr/local
13
 ARGON2_INCDIR ?= $(PREFIX)/include
14
@@ -17,7 +16,7 @@ BUILD_LDFLAGS = -L$(ARGON2_LIBDIR) -largon2
15
 all: $(LIB_NAME).so
16
17
 $(LIB_NAME).so: $(LIB_NAME).o
18
-	$(CC) $(LDFLAGS) -o $@ $< $(BUILD_LDFLAGS)
19
+	$(CC) $(LDFLAGS) -o $@ $(LIB_NAME).o $(BUILD_LDFLAGS)
20
21
 $(LIB_NAME).o: src/$(LIB_NAME).c
22
	$(CC) $(CFLAGS) -c $< -o $@ $(BUILD_CFLAGS)
(-)b/security/lua-argon2/files/patch-src_argon2.c (+10 lines)
Added Link Here
1
--- src/argon2.c.orig	2022-09-25 20:11:00 UTC
2
+++ src/argon2.c
3
@@ -486,7 +486,7 @@ static const luaL_Reg largon2[] = { { "verify", largon
4
                                     { NULL, NULL } };
5
6
-int
7
+LUALIB_API int
8
 luaopen_argon2(lua_State *L)
9
 {
10
     lua_newtable(L);
(-)b/security/lua-argon2/pkg-descr (-1 / +2 lines)
Added Link Here
0
- 
1
Lua C binding for the Argon2 password hashing function. Compatible with Lua 5.x
2
and LuaJIT.

Return to bug 268039