View | Details | Raw Unified | Return to bug 192937 | Differences between
and this patch

Collapse All | Expand All

(-)UIDs (+1 lines)
Lines 184-189 Link Here
184
condor:*:466:466::0:0:& user:/home/condor:/usr/sbin/nologin
184
condor:*:466:466::0:0:& user:/home/condor:/usr/sbin/nologin
185
netmon:*:467:467::0:0:Network monitor account:/var/netmon:/usr/sbin/nologin
185
netmon:*:467:467::0:0:Network monitor account:/var/netmon:/usr/sbin/nologin
186
slurm:*:468:468::0:0:SLURM Daemon:/home/slurm:/usr/sbin/nologin
186
slurm:*:468:468::0:0:SLURM Daemon:/home/slurm:/usr/sbin/nologin
187
consul:*:469:469::0:0:Consul Daemon:/var/tmp/consul:/usr/sbin/nologin
187
_bbstored:*:505:505::0:0:Box Backup Store Daemon:/nonexistent:/usr/sbin/nologin
188
_bbstored:*:505:505::0:0:Box Backup Store Daemon:/nonexistent:/usr/sbin/nologin
188
radmind:*:506:506::0:0:radmind User:/var/radmind:/usr/sbin/nologin
189
radmind:*:506:506::0:0:radmind User:/var/radmind:/usr/sbin/nologin
189
skkserv:*:507:507::0:0:skkserv User:/nonexistent:/usr/sbin/nologin
190
skkserv:*:507:507::0:0:skkserv User:/nonexistent:/usr/sbin/nologin
(-)GIDs (+1 lines)
Lines 177-182 Link Here
177
condor:*:466:
177
condor:*:466:
178
netmon:*:467:
178
netmon:*:467:
179
slurm:*:468:
179
slurm:*:468:
180
consul:*:469:
180
_bbstored:*:505:
181
_bbstored:*:505:
181
radmind:*:506:
182
radmind:*:506:
182
skkserv:*:507:
183
skkserv:*:507:
(-)sysutils/consul/Makefile (+160 lines)
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>
(-)sysutils/consul/distinfo (+50 lines)
Line 0 Link Here
1
SHA256 (consul-0.4.1.tar.gz) = 16e681a7d88b1aa7422767c7bb77caa4ec530b313058d7b2bfd896132b8b63c2
2
SIZE (consul-0.4.1.tar.gz) = 1517746
3
SHA256 (armon_circbuf_f092b4f207b6e5cce0569056fba9e1a2735cb6cf.tar.gz) = b67d2ffc0a725b6844895680d52ba4a63757987637c8dabbb2c3e4d836512d52
4
SIZE (armon_circbuf_f092b4f207b6e5cce0569056fba9e1a2735cb6cf.tar.gz) = 2748
5
SHA256 (armon_consul-api_1b81c8e0c4cbf1d382310e4c0dc11221632e79d1.tar.gz) = 2df35d5b7c181139969d2334edfea50921b3579b9df2759851e4675b260c1493
6
SIZE (armon_consul-api_1b81c8e0c4cbf1d382310e4c0dc11221632e79d1.tar.gz) = 17545
7
SHA256 (armon_go-metrics_2b75159ce5d3641fb35b5a159cff309ac3cf4177.tar.gz) = 67ab87905e967eae7a9275ddbe3e7ad64b6ce76285e8ae012df347e82cfe512e
8
SIZE (armon_go-metrics_2b75159ce5d3641fb35b5a159cff309ac3cf4177.tar.gz) = 10438
9
SHA256 (armon_go-radix_b045fc0ad3587e8620fb42a0dea882cf8c08aef9.tar.gz) = 028fa454dbb84f6ff6114d46064dedb1ecc83a337e8712f32fe64100267ddd78
10
SIZE (armon_go-radix_b045fc0ad3587e8620fb42a0dea882cf8c08aef9.tar.gz) = 5013
11
SHA256 (armon_gomdb_a8e036c4dabe7437014ecf9dbc03c6f6f0766ef8.tar.gz) = 46dbe630e9d3032f44ed94c86f271056fa908f84b733075598ed62a1c2e09345
12
SIZE (armon_gomdb_a8e036c4dabe7437014ecf9dbc03c6f6f0766ef8.tar.gz) = 93349
13
SHA256 (hashicorp_go-checkpoint_89ef2a697dd8cdb4623097d5bb9acdb19a470767.tar.gz) = 6a2e3d8c78ee937b60e6c8c1a25f3aefc299a948def58287425b1fdda22b243b
14
SIZE (hashicorp_go-checkpoint_89ef2a697dd8cdb4623097d5bb9acdb19a470767.tar.gz) = 4437
15
SHA256 (hashicorp_go-msgpack_71c2886f5a673a35f909803f38ece5810165097b.tar.gz) = c32b90e67762a375981b38154cae65222bb1aaa7722727d0225d5f8de773e4c8
16
SIZE (hashicorp_go-msgpack_71c2886f5a673a35f909803f38ece5810165097b.tar.gz) = 49485
17
SHA256 (hashicorp_go-syslog_ac3963b72ac367e48b1e68a831e62b93fb69091c.tar.gz) = 089a6bda3f17d3a4c0545325581da29572d522a934fa601ff872709d1f2a7304
18
SIZE (hashicorp_go-syslog_ac3963b72ac367e48b1e68a831e62b93fb69091c.tar.gz) = 4389
19
SHA256 (hashicorp_golang-lru_253b2dc1ca8bae42c3b5b6e53dd2eab1a7551116.tar.gz) = 3afb52d3f8255b5db742bc39d223600a1614b8698142836000c7959da21bf0ab
20
SIZE (hashicorp_golang-lru_253b2dc1ca8bae42c3b5b6e53dd2eab1a7551116.tar.gz) = 7181
21
SHA256 (hashicorp_hcl_e51eabcdf801f663738fa12f4340fbad13062738.tar.gz) = e85880c71414fde6e3eeea887a9cdb4eae40e4c7e0a7b4d4e769f35d35bfd70e
22
SIZE (hashicorp_hcl_e51eabcdf801f663738fa12f4340fbad13062738.tar.gz) = 27209
23
SHA256 (hashicorp_logutils_23b0af5510a2d1442103ef83ffcf53eb82f3debc.tar.gz) = d07a719321f39c5095f7922888cd798c78bf0268499562de8de3fa30acd8cbb2
24
SIZE (hashicorp_logutils_23b0af5510a2d1442103ef83ffcf53eb82f3debc.tar.gz) = 7686
25
SHA256 (hashicorp_memberlist_16d947e2d4b3f1fe508ee1d9b6ec34b8fd2e96d8.tar.gz) = fdd57e3fadcc37b0b0a5f782d34d9ecf89f0fe6d69107c8c3f48c0c97007114c
26
SIZE (hashicorp_memberlist_16d947e2d4b3f1fe508ee1d9b6ec34b8fd2e96d8.tar.gz) = 48996
27
SHA256 (hashicorp_raft_cc9710ab540985954a67c108f414aa3152f5916f.tar.gz) = e5c297871e67ce6bbcda26b731f797f2f84275552aeaf37527d6c9a7bfefb3fc
28
SIZE (hashicorp_raft_cc9710ab540985954a67c108f414aa3152f5916f.tar.gz) = 54145
29
SHA256 (hashicorp_raft-mdb_6f52d0ce62a34e3f5bd29aa4d7068030d700d94a.tar.gz) = bc11b9093692c19c7ee756dc17ca88f20e33cf686b0f31ebb5c74445540fb447
30
SIZE (hashicorp_raft-mdb_6f52d0ce62a34e3f5bd29aa4d7068030d700d94a.tar.gz) = 9648
31
SHA256 (hashicorp_serf_0479bc1b942fd84205587f7e73867ac78809966b.tar.gz) = 3f1d3b4d14ab033da5a64795261c6f7512d25304cf2eb149ea4c42c0d87912a3
32
SIZE (hashicorp_serf_0479bc1b942fd84205587f7e73867ac78809966b.tar.gz) = 570942
33
SHA256 (hashicorp_terraform_2d117326edb33b7155d1ec9d0ab9d3542ba1b230.tar.gz) = 3f409a932281010a01a7d7e752decd73fd21a2ac7bae00717b6beab5f069722f
34
SIZE (hashicorp_terraform_2d117326edb33b7155d1ec9d0ab9d3542ba1b230.tar.gz) = 3245510
35
SHA256 (hashicorp_yamux_9feabe6854fadca1abec9cd3bd2a613fe9a34000.tar.gz) = ecb3f55add94710bc676ae580da78c64add15d34342f09d7f1496d50fa498542
36
SIZE (hashicorp_yamux_9feabe6854fadca1abec9cd3bd2a613fe9a34000.tar.gz) = 18591
37
SHA256 (inconshreveable_muxado_f693c7e88ba316d1a0ae3e205e22a01aa3ec2848.tar.gz) = 237354d5acf550d05d20841e0ec6e88cea29ece70fdf8fc73a2d59884ea6be01
38
SIZE (inconshreveable_muxado_f693c7e88ba316d1a0ae3e205e22a01aa3ec2848.tar.gz) = 25816
39
SHA256 (miekg_dns_dc30c7cd4ed2fc8af73d49da4ee285404958b8bd.tar.gz) = e0e5905fb65b4ff3900de93e429e7cc1f07d3ad8ee0b7d81fa798320fa255c95
40
SIZE (miekg_dns_dc30c7cd4ed2fc8af73d49da4ee285404958b8bd.tar.gz) = 109512
41
SHA256 (mitchellh_cli_e3c2e3d39391e9beb9660ccd6b4bd9a2f38dd8a0.tar.gz) = 0a05aa6d4a4968c00689e6b28575140c3832812bfffe4e909ecbf05e7b7bce8a
42
SIZE (mitchellh_cli_e3c2e3d39391e9beb9660ccd6b4bd9a2f38dd8a0.tar.gz) = 12189
43
SHA256 (mitchellh_mapstructure_740c764bc6149d3f1806231418adb9f52c11bcbf.tar.gz) = 8cc486fb6ee94d4a5597906fa5ca1c934dcd96ab1e2df6a0923d33024c3dc6a5
44
SIZE (mitchellh_mapstructure_740c764bc6149d3f1806231418adb9f52c11bcbf.tar.gz) = 11941
45
SHA256 (ryanuber_columnize_44cb4788b2ec3c3d158dd3d1b50aba7d66f4b59a.tar.gz) = 504519c9befbac3045a00a7a70e82cc437622294ece6ac19b85ffd4aa915369f
46
SIZE (ryanuber_columnize_44cb4788b2ec3c3d158dd3d1b50aba7d66f4b59a.tar.gz) = 3680
47
SHA256 (ugorji_go_e906e395b9d45d3230e800c8ad1f92f99764e753.tar.gz) = 035386ecdb37ee268507890c627f222960839db2757b22a9e64c4947f9f06c4d
48
SIZE (ugorji_go_e906e395b9d45d3230e800c8ad1f92f99764e753.tar.gz) = 58411
49
SHA256 (0.4.1_web_ui.zip) = e02929ed44f5392cadd5513bdc60b7ab7363d1670d59e64d2422123229962fa0
50
SIZE (0.4.1_web_ui.zip) = 248803
(-)sysutils/consul/files/consul.in (+52 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
# $FreeBSD$
4
#
5
# PROVIDE: consul
6
# REQUIRE: LOGIN
7
# KEYWORD: shutdown
8
#
9
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
10
# to enable this service:
11
#
12
# consul_enable (bool):	Set to NO by default.
13
#				Set it to YES to enable consul.
14
# consul_user (user):        Set user to run consul.
15
#                               Default is "consul".
16
# consul_group (group):      Set group to run consul.
17
#                               Default is "consul".
18
# consul_dir (dir):          Set dir to run consul in.
19
#                               Default is "/var/tmp/consul".
20
21
. /etc/rc.subr
22
23
name=consul
24
rcvar=consul_enable
25
26
load_rc_config $name
27
28
: ${consul_enable:="NO"}
29
: ${consul_user:="consul"}
30
: ${consul_group:="consul"}
31
: ${consul_dir:="/var/tmp/consul"}
32
33
pidfile=/var/run/consul.pid
34
procname="%%PREFIX%%/bin/consul"
35
command="/usr/sbin/daemon"
36
command_args="-f -p ${pidfile} ${procname} agent -data-dir=${consul_dir} -ui-dir=%%PREFIX%%/share/consul -config-dir=%%PREFIX%%/etc/consul.d ${consul_args}"
37
38
start_precmd=consul_startprecmd
39
40
consul_startprecmd()
41
{
42
        if [ ! -e ${pidfile} ]; then
43
                install -o ${consul_user} -g ${consul_group} /dev/null ${pidfile};
44
        fi
45
46
        if [ ! -d ${consul_dir} ]; then
47
                install -d -o ${consul_user} -g ${consul_group} ${consul_dir}
48
        fi
49
50
}
51
52
run_rc_command "$1"
(-)sysutils/consul/pkg-descr (+4 lines)
Line 0 Link Here
1
Consule is a distributed, highly available and data center aware tool for
2
discovering and configuring services.
3
4
WWW: https://consul.io/
(-)sysutils/consul/pkg-plist (+9 lines)
Line 0 Link Here
1
bin/consul
2
%%DATADIR%%/.gitkeep
3
%%DATADIR%%/index.html
4
%%DATADIR%%/static/application.min.js
5
%%DATADIR%%/static/base.css
6
%%DATADIR%%/static/bootstrap.min.css
7
%%DATADIR%%/static/consul-logo.png
8
%%DATADIR%%/static/favicon.png
9
%%DATADIR%%/static/loading-cylon-purple.svg

Return to bug 192937