aboutsummaryrefslogtreecommitdiff
path: root/srcpkgs/chrony/template
blob: b6d50d76365f2fec97f06c516112d7ae5f44f8f3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Template file for 'chrony'
# When Updating: Please confirm the upstream config still refers to make_dirs
pkgname=chrony
version=4.5
revision=2
build_style=gnu-configure
configure_args="--without-nss --enable-scfilter
 --with-sendmail=/usr/bin/sendmail"
hostmakedepends="pkg-config"
makedepends="gnutls-devel libcap-devel libedit-devel libseccomp-devel
 nettle-devel pps-tools-devel"
conf_files="/etc/chrony.conf"
short_desc="Versatile implementation of the Network Time Protocol (NTP)"
maintainer="0x5c <dev@0x5c.io>"
license="GPL-2.0-only"
homepage="https://chrony-project.org/"
changelog="https://gitlab.com/chrony/chrony/-/raw/master/NEWS"
distfiles="https://chrony-project.org/releases/chrony-${version}.tar.gz"
checksum=19fe1d9f4664d445a69a96c71e8fdb60bcd8df24c73d1386e02287f7366ad422
system_accounts="chrony"
chrony_homedir="/var/lib/chrony"

make_dirs="
	/var/log/chrony 0755 chrony chrony
	/var/lib/chrony	0755 chrony chrony"

provides="ntp-daemon-0_1"
alternatives="
 ntpd:ntpd:/usr/bin/chronyd
 ntpd:ntpd.8:/usr/share/man/man8/chronyd.8
 ntpd:ntpd:/etc/sv/chronyd"

post_install() {
	vconf examples/chrony.conf.example1 chrony.conf
	vsconf examples/chrony.conf.example2
	vsconf examples/chrony.conf.example3
	vsv chronyd
}