Skip to content

Commit

Permalink
consul: update to 1.9.0
Browse files Browse the repository at this point in the history
- switch to using the golang portgroup
  • Loading branch information
herbygillot committed Nov 24, 2020
1 parent c2696de commit 246c3dc
Showing 1 changed file with 13 additions and 16 deletions.
29 changes: 13 additions & 16 deletions net/consul/Portfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem 1.0
PortGroup github 1.0
PortGroup golang 1.0

go.setup github.com/hashicorp/consul 1.9.0 v
revision 0

github.setup hashicorp consul 1.8.6 v
homepage https://www.consul.io

platforms darwin
Expand All @@ -14,7 +16,8 @@ installs_libs no
# Consul's build process requires the git repository.
fetch.type git

maintainers {gmail.com:herby.gillot @herbygillot} openmaintainer
maintainers {gmail.com:herby.gillot @herbygillot} \
openmaintainer

description Consul is a distributed service mesh to connect, secure, \
and configure services across any runtime platform and \
Expand All @@ -31,26 +34,20 @@ long_description Consul is a service mesh solution providing a full \
but also supports 3rd party proxy integrations such as \
Envoy.

depends_build port:go

set proj_dir "${workpath}/src/github.com/${github.author}/${github.project}"
# Do not restrict Go from downloading dependencies at build time.
build.env-delete GOPROXY=off GO111MODULE=off

# The "dev" build target must be used to build just the binary for this
# platform, instead of for ALL platforms
# - https://www.consul.io/docs/install/index.html#compiling-from-source
build.cmd make
build.target dev
build.args ""
build.dir ${proj_dir}
build.env GOPATH=${workpath} PATH=$env(PATH):${workpath}/bin
use_configure no

post-extract {
file mkdir [file dirname ${proj_dir}]
move ${worksrcpath} ${proj_dir}
}

installs_libs no
use_parallel_build no

destroot {
xinstall -m 755 ${workpath}/bin/${name} ${destroot}${prefix}/bin/${name}
xinstall -m 755 ${gopath}/bin/${name} ${destroot}${prefix}/bin/${name}
}

github.livecheck.regex {([0-9.]+)}

0 comments on commit 246c3dc

Please sign in to comment.