From owner-svn-ports-all@freebsd.org Tue May 28 02:49:51 2019 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 02E9415B3835; Tue, 28 May 2019 02:49:50 +0000 (UTC) (envelope-from yuri@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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 96A1F923E1; Tue, 28 May 2019 02:49:50 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 70C55C27C; Tue, 28 May 2019 02:49:50 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x4S2nogb099434; Tue, 28 May 2019 02:49:50 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x4S2nnBw099430; Tue, 28 May 2019 02:49:49 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201905280249.x4S2nnBw099430@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Tue, 28 May 2019 02:49:49 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r502846 - in head/security: . picosha2 X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/security: . picosha2 X-SVN-Commit-Revision: 502846 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 96A1F923E1 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.96 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.96)[-0.959,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 May 2019 02:49:51 -0000 Author: yuri Date: Tue May 28 02:49:49 2019 New Revision: 502846 URL: https://svnweb.freebsd.org/changeset/ports/502846 Log: New port: security/picosha2: C++ header-only SHA256 hash generator Added: head/security/picosha2/ head/security/picosha2/Makefile (contents, props changed) head/security/picosha2/distinfo (contents, props changed) head/security/picosha2/pkg-descr (contents, props changed) Modified: head/security/Makefile Modified: head/security/Makefile ============================================================================== --- head/security/Makefile Tue May 28 02:35:40 2019 (r502845) +++ head/security/Makefile Tue May 28 02:49:49 2019 (r502846) @@ -802,6 +802,7 @@ SUBDIR += php73-openssl SUBDIR += php73-sodium SUBDIR += phpsecinfo + SUBDIR += picosha2 SUBDIR += pidentd SUBDIR += pidgin-encryption SUBDIR += pidgin-otr Added: head/security/picosha2/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/picosha2/Makefile Tue May 28 02:49:49 2019 (r502846) @@ -0,0 +1,33 @@ +# $FreeBSD$ + +PORTNAME= picosha2 +DISTVERSIONPREFIX= v +DISTVERSION= 1.0.0-23 +DISTVERSIONSUFFIX= -gb699e6c +CATEGORIES= security + +MAINTAINER= yuri@FreeBSD.org +COMMENT= C++ header-only SHA256 hash generator + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USE_GITHUB= yes +GH_ACCOUNT= okdshin +GH_PROJECT= PicoSHA2 + +NO_BUILD= yes +NO_ARCH= yes + +PLIST_FILES= include/picosha2.h + +do-install: + ${INSTALL_DATA} ${WRKSRC}/picosha2.h ${STAGEDIR}${PREFIX}/include + +do-test: + @cd ${WRKSRC}/test && \ + ${CXX} -o test test.cpp -I.. && \ + ./test && \ + ${ECHO} "Tests succeeded" + +.include Added: head/security/picosha2/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/picosha2/distinfo Tue May 28 02:49:49 2019 (r502846) @@ -0,0 +1,3 @@ +TIMESTAMP = 1559011289 +SHA256 (okdshin-PicoSHA2-v1.0.0-23-gb699e6c_GH0.tar.gz) = 4d5b17c33d3da4663838ec9ba987dc4c1f2fac4ac7d5c4690fae3a968ef95fa2 +SIZE (okdshin-PicoSHA2-v1.0.0-23-gb699e6c_GH0.tar.gz) = 7204 Added: head/security/picosha2/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/picosha2/pkg-descr Tue May 28 02:49:49 2019 (r502846) @@ -0,0 +1,7 @@ +PicoSHA2 is a tiny SHA256 hash generator for C++ with following properties: + +* header-file only +* no external dependencies (only uses standard C++ libraries) +* STL-friendly + +WWW: https://github.com/okdshin/PicoSHA2