44 lines
1.3 KiB
Bash
44 lines
1.3 KiB
Bash
# Template file for 'victoria-metrics'
|
|
pkgname=victoria-metrics
|
|
version=1.106.1
|
|
revision=2
|
|
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
|
|
}
|