mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-19 08:13:21 +00:00
79 lines
4.0 KiB
Makefile
79 lines
4.0 KiB
Makefile
# $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= Cloudflare's 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>
|