blob: 660f02ddca2b337a14818fe948996314dd9cc64f (
plain)
1 # Description: Scalable datastore for metrics, events, and real-time analytics
2 # URL: https://github.com/InfluxData/influxdb
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: clang go git protobuf rust yarn
5
6 name=influxdb
7 version=2.6.1
8 release=1
9 source=(https://github.com/influxdata/influxdb/archive/v$version/$name-$version.tar.gz
10 influxdb.service)
11
12 build() {
13 cd $name-$version
14 mkdir -p build
15
16 export CGO_CPPFLAGS="${CPPFLAGS}"
17 export CGO_CFLAGS="${CFLAGS}"
18 export CGO_CXXFLAGS="${CXXFLAGS}"
19 export CGO_LDFLAGS="${LDFLAGS}"
20 export GOFLAGS="-trimpath -mod=readonly -modcacherw -buildmode=pie"
21 export LDFLAGS="-linkmode external"
22
23 PATH="$(go env GOPATH)/bin:$PATH" make -j1 VERSION=$version
24
25 install -Dm755 bin/linux/influxd -t $PKG/usr/bin
26 install -Dm 755 $SRC/influxdb.service $PKG/etc/rc.d/influxdb
27 }
|