New port: security/gost-engine
OpenSSL 1.0.2 had built-in implementation of Russian cryptography standards (GOST) as additional engine, but since then that implementation moved to distinct repository at Github. This port presents loadable engine for OpenSSL 1.1.1+ and algorithms: GOST R 34.10-2001 GOST R 34.10-2012 GOST R 34.11-94 GOST R 34.11-2012 GOST 28147-89 GOST R 34.132015
This commit is contained in:
@@ -190,6 +190,7 @@ PORTREVISION= 1
|
||||
SUBDIR += gonepass
|
||||
SUBDIR += gopass
|
||||
SUBDIR += gorilla
|
||||
SUBDIR += gost-engine
|
||||
SUBDIR += govpn
|
||||
SUBDIR += gpa
|
||||
SUBDIR += gpgdir
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
# Created by: Eugene Grosbein <eugen@FreeBSD.org>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= gost-engine
|
||||
DISTVERSION= g20190421
|
||||
CATEGORIES= security
|
||||
|
||||
MAINTAINER= eugen@FreeBSD.org
|
||||
COMMENT= Implementation of the Russian GOST crypto algorithms for OpenSSL
|
||||
|
||||
LICENSE= OpenSSL
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
BROKEN_SSL= libressl libressl-devel openssl
|
||||
BROKEN_SSL_REASON_libressl= needs features only available in OpenSSL 1.1.1+
|
||||
BROKEN_SSL_REASON_libressl_devel=needs features only available in OpenSSL 1.1.1+
|
||||
BROKEN_SSL_REASON_openssl= needs features only available in OpenSSL 1.1.1+
|
||||
|
||||
USES= cmake ssl
|
||||
|
||||
CMAKE_ARGS+= -DOPENSSL_ROOT_DIR=${OPENSSLBASE}
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= gost-engine
|
||||
GH_PROJECT= engine
|
||||
GH_TAGNAME= 7ed64cd
|
||||
|
||||
SUB_FILES= pkg-message
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200085
|
||||
BROKEN_SSL+= base
|
||||
BROKEN_SSL_REASON_base= needs features only available in OpenSSL 1.1.1+
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} 's/-Werror //' ${WRKSRC}/CMakeLists.txt
|
||||
|
||||
post-install:
|
||||
( cd ${STAGEDIR}${PREFIX}/lib/engines-1.1 && ${MV} gost.so libgost.so )
|
||||
|
||||
post-install-DOCS-off:
|
||||
( cd ${STAGEDIR}${PREFIX}/man/man1 && ${RM} gost12sum.1 gostsum.1 )
|
||||
|
||||
post-install-DOCS-on:
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
( cd ${WRKSRC} && ${INSTALL_MAN} INSTALL.md README.gost README.md \
|
||||
${STAGEDIR}${DOCSDIR} )
|
||||
|
||||
.include <bsd.port.mk>
|
||||
@@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1555911951
|
||||
SHA256 (gost-engine-engine-g20190421-7ed64cd_GH0.tar.gz) = 96b54eff8e12e2ea2b3120550b5d5aa79a1bf773d5452622ee5b268f2631eccc
|
||||
SIZE (gost-engine-engine-g20190421-7ed64cd_GH0.tar.gz) = 494751
|
||||
@@ -0,0 +1,6 @@
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
You should edit openssl.cnf configuration file as specified below
|
||||
to start using GOST Engine through OpenSSL.
|
||||
For details, refer to the section `How to Configure' in
|
||||
%%DOCSDIR%%/INSTALL.md
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
@@ -0,0 +1,9 @@
|
||||
OPENSSL GOST ENGINE
|
||||
An implementation of Russian cryptography standards for OpenSSL.
|
||||
|
||||
This engine provides an implementation of various Russian cryptographic
|
||||
algorithms, known generally as GOST cryptographic algorithms.
|
||||
These algorithms can be used both via OpenSSL command line tools and
|
||||
via high-level libopenssl calls.
|
||||
|
||||
WWW: https://github.com/gost-engine/engine/blob/master/README.gost
|
||||
@@ -0,0 +1,8 @@
|
||||
bin/gost12sum
|
||||
bin/gostsum
|
||||
lib/engines-1.1/libgost.so
|
||||
%%PORTDOCS%%man/man1/gost12sum.1.gz
|
||||
%%PORTDOCS%%man/man1/gostsum.1.gz
|
||||
%%PORTDOCS%%%%DOCSDIR%%/INSTALL.md
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README.gost
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README.md
|
||||
Reference in New Issue
Block a user