kapacitor: template cleanup
This commit is contained in:
parent
69731995b7
commit
d3cc4671f3
1 changed files with 8 additions and 20 deletions
|
@ -1,12 +1,12 @@
|
|||
# Template file for 'kapacitor'
|
||||
pkgname=kapacitor
|
||||
version=1.3.3
|
||||
revision=2
|
||||
_branch=v1.3
|
||||
_commit=ce586f3
|
||||
revision=3
|
||||
build_style="go"
|
||||
go_import_path="github.com/influxdata/${pkgname}"
|
||||
build_wrksrc="go/src/${go_import_path}"
|
||||
go_import_path="github.com/influxdata/kapacitor"
|
||||
go_package="${go_import_path}/cmd/kapacitor
|
||||
${go_import_path}/cmd/kapacitord"
|
||||
go_ldflags="-X main.version=${version}"
|
||||
system_accounts="_kapacitor"
|
||||
_kapacitor_homedir="/var/lib/kapacitor"
|
||||
make_dirs="/var/lib/kapacitor 0755 _kapacitor _kapacitor"
|
||||
|
@ -18,21 +18,9 @@ homepage="https://www.influxdata.com/time-series-platform/kapacitor/"
|
|||
distfiles="https://github.com/influxdata/${pkgname}/archive/v${version}.tar.gz"
|
||||
checksum=605699bf5c7dd0bff11b4bd36f9cd481e76b2af22b18468b81c82aeab45818cf
|
||||
|
||||
do_extract() {
|
||||
mkdir -p ${wrksrc}/${build_wrksrc}
|
||||
tar xfz ${XBPS_SRCDISTDIR}/${pkgname}-${version}/*.tar.gz --strip-components=1 -C ${wrksrc}/${build_wrksrc}
|
||||
}
|
||||
|
||||
do_build() {
|
||||
export GOPATH="/builddir/${pkgname}-${version}/go/"
|
||||
go build -ldflags="-X main.version=${version} -X main.branch=${_branch} -X main.commit=${_commit}" ./cmd/kapacitor
|
||||
go build -ldflags="-X main.version=${version} -X main.branch=${_branch} -X main.commit=${_commit}" ./cmd/kapacitord
|
||||
}
|
||||
|
||||
do_install() {
|
||||
vbin kapacitor
|
||||
vbin kapacitord
|
||||
}
|
||||
# This package has a Gopkg.lock and a Gopkg.toml, but for build the
|
||||
# required files are part of the dist tarball. Thus we don't run dep
|
||||
# ensure for this build.
|
||||
|
||||
post_install() {
|
||||
vsv kapacitor
|
||||
|
|
Loading…
Reference in a new issue