From nobody Mon Jan 29 08:25:44 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TNhFh3N0Gz58SwZ; Mon, 29 Jan 2024 08:25:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TNhFh24xwz4f7d; Mon, 29 Jan 2024 08:25:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706516744; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LzY+4C+c3DMctQ8KcTG3/WCqm1hm6aDPC+C67YuD1CE=; b=xbUyRJDOzKa7r645CBIHylw7YX3npFY331iTBGQ8uiZufOrZJnBGbCArIjxCYPQub9r8z/ kBV8G+/fz6dzbSxnhbvWLLlj7fOHmGCCAuufEBsEYcnLODfl0BM6QjR4CMMhzP0uej9ghF x+KKHmvZh0ELFNc3GkqNlgZ//Culp5H/RIjr2xXTrGVKYkfiB8ps0WiZ6+xGMYPZDShWt3 A55StMeJEKAhxqfuKT7YzAUbXxKTouydx+2gI2A+g7aT4f4fzkjFhur4BQuGThjqSzAnBW 2+acdnMnRneQwkuZpsiKfI5LDf4+m95AMXTiuCZFeQUIGTdndp4QDpM6dgjkJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706516744; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LzY+4C+c3DMctQ8KcTG3/WCqm1hm6aDPC+C67YuD1CE=; b=eJJoXD1R6/o1io+y7bQx3Kiri7iHkNeXqyESkw/WnVRMvMzb58tnZRTvYfptN67vqFJKvk qsOb/6yuRY/IU0CtfQa6JVYforCYmyZtteL4KJOc0dxSBzET22XDTqDckqPASm1KGNnfPB FvvIo4EozPELdPF7Z1Z58CmYxORfBEiOF/s1uxzT27/LjR7o4DDvCsmzU31hmISC237I8K b1OMPdAeChNJQ8n2mLNpDYANapmXQcai0ZPW2sbTphSZDV++vaGvbKctw/QwHjMx3dJTzF En6gFq9EsrPb3HLeNdQ+wMQbZy46p/7ghREtd6Xj20CtfBwr7LKdGLGX95yEAA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1706516744; a=rsa-sha256; cv=none; b=GaRke4bvdnuXgWsDCX/UCM3PovtBoRijpdywzol/HVDEHdWuRUSup7kUi92jhVkC5YgD7W MDuvUQ9OEPKrgZlxo20ZSrVttpul4s+9QzAF+S4u6ERQXdVHTNY2hBJCtALKa49wqYkkF5 uugWsQtVV4WlY7Fl6J067AmkumE7wDGYAFCkdYqB/4adtrMcIclBEJekv2kHg1YHEsy36c p+9mqZH/bibFGivW/q2C2B49WnKzOQNJENgTgG1oVt1PLIX5JtdIXZSBqLt83P4hOCc4VO y9UiyBaBKu9l2hpMEsWSVabFhOaKTpKO9JWD/MgjCdgsF0iH+Y2zNcAdA1l7nw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TNhFh193vzkpZ; Mon, 29 Jan 2024 08:25:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 40T8Pi1W081920; Mon, 29 Jan 2024 08:25:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40T8PiQf081917; Mon, 29 Jan 2024 08:25:44 GMT (envelope-from git) Date: Mon, 29 Jan 2024 08:25:44 GMT Message-Id: <202401290825.40T8PiQf081917@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Gleb Popov Subject: git: e82ca7d300f8 - main - security/blst: Implementation of BLS12-381 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: arrowd X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e82ca7d300f8d5884d84a9718c30a60769a801f0 Auto-Submitted: auto-generated The branch main has been updated by arrowd: URL: https://cgit.FreeBSD.org/ports/commit/?id=e82ca7d300f8d5884d84a9718c30a60769a801f0 commit e82ca7d300f8d5884d84a9718c30a60769a801f0 Author: Gleb Popov AuthorDate: 2024-01-29 08:22:46 +0000 Commit: Gleb Popov CommitDate: 2024-01-29 08:22:46 +0000 security/blst: Implementation of BLS12-381 --- security/Makefile | 1 + security/blst/Makefile | 32 ++++++++++++++++++++++++++++++++ security/blst/distinfo | 3 +++ security/blst/files/libblst.pc.in | 11 +++++++++++ security/blst/pkg-descr | 3 +++ security/blst/pkg-plist | 5 +++++ 6 files changed, 55 insertions(+) diff --git a/security/Makefile b/security/Makefile index d7ab7b4ed8c2..99ec5c3a1f7b 100644 --- a/security/Makefile +++ b/security/Makefile @@ -55,6 +55,7 @@ SUBDIR += bfbtester SUBDIR += binwalk SUBDIR += bitwarden-cli + SUBDIR += blst SUBDIR += boringssl SUBDIR += botan2 SUBDIR += botan3 diff --git a/security/blst/Makefile b/security/blst/Makefile new file mode 100644 index 000000000000..8d1737f2128a --- /dev/null +++ b/security/blst/Makefile @@ -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 diff --git a/security/blst/distinfo b/security/blst/distinfo new file mode 100644 index 000000000000..dc8038c42b5d --- /dev/null +++ b/security/blst/distinfo @@ -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 diff --git a/security/blst/files/libblst.pc.in b/security/blst/files/libblst.pc.in new file mode 100644 index 000000000000..61ebd55a98bb --- /dev/null +++ b/security/blst/files/libblst.pc.in @@ -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 diff --git a/security/blst/pkg-descr b/security/blst/pkg-descr new file mode 100644 index 000000000000..a05e8c4691ed --- /dev/null +++ b/security/blst/pkg-descr @@ -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. diff --git a/security/blst/pkg-plist b/security/blst/pkg-plist new file mode 100644 index 000000000000..cfe6284b630d --- /dev/null +++ b/security/blst/pkg-plist @@ -0,0 +1,5 @@ +include/libblst/blst.h +include/libblst/blst.hpp +include/libblst/blst_aux.h +lib/libblst.so +libdata/pkgconfig/libblst.pc