mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-22 17:17:03 +02:00
New package: victoria-logs-1.0.0
This commit is contained in:
parent
e7dce51383
commit
a2c5630a91
3 changed files with 47 additions and 0 deletions
6
srcpkgs/victoria-logs/files/victoria-logs/run
Normal file
6
srcpkgs/victoria-logs/files/victoria-logs/run
Normal file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
[ -f ./conf ] && . ./conf
|
||||
: ${HOME:=/var/lib/victoria-logs/}
|
||||
|
||||
exec chpst -o 8192 -u _vlogs -C "$HOME" \
|
||||
victoria-logs ${OPTS} 2>&1
|
40
srcpkgs/victoria-logs/template
Normal file
40
srcpkgs/victoria-logs/template
Normal file
|
@ -0,0 +1,40 @@
|
|||
# Template file for 'victoria-logs'
|
||||
pkgname=victoria-logs
|
||||
version=1.0.0
|
||||
revision=1
|
||||
build_style=go
|
||||
go_import_path="github.com/VictoriaMetrics/VictoriaMetrics"
|
||||
go_package="
|
||||
${go_import_path}/app/victoria-logs
|
||||
${go_import_path}/app/vlogsgenerator
|
||||
${go_import_path}/app/vlogscli
|
||||
"
|
||||
go_ldflags="-X ${go_import_path}/lib/buildinfo.Version=victoria-logs-v${version}"
|
||||
makedepends="libzstd-devel"
|
||||
short_desc="Fast and easy-to-use open source logs solution"
|
||||
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
||||
license="Apache-2.0"
|
||||
homepage="https://victoriametrics.com/products/victorialogs/"
|
||||
# monorepo:
|
||||
distfiles="https://github.com/VictoriaMetrics/VictoriaMetrics/archive/v${version}-victorialogs.tar.gz"
|
||||
checksum=cc48bb05cbb7eda73a6fb4f5df617775b9d56fd2399f3d41f4369c179fcdbcb6
|
||||
|
||||
system_accounts="_vlogs"
|
||||
_vlogs_homedir="/var/lib/victoria-logs"
|
||||
make_dirs="/var/lib/victoria-logs 0755 _vlogs _vlogs"
|
||||
|
||||
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-logs
|
||||
}
|
1
srcpkgs/victoria-logs/update
Normal file
1
srcpkgs/victoria-logs/update
Normal file
|
@ -0,0 +1 @@
|
|||
pattern='/archive/refs/tags/v\K[\d.]+(?=-victorialogs\.tar\.gz")'
|
Loading…
Add table
Reference in a new issue