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 17:59:02 UTC 2020

Modified Files:
        pkgsrc/security: Makefile
Added Files:
        pkgsrc/security/lua-bcrypt: DESCR Makefile PLIST distinfo
        pkgsrc/security/lua-bcrypt/patches: patch-Makefile.mess

Log Message:
security: Add lua-bcrypt

Lua wrapper for the bcrypt password hashing function


To generate a diff of this commit:
cvs rdiff -u -r1.770 -r1.771 pkgsrc/security/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/security/lua-bcrypt/DESCR \
    pkgsrc/security/lua-bcrypt/Makefile pkgsrc/security/lua-bcrypt/PLIST \
    pkgsrc/security/lua-bcrypt/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/security/lua-bcrypt/patches/patch-Makefile.mess

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.770 pkgsrc/security/Makefile:1.771
--- pkgsrc/security/Makefile:1.770      Thu Jul  2 17:46:26 2020
+++ pkgsrc/security/Makefile    Thu Jul  2 17:59:02 2020
@@ -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+=    logcheck
 SUBDIR+=       lsh
 SUBDIR+=       lua-arc4random
 SUBDIR+=       lua-argon2
+SUBDIR+=       lua-bcrypt
 SUBDIR+=       lua-sec
 SUBDIR+=       lxqt-openssh-askpass
 SUBDIR+=       lxqt-policykit

Added files:

Index: pkgsrc/security/lua-bcrypt/DESCR
diff -u /dev/null pkgsrc/security/lua-bcrypt/DESCR:1.1
--- /dev/null   Thu Jul  2 17:59:02 2020
+++ pkgsrc/security/lua-bcrypt/DESCR    Thu Jul  2 17:59:02 2020
@@ -0,0 +1 @@
+Lua wrapper for the bcrypt password hashing function
Index: pkgsrc/security/lua-bcrypt/Makefile
diff -u /dev/null pkgsrc/security/lua-bcrypt/Makefile:1.1
--- /dev/null   Thu Jul  2 17:59:02 2020
+++ pkgsrc/security/lua-bcrypt/Makefile Thu Jul  2 17:59:02 2020
@@ -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"
Index: pkgsrc/security/lua-bcrypt/PLIST
diff -u /dev/null pkgsrc/security/lua-bcrypt/PLIST:1.1
--- /dev/null   Thu Jul  2 17:59:02 2020
+++ pkgsrc/security/lua-bcrypt/PLIST    Thu Jul  2 17:59:02 2020
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2020/07/02 17:59:02 nia Exp $
+${LUA_CDIR}/bcrypt.so
Index: pkgsrc/security/lua-bcrypt/distinfo
diff -u /dev/null pkgsrc/security/lua-bcrypt/distinfo:1.1
--- /dev/null   Thu Jul  2 17:59:02 2020
+++ pkgsrc/security/lua-bcrypt/distinfo Thu Jul  2 17:59:02 2020
@@ -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

Index: pkgsrc/security/lua-bcrypt/patches/patch-Makefile.mess
diff -u /dev/null pkgsrc/security/lua-bcrypt/patches/patch-Makefile.mess:1.1
--- /dev/null   Thu Jul  2 17:59:02 2020
+++ pkgsrc/security/lua-bcrypt/patches/patch-Makefile.mess      Thu Jul  2 17:59:02 2020
@@ -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