svn commit: r499625 - in head/security: . gost-engine gost-engine/files
Eugene Grosbein
eugen at FreeBSD.org
Mon Apr 22 09:26:39 UTC 2019
Author: eugen
Date: Mon Apr 22 09:26:37 2019
New Revision: 499625
URL: https://svnweb.freebsd.org/changeset/ports/499625
Log:
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
Added:
head/security/gost-engine/
head/security/gost-engine/Makefile (contents, props changed)
head/security/gost-engine/distinfo (contents, props changed)
head/security/gost-engine/files/
head/security/gost-engine/files/pkg-message.in (contents, props changed)
head/security/gost-engine/pkg-descr (contents, props changed)
head/security/gost-engine/pkg-plist (contents, props changed)
Modified:
head/security/Makefile
Modified: head/security/Makefile
==============================================================================
--- head/security/Makefile Mon Apr 22 09:16:42 2019 (r499624)
+++ head/security/Makefile Mon Apr 22 09:26:37 2019 (r499625)
@@ -190,6 +190,7 @@ PORTREVISION= 1
SUBDIR += gonepass
SUBDIR += gopass
SUBDIR += gorilla
+ SUBDIR += gost-engine
SUBDIR += govpn
SUBDIR += gpa
SUBDIR += gpgdir
Added: head/security/gost-engine/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/gost-engine/Makefile Mon Apr 22 09:26:37 2019 (r499625)
@@ -0,0 +1,53 @@
+# Created by: Eugene Grosbein <eugen at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= gost-engine
+DISTVERSION= g20190421
+CATEGORIES= security
+
+MAINTAINER= eugen at 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>
Added: head/security/gost-engine/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/gost-engine/distinfo Mon Apr 22 09:26:37 2019 (r499625)
@@ -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
Added: head/security/gost-engine/files/pkg-message.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/gost-engine/files/pkg-message.in Mon Apr 22 09:26:37 2019 (r499625)
@@ -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
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Added: head/security/gost-engine/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/gost-engine/pkg-descr Mon Apr 22 09:26:37 2019 (r499625)
@@ -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
Added: head/security/gost-engine/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/gost-engine/pkg-plist Mon Apr 22 09:26:37 2019 (r499625)
@@ -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
More information about the svn-ports-head
mailing list