New port: security/cfssl: CloudFlares PKI and TLS toolkit

PR:		205326
Submitted by:	Tomoyuki Sakurai <trombik1973@gmail.com> (latest version), me (original version)
This commit is contained in:
Yuri Victorovich 2020-05-23 18:28:12 +00:00
parent 4fa63fbae4
commit 7f900a44b6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=536329
5 changed files with 166 additions and 0 deletions

View file

@ -72,6 +72,7 @@
SUBDIR += ccsrch
SUBDIR += certificate-transparency
SUBDIR += cfs
SUBDIR += cfssl
SUBDIR += chaosreader
SUBDIR += checkpassword
SUBDIR += checkpassword-pam

79
security/cfssl/Makefile Normal file
View file

@ -0,0 +1,79 @@
# $FreeBSD$
PORTNAME= cfssl
DISTVERSIONPREFIX= v
DISTVERSION= 1.4.1
CATEGORIES= security
MASTER_SITES= https://bitbucket.org/${GOOSE_ACCOUNT}/${GOOSE_PROJECT}/get/${GOOSE_COMMIT}.tar.gz?dummy=goose-${GOOSE_COMMIT}.tar.gz/:goose
DISTFILES= goose-${GOOSE_COMMIT}.tar.gz:goose
MAINTAINER= yuri@FreeBSD.org
COMMENT= CloudFlares PKI and TLS toolkit
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libltdl.so:devel/libltdl
USES= go:no_targets gmake
USE_GITHUB= yes
GH_ACCOUNT= cloudflare
GH_TUPLE= \
GeertJohan:go.incremental:v1.0.0:geertjohan_go_incremental/vendor/github.com/GeertJohan/go.incremental \
GeertJohan:go.rice:v1.0.0:geertjohan_go_rice/vendor/github.com/GeertJohan/go.rice \
akavel:rsrc:v0.8.0:akavel_rsrc/vendor/github.com/akavel/rsrc \
certifi:gocertifi:deb3ae2ef261:certifi_gocertifi/vendor/github.com/certifi/gocertifi \
cloudflare:backoff:647f3cdfc87a:cloudflare_backoff/vendor/github.com/cloudflare/backoff \
cloudflare:go-metrics:6a9aea36fb41:cloudflare_go_metrics/vendor/github.com/cloudflare/go-metrics \
cloudflare:redoctober:746a508df14c:cloudflare_redoctober/vendor/github.com/cloudflare/redoctober \
daaku:go.zipexe:v1.0.0:daaku_go_zipexe/vendor/github.com/daaku/go.zipexe \
getsentry:raven-go:563b81fc02b7:getsentry_raven_go/vendor/github.com/getsentry/raven-go \
go-sql-driver:mysql:v1.3.0:go_sql_driver_mysql/vendor/github.com/go-sql-driver/mysql \
golang:crypto:4def268fd1a4:golang_crypto/vendor/golang.org/x/crypto \
golang:lint:16217165b5de:golang_lint/vendor/golang.org/x/lint \
golang:net:eb5bcb51f2a3:golang_net/vendor/golang.org/x/net \
golang:protobuf:v1.3.1:golang_protobuf/vendor/github.com/golang/protobuf \
golang:text:v0.3.2:golang_text/vendor/golang.org/x/text \
golang:tools:11955173bddd:golang_tools/vendor/golang.org/x/tools \
google:certificate-transparency-go:v1.0.21:google_certificate_transparency_go/vendor/github.com/google/certificate-transparency-go \
jessevdk:go-flags:v1.4.0:jessevdk_go_flags/vendor/github.com/jessevdk/go-flags \
jmhodges:clock:880ee4c33548:jmhodges_clock/vendor/github.com/jmhodges/clock \
jmoiron:sqlx:05cef0741ade:jmoiron_sqlx/vendor/github.com/jmoiron/sqlx \
kisielk:sqlstruct:648daed35d49:kisielk_sqlstruct/vendor/github.com/kisielk/sqlstruct \
kisom:goutils:v1.1.0:kisom_goutils/vendor/github.com/kisom/goutils \
kylelemons:go-gypsy:08cad365cd28:kylelemons_go_gypsy/vendor/github.com/kylelemons/go-gypsy \
lib:pq:88edab080323:lib_pq/vendor/github.com/lib/pq \
mattn:go-sqlite3:v1.10.0:mattn_go_sqlite3/vendor/github.com/mattn/go-sqlite3 \
nkovacs:streamquote:49af9bddb229:nkovacs_streamquote/vendor/github.com/nkovacs/streamquote \
pkg:errors:v0.8.0:pkg_errors/vendor/github.com/pkg/errors \
valyala:bytebufferpool:v1.0.0:valyala_bytebufferpool/vendor/github.com/valyala/bytebufferpool \
valyala:fasttemplate:v1.0.1:valyala_fasttemplate/vendor/github.com/valyala/fasttemplate \
weppos:publicsuffix-go:v0.5.0:weppos_publicsuffix_go/vendor/github.com/weppos/publicsuffix-go \
ziutek:mymysql:v1.5.4:ziutek_mymysql/vendor/github.com/ziutek/mymysql \
zmap:zcrypto:9051775e6a2e:zmap_zcrypto/vendor/github.com/zmap/zcrypto \
zmap:zlint:fd021b4cfbeb:zmap_zlint/vendor/github.com/zmap/zlint
GOOSE_ACCOUNT= liamstask
GOOSE_PROJECT= goose
GOOSE_COMMIT= 8488cc47d90c
EXES= cfssl cfssl-bundle cfssl-certinfo cfssl-newkey cfssl-scan cfssljson mkbundle multirootca
PLIST_FILES= ${EXES:S/^/bin\//}
pre-configure:
${REINPLACE_CMD} -e 's|%%DISTVERSION%%|${DISTVERSION}|g' ${WRKSRC}/cli/version/version.go
# the project uses Makefile for build and installation
do-build:
(cd ${WRKSRC} && \
${SETENV} ${MAKE_ENV} ${GO_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS} all)
do-install:
# Makefile is used but the install target uses go install.
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GO_ENV} GOBIN=${STAGEDIR}${PREFIX}/bin ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS} install
.for F in cfssl cfssl-certinfo multirootca
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${F}
.endfor
.include <bsd.port.mk>

