void-packages/srcpkgs/chrony/template

41 lines
1.5 KiB
Bash

# Template file for 'chrony'
# When Updating: Please confirm the upstream config still refers to make_dirs
pkgname=chrony
version=3.5
revision=1
build_style=gnu-configure
configure_args="--without-nss --enable-scfilter
--with-sendmail=/usr/bin/sendmail"
hostmakedepends="pkg-config"
makedepends="libcap-devel libedit-devel libseccomp-devel libtomcrypt-devel"
conf_files="/etc/chrony.conf"
short_desc="Versatile implementation of the Network Time Protocol (NTP)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-only"
homepage="https://chrony.tuxfamily.org/"
distfiles="https://download.tuxfamily.org/chrony/${pkgname}-${version}.tar.gz"
checksum=4e02795b1260a4ec51e6ace84149036305cc9fc340e65edb9f8452aa611339b5
system_accounts="chrony"
chrony_homedir="/var/lib/chrony"
make_dirs="
/var/log/chrony 0755 chrony chrony
/var/lib/chrony 0755 chrony chrony"
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
vsed -e 's,! pool pool.ntp.org iburst,pool pool.ntp.org iburst,' -i ${DESTDIR}/etc/chrony.conf
vsed -e 's,! rtcfile /var/lib/chrony/rtc,rtcfile /var/lib/chrony/rtc,' -i ${DESTDIR}/etc/chrony.conf
vsed -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
}