Index: head/sysutils/consul/Makefile =================================================================== --- head/sysutils/consul/Makefile (revision 438845) +++ head/sysutils/consul/Makefile (revision 438846) @@ -1,52 +1,52 @@ # $FreeBSD$ PORTNAME= consul -PORTVERSION= 0.8.0 +PORTVERSION= 0.8.1 DISTVERSIONPREFIX= v CATEGORIES= sysutils MAINTAINER= swills@FreeBSD.org COMMENT= Service discovery and configuration made easy LICENSE= MPL BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go USES= compiler USE_GITHUB= yes GH_ACCOUNT= hashicorp GH_SUBDIR= src/github.com/${GH_ACCOUNT}/${PORTNAME} USE_RC_SUBR= consul PLIST_FILES= bin/consul USERS= consul GROUPS= consul post-extract: @${MV} ${WRKSRC}/vendor/ ${WRKSRC}/src/ post-patch: @${REINPLACE_CMD} \ -e "s!%%VERSION%%!${PORTVERSION}!g" \ ${WRKSRC}/version/version.go do-build: @cd ${WRKSRC}/src/github.com/hashicorp/consul; ${SETENV} ${BUILD_ENV} GOPATH=${WRKSRC} go build \ -ldflags "-X github.com/hashicorp/consul/version.GitDescribe=v${PORTVERSION}" \ -o bin/consul do-install: ${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/hashicorp/consul/bin/consul ${STAGEDIR}${PREFIX}/bin/consul .include # 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 Index: head/sysutils/consul/distinfo =================================================================== --- head/sysutils/consul/distinfo (revision 438845) +++ head/sysutils/consul/distinfo (revision 438846) @@ -1,3 +1,3 @@ -TIMESTAMP = 1491423346 -SHA256 (hashicorp-consul-v0.8.0_GH0.tar.gz) = d50787c290d91f6e3472d2adeb3b2cedf3eb71c7c0fce32b60d2739af2d81dcf -SIZE (hashicorp-consul-v0.8.0_GH0.tar.gz) = 4629677 +TIMESTAMP = 1492544138 +SHA256 (hashicorp-consul-v0.8.1_GH0.tar.gz) = 202ac732d076f43eb4cf0cccd21c6d8ccae4c4dcf4ef8223fbf08dd0e7d7cec6 +SIZE (hashicorp-consul-v0.8.1_GH0.tar.gz) = 5103830 Index: head/sysutils/consul/files/consul.in =================================================================== --- head/sysutils/consul/files/consul.in (revision 438845) +++ head/sysutils/consul/files/consul.in (revision 438846) @@ -1,56 +1,53 @@ #!/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". -# consul_env (dir): Set environment variables used with consul -# Default is "". +# Default is "/var/db/consul". . /etc/rc.subr name=consul rcvar=consul_enable extra_commands="reload" load_rc_config $name : ${consul_enable:="NO"} : ${consul_user:="consul"} : ${consul_group:="consul"} -: ${consul_dir:="/var/tmp/consul"} -: ${consul_env:=""} +: ${consul_dir:="/var/db/consul"} pidfile=/var/run/consul.pid procname="%%PREFIX%%/bin/consul" command="/usr/sbin/daemon" command_args="-f -p ${pidfile} /usr/bin/env ${consul_env} ${procname} agent -data-dir=${consul_dir} -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"