mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-15 05:32:26 +01:00
86 lines
2.7 KiB
Plaintext
86 lines
2.7 KiB
Plaintext
# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
|
|
pkgname=vector
|
|
pkgver=0.29.1
|
|
pkgrel=1
|
|
pkgdesc="High-performance observability data pipeline"
|
|
url="https://vector.dev/"
|
|
# s390x, ppc64le, riscv64: blocked by ring crate
|
|
# 32-bit: memory allocation error
|
|
arch="all !s390x !ppc64le !riscv64 !x86 !armhf !armv7"
|
|
license="MPL-2.0"
|
|
makedepends="
|
|
cargo
|
|
cargo-auditable
|
|
cmake
|
|
librdkafka-dev
|
|
openssl-dev
|
|
perl
|
|
protobuf-dev
|
|
protoc
|
|
python3
|
|
zstd-dev
|
|
"
|
|
checkdepends="bash cargo-nextest tzdata"
|
|
subpackages="$pkgname-doc $pkgname-openrc"
|
|
source="
|
|
$pkgname-$pkgver.tar.gz::https://github.com/vectordotdev/vector/archive/refs/tags/v$pkgver.tar.gz
|
|
skip-pkcs12-test.patch
|
|
use-system-zstd.patch
|
|
vector.initd
|
|
vector.confd
|
|
logrotate
|
|
"
|
|
|
|
export OPENSSL_NO_VENDOR=1
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
# "cargo auditable build" still tries to pull dependencies for other platforms
|
|
cargo fetch --locked
|
|
}
|
|
|
|
build() {
|
|
cargo auditable build \
|
|
--release \
|
|
--frozen \
|
|
--no-default-features \
|
|
--features default-musl,component-validation-runner
|
|
|
|
# cargo-nextest drops the release build, so back it up here
|
|
cp -r target/release releasebuild
|
|
}
|
|
|
|
check() {
|
|
# Upstream recommends running tests with "cargo nextest" instead of "cargo test"
|
|
cargo nextest run \
|
|
--fail-fast \
|
|
--frozen \
|
|
--no-default-features \
|
|
--offline \
|
|
--release \
|
|
--workspace \
|
|
--test-threads num-cpus
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 releasebuild/vector -t "$pkgdir"/usr/bin/
|
|
install -Dm644 config/vector.toml -t "$pkgdir"/etc/vector/
|
|
install -Dm644 "$srcdir"/logrotate "$pkgdir"/etc/logrotate.d/vector
|
|
|
|
mkdir -p "$pkgdir"/usr/share/doc/vector
|
|
cp -r config/examples "$pkgdir"/usr/share/doc/vector/examples
|
|
|
|
install -Dm755 "$srcdir"/vector.initd "$pkgdir"/etc/init.d/vector
|
|
install -Dm644 "$srcdir"/vector.confd "$pkgdir"/etc/conf.d/vector
|
|
}
|
|
|
|
sha512sums="
|
|
96e754696cddec99d8c24af0484609e7e2f63de753216b761d49d547c89df7ba4998d2a199bb995676b1c0aa7e15ac11e58aec43a2b55e636cab4df51bc6224a vector-0.29.1.tar.gz
|
|
7c7383005235eaba9bc050273d885b4348c0a3246abfc26da13acef495961e5930f1e309d9bb715216d14a35141a86de719804001cd5d10d33079384a06af5c5 skip-pkcs12-test.patch
|
|
82cbfc8458aad8282b00c9b3ae25ec6503caa915d2eb271f125576dc5cdefc5f41dc51b441a7acd82f698c29d9efdc2b9e3de6d6b6f6457fdbcd19acb8fb2ad1 use-system-zstd.patch
|
|
806c2594d9d7b4bf1c24436a3982801a37ec3d8784acb97266eb7111fe35d8d05a64ef981100bd8aa35a71ad9c7c98de634428f696bded31993143ca572b6757 vector.initd
|
|
313f79e65e61754e8a611f8221d7c0cf36ee5af6f30aeff720924e64bb03d7f44c54fc31ae20926c354905f61df347830a7cba0c37afd41c1f59a25c52fa6f06 vector.confd
|
|
62db792de321655558bdb23ab9b3a7b35b84de445657011d88e8205cce4a926ff7b20f5304ec48fa646f1f259ad2136eceb5a377c4520071799da502eeff7592 logrotate
|
|
"
|