head 1.3; access; symbols; locks; strict; comment @# @; 1.3 date 2020.07.14.11.45.23; author nia; state dead; branches; next 1.2; commitid MuppGKIPu9uEC2gC; 1.2 date 2020.07.02.20.09.03; author nia; state Exp; branches; next 1.1; commitid 31E3mYt3FY6KNxeC; 1.1 date 2020.07.02.17.59.02; author nia; state Exp; branches; next ; commitid n8FgM7n1HZ155xeC; desc @@ 1.3 log @lua-bcrypt: Update to 2.1.6 NetBSD/SunOS support upstreamed @ text @$NetBSD: patch-Makefile.mess,v 1.2 2020/07/02 20:09:03 nia Exp $ - Just use libc strlcpy and arc4random on NetBSD. - Support SunOS. --- 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 @@@@ -37,6 +40,11 @@@@ ifneq ($(uname),OpenBSD) LDFLAGS += -lrt endif + ifeq ($(uname),SunOS) + SRCS += compat/sha/sha512.c + SRCS += compat/getentropy/getentropy_solaris.c + endif + ifeq ($(uname),Darwin) SRCS += compat/getentropy/getentropy_osx.c endif @ 1.2 log @lua-bcrypt: (untested) SunOS support @ text @d1 1 a1 1 $NetBSD: patch-Makefile.mess,v 1.1 2020/07/02 17:59:02 nia Exp $ @ 1.1 log @security: Add lua-bcrypt Lua wrapper for the bcrypt password hashing function @ text @d1 1 a1 1 $NetBSD$ d3 2 a4 1 Just use libc strlcpy and arc4random on NetBSD. d22 12 @