From 8b3870c96a6dd3bfb84ce4083010879174e4e751 Mon Sep 17 00:00:00 2001 From: Farhad Shahbazi Date: Sat, 14 May 2016 17:14:45 +0200 Subject: [PATCH] New package: influxdb-0.13.0 Closes: #4190 [via git-merge-pr] --- srcpkgs/influxdb/files/influxdb/log/run | 2 ++ srcpkgs/influxdb/files/influxdb/run | 3 ++ srcpkgs/influxdb/template | 44 +++++++++++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100755 srcpkgs/influxdb/files/influxdb/log/run create mode 100755 srcpkgs/influxdb/files/influxdb/run create mode 100644 srcpkgs/influxdb/template diff --git a/srcpkgs/influxdb/files/influxdb/log/run b/srcpkgs/influxdb/files/influxdb/log/run new file mode 100755 index 0000000000..642fc26570 --- /dev/null +++ b/srcpkgs/influxdb/files/influxdb/log/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec logger -p daemon.info -t influxdb diff --git a/srcpkgs/influxdb/files/influxdb/run b/srcpkgs/influxdb/files/influxdb/run new file mode 100755 index 0000000000..dbb25cd034 --- /dev/null +++ b/srcpkgs/influxdb/files/influxdb/run @@ -0,0 +1,3 @@ +#!/bin/sh + +exec chpst -u _influxdb:_influxdb influxd -config /etc/influxdb/influxdb.conf 2>&1 diff --git a/srcpkgs/influxdb/template b/srcpkgs/influxdb/template new file mode 100644 index 0000000000..44a0f994fb --- /dev/null +++ b/srcpkgs/influxdb/template @@ -0,0 +1,44 @@ +# Template file for 'influxdb' +pkgname=influxdb +version=0.13.0 +revision=1 +build_style=go +hostmakedepends="git-perl mercurial" +go_import_path="github.com/influxdata/influxdb" +go_package="${go_import_path}/cmd/influx + ${go_import_path}/cmd/influxd + ${go_import_path}/cmd/influx_inspect + ${go_import_path}/cmd/influx_stress + ${go_import_path}/cmd/influx_tsm" +short_desc="Scalable datastore for metrics, events, and real-time analytics" +maintainer="Farhad Shahbazi " +license="MIT" +homepage="https://influxdata.com/time-series-platform/influxdb/" +distfiles="https://${go_import_path}/archive/v${version}.tar.gz" +checksum=661dc5719efa2db0ff5e5a4676c31852dd259a952dd8fc837766cb291e06d31b + +system_accounts="_influxdb" +influxdb_homedir="/var/lib/$pkgname" +influxdb_shell="/bin/false" + +conf_files="/etc/influxdb/influxdb.conf" +make_dirs="$influxdb_homedir 0755 _influxdb _influxdb" + +post_extract() { + mkdir -p $GOPATH/src/github.com/influxdata + ln -s $PWD $GOPATH/src/$go_import_path +} + +pre_install() { + rm -f $GOPATH/bin/gdm + rm -f $GOPATH/bin/stress_test_server + rm -f $GOPATH/bin/test_client + rm -f $GOPATH/bin/urlgen +} + +post_install() { + vsv $pkgname + + vinstall etc/config.sample.toml 644 etc/influxdb influxdb.conf + vlicense LICENSE +}