44 lines
1.2 KiB
Bash
44 lines
1.2 KiB
Bash
# Template file for 'influxdb'
|
|
pkgname=influxdb
|
|
version=1.1.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 <grauwolf@geekosphere.org>"
|
|
license="MIT"
|
|
homepage="https://influxdata.com/time-series-platform/influxdb/"
|
|
distfiles="https://${go_import_path}/archive/v${version}.tar.gz"
|
|
checksum=080d602d272cae3a3836dc73f5f433863a8445894d2c53fa89e1254b5a4da200
|
|
|
|
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
|
|
}
|