void-packages/srcpkgs/chrony/template

36 lines
1 KiB
Text
Raw Normal View History

2011-10-13 19:15:59 +00:00
# Template file for 'chrony'
pkgname=chrony
2013-07-17 20:36:36 +00:00
version=1.28
2013-02-04 08:51:51 +00:00
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="nss-devel libcap-devel readline-devel"
2011-10-13 19:15:59 +00:00
short_desc="Sets your computer's clock from time servers on the Net"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
2012-06-12 05:44:38 +00:00
homepage="http://chrony.tuxfamily.org/"
distfiles="http://download.tuxfamily.org/chrony/$pkgname-$version.tar.gz"
2013-07-17 20:36:36 +00:00
checksum=7adc34e77c5b5ffdf274adad54de503a34386f6b483c45e1a723751763c04364
2011-10-13 19:15:59 +00:00
post_install() {
2011-10-13 19:23:44 +00:00
vinstall ${FILESDIR}/chrony.conf 644 etc
2012-07-09 16:16:56 +00:00
vinstall ${FILESDIR}/chrony.service 644 usr/lib/systemd/system
2011-10-13 19:15:59 +00:00
rm -rf ${DESTDIR}/usr/share/doc
2012-08-21 18:16:08 +00:00
# for systemd-timedated.
vmkdir usr/lib/systemd/ntp-units.d
echo "chrony.service" > ${DESTDIR}/usr/lib/systemd/ntp-units.d/50-chrony.list
2011-10-13 19:15:59 +00:00
}
chrony_package() {
conf_files="/etc/chrony.conf"
system_accounts="chrony"
systemd_services="chrony.service on"
make_dirs="
/var/log/chrony 0755 chrony chrony
/var/db/chrony 0755 chrony chrony"
pkg_install() {
2013-07-17 20:36:36 +00:00
vmove all
}
}