New port: security/picosha2: C++ header-only SHA256 hash generator

This commit is contained in:
Yuri Victorovich 2019-05-28 02:49:49 +00:00
parent 2a0731944a
commit 246d03cb9e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=502846
4 changed files with 44 additions and 0 deletions

View File

@ -802,6 +802,7 @@
SUBDIR += php73-openssl
SUBDIR += php73-sodium
SUBDIR += phpsecinfo
SUBDIR += picosha2
SUBDIR += pidentd
SUBDIR += pidgin-encryption
SUBDIR += pidgin-otr

View File

@ -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 <bsd.port.mk>

View File

@ -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

View File

@ -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