# Contributor: tcely # Maintainer: _pkgname="ntpsec" pkgname="${_pkgname}" pkgver="1.1.7" pkgrel=2 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"