aboutsummaryrefslogtreecommitdiffstats
path: root/community/ntpsec/APKBUILD
blob: 8c7eedead6153d8f7b5f8a40b780805d12145763 (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
# Contributor: tcely <ntpsec+aports@tcely.33mail.com>
# Maintainer: tcely <ntpsec+aports@tcely.33mail.com>
pkgname=ntpsec
pkgver=1.1.3
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() {
	cd "$builddir"
	./waf configure \
		--prefix=/usr \
		--python=/usr/bin/python3 \
		--enable-leap-smear \
		--enable-mssntp \
		--refclock=all

	./waf build --verbose
}

check() {
	cd "$builddir"
	./waf check --verbose
}

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

sha512sums="df60c5fa63d4c94529ba1e8b21c7d6b5d0c9fb810ed7546a621b072725a6ff03edbd2dcbc3baf19ac3b3a9b82d7aff3ddee4ab8c93559b7065ed06a211b538c4  ntpsec-1.1.3.tar.gz
27053715fd6d3dbeeaf851faf502df380733826f02542ba73a36bf9129f00d710740f3702b36a7a950f4445e747f52f090c863a1a67680cc389810b117e4603a  python-to-python3.patch"