void-packages/srcpkgs/ntpd-rs/template

38 lines
1.2 KiB
Bash

# Template file for 'ntpd-rs'
pkgname=ntpd-rs
version=1.1.1
revision=1
build_style=cargo
make_check_args="--
--skip algorithm::kalman::peer::tests::test_offset_steering_and_measurements
--skip keyexchange::tests::client_connection_refused
--skip interface::tests::find_interface_ipv6
--skip socket::tests::test_client_basic_ipv6
--skip socket::tests::test_server_basic_ipv6"
make_install_args="--path ntpd"
depends="libcap-progs"
short_desc="Full-featured implementation of the Network Time Protocol"
maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
license="Apache-2.0, MIT"
homepage="https://github.com/pendulum-project/ntpd-rs"
changelog="https://raw.githubusercontent.com/pendulum-project/ntpd-rs/main/CHANGELOG.md"
distfiles="https://github.com/pendulum-project/ntpd-rs/archive/refs/tags/v${version}.tar.gz"
checksum=5b5d6ee7b28ab024e28a46fd9003d0ab44b45421284f43ad9d1084823a857c91
system_accounts="_ntpd_rs"
conf_files="/etc/ntpd-rs/ntp.toml"
provides="ntp-daemon-0_1"
alternatives="
ntpd:ntpd:/usr/bin/ntp-daemon
ntpd:ntpd:/etc/sv/ntpd-rs"
post_install() {
vinstall ntp.toml 644 etc/ntpd-rs
vlicense LICENSE-MIT
vsv ntpd-rs
for manpage in docs/precompiled/man/*; do
vman ${manpage}
done
}