2021-01-08 00:15:44 +00:00
|
|
|
# Description: Scalable datastore for metrics, events, and real-time analytics
|
|
|
|
# URL: https://github.com/InfluxData/influxdb
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
|
|
# Depends on: go
|
|
|
|
|
|
|
|
name=influxdb
|
2021-10-12 16:32:55 +02:00
|
|
|
version=1.8.10
|
2021-01-08 00:15:44 +00:00
|
|
|
release=1
|
|
|
|
source=(https://github.com/influxdata/influxdb/archive/v$version/$name-$version.tar.gz
|
|
|
|
influxdb.service)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $name-$version
|
|
|
|
mkdir -p build
|
|
|
|
|
|
|
|
export CGO_CPPFLAGS="${CPPFLAGS}"
|
|
|
|
export CGO_CFLAGS="${CFLAGS}"
|
|
|
|
export CGO_CXXFLAGS="${CXXFLAGS}"
|
|
|
|
export CGO_LDFLAGS="${LDFLAGS}"
|
|
|
|
export GOFLAGS="-trimpath -mod=readonly -modcacherw"
|
|
|
|
|
|
|
|
go build -v -o build ./cmd/...
|
|
|
|
|
|
|
|
## needs asciidoc
|
|
|
|
## and fails when it gets it
|
|
|
|
#make -C man
|
|
|
|
|
2021-07-24 18:00:48 +02:00
|
|
|
# influx_tsm missing
|
|
|
|
for i in influx influxd influx_inspect influx_stress influx_tools; do
|
|
|
|
install -Dm755 build/$i $PKG/usr/bin/$i;
|
|
|
|
done
|
2021-01-08 00:15:44 +00:00
|
|
|
|
|
|
|
install -Dm644 etc/config.sample.toml $PKG/etc/influxdb/influxdb.conf
|
|
|
|
|
|
|
|
## install rc file
|
|
|
|
install -Dm 755 $SRC/influxdb.service $PKG/etc/rc.d/influxdb
|
|
|
|
}
|