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-bcrypt



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c3ce92ef9d08
branches:  trunk
changeset: 435243:c3ce92ef9d08
user:      nia <nia%pkgsrc.org@localhost>
date:      Thu Jul 02 17:59:02 2020 +0000

description:
security: Add lua-bcrypt

Lua wrapper for the bcrypt password hashing function

diffstat:

 security/Makefile                               |   3 ++-
 security/lua-bcrypt/DESCR                       |   1 +
 security/lua-bcrypt/Makefile                    |  23 +++++++++++++++++++++++
 security/lua-bcrypt/PLIST                       |   2 ++
 security/lua-bcrypt/distinfo                    |   7 +++++++
 security/lua-bcrypt/patches/patch-Makefile.mess |  20 ++++++++++++++++++++
 6 files changed, 55 insertions(+), 1 deletions(-)

diffs (90 lines):

diff -r 9d73d1acbf97 -r c3ce92ef9d08 security/Makefile
--- a/security/Makefile Thu Jul 02 17:52:03 2020 +0000
+++ b/security/Makefile Thu Jul 02 17:59:02 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.770 2020/07/02 17:46:26 nia Exp $
+# $NetBSD: Makefile,v 1.771 2020/07/02 17:59:02 nia Exp $
 #
 
 COMMENT=       Security tools
@@ -208,6 +208,7 @@
 SUBDIR+=       lsh
 SUBDIR+=       lua-arc4random
 SUBDIR+=       lua-argon2
+SUBDIR+=       lua-bcrypt
 SUBDIR+=       lua-sec
 SUBDIR+=       lxqt-openssh-askpass
 SUBDIR+=       lxqt-policykit
diff -r 9d73d1acbf97 -r c3ce92ef9d08 security/lua-bcrypt/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/lua-bcrypt/DESCR Thu Jul 02 17:59:02 2020 +0000
@@ -0,0 +1,1 @@
+Lua wrapper for the bcrypt password hashing function
diff -r 9d73d1acbf97 -r c3ce92ef9d08 security/lua-bcrypt/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/lua-bcrypt/Makefile      Thu Jul 02 17:59:02 2020 +0000
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1 2020/07/02 17:59:02 nia Exp $
+
+DISTNAME=      lua-bcrypt-2.1.5
+PKGNAME=       ${DISTNAME:S/lua-/${LUA_PKGPREFIX}-/1}
+CATEGORIES=    security lua
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=mikejsavage/}
+GITHUB_PROJECT=        lua-bcrypt
+GITHUB_TAG=    v2.1-5
+
+MAINTAINER=    nia%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/mikejsavage/lua-bcrypt
+COMMENT=       Lua wrapper for the bcrypt password hashing function
+LICENSE=       isc
+
+USE_TOOLS+=    gmake
+
+INSTALLATION_DIRS+=    ${LUA_CDIR}
+
+do-install:
+       ${INSTALL_LIB} ${WRKSRC}/bcrypt.so ${DESTDIR}${PREFIX}/${LUA_CDIR}
+
+.include "../../lang/lua/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 9d73d1acbf97 -r c3ce92ef9d08 security/lua-bcrypt/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/lua-bcrypt/PLIST Thu Jul 02 17:59:02 2020 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2020/07/02 17:59:02 nia Exp $
+${LUA_CDIR}/bcrypt.so
diff -r 9d73d1acbf97 -r c3ce92ef9d08 security/lua-bcrypt/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/lua-bcrypt/distinfo      Thu Jul 02 17:59:02 2020 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2020/07/02 17:59:02 nia Exp $
+
+SHA1 (lua-bcrypt-2.1.5.tar.gz) = 367bc2dd4b48dd428eec12ac224ea6ff8fc193ad
+RMD160 (lua-bcrypt-2.1.5.tar.gz) = 2a76e963638eff00e2b3c60974d6375f09dff9e3
+SHA512 (lua-bcrypt-2.1.5.tar.gz) = 0cc418a67a1eb66091665a7e9cf0a1fa65a8faae4d22e5a92f9d724a346326ab92b14e6f4d6fe46cfb8ec00bbe8b876020e754bcb4dff368a6b17e5a9eada8ef
+Size (lua-bcrypt-2.1.5.tar.gz) = 37369 bytes
+SHA1 (patch-Makefile.mess) = 0c1774023b6fbe91095c62d8c18fe1f462a811bb
diff -r 9d73d1acbf97 -r c3ce92ef9d08 security/lua-bcrypt/patches/patch-Makefile.mess
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/lua-bcrypt/patches/patch-Makefile.mess   Thu Jul 02 17:59:02 2020 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-Makefile.mess,v 1.1 2020/07/02 17:59:02 nia Exp $
+
+Just use libc strlcpy and arc4random on NetBSD.
+
+--- Makefile.mess.orig 2020-05-20 07:20:53.000000000 +0000
++++ Makefile.mess
+@@ -28,8 +28,11 @@ ifneq ($(uname),OpenBSD)
+       SRCS += compat/safebfuns.c
+       SRCS += compat/bcrypt/bcrypt.c
+       SRCS += compat/bcrypt/blowfish.c
+-      SRCS += compat/arc4random/arc4random.c
+-      SRCS += compat/strlcpy.c
++
++      ifneq ($(uname),NetBSD)
++              SRCS += compat/arc4random/arc4random.c
++              SRCS += compat/strlcpy.c
++      endif
+ 
+       ifeq ($(uname),Linux)
+               SRCS += compat/sha/sha512.c



Home | Main Index | Thread Index | Old Index