diff --git a/influxdb/.footprint b/influxdb/.footprint new file mode 100644 index 000000000..c3f287e09 --- /dev/null +++ b/influxdb/.footprint @@ -0,0 +1,13 @@ +drwxr-xr-x root/root etc/ +drwxr-xr-x root/root etc/influxdb/ +-rw-r--r-- root/root etc/influxdb/influxdb.conf +drwxr-xr-x root/root etc/rc.d/ +-rwxr-xr-x root/root etc/rc.d/influxdb +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/influx +-rwxr-xr-x root/root usr/bin/influx_inspect +-rwxr-xr-x root/root usr/bin/influx_stress +-rwxr-xr-x root/root usr/bin/influx_tools +-rwxr-xr-x root/root usr/bin/influx_tsm +-rwxr-xr-x root/root usr/bin/influxd diff --git a/influxdb/.signature b/influxdb/.signature new file mode 100644 index 000000000..b5568c75d --- /dev/null +++ b/influxdb/.signature @@ -0,0 +1,6 @@ +untrusted comment: verify with /etc/ports/contrib.pub +RWSagIOpLGJF3xUa7r/dhq0JnlrglAaEGdjkIpAW/jecAk8qbFM8g1w9HKzccpQB46EkJfvPFeB+q960g+kEyMtpgCGgq5wwvwY= +SHA256 (Pkgfile) = 40903fc418e716c84f179de96c016cb587fe4ff9d1a8392a950d16c0e892fb89 +SHA256 (.footprint) = d42615e1d0403a8d6559f6b7c9863d6c7d3f2a4469a38256195b13485b7c29c7 +SHA256 (influxdb-1.8.3.tar.gz) = d8b89e324ed7343c1397124ac3cc68c405406faf74e7369e733611cada54656d +SHA256 (influxdb.service) = 04d4b6e036d771cd2aac0bf218a76c4f497786aa9a7ee242ca21fb336882880e diff --git a/influxdb/Pkgfile b/influxdb/Pkgfile new file mode 100644 index 000000000..c230582c3 --- /dev/null +++ b/influxdb/Pkgfile @@ -0,0 +1,40 @@ +# 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 +version=1.8.3 +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 + + install -d $PKG/usr/bin/ + install -Dm755 build/influx $PKG/usr/bin/ + install -Dm755 build/influxd $PKG/usr/bin/ + install -Dm755 build/influx_inspect $PKG/usr/bin/ + install -Dm755 build/influx_stress $PKG/usr/bin/ + install -Dm755 build/influx_tools $PKG/usr/bin/ + install -Dm755 build/influx_tsm $PKG/usr/bin/ + + 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 +} diff --git a/influxdb/influxdb.service b/influxdb/influxdb.service new file mode 100755 index 000000000..a61b2194f --- /dev/null +++ b/influxdb/influxdb.service @@ -0,0 +1,35 @@ +#!/bin/sh +# +# /etc/rc.d/influxdb: start/stop influxdb daemon +# + +SSD=/sbin/start-stop-daemon +PROG=/usr/bin/influxd +OPTS="" + +case $1 in +start) + $SSD --start -b --exec $PROG -- $OPTS + ;; +stop) + $SSD --stop --retry 10 --exec $PROG + ;; +restart) + $0 stop + $0 start + ;; +status) + $SSD --status --exec $PROG + case $? in + 0) echo "$PROG is running with pid $(pidof $PROG)" ;; + 1) echo "$PROG is not running but the pid file $PID exists" ;; + 3) echo "$PROG is not running" ;; + 4) echo "Unable to determine the program status" ;; + esac + ;; +*) + echo "usage: $0 [start|stop|restart|status]" + ;; +esac + +# End of file