void-packages/srcpkgs/chrony/template

30 lines
949 B
Plaintext

# Template file for 'chrony'
pkgname=chrony
version=1.27
revision=1
build_style=gnu-configure
makedepends="pkg-config nss-devel libcap-devel readline-devel"
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=d44835ee2180a9a0f4f320fc498c39d59dec33d35c2aa05b446fe65a2a83ae9d
system_accounts="chrony"
systemd_services="chrony.service on"
conf_files="/etc/chrony.conf"
make_dirs="
/var/log/chrony 0755 chrony chrony
/var/db/chrony 0755 chrony chrony"
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
}