2011-10-13 19:15:59 +00:00
|
|
|
# Template file for 'chrony'
|
|
|
|
pkgname=chrony
|
|
|
|
version=1.26
|
2012-08-21 18:16:08 +00:00
|
|
|
revision=10
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2012-05-23 16:26:56 +00:00
|
|
|
makedepends="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"
|
2011-10-13 19:15:59 +00:00
|
|
|
checksum=fb191ca4ba59e192c96d022618ca3eaee49f3c11f9af8dd7297020b27bf3e05b
|
|
|
|
long_desc="
|
|
|
|
It consists of a pair of programs: chronyd. This is a daemon which runs in
|
|
|
|
background on the system. It obtains measurements (e.g. via the network) of
|
|
|
|
the system's offset relative to other systems, and adjusts the system time
|
|
|
|
accordingly. For isolated systems, the user can periodically enter the
|
|
|
|
correct time by hand (using chronyc). In either case, chronyd determines the
|
|
|
|
rate at which the computer gains or loses time, and compensates for this.
|
|
|
|
Chronyd implements the NTP protocol and can act as either a client or a
|
|
|
|
server. chronyc: this is a command-line driven control and monitoring program.
|
|
|
|
An administrator can use this to fine-tune various parameters within the
|
|
|
|
daemon, add or delete servers etc whilst the daemon is running."
|
|
|
|
|
2011-10-13 22:39:13 +00:00
|
|
|
system_accounts="chrony"
|
2011-11-10 10:20:04 +00:00
|
|
|
systemd_services="chrony.service on"
|
2011-10-13 19:15:59 +00:00
|
|
|
conf_files="/etc/chrony.conf"
|
2011-11-10 10:20:04 +00:00
|
|
|
make_dirs="
|
|
|
|
/var/log/chrony 0755 chrony chrony
|
|
|
|
/var/db/chrony 0755 chrony chrony"
|
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 22:53:31 +00:00
|
|
|
vinstall ${FILESDIR}/chrony.logrotate 644 etc/logrotate.d chrony
|
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
|
|
|
}
|