import security/cfssl, from Karlis Mikelsons with tweaks, ok'd a while ago

by abieber@

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.
This commit is contained in:
sthen 2020-02-07 16:57:04 +00:00
parent 5a30dfa213
commit 3369f2fa0c
4 changed files with 50 additions and 0 deletions

34
security/cfssl/Makefile Normal file
View File

@ -0,0 +1,34 @@
# $OpenBSD: Makefile,v 1.1.1.1 2020/02/07 16:57:04 sthen Exp $
COMMENT = CloudFlare PKI/TLS command-line toolkit and HTTP API server
GH_ACCOUNT = cloudflare
GH_PROJECT = cfssl
VERSION = 1.4.1
GH_TAGNAME = v${VERSION}
CATEGORIES = security
HOMEPAGE = https://cfssl.org/
# BSD
PERMIT_PACKAGE = Yes
WANTLIB = c pthread
USE_GMAKE = Yes
MODULES= lang/go
MODGO_LDFLAGS += -X github.com/cloudflare/cfssl/cli/version.version=${VERSION}
do-build:
cd ${WRKSRC}; ${MODGO_BUILD_CMD} github.com/cloudflare/cfssl/...
post-build:
rm ${MODGO_WORKSPACE}/bin/example
mv ${MODGO_WORKSPACE}/bin/mkbundle ${MODGO_WORKSPACE}/bin/cfssl-mkbundle
do-test:
cd ${WRKSRC}; ${MODGO_CMD} test github.com/cloudflare/cfssl/...
.include <bsd.port.mk>

2
security/cfssl/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (cfssl-1.4.1.tar.gz) = yKhu8Qy7DBaPO1l9sVsx+YsXDtt5WPcVTt6ymu5BMV4=
SIZE (cfssl-1.4.1.tar.gz) = 5736648

3
security/cfssl/pkg/DESCR Normal file
View File

@ -0,0 +1,3 @@
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.

11
security/cfssl/pkg/PLIST Normal file
View File

@ -0,0 +1,11 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2020/02/07 16:57:04 sthen Exp $
@bin bin/cfssl
@bin bin/cfssl-bundle
@bin bin/cfssl-certinfo
@bin bin/cfssl-mkbundle
@bin bin/cfssl-newkey
@bin bin/cfssl-scan
@bin bin/cfssljson
@bin bin/maclient
@bin bin/maserver
@bin bin/multirootca