1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00

security/blst: Implementation of BLS12-381

This commit is contained in:
Gleb Popov 2024-01-29 11:22:46 +03:00
parent 0b74a808da
commit e82ca7d300
6 changed files with 55 additions and 0 deletions

View File

@ -55,6 +55,7 @@
SUBDIR += bfbtester
SUBDIR += binwalk
SUBDIR += bitwarden-cli
SUBDIR += blst
SUBDIR += boringssl
SUBDIR += botan2
SUBDIR += botan3

32
security/blst/Makefile Normal file
View File

@ -0,0 +1,32 @@
PORTNAME= blst
PORTVERSION= 0.3.11
CATEGORIES= security devel
MAINTAINER= arrowd@FreeBSD.org
COMMENT= Implementation of BLS12-381 signature algorithm
WWW= https://github.com/supranational/blst
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
USE_GITHUB= yes
GH_ACCOUNT= supranational
GH_TAGNAME= v${PORTVERSION}
USE_LDCONFIG= yes
SUB_FILES= libblst.pc
do-build:
cd ${WRKSRC} && ./build.sh -shared
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/include/libblst
${INSTALL_DATA} ${WRKSRC}/bindings/blst_aux.h \
${WRKSRC}/bindings/blst.h \
${WRKSRC}/bindings/blst.hpp \
${STAGEDIR}${PREFIX}/include/libblst
${INSTALL_DATA} ${WRKDIR}/libblst.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig
${INSTALL_LIB} ${WRKSRC}/libblst.so ${STAGEDIR}${PREFIX}/lib
.include <bsd.port.mk>

3
security/blst/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1706466871
SHA256 (supranational-blst-0.3.11-v0.3.11_GH0.tar.gz) = d0a6e2a69490cc45f0a531a684a225e56fe22303665157cfa397ba5605447eb9
SIZE (supranational-blst-0.3.11-v0.3.11_GH0.tar.gz) = 564973

View File

@ -0,0 +1,11 @@
prefix=%%PREFIX%%
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include/libblst
Name: libblst
Description: Multilingual BLS12-381 signature library
URL: https://github.com/supranational/blst
Version: 0.3.11
Cflags: -I${includedir}
Libs: -L${libdir} -lblst

3
security/blst/pkg-descr Normal file
View File

@ -0,0 +1,3 @@
blst (pronounced 'blast') is a BLS12-381 signature library focused on
performance and security. It is written in C and assembly and has bindings to
various languages.

5
security/blst/pkg-plist Normal file
View File

@ -0,0 +1,5 @@
include/libblst/blst.h
include/libblst/blst.hpp
include/libblst/blst_aux.h
lib/libblst.so
libdata/pkgconfig/libblst.pc