openbsd-ports/security/cfssl/Makefile

36 lines
784 B
Makefile

# $OpenBSD: Makefile,v 1.3 2021/03/08 13:59:25 sthen Exp $
COMMENT = CloudFlare PKI/TLS command-line toolkit and HTTP API server
GH_ACCOUNT = cloudflare
GH_PROJECT = cfssl
VERSION = 1.5.0
GH_TAGNAME = v${VERSION}
REVISION = 0
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}; PATH=${WRKDIST}/go/bin:$$PATH ${MODGO_CMD} test github.com/cloudflare/cfssl/...
.include <bsd.port.mk>