Line 0
Link Here
|
|
|
1 |
# $FreeBSD$ |
2 |
|
3 |
PORTNAME= consul |
4 |
PORTVERSION= 0.4.1 |
5 |
CATEGORIES= sysutils |
6 |
MASTER_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/archive/${GH_TAGNAME}.tar.gz?dummy=/:group1 \ |
7 |
https://github.com/armon/circbuf/archive/f092b4f207b6e5cce0569056fba9e1a2735cb6cf.tar.gz?dummy=/:group2 \ |
8 |
https://github.com/armon/consul-api/archive/1b81c8e0c4cbf1d382310e4c0dc11221632e79d1.tar.gz?dummy=/:group3 \ |
9 |
https://github.com/armon/go-metrics/archive/2b75159ce5d3641fb35b5a159cff309ac3cf4177.tar.gz?dummy=/:group4 \ |
10 |
https://github.com/armon/go-radix/archive/b045fc0ad3587e8620fb42a0dea882cf8c08aef9.tar.gz?dummy=/:group5 \ |
11 |
https://github.com/armon/gomdb/archive/a8e036c4dabe7437014ecf9dbc03c6f6f0766ef8.tar.gz?dummy=/:group6 \ |
12 |
https://github.com/hashicorp/go-checkpoint/archive/89ef2a697dd8cdb4623097d5bb9acdb19a470767.tar.gz?dummy=/:group7 \ |
13 |
https://github.com/hashicorp/go-msgpack/archive/71c2886f5a673a35f909803f38ece5810165097b.tar.gz?dummy=/:group8 \ |
14 |
https://github.com/hashicorp/go-syslog/archive/ac3963b72ac367e48b1e68a831e62b93fb69091c.tar.gz?dummy=/:group9 \ |
15 |
https://github.com/hashicorp/golang-lru/archive/253b2dc1ca8bae42c3b5b6e53dd2eab1a7551116.tar.gz?dummy=/:group10 \ |
16 |
https://github.com/hashicorp/hcl/archive/e51eabcdf801f663738fa12f4340fbad13062738.tar.gz?dummy=/:group11 \ |
17 |
https://github.com/hashicorp/logutils/archive/23b0af5510a2d1442103ef83ffcf53eb82f3debc.tar.gz?dummy=/:group12 \ |
18 |
https://github.com/hashicorp/memberlist/archive/16d947e2d4b3f1fe508ee1d9b6ec34b8fd2e96d8.tar.gz?dummy=/:group13 \ |
19 |
https://github.com/hashicorp/raft/archive/cc9710ab540985954a67c108f414aa3152f5916f.tar.gz?dummy=/:group14 \ |
20 |
https://github.com/hashicorp/raft-mdb/archive/6f52d0ce62a34e3f5bd29aa4d7068030d700d94a.tar.gz?dummy=/:group15 \ |
21 |
https://github.com/hashicorp/serf/archive/0479bc1b942fd84205587f7e73867ac78809966b.tar.gz?dummy=/:group16 \ |
22 |
https://github.com/hashicorp/terraform/archive/2d117326edb33b7155d1ec9d0ab9d3542ba1b230.tar.gz?dummy=/:group17 \ |
23 |
https://github.com/hashicorp/yamux/archive/9feabe6854fadca1abec9cd3bd2a613fe9a34000.tar.gz?dummy=/:group18 \ |
24 |
https://github.com/inconshreveable/muxado/archive/f693c7e88ba316d1a0ae3e205e22a01aa3ec2848.tar.gz?dummy=/:group19 \ |
25 |
https://github.com/miekg/dns/archive/dc30c7cd4ed2fc8af73d49da4ee285404958b8bd.tar.gz?dummy=/:group20 \ |
26 |
https://github.com/mitchellh/cli/archive/e3c2e3d39391e9beb9660ccd6b4bd9a2f38dd8a0.tar.gz?dummy=/:group21 \ |
27 |
https://github.com/mitchellh/mapstructure/archive/740c764bc6149d3f1806231418adb9f52c11bcbf.tar.gz?dummy=/:group22 \ |
28 |
https://github.com/ryanuber/columnize/archive/44cb4788b2ec3c3d158dd3d1b50aba7d66f4b59a.tar.gz?dummy=/:group23 \ |
29 |
https://github.com/ugorji/go/archive/e906e395b9d45d3230e800c8ad1f92f99764e753.tar.gz?dummy=/:group24 \ |
30 |
https://dl.bintray.com/mitchellh/consul/:group25 |
31 |
DISTFILES= consul-0.4.1.tar.gz:group1 \ |
32 |
armon_circbuf_f092b4f207b6e5cce0569056fba9e1a2735cb6cf.tar.gz:group2 \ |
33 |
armon_consul-api_1b81c8e0c4cbf1d382310e4c0dc11221632e79d1.tar.gz:group3 \ |
34 |
armon_go-metrics_2b75159ce5d3641fb35b5a159cff309ac3cf4177.tar.gz:group4 \ |
35 |
armon_go-radix_b045fc0ad3587e8620fb42a0dea882cf8c08aef9.tar.gz:group5 \ |
36 |
armon_gomdb_a8e036c4dabe7437014ecf9dbc03c6f6f0766ef8.tar.gz:group6 \ |
37 |
hashicorp_go-checkpoint_89ef2a697dd8cdb4623097d5bb9acdb19a470767.tar.gz:group7 \ |
38 |
hashicorp_go-msgpack_71c2886f5a673a35f909803f38ece5810165097b.tar.gz:group8 \ |
39 |
hashicorp_go-syslog_ac3963b72ac367e48b1e68a831e62b93fb69091c.tar.gz:group9 \ |
40 |
hashicorp_golang-lru_253b2dc1ca8bae42c3b5b6e53dd2eab1a7551116.tar.gz:group10 \ |
41 |
hashicorp_hcl_e51eabcdf801f663738fa12f4340fbad13062738.tar.gz:group11 \ |
42 |
hashicorp_logutils_23b0af5510a2d1442103ef83ffcf53eb82f3debc.tar.gz:group12 \ |
43 |
hashicorp_memberlist_16d947e2d4b3f1fe508ee1d9b6ec34b8fd2e96d8.tar.gz:group13 \ |
44 |
hashicorp_raft_cc9710ab540985954a67c108f414aa3152f5916f.tar.gz:group14 \ |
45 |
hashicorp_raft-mdb_6f52d0ce62a34e3f5bd29aa4d7068030d700d94a.tar.gz:group15 \ |
46 |
hashicorp_serf_0479bc1b942fd84205587f7e73867ac78809966b.tar.gz:group16 \ |
47 |
hashicorp_terraform_2d117326edb33b7155d1ec9d0ab9d3542ba1b230.tar.gz:group17 \ |
48 |
hashicorp_yamux_9feabe6854fadca1abec9cd3bd2a613fe9a34000.tar.gz:group18 \ |
49 |
inconshreveable_muxado_f693c7e88ba316d1a0ae3e205e22a01aa3ec2848.tar.gz:group19 \ |
50 |
miekg_dns_dc30c7cd4ed2fc8af73d49da4ee285404958b8bd.tar.gz:group20 \ |
51 |
mitchellh_cli_e3c2e3d39391e9beb9660ccd6b4bd9a2f38dd8a0.tar.gz:group21 \ |
52 |
mitchellh_mapstructure_740c764bc6149d3f1806231418adb9f52c11bcbf.tar.gz:group22 \ |
53 |
ryanuber_columnize_44cb4788b2ec3c3d158dd3d1b50aba7d66f4b59a.tar.gz:group23 \ |
54 |
ugorji_go_e906e395b9d45d3230e800c8ad1f92f99764e753.tar.gz:group24 \ |
55 |
0.4.1_web_ui.zip:group25 |
56 |
|
57 |
MAINTAINER= swills@FreeBSD.org |
58 |
COMMENT= Service discovery and configuration made easy |
59 |
|
60 |
LICENSE= MPL |
61 |
|
62 |
BUILD_DEPENDS= ${LOCALBASE}/bin/go:${PORTSDIR}/lang/go |
63 |
|
64 |
USES= compiler |
65 |
|
66 |
USE_GITHUB= yes |
67 |
GH_ACCOUNT= hashicorp |
68 |
GH_COMMIT= aaddfa2 |
69 |
GH_TAGNAME= v${PORTVERSION} |
70 |
|
71 |
USE_RC_SUBR= consul |
72 |
|
73 |
USERS= consul |
74 |
GROUPS= consul |
75 |
|
76 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} |
77 |
|
78 |
STRIP= # stripping can break go binaries |
79 |
|
80 |
post-patch: |
81 |
@${MKDIR} ${WRKSRC}/src/github.com/hashicorp/consul |
82 |
.for src in .gitignore .travis.yml CHANGELOG.md LICENSE Makefile README.md \ |
83 |
Vagrantfile acl bench command commands.go consul demo deps \ |
84 |
main.go main_test.go scripts terraform test testutil ui \ |
85 |
version.go watch website |
86 |
@${MV} ${WRKSRC}/${src} \ |
87 |
${WRKSRC}/src/github.com/hashicorp/consul |
88 |
.endfor |
89 |
@${MKDIR} ${WRKSRC}/src/github.com/armon |
90 |
@${MKDIR} ${WRKSRC}/src/github.com/inconshreveable |
91 |
@${MKDIR} ${WRKSRC}/src/github.com/miekg |
92 |
@${MKDIR} ${WRKSRC}/src/github.com/mitchellh |
93 |
@${MKDIR} ${WRKSRC}/src/github.com/ryanuber |
94 |
@${MKDIR} ${WRKSRC}/src/github.com/ugorji |
95 |
@${MV} ${WRKDIR}/circbuf-f092b4f207b6e5cce0569056fba9e1a2735cb6cf \ |
96 |
${WRKSRC}/src/github.com/armon/circbuf |
97 |
@${MV} ${WRKDIR}/consul-api-1b81c8e0c4cbf1d382310e4c0dc11221632e79d1 \ |
98 |
${WRKSRC}/src/github.com/armon/consul-api |
99 |
@${MV} ${WRKDIR}/go-metrics-2b75159ce5d3641fb35b5a159cff309ac3cf4177 \ |
100 |
${WRKSRC}/src/github.com/armon/go-metrics |
101 |
@${MV} ${WRKDIR}/go-radix-b045fc0ad3587e8620fb42a0dea882cf8c08aef9 \ |
102 |
${WRKSRC}/src/github.com/armon/go-radix |
103 |
@${MV} ${WRKDIR}/gomdb-a8e036c4dabe7437014ecf9dbc03c6f6f0766ef8 \ |
104 |
${WRKSRC}/src/github.com/armon/gomdb |
105 |
@${MV} ${WRKDIR}/go-msgpack-71c2886f5a673a35f909803f38ece5810165097b \ |
106 |
${WRKSRC}/src/github.com/hashicorp/go-msgpack |
107 |
@${MV} ${WRKDIR}/go-checkpoint-89ef2a697dd8cdb4623097d5bb9acdb19a470767 \ |
108 |
${WRKSRC}/src/github.com/hashicorp/go-checkpoint |
109 |
@${MV} ${WRKDIR}/go-syslog-ac3963b72ac367e48b1e68a831e62b93fb69091c \ |
110 |
${WRKSRC}/src/github.com/hashicorp/go-syslog |
111 |
@${MV} ${WRKDIR}/golang-lru-253b2dc1ca8bae42c3b5b6e53dd2eab1a7551116 \ |
112 |
${WRKSRC}/src/github.com/hashicorp/golang-lru |
113 |
@${MV} ${WRKDIR}/hcl-e51eabcdf801f663738fa12f4340fbad13062738 \ |
114 |
${WRKSRC}/src/github.com/hashicorp/hcl |
115 |
@${MV} ${WRKDIR}/logutils-23b0af5510a2d1442103ef83ffcf53eb82f3debc \ |
116 |
${WRKSRC}/src/github.com/hashicorp/logutils |
117 |
@${MV} ${WRKDIR}/memberlist-16d947e2d4b3f1fe508ee1d9b6ec34b8fd2e96d8 \ |
118 |
${WRKSRC}/src/github.com/hashicorp/memberlist |
119 |
@${MV} ${WRKDIR}/raft-cc9710ab540985954a67c108f414aa3152f5916f \ |
120 |
${WRKSRC}/src/github.com/hashicorp/raft |
121 |
@${MV} ${WRKDIR}/raft-mdb-6f52d0ce62a34e3f5bd29aa4d7068030d700d94a \ |
122 |
${WRKSRC}/src/github.com/hashicorp/raft-mdb |
123 |
@${MV} ${WRKDIR}/serf-0479bc1b942fd84205587f7e73867ac78809966b \ |
124 |
${WRKSRC}/src/github.com/hashicorp/serf |
125 |
@${MV} ${WRKDIR}/terraform-2d117326edb33b7155d1ec9d0ab9d3542ba1b230 \ |
126 |
${WRKSRC}/src/github.com/hashicorp/terraform |
127 |
@${MV} ${WRKDIR}/yamux-9feabe6854fadca1abec9cd3bd2a613fe9a34000 \ |
128 |
${WRKSRC}/src/github.com/hashicorp/yamux |
129 |
@${MV} ${WRKDIR}/muxado-f693c7e88ba316d1a0ae3e205e22a01aa3ec2848 \ |
130 |
${WRKSRC}/src/github.com/inconshreveable/muxado |
131 |
@${MV} ${WRKDIR}/dns-dc30c7cd4ed2fc8af73d49da4ee285404958b8bd \ |
132 |
${WRKSRC}/src/github.com/miekg/dns |
133 |
@${MV} ${WRKDIR}/cli-e3c2e3d39391e9beb9660ccd6b4bd9a2f38dd8a0 \ |
134 |
${WRKSRC}/src/github.com/mitchellh/cli |
135 |
@${MV} ${WRKDIR}/mapstructure-740c764bc6149d3f1806231418adb9f52c11bcbf \ |
136 |
${WRKSRC}/src/github.com/mitchellh/mapstructure |
137 |
@${MV} ${WRKDIR}/columnize-44cb4788b2ec3c3d158dd3d1b50aba7d66f4b59a \ |
138 |
${WRKSRC}/src/github.com/ryanuber/columnize |
139 |
|
140 |
do-build: |
141 |
@cd ${WRKSRC}/src/github.com/hashicorp/consul; ${SETENV} ${BUILD_ENV} GOPATH=${WRKSRC} go build -o bin/consul |
142 |
|
143 |
do-install: |
144 |
${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/hashicorp/consul/bin/consul ${STAGEDIR}${PREFIX}/bin/consul |
145 |
${MKDIR} ${STAGEDIR}${DATADIR} |
146 |
cd ${WRKDIR}/dist && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} |
147 |
|
148 |
.include <bsd.port.pre.mk> |
149 |
|
150 |
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 900044 && ${ARCH} == i386 |
151 |
BROKEN= Does not build |
152 |
.endif |
153 |
|
154 |
# golang assumes that if clang is in use, it is called "clang" and not "cc". If |
155 |
# it's called "cc", go fails. |
156 |
.if ${COMPILER_TYPE} == clang |
157 |
BUILD_ENV= CC=clang |
158 |
.endif |
159 |
|
160 |
.include <bsd.port.post.mk> |