From 8b4da68ad0da164b5a7847f0156a78ca212a3f09 Mon Sep 17 00:00:00 2001 From: Peter Bui Date: Tue, 28 Nov 2017 05:43:58 -0500 Subject: [PATCH] chrony: enable initial timestep (#9430) This is a follow up to #9289, which modifies the example to allow chrony to work out of the box. Specifically, this enables the "makestep" option to allow for quickly correcting the clock on start if it's off by a large amount. This is necessary for devices like Raspberry Pi's which don't have a RTC and reset their clocks on boot. --- srcpkgs/chrony/template | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/srcpkgs/chrony/template b/srcpkgs/chrony/template index 2176c5d51d5..4b83cf66c7b 100644 --- a/srcpkgs/chrony/template +++ b/srcpkgs/chrony/template @@ -2,7 +2,7 @@ # When Updating: Please confirm the upstream config still refers to make_dirs pkgname=chrony version=3.2 -revision=5 +revision=6 build_style=gnu-configure configure_args="--without-nss --enable-scfilter --with-sendmail=/usr/bin/sendmail" hostmakedepends="pkg-config" @@ -31,6 +31,7 @@ post_install() { # Modify default configuration so it works out-of-the-box sed -e 's,! pool pool.ntp.org iburst,pool pool.ntp.org iburst,' -i ${DESTDIR}/etc/chrony.conf sed -e 's,! rtcfile /var/lib/chrony/rtc,rtcfile /var/lib/chrony/rtc,' -i ${DESTDIR}/etc/chrony.conf + sed -e 's,! makestep 1.0 3,makestep 1.0 3,' -i ${DESTDIR}/etc/chrony.conf vsconf examples/chrony.conf.example1 vsconf examples/chrony.conf.example2 vsv chronyd