Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security security: Add lua-argon2



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b7cd1fa5f411
branches:  trunk
changeset: 435221:b7cd1fa5f411
user:      nia <nia%pkgsrc.org@localhost>
date:      Thu Jul 02 14:02:36 2020 +0000

description:
security: Add lua-argon2

Lua C binding for the Argon2 password hashing algorithm

diffstat:

 security/Makefile                          |   3 ++-
 security/lua-argon2/DESCR                  |   1 +
 security/lua-argon2/Makefile               |  21 +++++++++++++++++++++
 security/lua-argon2/PLIST                  |   2 ++
 security/lua-argon2/distinfo               |   7 +++++++
 security/lua-argon2/patches/patch-Makefile |  28 ++++++++++++++++++++++++++++
 6 files changed, 61 insertions(+), 1 deletions(-)

diffs (96 lines):

diff -r 6eaf64e636f8 -r b7cd1fa5f411 security/Makefile
--- a/security/Makefile Thu Jul 02 13:15:21 2020 +0000
+++ b/security/Makefile Thu Jul 02 14:02:36 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.768 2020/06/16 10:30:32 nikita Exp $
+# $NetBSD: Makefile,v 1.769 2020/07/02 14:02:36 nia Exp $
 #
 
 COMMENT=       Security tools
@@ -206,6 +206,7 @@
 SUBDIR+=       log2timeline
 SUBDIR+=       logcheck
 SUBDIR+=       lsh
+SUBDIR+=       lua-argon2
 SUBDIR+=       lua-sec
 SUBDIR+=       lxqt-openssh-askpass
 SUBDIR+=       lxqt-policykit
diff -r 6eaf64e636f8 -r b7cd1fa5f411 security/lua-argon2/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/lua-argon2/DESCR Thu Jul 02 14:02:36 2020 +0000
@@ -0,0 +1,1 @@
+Lua C binding for the Argon2 password hashing algorithm
diff -r 6eaf64e636f8 -r b7cd1fa5f411 security/lua-argon2/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/lua-argon2/Makefile      Thu Jul 02 14:02:36 2020 +0000
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1 2020/07/02 14:02:36 nia Exp $
+
+DISTNAME=      lua-argon2-3.0.1
+PKGNAME=       ${DISTNAME:S/lua-/${LUA_PKGPREFIX}-/1}
+CATEGORIES=    security lua
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=thibaultcha/}
+GITHUB_PROJECT=        lua-argon2
+
+MAINTAINER=    nia%NetBSD.org@localhost
+HOMEPAGE=      https://thibaultcha.github.io/lua-argon2/
+COMMENT=       Lua C binding for the Argon2 password hashing algorithm
+LICENSE=       mit
+
+INSTALLATION_DIRS+=    ${LUA_CDIR}
+
+do-install:
+       ${INSTALL_LIB} ${WRKSRC}/argon2.so ${DESTDIR}${PREFIX}/${LUA_CDIR}
+
+.include "../../lang/lua/module.mk"
+.include "../../security/argon2/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 6eaf64e636f8 -r b7cd1fa5f411 security/lua-argon2/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/lua-argon2/PLIST Thu Jul 02 14:02:36 2020 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2020/07/02 14:02:36 nia Exp $
+${LUA_CDIR}/argon2.so
diff -r 6eaf64e636f8 -r b7cd1fa5f411 security/lua-argon2/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/lua-argon2/distinfo      Thu Jul 02 14:02:36 2020 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2020/07/02 14:02:36 nia Exp $
+
+SHA1 (lua-argon2-3.0.1.tar.gz) = 02fa984df9fd9fc98918033b759c3653a0cf3d92
+RMD160 (lua-argon2-3.0.1.tar.gz) = b558218a195cf9745b62e16e3bc9d1038c3db33d
+SHA512 (lua-argon2-3.0.1.tar.gz) = baa21cefc31cd43ee1e339558479e1f262f7c4cc6a180fd684a18fa8631283e9f345b4c3ee0dac8d0c025dfa5877e19b800411b8e51caa4a46ecac9843ec48fa
+Size (lua-argon2-3.0.1.tar.gz) = 13836 bytes
+SHA1 (patch-Makefile) = 22933ef94bac8fcf19fcc09f4e948c4ad16db75e
diff -r 6eaf64e636f8 -r b7cd1fa5f411 security/lua-argon2/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/lua-argon2/patches/patch-Makefile        Thu Jul 02 14:02:36 2020 +0000
@@ -0,0 +1,28 @@
+$NetBSD: patch-Makefile,v 1.1 2020/07/02 14:02:36 nia Exp $
+
+Honour CC/CFLAGS/LDFLAGS.
+
+Note that -ansi does not support `long long`.
+
+--- Makefile.orig      2018-06-11 02:10:23.000000000 +0000
++++ Makefile
+@@ -1,8 +1,7 @@
+ LIB_NAME = argon2
+ 
+-CC      ?= gcc
+-LDFLAGS ?= -shared
+-CFLAGS  ?= -O2 -fPIC -ansi -Wall -Werror -Wpedantic
++LDFLAGS += -shared
++CFLAGS  += -fPIC -std=c99 -Wall -Wpedantic
+ 
+ PREFIX        ?= /usr/local
+ ARGON2_INCDIR ?= $(PREFIX)/include
+@@ -17,7 +16,7 @@ BUILD_LDFLAGS = -L$(ARGON2_LIBDIR) -larg
+ 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)



Home | Main Index | Thread Index | Old Index