blob: c230582c3e2e4619b27cb651481886f185d92236 (
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: go
5
6 name=influxdb
7 version=1.8.3
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"
21
22 go build -v -o build ./cmd/...
23
24 ## needs asciidoc
25 ## and fails when it gets it
26 #make -C man
27
28 install -d $PKG/usr/bin/
29 install -Dm755 build/influx $PKG/usr/bin/
30 install -Dm755 build/influxd $PKG/usr/bin/
31 install -Dm755 build/influx_inspect $PKG/usr/bin/
32 install -Dm755 build/influx_stress $PKG/usr/bin/
33 install -Dm755 build/influx_tools $PKG/usr/bin/
34 install -Dm755 build/influx_tsm $PKG/usr/bin/
35
36 install -Dm644 etc/config.sample.toml $PKG/etc/influxdb/influxdb.conf
37
38 ## install rc file
39 install -Dm 755 $SRC/influxdb.service $PKG/etc/rc.d/influxdb
40 }
|