New package: victoria-metrics-1.106.1
This commit is contained in:
parent
61601fec60
commit
e7dce51383
2 changed files with 50 additions and 0 deletions
6
srcpkgs/victoria-metrics/files/victoria-metrics/run
Normal file
6
srcpkgs/victoria-metrics/files/victoria-metrics/run
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/sh
|
||||||
|
[ -f ./conf ] && . ./conf
|
||||||
|
: ${HOME:=/var/lib/victoria-metrics/}
|
||||||
|
|
||||||
|
exec chpst -o 8192 -u _vmetrics -C "$HOME" \
|
||||||
|
victoria-metrics ${OPTS} 2>&1
|
44
srcpkgs/victoria-metrics/template
Normal file
44
srcpkgs/victoria-metrics/template
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
# Template file for 'victoria-metrics'
|
||||||
|
pkgname=victoria-metrics
|
||||||
|
version=1.106.1
|
||||||
|
revision=1
|
||||||
|
build_style=go
|
||||||
|
go_import_path="github.com/VictoriaMetrics/VictoriaMetrics"
|
||||||
|
go_package="
|
||||||
|
${go_import_path}/app/victoria-metrics
|
||||||
|
${go_import_path}/app/vmagent
|
||||||
|
${go_import_path}/app/vmalert
|
||||||
|
${go_import_path}/app/vmalert-tool
|
||||||
|
${go_import_path}/app/vmauth
|
||||||
|
${go_import_path}/app/vmbackup
|
||||||
|
${go_import_path}/app/vmctl
|
||||||
|
${go_import_path}/app/vmrestore
|
||||||
|
"
|
||||||
|
go_ldflags="-X ${go_import_path}/lib/buildinfo.Version=victoria-metrics-v${version}"
|
||||||
|
makedepends="libzstd-devel"
|
||||||
|
short_desc="Fast, cost-effective monitoring solution and time series database"
|
||||||
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
||||||
|
license="Apache-2.0"
|
||||||
|
homepage="https://victoriametrics.com/"
|
||||||
|
distfiles="https://github.com/VictoriaMetrics/VictoriaMetrics/archive/v${version}.tar.gz"
|
||||||
|
checksum=e856eda2e9b9351d4a24ccc904a5ad9d70dfb48edf6573d18d49df8976cc37d5
|
||||||
|
|
||||||
|
system_accounts="_vmetrics"
|
||||||
|
_vmetrics_homedir="/var/lib/victoria-metrics"
|
||||||
|
make_dirs="/var/lib/victoria-metrics 0755 _vmetrics _vmetrics"
|
||||||
|
|
||||||
|
pre_build() {
|
||||||
|
# dynamically link system zstd
|
||||||
|
vsed -i 's/#cgo LDFLAGS:.*/#cgo LDFLAGS: -lzstd/' \
|
||||||
|
vendor/github.com/valyala/gozstd/libzstd_*.go
|
||||||
|
cp vendor/github.com/valyala/gozstd/libzstd_linux_amd64.go \
|
||||||
|
vendor/github.com/valyala/gozstd/libzstd.go
|
||||||
|
}
|
||||||
|
|
||||||
|
do_check() {
|
||||||
|
make test
|
||||||
|
}
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
vsv victoria-metrics
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue