Change to build binaries
-{% set name = "jaeger" %}
+{% set goname = "github.com/jaegertracing/jaeger" %}
{% set version = "1.14.0" %}
+{% set name = goname.split('/')[-1] %}
+{% set pkg_src = ('src/'+goname).replace("/",os.sep) %}
+
package:
name: {{ name|lower }}
version: {{ version }}
source:
- fn: {{name }}-{{ version }}-darwin-amd64.tar.gz # [osx]
- url: https://github.com/jaegertracing/{{ name }}/releases/download/v{{ version }}/{{name }}-{{ version }}-darwin-amd64.tar.gz # [osx]
- sha256: 06046f509b6a72de2144a12426be835f5c3903939a6337a70b6dc524cac7bd47 # [osx]
-
- fn: {{name }}-{{ version }}-linux-amd64.tar.gz # [linux]
- url: https://github.com/jaegertracing/{{ name }}/releases/download/v{{ version }}/{{name }}-{{ version }}-linux-amd64.tar.gz # [linux]
- sha256: aa1764b8cb5a0cbdb128f3403e25b1fad240734da20460ec13ac89674abe3d8b # [linux]
+ # We must use git here beause the program looks
+ # for the git sha&tag to determine its version
+ - folder: {{ pkg_src }}
+ url: https://{{ goname }}/archive/v{{version}}.tar.gz
+ sha256: 65c39e068cfb23f67529b75617202adca5ab41668942ae91fee14056b7657620
- fn: {{name }}-{{ version }}-windows-amd64.tar.gz # [win]
- url: https://github.com/jaegertracing/{{ name }}/releases/download/v{{ version }}/{{name }}-{{ version }}-windows-amd64.tar.gz # [win]
- sha256: 6623f496b6d0ac17158a3d2eac07616a40df794dcfbd84070f29d7218c17ff81 # [win]
build:
number: 0
+ script:
+ - set -x
+ - pushd {{ pkg_src }}
+ - dep ensure
+ - make install-tools
+ - make build-ui
+ - make build-bbinaries-darwin # [osx]
+ - make build-binaries-linux # [linux]
+ - make build-binaries-windows # [win]
+ - "mkdir -vp ${PREFIX}/bin"
+ - "cp -v cmd/all-in-one/all-in-one-* ${PREFIX}/bin/all-in-one"
+ - "cp -v cmd/agent/agent-* ${PREFIX}/bin/agent"
+ - "cp -v cmd/query/query-* ${PREFIX}/bin/query"
+ - "cp -v cmd/collector/collector-* ${PREFIX}/bin/collector"
+ - "cp -v cmd/ingester/ingester-* ${PREFIX}/bin/ingester"
+ - "cp -v examples/hotrod/hotrod-* ${PREFIX}/bin/hotrod"
+ - "chmod -v 755 ${PREFIX}/bin/*"
+
+
+requirements:
+ build:
+ - {{ compiler('go') }}
+ - go-dep
+ - nodejs
test:
commands:
