From owner-svn-ports-all@FreeBSD.ORG Thu Mar 26 02:21:27 2015 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CFFBF5E7; Thu, 26 Mar 2015 02:21:27 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B75FB8C1; Thu, 26 Mar 2015 02:21:27 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t2Q2LRPX058953; Thu, 26 Mar 2015 02:21:27 GMT (envelope-from swills@FreeBSD.org) Received: (from swills@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t2Q2LP0J058944; Thu, 26 Mar 2015 02:21:25 GMT (envelope-from swills@FreeBSD.org) Message-Id: <201503260221.t2Q2LP0J058944@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: swills set sender to swills@FreeBSD.org using -f From: Steve Wills Date: Thu, 26 Mar 2015 02:21:25 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r382288 - in head/sysutils: . consul consul/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Mar 2015 02:21:27 -0000 Author: swills Date: Thu Mar 26 02:21:24 2015 New Revision: 382288 URL: https://svnweb.freebsd.org/changeset/ports/382288 QAT: https://qat.redports.org/buildarchive/r382288/ Log: sysutils/consul: add port Consule is a distributed, highly available and data center aware tool for discovering and configuring services. Set maintainer to myself for now since I made so many changes I'm not sure submitter wants to maintain any more. PR: 192937 Submitted by: Thomas Bartelmess (based on) Added: head/sysutils/consul/ head/sysutils/consul/Makefile (contents, props changed) head/sysutils/consul/distinfo (contents, props changed) head/sysutils/consul/files/ head/sysutils/consul/files/consul.in (contents, props changed) head/sysutils/consul/pkg-descr (contents, props changed) head/sysutils/consul/pkg-plist (contents, props changed) Modified: head/sysutils/Makefile Modified: head/sysutils/Makefile ============================================================================== --- head/sysutils/Makefile Thu Mar 26 01:57:14 2015 (r382287) +++ head/sysutils/Makefile Thu Mar 26 02:21:24 2015 (r382288) @@ -146,6 +146,7 @@ SUBDIR += conky-awesome SUBDIR += consolehm SUBDIR += consolekit + SUBDIR += consul SUBDIR += contractor SUBDIR += copytape SUBDIR += coreutils Added: head/sysutils/consul/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/consul/Makefile Thu Mar 26 02:21:24 2015 (r382288) @@ -0,0 +1,160 @@ +# $FreeBSD$ + +PORTNAME= consul +PORTVERSION= 0.4.1 +CATEGORIES= sysutils +MASTER_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/archive/${GH_TAGNAME}.tar.gz?dummy=/:group1 \ + https://github.com/armon/circbuf/archive/f092b4f207b6e5cce0569056fba9e1a2735cb6cf.tar.gz?dummy=/:group2 \ + https://github.com/armon/consul-api/archive/1b81c8e0c4cbf1d382310e4c0dc11221632e79d1.tar.gz?dummy=/:group3 \ + https://github.com/armon/go-metrics/archive/2b75159ce5d3641fb35b5a159cff309ac3cf4177.tar.gz?dummy=/:group4 \ + https://github.com/armon/go-radix/archive/b045fc0ad3587e8620fb42a0dea882cf8c08aef9.tar.gz?dummy=/:group5 \ + https://github.com/armon/gomdb/archive/a8e036c4dabe7437014ecf9dbc03c6f6f0766ef8.tar.gz?dummy=/:group6 \ + https://github.com/hashicorp/go-checkpoint/archive/89ef2a697dd8cdb4623097d5bb9acdb19a470767.tar.gz?dummy=/:group7 \ + https://github.com/hashicorp/go-msgpack/archive/71c2886f5a673a35f909803f38ece5810165097b.tar.gz?dummy=/:group8 \ + https://github.com/hashicorp/go-syslog/archive/ac3963b72ac367e48b1e68a831e62b93fb69091c.tar.gz?dummy=/:group9 \ + https://github.com/hashicorp/golang-lru/archive/253b2dc1ca8bae42c3b5b6e53dd2eab1a7551116.tar.gz?dummy=/:group10 \ + https://github.com/hashicorp/hcl/archive/e51eabcdf801f663738fa12f4340fbad13062738.tar.gz?dummy=/:group11 \ + https://github.com/hashicorp/logutils/archive/23b0af5510a2d1442103ef83ffcf53eb82f3debc.tar.gz?dummy=/:group12 \ + https://github.com/hashicorp/memberlist/archive/16d947e2d4b3f1fe508ee1d9b6ec34b8fd2e96d8.tar.gz?dummy=/:group13 \ + https://github.com/hashicorp/raft/archive/cc9710ab540985954a67c108f414aa3152f5916f.tar.gz?dummy=/:group14 \ + https://github.com/hashicorp/raft-mdb/archive/6f52d0ce62a34e3f5bd29aa4d7068030d700d94a.tar.gz?dummy=/:group15 \ + https://github.com/hashicorp/serf/archive/0479bc1b942fd84205587f7e73867ac78809966b.tar.gz?dummy=/:group16 \ + https://github.com/hashicorp/terraform/archive/2d117326edb33b7155d1ec9d0ab9d3542ba1b230.tar.gz?dummy=/:group17 \ + https://github.com/hashicorp/yamux/archive/9feabe6854fadca1abec9cd3bd2a613fe9a34000.tar.gz?dummy=/:group18 \ + https://github.com/inconshreveable/muxado/archive/f693c7e88ba316d1a0ae3e205e22a01aa3ec2848.tar.gz?dummy=/:group19 \ + https://github.com/miekg/dns/archive/dc30c7cd4ed2fc8af73d49da4ee285404958b8bd.tar.gz?dummy=/:group20 \ + https://github.com/mitchellh/cli/archive/e3c2e3d39391e9beb9660ccd6b4bd9a2f38dd8a0.tar.gz?dummy=/:group21 \ + https://github.com/mitchellh/mapstructure/archive/740c764bc6149d3f1806231418adb9f52c11bcbf.tar.gz?dummy=/:group22 \ + https://github.com/ryanuber/columnize/archive/44cb4788b2ec3c3d158dd3d1b50aba7d66f4b59a.tar.gz?dummy=/:group23 \ + https://github.com/ugorji/go/archive/e906e395b9d45d3230e800c8ad1f92f99764e753.tar.gz?dummy=/:group24 \ + https://dl.bintray.com/mitchellh/consul/:group25 +DISTFILES= consul-0.4.1.tar.gz:group1 \ + armon_circbuf_f092b4f207b6e5cce0569056fba9e1a2735cb6cf.tar.gz:group2 \ + armon_consul-api_1b81c8e0c4cbf1d382310e4c0dc11221632e79d1.tar.gz:group3 \ + armon_go-metrics_2b75159ce5d3641fb35b5a159cff309ac3cf4177.tar.gz:group4 \ + armon_go-radix_b045fc0ad3587e8620fb42a0dea882cf8c08aef9.tar.gz:group5 \ + armon_gomdb_a8e036c4dabe7437014ecf9dbc03c6f6f0766ef8.tar.gz:group6 \ + hashicorp_go-checkpoint_89ef2a697dd8cdb4623097d5bb9acdb19a470767.tar.gz:group7 \ + hashicorp_go-msgpack_71c2886f5a673a35f909803f38ece5810165097b.tar.gz:group8 \ + hashicorp_go-syslog_ac3963b72ac367e48b1e68a831e62b93fb69091c.tar.gz:group9 \ + hashicorp_golang-lru_253b2dc1ca8bae42c3b5b6e53dd2eab1a7551116.tar.gz:group10 \ + hashicorp_hcl_e51eabcdf801f663738fa12f4340fbad13062738.tar.gz:group11 \ + hashicorp_logutils_23b0af5510a2d1442103ef83ffcf53eb82f3debc.tar.gz:group12 \ + hashicorp_memberlist_16d947e2d4b3f1fe508ee1d9b6ec34b8fd2e96d8.tar.gz:group13 \ + hashicorp_raft_cc9710ab540985954a67c108f414aa3152f5916f.tar.gz:group14 \ + hashicorp_raft-mdb_6f52d0ce62a34e3f5bd29aa4d7068030d700d94a.tar.gz:group15 \ + hashicorp_serf_0479bc1b942fd84205587f7e73867ac78809966b.tar.gz:group16 \ + hashicorp_terraform_2d117326edb33b7155d1ec9d0ab9d3542ba1b230.tar.gz:group17 \ + hashicorp_yamux_9feabe6854fadca1abec9cd3bd2a613fe9a34000.tar.gz:group18 \ + inconshreveable_muxado_f693c7e88ba316d1a0ae3e205e22a01aa3ec2848.tar.gz:group19 \ + miekg_dns_dc30c7cd4ed2fc8af73d49da4ee285404958b8bd.tar.gz:group20 \ + mitchellh_cli_e3c2e3d39391e9beb9660ccd6b4bd9a2f38dd8a0.tar.gz:group21 \ + mitchellh_mapstructure_740c764bc6149d3f1806231418adb9f52c11bcbf.tar.gz:group22 \ + ryanuber_columnize_44cb4788b2ec3c3d158dd3d1b50aba7d66f4b59a.tar.gz:group23 \ + ugorji_go_e906e395b9d45d3230e800c8ad1f92f99764e753.tar.gz:group24 \ + 0.4.1_web_ui.zip:group25 + +MAINTAINER= swills@FreeBSD.org +COMMENT= Service discovery and configuration made easy + +LICENSE= MPL + +BUILD_DEPENDS= ${LOCALBASE}/bin/go:${PORTSDIR}/lang/go + +USES= compiler + +USE_GITHUB= yes +GH_ACCOUNT= hashicorp +GH_COMMIT= aaddfa2 +GH_TAGNAME= v${PORTVERSION} + +USE_RC_SUBR= consul + +USERS= consul +GROUPS= consul + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} + +STRIP= # stripping can break go binaries + +post-patch: + @${MKDIR} ${WRKSRC}/src/github.com/hashicorp/consul +.for src in .gitignore .travis.yml CHANGELOG.md LICENSE Makefile README.md \ + Vagrantfile acl bench command commands.go consul demo deps \ + main.go main_test.go scripts terraform test testutil ui \ + version.go watch website + @${MV} ${WRKSRC}/${src} \ + ${WRKSRC}/src/github.com/hashicorp/consul +.endfor + @${MKDIR} ${WRKSRC}/src/github.com/armon + @${MKDIR} ${WRKSRC}/src/github.com/inconshreveable + @${MKDIR} ${WRKSRC}/src/github.com/miekg + @${MKDIR} ${WRKSRC}/src/github.com/mitchellh + @${MKDIR} ${WRKSRC}/src/github.com/ryanuber + @${MKDIR} ${WRKSRC}/src/github.com/ugorji + @${MV} ${WRKDIR}/circbuf-f092b4f207b6e5cce0569056fba9e1a2735cb6cf \ + ${WRKSRC}/src/github.com/armon/circbuf + @${MV} ${WRKDIR}/consul-api-1b81c8e0c4cbf1d382310e4c0dc11221632e79d1 \ + ${WRKSRC}/src/github.com/armon/consul-api + @${MV} ${WRKDIR}/go-metrics-2b75159ce5d3641fb35b5a159cff309ac3cf4177 \ + ${WRKSRC}/src/github.com/armon/go-metrics + @${MV} ${WRKDIR}/go-radix-b045fc0ad3587e8620fb42a0dea882cf8c08aef9 \ + ${WRKSRC}/src/github.com/armon/go-radix + @${MV} ${WRKDIR}/gomdb-a8e036c4dabe7437014ecf9dbc03c6f6f0766ef8 \ + ${WRKSRC}/src/github.com/armon/gomdb + @${MV} ${WRKDIR}/go-msgpack-71c2886f5a673a35f909803f38ece5810165097b \ + ${WRKSRC}/src/github.com/hashicorp/go-msgpack + @${MV} ${WRKDIR}/go-checkpoint-89ef2a697dd8cdb4623097d5bb9acdb19a470767 \ + ${WRKSRC}/src/github.com/hashicorp/go-checkpoint + @${MV} ${WRKDIR}/go-syslog-ac3963b72ac367e48b1e68a831e62b93fb69091c \ + ${WRKSRC}/src/github.com/hashicorp/go-syslog + @${MV} ${WRKDIR}/golang-lru-253b2dc1ca8bae42c3b5b6e53dd2eab1a7551116 \ + ${WRKSRC}/src/github.com/hashicorp/golang-lru + @${MV} ${WRKDIR}/hcl-e51eabcdf801f663738fa12f4340fbad13062738 \ + ${WRKSRC}/src/github.com/hashicorp/hcl + @${MV} ${WRKDIR}/logutils-23b0af5510a2d1442103ef83ffcf53eb82f3debc \ + ${WRKSRC}/src/github.com/hashicorp/logutils + @${MV} ${WRKDIR}/memberlist-16d947e2d4b3f1fe508ee1d9b6ec34b8fd2e96d8 \ + ${WRKSRC}/src/github.com/hashicorp/memberlist + @${MV} ${WRKDIR}/raft-cc9710ab540985954a67c108f414aa3152f5916f \ + ${WRKSRC}/src/github.com/hashicorp/raft + @${MV} ${WRKDIR}/raft-mdb-6f52d0ce62a34e3f5bd29aa4d7068030d700d94a \ + ${WRKSRC}/src/github.com/hashicorp/raft-mdb + @${MV} ${WRKDIR}/serf-0479bc1b942fd84205587f7e73867ac78809966b \ + ${WRKSRC}/src/github.com/hashicorp/serf + @${MV} ${WRKDIR}/terraform-2d117326edb33b7155d1ec9d0ab9d3542ba1b230 \ + ${WRKSRC}/src/github.com/hashicorp/terraform + @${MV} ${WRKDIR}/yamux-9feabe6854fadca1abec9cd3bd2a613fe9a34000 \ + ${WRKSRC}/src/github.com/hashicorp/yamux + @${MV} ${WRKDIR}/muxado-f693c7e88ba316d1a0ae3e205e22a01aa3ec2848 \ + ${WRKSRC}/src/github.com/inconshreveable/muxado + @${MV} ${WRKDIR}/dns-dc30c7cd4ed2fc8af73d49da4ee285404958b8bd \ + ${WRKSRC}/src/github.com/miekg/dns + @${MV} ${WRKDIR}/cli-e3c2e3d39391e9beb9660ccd6b4bd9a2f38dd8a0 \ + ${WRKSRC}/src/github.com/mitchellh/cli + @${MV} ${WRKDIR}/mapstructure-740c764bc6149d3f1806231418adb9f52c11bcbf \ + ${WRKSRC}/src/github.com/mitchellh/mapstructure + @${MV} ${WRKDIR}/columnize-44cb4788b2ec3c3d158dd3d1b50aba7d66f4b59a \ + ${WRKSRC}/src/github.com/ryanuber/columnize + +do-build: + @cd ${WRKSRC}/src/github.com/hashicorp/consul; ${SETENV} ${BUILD_ENV} GOPATH=${WRKSRC} go build -o bin/consul + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/hashicorp/consul/bin/consul ${STAGEDIR}${PREFIX}/bin/consul + ${MKDIR} ${STAGEDIR}${DATADIR} + cd ${WRKDIR}/dist && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} + +.include + +.if ${OPSYS} == FreeBSD && ${OSVERSION} < 900044 && ${ARCH} == i386 +BROKEN= Does not build +.endif + +# golang assumes that if clang is in use, it is called "clang" and not "cc". If +# it's called "cc", go fails. +.if ${COMPILER_TYPE} == clang +BUILD_ENV= CC=clang +.endif + +.include Added: head/sysutils/consul/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/consul/distinfo Thu Mar 26 02:21:24 2015 (r382288) @@ -0,0 +1,50 @@ +SHA256 (consul-0.4.1.tar.gz) = 16e681a7d88b1aa7422767c7bb77caa4ec530b313058d7b2bfd896132b8b63c2 +SIZE (consul-0.4.1.tar.gz) = 1517746 +SHA256 (armon_circbuf_f092b4f207b6e5cce0569056fba9e1a2735cb6cf.tar.gz) = b67d2ffc0a725b6844895680d52ba4a63757987637c8dabbb2c3e4d836512d52 +SIZE (armon_circbuf_f092b4f207b6e5cce0569056fba9e1a2735cb6cf.tar.gz) = 2748 +SHA256 (armon_consul-api_1b81c8e0c4cbf1d382310e4c0dc11221632e79d1.tar.gz) = 2df35d5b7c181139969d2334edfea50921b3579b9df2759851e4675b260c1493 +SIZE (armon_consul-api_1b81c8e0c4cbf1d382310e4c0dc11221632e79d1.tar.gz) = 17545 +SHA256 (armon_go-metrics_2b75159ce5d3641fb35b5a159cff309ac3cf4177.tar.gz) = 67ab87905e967eae7a9275ddbe3e7ad64b6ce76285e8ae012df347e82cfe512e +SIZE (armon_go-metrics_2b75159ce5d3641fb35b5a159cff309ac3cf4177.tar.gz) = 10438 +SHA256 (armon_go-radix_b045fc0ad3587e8620fb42a0dea882cf8c08aef9.tar.gz) = 028fa454dbb84f6ff6114d46064dedb1ecc83a337e8712f32fe64100267ddd78 +SIZE (armon_go-radix_b045fc0ad3587e8620fb42a0dea882cf8c08aef9.tar.gz) = 5013 +SHA256 (armon_gomdb_a8e036c4dabe7437014ecf9dbc03c6f6f0766ef8.tar.gz) = 46dbe630e9d3032f44ed94c86f271056fa908f84b733075598ed62a1c2e09345 +SIZE (armon_gomdb_a8e036c4dabe7437014ecf9dbc03c6f6f0766ef8.tar.gz) = 93349 +SHA256 (hashicorp_go-checkpoint_89ef2a697dd8cdb4623097d5bb9acdb19a470767.tar.gz) = 6a2e3d8c78ee937b60e6c8c1a25f3aefc299a948def58287425b1fdda22b243b +SIZE (hashicorp_go-checkpoint_89ef2a697dd8cdb4623097d5bb9acdb19a470767.tar.gz) = 4437 +SHA256 (hashicorp_go-msgpack_71c2886f5a673a35f909803f38ece5810165097b.tar.gz) = c32b90e67762a375981b38154cae65222bb1aaa7722727d0225d5f8de773e4c8 +SIZE (hashicorp_go-msgpack_71c2886f5a673a35f909803f38ece5810165097b.tar.gz) = 49485 +SHA256 (hashicorp_go-syslog_ac3963b72ac367e48b1e68a831e62b93fb69091c.tar.gz) = 089a6bda3f17d3a4c0545325581da29572d522a934fa601ff872709d1f2a7304 +SIZE (hashicorp_go-syslog_ac3963b72ac367e48b1e68a831e62b93fb69091c.tar.gz) = 4389 +SHA256 (hashicorp_golang-lru_253b2dc1ca8bae42c3b5b6e53dd2eab1a7551116.tar.gz) = 3afb52d3f8255b5db742bc39d223600a1614b8698142836000c7959da21bf0ab +SIZE (hashicorp_golang-lru_253b2dc1ca8bae42c3b5b6e53dd2eab1a7551116.tar.gz) = 7181 +SHA256 (hashicorp_hcl_e51eabcdf801f663738fa12f4340fbad13062738.tar.gz) = e85880c71414fde6e3eeea887a9cdb4eae40e4c7e0a7b4d4e769f35d35bfd70e +SIZE (hashicorp_hcl_e51eabcdf801f663738fa12f4340fbad13062738.tar.gz) = 27209 +SHA256 (hashicorp_logutils_23b0af5510a2d1442103ef83ffcf53eb82f3debc.tar.gz) = d07a719321f39c5095f7922888cd798c78bf0268499562de8de3fa30acd8cbb2 +SIZE (hashicorp_logutils_23b0af5510a2d1442103ef83ffcf53eb82f3debc.tar.gz) = 7686 +SHA256 (hashicorp_memberlist_16d947e2d4b3f1fe508ee1d9b6ec34b8fd2e96d8.tar.gz) = fdd57e3fadcc37b0b0a5f782d34d9ecf89f0fe6d69107c8c3f48c0c97007114c +SIZE (hashicorp_memberlist_16d947e2d4b3f1fe508ee1d9b6ec34b8fd2e96d8.tar.gz) = 48996 +SHA256 (hashicorp_raft_cc9710ab540985954a67c108f414aa3152f5916f.tar.gz) = e5c297871e67ce6bbcda26b731f797f2f84275552aeaf37527d6c9a7bfefb3fc +SIZE (hashicorp_raft_cc9710ab540985954a67c108f414aa3152f5916f.tar.gz) = 54145 +SHA256 (hashicorp_raft-mdb_6f52d0ce62a34e3f5bd29aa4d7068030d700d94a.tar.gz) = bc11b9093692c19c7ee756dc17ca88f20e33cf686b0f31ebb5c74445540fb447 +SIZE (hashicorp_raft-mdb_6f52d0ce62a34e3f5bd29aa4d7068030d700d94a.tar.gz) = 9648 +SHA256 (hashicorp_serf_0479bc1b942fd84205587f7e73867ac78809966b.tar.gz) = 3f1d3b4d14ab033da5a64795261c6f7512d25304cf2eb149ea4c42c0d87912a3 +SIZE (hashicorp_serf_0479bc1b942fd84205587f7e73867ac78809966b.tar.gz) = 570942 +SHA256 (hashicorp_terraform_2d117326edb33b7155d1ec9d0ab9d3542ba1b230.tar.gz) = 3f409a932281010a01a7d7e752decd73fd21a2ac7bae00717b6beab5f069722f +SIZE (hashicorp_terraform_2d117326edb33b7155d1ec9d0ab9d3542ba1b230.tar.gz) = 3245510 +SHA256 (hashicorp_yamux_9feabe6854fadca1abec9cd3bd2a613fe9a34000.tar.gz) = ecb3f55add94710bc676ae580da78c64add15d34342f09d7f1496d50fa498542 +SIZE (hashicorp_yamux_9feabe6854fadca1abec9cd3bd2a613fe9a34000.tar.gz) = 18591 +SHA256 (inconshreveable_muxado_f693c7e88ba316d1a0ae3e205e22a01aa3ec2848.tar.gz) = 237354d5acf550d05d20841e0ec6e88cea29ece70fdf8fc73a2d59884ea6be01 +SIZE (inconshreveable_muxado_f693c7e88ba316d1a0ae3e205e22a01aa3ec2848.tar.gz) = 25816 +SHA256 (miekg_dns_dc30c7cd4ed2fc8af73d49da4ee285404958b8bd.tar.gz) = e0e5905fb65b4ff3900de93e429e7cc1f07d3ad8ee0b7d81fa798320fa255c95 +SIZE (miekg_dns_dc30c7cd4ed2fc8af73d49da4ee285404958b8bd.tar.gz) = 109512 +SHA256 (mitchellh_cli_e3c2e3d39391e9beb9660ccd6b4bd9a2f38dd8a0.tar.gz) = 0a05aa6d4a4968c00689e6b28575140c3832812bfffe4e909ecbf05e7b7bce8a +SIZE (mitchellh_cli_e3c2e3d39391e9beb9660ccd6b4bd9a2f38dd8a0.tar.gz) = 12189 +SHA256 (mitchellh_mapstructure_740c764bc6149d3f1806231418adb9f52c11bcbf.tar.gz) = 8cc486fb6ee94d4a5597906fa5ca1c934dcd96ab1e2df6a0923d33024c3dc6a5 +SIZE (mitchellh_mapstructure_740c764bc6149d3f1806231418adb9f52c11bcbf.tar.gz) = 11941 +SHA256 (ryanuber_columnize_44cb4788b2ec3c3d158dd3d1b50aba7d66f4b59a.tar.gz) = 504519c9befbac3045a00a7a70e82cc437622294ece6ac19b85ffd4aa915369f +SIZE (ryanuber_columnize_44cb4788b2ec3c3d158dd3d1b50aba7d66f4b59a.tar.gz) = 3680 +SHA256 (ugorji_go_e906e395b9d45d3230e800c8ad1f92f99764e753.tar.gz) = 035386ecdb37ee268507890c627f222960839db2757b22a9e64c4947f9f06c4d +SIZE (ugorji_go_e906e395b9d45d3230e800c8ad1f92f99764e753.tar.gz) = 58411 +SHA256 (0.4.1_web_ui.zip) = e02929ed44f5392cadd5513bdc60b7ab7363d1670d59e64d2422123229962fa0 +SIZE (0.4.1_web_ui.zip) = 248803 Added: head/sysutils/consul/files/consul.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/consul/files/consul.in Thu Mar 26 02:21:24 2015 (r382288) @@ -0,0 +1,52 @@ +#!/bin/sh + +# $FreeBSD$ +# +# PROVIDE: consul +# REQUIRE: LOGIN +# KEYWORD: shutdown +# +# Add the following lines to /etc/rc.conf.local or /etc/rc.conf +# to enable this service: +# +# consul_enable (bool): Set to NO by default. +# Set it to YES to enable consul. +# consul_user (user): Set user to run consul. +# Default is "consul". +# consul_group (group): Set group to run consul. +# Default is "consul". +# consul_dir (dir): Set dir to run consul in. +# Default is "/var/tmp/consul". + +. /etc/rc.subr + +name=consul +rcvar=consul_enable + +load_rc_config $name + +: ${consul_enable:="NO"} +: ${consul_user:="consul"} +: ${consul_group:="consul"} +: ${consul_dir:="/var/tmp/consul"} + +pidfile=/var/run/consul.pid +procname="%%PREFIX%%/bin/consul" +command="/usr/sbin/daemon" +command_args="-f -p ${pidfile} ${procname} agent -data-dir=${consul_dir} -ui-dir=%%PREFIX%%/share/consul -config-dir=%%PREFIX%%/etc/consul.d ${consul_args}" + +start_precmd=consul_startprecmd + +consul_startprecmd() +{ + if [ ! -e ${pidfile} ]; then + install -o ${consul_user} -g ${consul_group} /dev/null ${pidfile}; + fi + + if [ ! -d ${consul_dir} ]; then + install -d -o ${consul_user} -g ${consul_group} ${consul_dir} + fi + +} + +run_rc_command "$1" Added: head/sysutils/consul/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/consul/pkg-descr Thu Mar 26 02:21:24 2015 (r382288) @@ -0,0 +1,4 @@ +Consule is a distributed, highly available and data center aware tool for +discovering and configuring services. + +WWW: https://consul.io/ Added: head/sysutils/consul/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/consul/pkg-plist Thu Mar 26 02:21:24 2015 (r382288) @@ -0,0 +1,9 @@ +bin/consul +%%DATADIR%%/.gitkeep +%%DATADIR%%/index.html +%%DATADIR%%/static/application.min.js +%%DATADIR%%/static/base.css +%%DATADIR%%/static/bootstrap.min.css +%%DATADIR%%/static/consul-logo.png +%%DATADIR%%/static/favicon.png +%%DATADIR%%/static/loading-cylon-purple.svg