2011-10-13 21:15:59 +02:00
|
|
|
# Template file for 'chrony'
|
|
|
|
pkgname=chrony
|
2015-04-08 09:08:11 +02:00
|
|
|
version=1.31.1
|
|
|
|
revision=1
|
|
|
|
build_pie=yes
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2014-11-23 09:12:04 +01:00
|
|
|
build_options="systemd"
|
2015-04-08 09:08:11 +02:00
|
|
|
configure_args="--sbindir=/usr/bin --without-nss"
|
2013-04-12 08:55:23 +02:00
|
|
|
hostmakedepends="pkg-config"
|
2014-02-01 09:56:08 +01:00
|
|
|
makedepends="libtomcrypt-devel libcap-devel libedit-devel"
|
2014-01-01 16:10:11 +01:00
|
|
|
conf_files="/etc/chrony.conf"
|
|
|
|
system_accounts="chrony"
|
2014-11-23 09:12:04 +01:00
|
|
|
chrony_homedir="/var/db/chrony"
|
2014-01-01 16:10:11 +01:00
|
|
|
make_dirs="
|
|
|
|
/var/log/chrony 0755 chrony chrony
|
|
|
|
/var/db/chrony 0755 chrony chrony"
|
2011-10-13 21:15:59 +02:00
|
|
|
short_desc="Sets your computer's clock from time servers on the Net"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2011-10-13 21:15:59 +02:00
|
|
|
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"
|
2015-04-08 09:08:11 +02:00
|
|
|
checksum=0ba9f4b58e20b2eaae921eb8c798108ef72d8ea6fdcc7eb0167b56690d212348
|
2014-10-02 09:59:09 +02:00
|
|
|
|
2011-10-13 21:15:59 +02:00
|
|
|
post_install() {
|
2014-11-23 09:12:04 +01:00
|
|
|
vconf ${FILESDIR}/chrony.conf
|
|
|
|
vsv chronyd
|
2011-10-13 21:15:59 +02:00
|
|
|
rm -rf ${DESTDIR}/usr/share/doc
|
2012-08-21 20:16:08 +02:00
|
|
|
|
2014-10-02 09:59:09 +02: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 21:15:59 +02:00
|
|
|
}
|