void-packages/srcpkgs/chrony/template
2014-05-25 11:29:37 +02:00

32 lines
1 KiB
Text

# Template file for 'chrony'
pkgname=chrony
version=1.29.1
revision=2
build_style=gnu-configure
configure_args="--without-nss"
hostmakedepends="pkg-config"
makedepends="libtomcrypt-devel libcap-devel libedit-devel"
conf_files="/etc/chrony.conf"
system_accounts="chrony"
systemd_services="chrony.service on"
provides="ntp-daemon-0_1"
replaces="ntp-daemon>=0"
make_dirs="
/var/log/chrony 0755 chrony chrony
/var/db/chrony 0755 chrony chrony"
short_desc="Sets your computer's clock from time servers on the Net"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="http://chrony.tuxfamily.org/"
distfiles="http://download.tuxfamily.org/chrony/$pkgname-$version.tar.gz"
checksum=658c9bb4d8c8d8ec7d0908429aa266e5f8413ba86bd4acbfd2f9669f6065af27
post_install() {
vinstall ${FILESDIR}/chrony.conf 644 etc
vinstall ${FILESDIR}/chrony.service 644 usr/lib/systemd/system
rm -rf ${DESTDIR}/usr/share/doc
# for systemd-timedated.
vmkdir usr/lib/systemd/ntp-units.d
echo "chrony.service" > ${DESTDIR}/usr/lib/systemd/ntp-units.d/50-chrony.list
}