ports/net/ntpd-rs/files/patch-ntp-daemon_src_config_mod.rs
Mikael Urankar 811c1b9162 net/ntpd-rs: Add new port
ntpd-rs is an NTP implementation written in Rust, with a focus on security and
stability. It includes client and server functionality and supports NTS.

WWW: https://tweedegolf.nl/en/pendulum

PR:		272774
2023-08-24 11:02:18 +02:00

11 lines
523 B
Rust

--- ntp-daemon/src/config/mod.rs.orig 2023-07-28 13:42:06 UTC
+++ ntp-daemon/src/config/mod.rs
@@ -272,7 +272,7 @@ impl Config {
}
// for the global file we also ignore it when there are permission errors
- let global_path = Path::new("/etc/ntpd-rs/ntp.toml");
+ let global_path = Path::new("%%ETCDIR%%/ntp.toml");
if global_path.exists() {
info!("using config file at default location `{:?}`", global_path);
match Config::from_file(global_path).await {