blob: 1c77e5661b944be91979e317265cf73358639116 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
PORTNAME= cfssl
DISTVERSIONPREFIX= v
DISTVERSION= 1.5.0
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:modules 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 \
davecgh:go-spew:v1.1.1:davecgh_go_spew/vendor/github.com/davecgh/go-spew \
getsentry:raven-go:563b81fc02b7:getsentry_raven_go/vendor/github.com/getsentry/raven-go \
go-sql-driver:mysql:v1.4.0:go_sql_driver_mysql/vendor/github.com/go-sql-driver/mysql \
go-yaml:yaml:v2.2.2:go_yaml_yaml/vendor/gopkg.in/yaml.v2 \
golang:appengine:v1.6.6:golang_appengine/vendor/google.golang.org/appengine \
golang:crypto:84dcc777aaee:golang_crypto/vendor/golang.org/x/crypto \
golang:lint:16217165b5de:golang_lint/vendor/golang.org/x/lint \
golang:net:4f7140c49acb:golang_net/vendor/golang.org/x/net \
golang:protobuf:v1.3.1:golang_protobuf/vendor/github.com/golang/protobuf \
golang:text:v0.3.3: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:v1.2.0: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:v1.3.0: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 \
pmezard:go-difflib:v1.0.0:pmezard_go_difflib/vendor/github.com/pmezard/go-difflib \
stretchr:testify:v1.4.0:stretchr_testify/vendor/github.com/stretchr/testify \
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.13.0:weppos_publicsuffix_go/vendor/github.com/weppos/publicsuffix-go \
ziutek:mymysql:v1.5.4:ziutek_mymysql/vendor/github.com/ziutek/mymysql \
zmap:zcrypto:43ff0ea04f21:zmap_zcrypto/vendor/github.com/zmap/zcrypto \
zmap:zlint:v2.2.1:zmap_zlint_v2/vendor/github.com/zmap/zlint/v2
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>
|