Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion srcpkgs/influxdb/files/influxdb/run
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
exec 2>&1

exec chpst -u _influxdb:_influxdb influxd -config /etc/influxdb/influxdb.conf 2>&1
exec chpst -u _influxdb:_influxdb influxdb3 serve --node-id void --object-store file --data-dir /var/lib/influxdb
66 changes: 42 additions & 24 deletions srcpkgs/influxdb/template
Original file line number Diff line number Diff line change
@@ -1,37 +1,55 @@
# Template file for 'influxdb'
pkgname=influxdb
version=1.8.3
revision=4
build_style=go
go_import_path=github.com/influxdata/influxdb
go_package="${go_import_path}/cmd/influx
${go_import_path}/cmd/influxd
${go_import_path}/cmd/influx_tsm
${go_import_path}/cmd/influx_inspect
${go_import_path}/cmd/influx_stress"
go_ldflags="-X main.version=${version}"
hostmakedepends="asciidoc xmlto"
version=3.11.1
revision=1
# influxdb v3 dropped support for 32bit, build pulls wasm bins from influxdata/datafusion-udf-wasm
archs="x86_64 aarch64"
build_style=cargo
make_install_args="--path influxdb3"
hostmakedepends="lld pkg-config protobuf protobuf-devel python3 sqlite-devel"
makedepends="bzip2-devel libzstd-devel python3-devel sqlite-devel"
short_desc="Scalable datastore for metrics, events, and real-time analytics"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
license="Apache-2.0 AND MIT"
homepage="https://influxdata.com/time-series-platform/influxdb/"
changelog="https://raw.githubusercontent.com/influxdata/influxdb/master/CHANGELOG.md"
distfiles="https://${go_import_path}/archive/v${version}.tar.gz"
checksum=d8b89e324ed7343c1397124ac3cc68c405406faf74e7369e733611cada54656d
changelog="https://raw.githubusercontent.com/influxdata/influxdb/main/CHANGELOG.md"
distfiles="https://github.com/influxdata/influxdb/archive/v${version}.tar.gz"
checksum=fc4b2df6d75a628e8973ed7f601a820140a19825a67cd399314274db6bf78316

# release tag commit, update with version bump
export GIT_HASH=a95809c862448e050a2f6db3df202984e058bac3

system_accounts="_influxdb"
_influxdb_homedir="/var/lib/influxdb"
make_dirs="${_influxdb_homedir} 0755 _influxdb _influxdb"
conf_files="/etc/${pkgname}/${pkgname}.conf"
make_dirs="/var/lib/influxdb 0755 _influxdb _influxdb"

# https://github.com/rust-lang/cc-rs/issues/1469
_build_env() {
export CFLAGS_${RUST_TARGET//-/_}="${CFLAGS}"
export HOST_CFLAGS="-fstack-clash-protection ${CFLAGS_host}"
export CFLAGS_${RUST_BUILD//-/_}="-fstack-clash-protection ${CFLAGS_host}"
unset CFLAGS
}


# lto causes memory exhaustion
pre_configure() {
vsed -i Cargo.toml -e 's/lto = "fat"/lto = "thin"/'
}

post_build() {
make -C man build
pre_build() {
_build_env
}

pre_check() {
_build_env
}

pre_install() {
_build_env
}

post_install() {
vlicense LICENSE
vlicense LICENSE-MIT
vlicense LICENSE-APACHE
vsv ${pkgname}
vinstall etc/config.sample.toml 644 etc/${pkgname} ${pkgname}.conf

make -C man DESTDIR="${DESTDIR}/usr" install
}