void-packages/srcpkgs/chrony/template
Peter Bui 46db0f160a 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.
2017-11-17 18:47:40 +01:00

37 lines
1.4 KiB
Bash

# Template file for 'chrony'
# When Updating: Please confirm the upstream config still refers to make_dirs
pkgname=chrony
version=3.2
revision=5
build_style=gnu-configure
configure_args="--without-nss --enable-scfilter --with-sendmail=/usr/bin/sendmail"
hostmakedepends="pkg-config"
makedepends="libtomcrypt-devel libcap-devel libedit-devel libseccomp-devel"
conf_files="/etc/chrony.conf"
system_accounts="chrony"
chrony_homedir="/var/lib/chrony"
make_dirs="
/var/log/chrony 0755 chrony chrony
/var/lib/chrony 0755 chrony chrony"
short_desc="Versatile implementation of the Network Time Protocol (NTP)"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="https://chrony.tuxfamily.org/"
distfiles="https://download.tuxfamily.org/chrony/${pkgname}-${version}.tar.gz"
checksum=329f6718dd8c3ece3eee78be1f4821cbbeb62608e7d23f25da293cfa433c4116
provides="ntp-daemon-0_1"
alternatives="
ntpd:ntpd:/usr/bin/chronyd
ntpd:ntpd.8:/usr/share/man/man8/chronyd.8
ntpd:ntpd:/etc/sv/chronyd"
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
}