aboutsummaryrefslogtreecommitdiffstats
path: root/community/ntpsec/APKBUILD
blob: 058870240c19c66631b520933afdffeb4d51142d (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
39
40
41
42
43
44
45
46
47
48
# Contributor: tcely <ntpsec+aports@tcely.33mail.com>
# Maintainer:
pkgname=ntpsec
pkgver=1.1.9
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/ntpsec-$pkgver.tar.gz"

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

prepare() {
	default_prepare

	ln -s /usr/bin/python3 python
	export PATH="$PATH":.
}

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"
}

sha512sums="e04267aa675a5b528f3478d00329a569ecb9bbe2b6ad18697020854d2ee451bc188c4603cd5f420a08a7e3bf047d2db1301416f57f9156df23aceb1f57303b0b  ntpsec-1.1.9.tar.gz"