Urs Schulz 0b4bd3900e ntpd-rs: Set cap_net_bind_service on startup
Allows it to run in server mode and listen on port 123
2025-01-08 22:57:20 +01:00

37 lines
1.1 KiB
Bash

# Template file for 'ntpd-rs'
pkgname=ntpd-rs
version=1.4.0
revision=2
build_style=cargo
make_check_args="--
--skip daemon::keyexchange::tests::client_connection_refused
--skip daemon::keyexchange::tests::key_exchange_connection_limiter
--skip daemon::keyexchange::tests::key_exchange_weird_packet
"
make_install_args="--path ntpd"
short_desc="Full-featured implementation of the Network Time Protocol"
maintainer="tranzystorekk <tranzystorek.io@protonmail.com>"
license="Apache-2.0 OR 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=172210e8ef5f4fbac9b09f211cedc6bebce0f2686870ba33dd87cb579da07e80
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
vsv ntpd-rs-metrics
for manpage in docs/precompiled/man/*; do
vman ${manpage}
done
}