pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/security
Module Name: pkgsrc
Committed By: nia
Date: Thu Jul 2 14:02:36 UTC 2020
Modified Files:
pkgsrc/security: Makefile
Added Files:
pkgsrc/security/lua-argon2: DESCR Makefile PLIST distinfo
pkgsrc/security/lua-argon2/patches: patch-Makefile
Log Message:
security: Add lua-argon2
Lua C binding for the Argon2 password hashing algorithm
To generate a diff of this commit:
cvs rdiff -u -r1.768 -r1.769 pkgsrc/security/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/security/lua-argon2/DESCR \
pkgsrc/security/lua-argon2/Makefile pkgsrc/security/lua-argon2/PLIST \
pkgsrc/security/lua-argon2/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/security/lua-argon2/patches/patch-Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/security/Makefile
diff -u pkgsrc/security/Makefile:1.768 pkgsrc/security/Makefile:1.769
--- pkgsrc/security/Makefile:1.768 Tue Jun 16 10:30:32 2020
+++ pkgsrc/security/Makefile Thu Jul 2 14:02:36 2020
@@ -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+= libyubikey
SUBDIR+= log2timeline
SUBDIR+= logcheck
SUBDIR+= lsh
+SUBDIR+= lua-argon2
SUBDIR+= lua-sec
SUBDIR+= lxqt-openssh-askpass
SUBDIR+= lxqt-policykit
Added files:
Index: pkgsrc/security/lua-argon2/DESCR
diff -u /dev/null pkgsrc/security/lua-argon2/DESCR:1.1
--- /dev/null Thu Jul 2 14:02:36 2020
+++ pkgsrc/security/lua-argon2/DESCR Thu Jul 2 14:02:36 2020
@@ -0,0 +1 @@
+Lua C binding for the Argon2 password hashing algorithm
Index: pkgsrc/security/lua-argon2/Makefile
diff -u /dev/null pkgsrc/security/lua-argon2/Makefile:1.1
--- /dev/null Thu Jul 2 14:02:36 2020
+++ pkgsrc/security/lua-argon2/Makefile Thu Jul 2 14:02:36 2020
@@ -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"
Index: pkgsrc/security/lua-argon2/PLIST
diff -u /dev/null pkgsrc/security/lua-argon2/PLIST:1.1
--- /dev/null Thu Jul 2 14:02:36 2020
+++ pkgsrc/security/lua-argon2/PLIST Thu Jul 2 14:02:36 2020
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2020/07/02 14:02:36 nia Exp $
+${LUA_CDIR}/argon2.so
Index: pkgsrc/security/lua-argon2/distinfo
diff -u /dev/null pkgsrc/security/lua-argon2/distinfo:1.1
--- /dev/null Thu Jul 2 14:02:36 2020
+++ pkgsrc/security/lua-argon2/distinfo Thu Jul 2 14:02:36 2020
@@ -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
Index: pkgsrc/security/lua-argon2/patches/patch-Makefile
diff -u /dev/null pkgsrc/security/lua-argon2/patches/patch-Makefile:1.1
--- /dev/null Thu Jul 2 14:02:36 2020
+++ pkgsrc/security/lua-argon2/patches/patch-Makefile Thu Jul 2 14:02:36 2020
@@ -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