aboutsummaryrefslogtreecommitdiffstats
path: root/community/ntpsec/APKBUILD
blob: c2ca7f01cb6d7006dcf79a9ad27c7e9b47528668 (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: tcely <ntpsec+aports@tcely.33mail.com>
_pkgname="ntpsec"
pkgname="${_pkgname}"
pkgver="1.1.6"
pkgrel=0
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=/usr/bin/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="f57fde6f329a858313968798d64df5e93d7eba43edf4752cd0eb45ff1a2237ce2731b4603ec997c493dea85edb42976f96eb1508beae087a8c2ae8a76c0a6941  ntpsec-1.1.6.tar.gz
27053715fd6d3dbeeaf851faf502df380733826f02542ba73a36bf9129f00d710740f3702b36a7a950f4445e747f52f090c863a1a67680cc389810b117e4603a  python-to-python3.patch"