diff options
author | Konstantin Kulikov <k.kulikov2@gmail.com> | 2020-01-22 13:38:59 +0000 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2020-01-22 17:53:45 +0100 |
commit | 54188a8d0010cbf35f8c05364ef5d46f23912476 (patch) | |
tree | 5a23ce643e44ee87ec05443d77e1f27a82df4965 | |
parent | 6ec66f9b7e122afcaf7e638d1afb3d43bc869aae (diff) | |
download | alpine_aports-54188a8d0010cbf35f8c05364ef5d46f23912476.tar.bz2 alpine_aports-54188a8d0010cbf35f8c05364ef5d46f23912476.tar.xz alpine_aports-54188a8d0010cbf35f8c05364ef5d46f23912476.zip |
community/influxdb: upgrade to 1.7.9
-rw-r--r-- | community/influxdb/APKBUILD | 59 |
1 files changed, 31 insertions, 28 deletions
diff --git a/community/influxdb/APKBUILD b/community/influxdb/APKBUILD index 98b1f55eee..90b857f16e 100644 --- a/community/influxdb/APKBUILD +++ b/community/influxdb/APKBUILD | |||
@@ -1,61 +1,64 @@ | |||
1 | # Contributor: Stefan Wagner <stw@bit-strickerei.de> | 1 | # Contributor: Stefan Wagner <stw@bit-strickerei.de> |
2 | # Maintainer: Stefan Wagner <stw@bit-strickerei.de> | ||
3 | # Maintainer: Konstantin Kulikov <k.kulikov2@gmail.com> | 2 | # Maintainer: Konstantin Kulikov <k.kulikov2@gmail.com> |
4 | pkgname=influxdb | 3 | pkgname=influxdb |
5 | pkgver=1.7.7 | 4 | pkgver=1.7.9 |
6 | pkgrel=0 | 5 | pkgrel=0 |
6 | _commit=23bc63d43 # git rev-parse --short HEAD | ||
7 | _branch=1.7 # Keep in sync with $pkgver | ||
7 | pkgdesc="Scalable datastore for metrics, events, and real-time analytics" | 8 | pkgdesc="Scalable datastore for metrics, events, and real-time analytics" |
8 | url="https://www.influxdata.com/time-series-platform/influxdb/" | 9 | url="https://www.influxdata.com/time-series-platform/influxdb/" |
9 | arch="all !x86" | 10 | arch="all !x86" # many tests fail on x86, it's unclear whether it works at all. |
10 | license="MIT" | 11 | license="MIT" |
11 | makedepends="go dep python2 asciidoc xmlto" | 12 | makedepends="go dep asciidoc xmlto" |
12 | install="$pkgname.pre-install" | 13 | install="$pkgname.pre-install" |
13 | subpackages="$pkgname-doc $pkgname-openrc" | 14 | subpackages="$pkgname-doc $pkgname-openrc" |
14 | source="$pkgname-$pkgver.tar.gz::https://github.com/influxdata/$pkgname/archive/v$pkgver.tar.gz | 15 | source="$pkgname-$pkgver.tar.gz::https://github.com/influxdata/influxdb/archive/v$pkgver.tar.gz |
15 | influxdb.initd | 16 | influxdb.initd influxdb.confd" |
16 | influxdb.confd | ||
17 | " | ||
18 | builddir="$srcdir/src/github.com/influxdata/$pkgname" | 17 | builddir="$srcdir/src/github.com/influxdata/$pkgname" |
19 | 18 | ||
19 | export GO111MODULE="off" | ||
20 | export GOPATH="$srcdir" | 20 | export GOPATH="$srcdir" |
21 | export GOCACHE="$srcdir/gocache" | 21 | export GOCACHE="$srcdir/go-build" |
22 | export GOTMPDIR="$srcdir" | ||
22 | 23 | ||
23 | prepare() { | 24 | prepare() { |
24 | mkdir -p ${builddir%/*} | 25 | mkdir -p ${builddir%/*} |
25 | mv "$srcdir"/$pkgname-$pkgver "$builddir"/ || return 1 | 26 | mv "$srcdir"/$pkgname-$pkgver "$builddir"/ |
26 | cd "$builddir" | 27 | cd "$builddir" |
27 | dep ensure -v | 28 | dep ensure -v |
28 | default_prepare | 29 | default_prepare |
29 | } | 30 | } |
30 | 31 | ||
31 | build() { | 32 | build() { |
32 | local path | 33 | local ldflags="-X main.version=$pkgver -X main.branch=$_branch -X main.commit=$_commit" |
33 | for path in $(find ./cmd/* -maxdepth 0 -type d); do | 34 | local pkgs="influx influx_inspect influx_stress influx_tools influx_tsm influxd" |
34 | go build -v -ldflags="-X main.version=$pkgver" \ | 35 | local pkg |
35 | -o ./bin/${path##*/} $path | 36 | for pkg in $pkgs; do |
37 | go build -ldflags "$ldflags" -o ./bin/$pkg ./cmd/$pkg | ||
36 | done | 38 | done |
37 | make -C man | 39 | make -C man |
38 | } | 40 | } |
39 | 41 | ||
40 | check() { | 42 | check() { |
41 | # Failures on these arches | 43 | local pkgs="./..." |
42 | case $CARCH in | 44 | case "$CARCH" in |
43 | s390x|arm*|aarch64|ppc64le) return 0 | 45 | # One test in query pkg fail because of lesser float number precision, should be safe to ignore. |
44 | # aarch64: float precision issue (relative diff < 1E15, safe to ignore) | 46 | s390x|aarch64|ppc64le) pkgs="$(go list ./... | grep -v '^github.com/influxdata/influxdb/query$')" ;; |
45 | esac | 47 | esac |
46 | go test -short ./... | 48 | |
49 | # CI too slow, some tests timeout. | ||
50 | [ "$CARCH" == "armv7" ] && return 0 | ||
51 | |||
52 | go test -short $pkgs | ||
47 | } | 53 | } |
48 | 54 | ||
49 | package() { | 55 | package() { |
50 | cd "$builddir" | 56 | local pkgs="influx influx_inspect influx_stress influx_tools influx_tsm" |
51 | local path bindir | 57 | local pkg |
52 | for path in $(find ./cmd/* -maxdepth 0 -type d); do | 58 | for pkg in $pkgs; do |
53 | case "${path##*/}" in | 59 | install -Dm755 "$builddir/bin/$pkg" "$pkgdir/usr/bin/$pkg" |
54 | influxd) bindir=sbin ;; | ||
55 | *) bindir=bin ;; | ||
56 | esac | ||
57 | install -Dm755 ./bin/"${path##*/}" "$pkgdir"/usr/$bindir/"${path##*/}" | ||
58 | done | 60 | done |
61 | install -Dm755 "$builddir/bin/influxd" "$pkgdir/usr/sbin/influxd" | ||
59 | 62 | ||
60 | install -d "$pkgdir/usr/share/man/man1/" | 63 | install -d "$pkgdir/usr/share/man/man1/" |
61 | install -Dm644 man/*.1 "$pkgdir/usr/share/man/man1/" | 64 | install -Dm644 man/*.1 "$pkgdir/usr/share/man/man1/" |
@@ -66,6 +69,6 @@ package() { | |||
66 | install -Dm644 "$srcdir/$pkgname.confd" "$pkgdir/etc/conf.d/$pkgname" | 69 | install -Dm644 "$srcdir/$pkgname.confd" "$pkgdir/etc/conf.d/$pkgname" |
67 | } | 70 | } |
68 | 71 | ||
69 | sha512sums="f8b74849f2de09b10de361d6008cab0e0291ea0978e3c89df5e758788d2dbfd5cc0b416bfaf3d14b04410a9cdff4ca7c96be6afadbf16490c0fbab599db3d643 influxdb-1.7.7.tar.gz | 72 | sha512sums="ed47ab544e8c3088651d95b6a6126e5f18d05fc9272da683ffbe32427b3e142c954b596be4080a9545088e4b193f7ab141259f354385293597ff8cfa61e5de64 influxdb-1.7.9.tar.gz |
70 | 04fb33ee5b3d60c3e8655cc20423885140b66e74a822866cfe05668e942d24116878b1815a48b07063c707bb600cf0ff390994f0321c881eed557abde016eeb9 influxdb.initd | 73 | 04fb33ee5b3d60c3e8655cc20423885140b66e74a822866cfe05668e942d24116878b1815a48b07063c707bb600cf0ff390994f0321c881eed557abde016eeb9 influxdb.initd |
71 | 1db8790c84a9e193a6029291b2a83a6083d1ddcc330c2191c4da6bdcc6410d832288aee275605b4ca041c8855fe8a1340631444e901044659755db0146d6d3dc influxdb.confd" | 74 | 1db8790c84a9e193a6029291b2a83a6083d1ddcc330c2191c4da6bdcc6410d832288aee275605b4ca041c8855fe8a1340631444e901044659755db0146d6d3dc influxdb.confd" |