blob: 4a3949089a84f90844be2bffc08de1db193cace9 (
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=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
a813811109f0df7b6c408b1c7566f986c149f201eca9ed909e1a08e0e8240bde2986ca7e7c719edf9bd9aa9f2f683b0f67467fc4b3b118b56f9c89a113c70b36 python-to-python3.patch"
|