Import security/libb2, a library providing BLAKE2b, BLAKE2s, BLAKE2bp,

BLAKE2sp
Submission by Bjorn Ketelaars <bjorn.ketelaars AT hydroxide DOT nl>, who
takes MAINTAINER -- thanks!
ok sthen@
This commit is contained in:
bcallah 2018-01-01 15:40:55 +00:00
parent 22158ab29e
commit 1e678dd695
5 changed files with 64 additions and 0 deletions

37
security/libb2/Makefile Normal file
View File

@ -0,0 +1,37 @@
# $OpenBSD: Makefile,v 1.1.1.1 2018/01/01 15:40:55 bcallah Exp $
COMMENT = library providing BLAKE2b, BLAKE2s, BLAKE2bp, BLAKE2sp
DISTNAME = libb2-0.98.20171225
CATEGORIES = security
SHARED_LIBS += b2 0.0 # 1.3
# No GH_TAGNAME
GH_ACCOUNT = BLAKE2
GH_PROJECT = libb2
GH_COMMIT = 60ea749837362c226e8501718f505ab138e5c19d
MAINTAINER = Bjorn Ketelaars <bjorn.ketelaars@hydroxide.nl>
# CC0
PERMIT_PACKAGE_CDROM = Yes
BUILD_DEPENDS = ${MODGNU_AUTOCONF_DEPENDS} \
${MODGNU_AUTOMAKE_DEPENDS} \
devel/libtool
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS = --disable-fat \
--disable-native \
--disable-openmp
SEPARATE_BUILD = Yes
AUTOCONF_VERSION = 2.69
AUTOMAKE_VERSION = 1.15
pre-configure:
cd ${WRKSRC} && ${SETENV} AUTOCONF_VERSION=${AUTOCONF_VERSION} \
AUTOMAKE_VERSION=${AUTOMAKE_VERSION} ./autogen.sh
.include <bsd.port.mk>

2
security/libb2/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (libb2-0.98.20171225-60ea7498.tar.gz) = hFPmDkOFj1DIsdroNJEzyl/mzA4PeLWIFl/AVTtMGnk=
SIZE (libb2-0.98.20171225-60ea7498.tar.gz) = 275231

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-configure_ac,v 1.1.1.1 2018/01/01 15:40:55 bcallah Exp $
Do not hardcode optimization flags.
Index: configure.ac
--- configure.ac.orig
+++ configure.ac
@@ -58,7 +58,6 @@ AC_HELP_STRING([--enable-native],
[enable_native=yes]
)
-AX_CHECK_COMPILE_FLAG([-O3], [CFLAGS=-O3])
dnl Not all architectures support -march=native
AX_CHECK_COMPILE_FLAG([-march=native], [], [enable_native=no])

5
security/libb2/pkg/DESCR Normal file
View File

@ -0,0 +1,5 @@
libb2 is a C library providing BLAKE2b, BLAKE2s, BLAKE2bp, BLAKE2sp.
BLAKE2 is a cryptographic hash function faster than MD5, SHA-1, SHA-2,
and SHA-3, yet is at least as secure as the latest standard SHA-3.
BLAKE2 is specified in RFC 7693.

5
security/libb2/pkg/PLIST Normal file
View File

@ -0,0 +1,5 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2018/01/01 15:40:55 bcallah Exp $
include/blake2.h
lib/libb2.a
lib/libb2.la
@lib lib/libb2.so.${LIBb2_VERSION}