mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-30 05:42:12 +01:00
88 lines
2.8 KiB
Plaintext
88 lines
2.8 KiB
Plaintext
# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
|
|
pkgname=vector
|
|
pkgver=0.32.2
|
|
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
|
|
openssl-sys.patch
|
|
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="
|
|
bdac3160a18e72da34f6d75f7c13c395da4bd334a3bd22d4087083c7bd138f35ee8bdd5e03c660097989fcda6ea8393848fa82177ca8f0b7ba53c7f375862d47 vector-0.32.2.tar.gz
|
|
006c7f4c2b544e4a973350a038d648d8ce1be388f7a0c6c93cd5b24c49694e94a2ced003b2d75554be139ff8cf61d246470fdbff334e846d59cd7746dd77ea7b openssl-sys.patch
|
|
7c7383005235eaba9bc050273d885b4348c0a3246abfc26da13acef495961e5930f1e309d9bb715216d14a35141a86de719804001cd5d10d33079384a06af5c5 skip-pkcs12-test.patch
|
|
d8326d3fab619eb7c0efa9d4cca924d7463b7144cb489188533f6463bc1a1e86f53bfbf7bc738a32a81182a9115769acb1c522bf78b7210a40fe54b2bd1b1a61 use-system-zstd.patch
|
|
806c2594d9d7b4bf1c24436a3982801a37ec3d8784acb97266eb7111fe35d8d05a64ef981100bd8aa35a71ad9c7c98de634428f696bded31993143ca572b6757 vector.initd
|
|
313f79e65e61754e8a611f8221d7c0cf36ee5af6f30aeff720924e64bb03d7f44c54fc31ae20926c354905f61df347830a7cba0c37afd41c1f59a25c52fa6f06 vector.confd
|
|
62db792de321655558bdb23ab9b3a7b35b84de445657011d88e8205cce4a926ff7b20f5304ec48fa646f1f259ad2136eceb5a377c4520071799da502eeff7592 logrotate
|
|
"
|