2011-10-13 21:15:59 +02:00
|
|
|
# Template file for 'chrony'
|
|
|
|
pkgname=chrony
|
2013-08-08 23:56:42 +02:00
|
|
|
version=1.29
|
|
|
|
revision=1
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2013-07-18 03:44:30 +02:00
|
|
|
configure_args="--without-nss"
|
2013-04-12 08:55:23 +02:00
|
|
|
hostmakedepends="pkg-config"
|
2013-07-18 03:44:30 +02:00
|
|
|
makedepends="libtomcrypt-devel libcap-devel readline-devel"
|
2011-10-13 21:15:59 +02: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 07:44:38 +02:00
|
|
|
homepage="http://chrony.tuxfamily.org/"
|
|
|
|
distfiles="http://download.tuxfamily.org/chrony/$pkgname-$version.tar.gz"
|
2013-08-08 23:56:42 +02:00
|
|
|
checksum=c685f072ba0663ab026a7f56870ab2c246bd97ca4629dd2e1899617bd16ad39b
|
2011-10-13 21:15:59 +02:00
|
|
|
|
|
|
|
post_install() {
|
2011-10-13 21:23:44 +02:00
|
|
|
vinstall ${FILESDIR}/chrony.conf 644 etc
|
2012-07-09 18:16:56 +02:00
|
|
|
vinstall ${FILESDIR}/chrony.service 644 usr/lib/systemd/system
|
2011-10-13 21:15:59 +02:00
|
|
|
rm -rf ${DESTDIR}/usr/share/doc
|
2012-08-21 20:16:08 +02: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 21:15:59 +02:00
|
|
|
}
|
2013-04-12 08:55:23 +02: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 22:36:36 +02:00
|
|
|
vmove all
|
2013-04-12 08:55:23 +02:00
|
|
|
}
|
|
|
|
}
|