71
security/cfssl/distinfo Normal file
View file

@ -0,0 +1,71 @@
TIMESTAMP = 1590258034
SHA256 (goose-8488cc47d90c.tar.gz) = de23d03b1f2c04c18bfd75462af496547d335e5ef7813bc72dbc8285ccfd1b70
SIZE (goose-8488cc47d90c.tar.gz) = 15324
SHA256 (cloudflare-cfssl-v1.4.1_GH0.tar.gz) = c8a86ef10cbb0c168f3b597db15b31f98b170edb7958f7154edeb29aee41315e
SIZE (cloudflare-cfssl-v1.4.1_GH0.tar.gz) = 5736648
SHA256 (GeertJohan-go.incremental-v1.0.0_GH0.tar.gz) = 523992ab4bf786eb2e23f7d4e2cb02c9db666feb68400ce3629b17036617927e
SIZE (GeertJohan-go.incremental-v1.0.0_GH0.tar.gz) = 4121
SHA256 (GeertJohan-go.rice-v1.0.0_GH0.tar.gz) = 540cb64258fc2422664c73454b5dbaac5487a45906c935d25285a2a60085d877
SIZE (GeertJohan-go.rice-v1.0.0_GH0.tar.gz) = 69271
SHA256 (akavel-rsrc-v0.8.0_GH0.tar.gz) = b12d41b1eaf7e9342ac722d9f96f4a5b82d31fb5819d39f1f8dbe81439e987c1
SIZE (akavel-rsrc-v0.8.0_GH0.tar.gz) = 11150
SHA256 (certifi-gocertifi-deb3ae2ef261_GH0.tar.gz) = 47b8644bb26050b568493becd55d850683bf031d9e43cef37fb9893709e63723
SIZE (certifi-gocertifi-deb3ae2ef261_GH0.tar.gz) = 147882
SHA256 (cloudflare-backoff-647f3cdfc87a_GH0.tar.gz) = d2162141b0a093de7b43434b3ce1013d0e88f1149c52b1a26b94a5e95f313c04
SIZE (cloudflare-backoff-647f3cdfc87a_GH0.tar.gz) = 4752
SHA256 (cloudflare-go-metrics-6a9aea36fb41_GH0.tar.gz) = d5cb6a8c79ba463fc6002b8057a1f6370c131df8568a473a8557e9127c8878e4
SIZE (cloudflare-go-metrics-6a9aea36fb41_GH0.tar.gz) = 31845
SHA256 (cloudflare-redoctober-746a508df14c_GH0.tar.gz) = 91690ae9627704f97535d603d91f095f6ddea40724fb0f5882ab699662a46d21
SIZE (cloudflare-redoctober-746a508df14c_GH0.tar.gz) = 536348
SHA256 (daaku-go.zipexe-v1.0.0_GH0.tar.gz) = 83a5391e0b1671cb3f47783e8a7fca8ceb95260d0d693954a6075fbe39f380c7
SIZE (daaku-go.zipexe-v1.0.0_GH0.tar.gz) = 2109
SHA256 (getsentry-raven-go-563b81fc02b7_GH0.tar.gz) = ef95c09ad41cc9cfbdcd5826dc3da22521d4c63cda5d4cf5104dab2ba13860a4
SIZE (getsentry-raven-go-563b81fc02b7_GH0.tar.gz) = 24429
SHA256 (go-sql-driver-mysql-v1.3.0_GH0.tar.gz) = 71f8d9a6a63384f9ab6f6507a2dba732c7d14598df25207bef372a39b7ed3b21
SIZE (go-sql-driver-mysql-v1.3.0_GH0.tar.gz) = 59837
SHA256 (golang-crypto-4def268fd1a4_GH0.tar.gz) = eaf2ba9df95911f41a340478d1fbb540d7bc21939e4688273995dabf58e8c7b0
SIZE (golang-crypto-4def268fd1a4_GH0.tar.gz) = 1693117
SHA256 (golang-lint-16217165b5de_GH0.tar.gz) = e1b870caa2e428d183d6a467be064578582bacc19615e50867c24d53080ba496
SIZE (golang-lint-16217165b5de_GH0.tar.gz) = 31428
SHA256 (golang-net-eb5bcb51f2a3_GH0.tar.gz) = 191dd6c41872d0afa48ad594314ec60455fab7c98a2aca88ed0df28c32062348
SIZE (golang-net-eb5bcb51f2a3_GH0.tar.gz) = 976944
SHA256 (golang-protobuf-v1.3.1_GH0.tar.gz) = 3f3a6123054a9847093c119895f1660612f301fe95358f3a6a1a33fd0933e6cf
SIZE (golang-protobuf-v1.3.1_GH0.tar.gz) = 310884
SHA256 (golang-text-v0.3.2_GH0.tar.gz) = 0b9309698f5708531c5377ab1e29b423a6d9e20c55a8d386c3b8283428212f22
SIZE (golang-text-v0.3.2_GH0.tar.gz) = 7168069
SHA256 (golang-tools-11955173bddd_GH0.tar.gz) = cc1fc1d3b52ddd342422a616b4b583ea13290ee5aaa2581313ac0fc42a54dd34
SIZE (golang-tools-11955173bddd_GH0.tar.gz) = 2652106
SHA256 (google-certificate-transparency-go-v1.0.21_GH0.tar.gz) = 6f9f8b67f19ee6be7b0261342cbd69db13559f40945441a9dfe2db5bf0eae25b
SIZE (google-certificate-transparency-go-v1.0.21_GH0.tar.gz) = 4401179
SHA256 (jessevdk-go-flags-v1.4.0_GH0.tar.gz) = 3be7e8fb4b63887e8aeb55878244c04b7dcbe5ac77211c73ee35e38ca681e611
SIZE (jessevdk-go-flags-v1.4.0_GH0.tar.gz) = 55452
SHA256 (jmhodges-clock-880ee4c33548_GH0.tar.gz) = e3596522987867b0ae2c2b757c73d46dfb85998af35d0660cf4e168f8d2c092f
SIZE (jmhodges-clock-880ee4c33548_GH0.tar.gz) = 5763
SHA256 (jmoiron-sqlx-05cef0741ade_GH0.tar.gz) = 511f7dd08fd76b9ba396837cb3145c91d5d51923c420346a047984cf3d91fc29
SIZE (jmoiron-sqlx-05cef0741ade_GH0.tar.gz) = 48304
SHA256 (kisielk-sqlstruct-648daed35d49_GH0.tar.gz) = 8d261c45c5ecd1daf75ab6074c07552d5a369318e92b296868e9e1983ff5edac
SIZE (kisielk-sqlstruct-648daed35d49_GH0.tar.gz) = 5080
SHA256 (kisom-goutils-v1.1.0_GH0.tar.gz) = 70673712aee6359cefef3237796ec85e50a8383da3e5e923583dc8aa9593488f
SIZE (kisom-goutils-v1.1.0_GH0.tar.gz) = 71772
SHA256 (kylelemons-go-gypsy-08cad365cd28_GH0.tar.gz) = 0a376e909ac264c2c8060f5a2275cc68f4471be84e18ade4271204b03a70b373
SIZE (kylelemons-go-gypsy-08cad365cd28_GH0.tar.gz) = 13619
SHA256 (lib-pq-88edab080323_GH0.tar.gz) = 678c29bdd78e5004cadba58996a3f4b23eeed7277a99625f94fe2be208e6d334
SIZE (lib-pq-88edab080323_GH0.tar.gz) = 90328
SHA256 (mattn-go-sqlite3-v1.10.0_GH0.tar.gz) = 26373461df8c717540b48b6014d823216a69545337cde6683308c6a67f63de01
SIZE (mattn-go-sqlite3-v1.10.0_GH0.tar.gz) = 2231288
SHA256 (nkovacs-streamquote-49af9bddb229_GH0.tar.gz) = 51d7bb95b439c277817013405c4de8de77c3f6ab8cdae3d0c505478972656418
SIZE (nkovacs-streamquote-49af9bddb229_GH0.tar.gz) = 3938
SHA256 (pkg-errors-v0.8.0_GH0.tar.gz) = bacf6c58e490911398cee61742ddc6a90c560733e4c9dcb3d867b17a894c9dd5
SIZE (pkg-errors-v0.8.0_GH0.tar.gz) = 11344
SHA256 (valyala-bytebufferpool-v1.0.0_GH0.tar.gz) = 089013e3429ebe7fd2bc3527f003bf3f3f639891e5d8ba6a56010e3671465e1f
SIZE (valyala-bytebufferpool-v1.0.0_GH0.tar.gz) = 5025
SHA256 (valyala-fasttemplate-v1.0.1_GH0.tar.gz) = dd596785cb9b68280cc4fa0ff0e7d2ffc164cd13553afa656a8977b8ef342196
SIZE (valyala-fasttemplate-v1.0.1_GH0.tar.gz) = 11813
SHA256 (weppos-publicsuffix-go-v0.5.0_GH0.tar.gz) = 158a46086fb7fcb8bd1cc18fa043a3007b0e901ea24e959a951b7142a5195ad8
SIZE (weppos-publicsuffix-go-v0.5.0_GH0.tar.gz) = 58145
SHA256 (ziutek-mymysql-v1.5.4_GH0.tar.gz) = 111b478d6190786ee098af3f365be0e33ed59e30ec4a2a9066b714515089f062
SIZE (ziutek-mymysql-v1.5.4_GH0.tar.gz) = 61564
SHA256 (zmap-zcrypto-9051775e6a2e_GH0.tar.gz) = 20e21b653d6c26ff8b2df3a783723b240f35a3c7a9538a32e3d4ad64cc78d78f
SIZE (zmap-zcrypto-9051775e6a2e_GH0.tar.gz) = 3911246
SHA256 (zmap-zlint-fd021b4cfbeb_GH0.tar.gz) = 9ec4cce8560056bbe499a2ea02bd99d4d3a992371ea6842fffe1a71a7ce66ace
SIZE (zmap-zlint-fd021b4cfbeb_GH0.tar.gz) = 2768345

View file

@ -0,0 +1,11 @@
--- cli/version/version.go.orig 2020-05-23 09:19:37 UTC
+++ cli/version/version.go
@@ -9,7 +9,7 @@ import (
)
var (
- version = "dev"
+ version = "%%DISTVERSION%%"
)
// Usage text for 'cfssl version'

4
security/cfssl/pkg-descr Normal file
View file

@ -0,0 +1,4 @@
CFSSL is CloudFlare's PKI/TLS swiss army knife. It is both a command line tool
and an HTTP API server for signing, verifying, and bundling TLS certificates.
WWW: https://cfssl.org/