mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
New package: ntpd-rs-1.1.0
This commit is contained in:
parent
db9fd7d7a5
commit
4e78515cb1
3 changed files with 46 additions and 0 deletions
5
srcpkgs/ntpd-rs/INSTALL
Normal file
5
srcpkgs/ntpd-rs/INSTALL
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
case "${ACTION}" in
|
||||||
|
post)
|
||||||
|
setcap CAP_SYS_TIME=+ep usr/bin/ntp-daemon
|
||||||
|
;;
|
||||||
|
esac
|
4
srcpkgs/ntpd-rs/files/ntpd-rs/run
Normal file
4
srcpkgs/ntpd-rs/files/ntpd-rs/run
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
exec 2>&1
|
||||||
|
[ ! -d /run/ntpd-rs ] && mkdir /run/ntpd-rs && chown _ntpd_rs:_ntpd_rs /run/ntpd-rs
|
||||||
|
exec chpst -u _ntpd_rs:_ntpd_rs ntp-daemon
|
37
srcpkgs/ntpd-rs/template
Normal file
37
srcpkgs/ntpd-rs/template
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
# Template file for 'ntpd-rs'
|
||||||
|
pkgname=ntpd-rs
|
||||||
|
version=1.1.0
|
||||||
|
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=47f97c068eb77fd7d68e71799f90372fe6d639aa87087b04c071771fb1db520a
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue