aboutsummaryrefslogtreecommitdiff
path: root/srcpkgs/ntpd-rs/template
blob: ce2fbefb91eb944fa71fb6d41058ab21e34b5d65 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Template file for 'ntpd-rs'
pkgname=ntpd-rs
version=1.1.2
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=83f5f19acf98ea3a16c9a1256d02edaf1b2f49383a4f550d6a325cab8e8b2d4b

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
}