35 lines
1.1 KiB
Bash
35 lines
1.1 KiB
Bash
# Template file for 'chrony'
|
|
pkgname=chrony
|
|
version=1.31.1
|
|
revision=1
|
|
build_pie=yes
|
|
build_style=gnu-configure
|
|
build_options="systemd"
|
|
configure_args="--sbindir=/usr/bin --without-nss"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libtomcrypt-devel libcap-devel libedit-devel"
|
|
conf_files="/etc/chrony.conf"
|
|
system_accounts="chrony"
|
|
chrony_homedir="/var/db/chrony"
|
|
make_dirs="
|
|
/var/log/chrony 0755 chrony chrony
|
|
/var/db/chrony 0755 chrony chrony"
|
|
short_desc="Sets your computer's clock from time servers on the Net"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="GPL-2"
|
|
homepage="http://chrony.tuxfamily.org/"
|
|
distfiles="http://download.tuxfamily.org/chrony/$pkgname-$version.tar.gz"
|
|
checksum=0ba9f4b58e20b2eaae921eb8c798108ef72d8ea6fdcc7eb0167b56690d212348
|
|
|
|
post_install() {
|
|
vconf ${FILESDIR}/chrony.conf
|
|
vsv chronyd
|
|
rm -rf ${DESTDIR}/usr/share/doc
|
|
|
|
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
|
|
}
|