From nobody Mon Jan 09 03:20:49 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NqzjZ29VKz2qkNZ; Mon, 9 Jan 2023 03:20:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NqzjZ1fN2z44Xm; Mon, 9 Jan 2023 03:20:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673234450; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Vgwg8dhQvgh/HFWkxekHv5R9ucPXJh2BugccfGd2Fwc=; b=uHbWGdF3h9irXjT4jiEI9qbMOvOUxgy4H8nERJsir4Jr+n9lJsE/wFgFQrOjzVWAkniD6R R7wcYSZG9ACRm+O2WcBeWmed0lOdMeqpGCotkcVI48ALib2ty6z0PyvOuQeWwKu7Ig4CmM tXaYf3Y3bEHzL6165Nsbk9eqrnwG9I8qhMoMu69LbVqckXLfHQM6aDN8GEOqEb2k03b/ym 37YWIjTRPoSy5d2KGnRyqF0ImwsSElWFnsgr0gb4pM4kdPeCFE4TyoUtu2EdDzXSFYYCG6 09V2Jl40WIIjVoRqWQ574tswtINKMsqL87Ceznpb1n3NOHqYns0AjL368Ry32A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673234450; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Vgwg8dhQvgh/HFWkxekHv5R9ucPXJh2BugccfGd2Fwc=; b=tTsDTlMXbtHyynqaM0txdaT68rUu+IIfcKrKEKpYV1tI43vwujeCpndie0mjrcZreBFERS JY1SIdHiZr1pVosTGVDis2fgfG3rQByMJBzGCoA7aBRkE7oYkeBR6GSau93/Ynx3s/sK2/ 1DHjGmQ2kqeQlD7pZ8lO9yTw/DVjJm703bRKehzFtyFh2KYjy07W66V/4+eGRTdf/PSU+z wHbDgW72FQs2V03Dk1v9tURV4O+qDE9R8DYiG5a2poo9FsH24L1ptd4BKfziG8oAab/F0O 9syE0JLM7Og4xnctS7P/xcrzIZjJPE7jaMXzWsfWyToLsZv0yLiAAzz63FA/zg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1673234450; a=rsa-sha256; cv=none; b=nGy/LGEjnVoJqhbCb6NYTlShdq3n8j2QY9jrlMz0jz2JN8v8PiQZwDA6oHXo/5mMz48i6Q StavXd36pju0LnTgXdxdMWN7cWN13cmeHQHQoWJOLCGyBEULB54iRz5gdsCsyH38dik67o 6bmfLy6zpZ1KKe/31ARC0SwVKjVwDd+egYC9kCWaVOOIAKBdhJ5j4nV8W/QhFuMUwajU4H IV2wYX0GQAze1pkiQAuc07dtjCoAtY7eP6ivm7wGgy/QytXxwY3WuvDPL7CXMNBUeFINTF 1jyb3AkQ+eB/Ip0Iw//Xdz3kxrjfDnFN+cyyNltRdOn8z6nlaHrHjs8C4YYOkw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NqzjZ0k4Lz1CSr; Mon, 9 Jan 2023 03:20:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 3093Kojq032161; Mon, 9 Jan 2023 03:20:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 3093Knhi032160; Mon, 9 Jan 2023 03:20:49 GMT (envelope-from git) Date: Mon, 9 Jan 2023 03:20:49 GMT Message-Id: <202301090320.3093Knhi032160@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: "Vanilla I. Shu" Subject: git: 0eb692f7d06a - main - security/lua-argon2: New port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: vanilla X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0eb692f7d06a6bad5631620c543e1f13226f7079 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by vanilla: URL: https://cgit.FreeBSD.org/ports/commit/?id=0eb692f7d06a6bad5631620c543e1f13226f7079 commit 0eb692f7d06a6bad5631620c543e1f13226f7079 Author: Vanilla I. Shu AuthorDate: 2023-01-09 03:19:20 +0000 Commit: Vanilla I. Shu CommitDate: 2023-01-09 03:19:20 +0000 security/lua-argon2: New port Lua C binding for the Argon2 password hashing function. Compatible with Lua 5.x and LuaJIT. PR: 268039 Reported by: Manuel Wiesinger --- security/Makefile | 1 + 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 ++ 6 files changed, 64 insertions(+) diff --git a/security/Makefile b/security/Makefile index 746fbf81f2ce..34524905156a 100644 --- a/security/Makefile +++ b/security/Makefile @@ -333,6 +333,7 @@ SUBDIR += linux-c7-trousers SUBDIR += local-php-security-checker SUBDIR += logcheck + SUBDIR += lua-argon2 SUBDIR += lua-bcrypt SUBDIR += luasec SUBDIR += lxqt-openssh-askpass diff --git a/security/lua-argon2/Makefile b/security/lua-argon2/Makefile new file mode 100644 index 000000000000..27a896d6399b --- /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= compiler:c11 lua:module + +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 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.