chrony: modify example config so it works out of the box (#9289)

The previous configuration allowed chrony to work without modifying the
configuration.  This restores that functionality while still using the
upstream configuration file.
This commit is contained in:
Peter Bui 2017-11-17 12:47:40 -05:00 committed by Juan RP
parent a71078a7e7
commit 46db0f160a

View file

@ -2,7 +2,7 @@
# When Updating: Please confirm the upstream config still refers to make_dirs
pkgname=chrony
version=3.2
revision=4
revision=5
build_style=gnu-configure
configure_args="--without-nss --enable-scfilter --with-sendmail=/usr/bin/sendmail"
hostmakedepends="pkg-config"
@ -28,6 +28,9 @@ alternatives="
post_install() {
vconf examples/chrony.conf.example3 chrony.conf
# 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
vsconf examples/chrony.conf.example1
vsconf examples/chrony.conf.example2
vsv chronyd