kapacitor: template cleanup

This commit is contained in:
Michael Aldridge 2017-11-25 21:50:32 -08:00
parent 69731995b7
commit d3cc4671f3
1 changed files with 8 additions and 20 deletions

View File

@ -1,12 +1,12 @@
# Template file for 'kapacitor' # Template file for 'kapacitor'
pkgname=kapacitor pkgname=kapacitor
version=1.3.3 version=1.3.3
revision=2 revision=3
_branch=v1.3
_commit=ce586f3
build_style="go" build_style="go"
go_import_path="github.com/influxdata/${pkgname}" go_import_path="github.com/influxdata/kapacitor"
build_wrksrc="go/src/${go_import_path}" go_package="${go_import_path}/cmd/kapacitor
${go_import_path}/cmd/kapacitord"
go_ldflags="-X main.version=${version}"
system_accounts="_kapacitor" system_accounts="_kapacitor"
_kapacitor_homedir="/var/lib/kapacitor" _kapacitor_homedir="/var/lib/kapacitor"
make_dirs="/var/lib/kapacitor 0755 _kapacitor _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" distfiles="https://github.com/influxdata/${pkgname}/archive/v${version}.tar.gz"
checksum=605699bf5c7dd0bff11b4bd36f9cd481e76b2af22b18468b81c82aeab45818cf checksum=605699bf5c7dd0bff11b4bd36f9cd481e76b2af22b18468b81c82aeab45818cf
do_extract() { # This package has a Gopkg.lock and a Gopkg.toml, but for build the
mkdir -p ${wrksrc}/${build_wrksrc} # required files are part of the dist tarball. Thus we don't run dep
tar xfz ${XBPS_SRCDISTDIR}/${pkgname}-${version}/*.tar.gz --strip-components=1 -C ${wrksrc}/${build_wrksrc} # ensure for this build.
}
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
}
post_install() { post_install() {
vsv kapacitor vsv kapacitor