aboutsummaryrefslogtreecommitdiffstats
path: root/community/ntpsec/APKBUILD
blob: f496036c8107fe3d0c0eb4d051b190cdf8ee8ddb (plain)
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
39
40
41
42
43
44
45
46
47
48
# Contributor: tcely <ntpsec+aports@tcely.33mail.com>
# Maintainer:
_pkgname="ntpsec"
pkgname="${_pkgname}"
pkgver="1.1.7"
pkgrel=1
pkgdesc="NTP reference implementation, refactored for security"
url="https://www.ntpsec.org/"
arch="all"
license="BSD-2-Clause"
depends="bash busybox python3 py3-gpsd"
makedepends="python3-dev bison asciidoc openssl-dev linux-headers"
subpackages="${pkgname}-doc"
source="https://ftp.ntpsec.org/pub/releases/${_pkgname}-${pkgver}.tar.gz
        python-to-python3.patch"
builddir="${srcdir}/${_pkgname}-${pkgver}"

# secfixes:
#   1.1.3-r0:
#     - CVE-2019-6442
#     - CVE-2019-6443
#     - CVE-2019-6444
#     - CVE-2019-6445

build() {
	./waf configure \
		--prefix=/usr \
		--python=python3 \
		--enable-leap-smear \
		--enable-mssntp \
		--refclock=all

	./waf build --verbose
}

check() {
	./waf check --verbose
}

package() {
	./waf install --destdir="${pkgdir}"
}

gpg_signature_extensions="asc"
gpgfingerprints="good:B482 3776 1A26 9022 2C99  5F44 5A22 E330 161C 3978"

sha512sums="734b12820539e655e504dd5071a58b9d1f80c0b0c3c7458c797ba7ada23d8e446751fbcbddd9832d9151a3ba9464749878db9e77e23cdd5f6215ab9e1d908ae9  ntpsec-1.1.7.tar.gz
86287e90f0eac4b9d0aaa912f8ca70a7b8a10f135143d388a013af41d61af820bb27355c0117911b611f2d9d778be4ffdf67d34f8e4f007e43d63d866c92bef4  python-to-python3.patch"