2011-10-13 19:15:59 +00:00
|
|
|
# Template file for 'chrony'
|
|
|
|
pkgname=chrony
|
2014-10-02 07:59:09 +00:00
|
|
|
version=1.31
|
|
|
|
revision=1
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2013-07-18 01:44:30 +00:00
|
|
|
configure_args="--without-nss"
|
2013-04-12 06:55:23 +00:00
|
|
|
hostmakedepends="pkg-config"
|
2014-02-01 08:56:08 +00:00
|
|
|
makedepends="libtomcrypt-devel libcap-devel libedit-devel"
|
2014-01-01 15:10:11 +00:00
|
|
|
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"
|
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/"
|
2014-11-03 23:38:49 +00:00
|
|
|
update_ignore="*oldcvs*"
|
2012-06-12 05:44:38 +00:00
|
|
|
distfiles="http://download.tuxfamily.org/chrony/$pkgname-$version.tar.gz"
|
2014-10-02 07:59:09 +00:00
|
|
|
checksum=a35e1cae46ecbe14af2023bb47a72a03d79591b2ff65f0072b3400153224996d
|
|
|
|
|
|
|
|
build_options="systemd"
|
2011-10-13 19:15:59 +00:00
|
|
|
|
|
|
|
post_install() {
|
2011-10-13 19:23:44 +00:00
|
|
|
vinstall ${FILESDIR}/chrony.conf 644 etc
|
2011-10-13 19:15:59 +00:00
|
|
|
rm -rf ${DESTDIR}/usr/share/doc
|
2012-08-21 18:16:08 +00:00
|
|
|
|
2014-10-02 07:59:09 +00:00
|
|
|
if [ "$build_option_systemd" ]; then
|
|
|
|
vinstall ${FILESDIR}/chrony.service 644 usr/lib/systemd/system
|
|
|
|
# for systemd-timedated.
|
|
|
|
vmkdir usr/lib/systemd/ntp-units.d
|
|
|
|
echo "chrony.service" > ${DESTDIR}/usr/lib/systemd/ntp-units.d/50-chrony.list
|
|
|
|
fi
|
2011-10-13 19:15:59 +00:00
|
|
|
}
|