diff options
Diffstat (limited to 'community/ntpsec/APKBUILD')
-rw-r--r-- | community/ntpsec/APKBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/community/ntpsec/APKBUILD b/community/ntpsec/APKBUILD new file mode 100644 index 0000000000..9b1c145edb --- /dev/null +++ b/community/ntpsec/APKBUILD @@ -0,0 +1,47 @@ +# Contributor: tcely <ntpsec+aports@tcely.33mail.com> +# Maintainer: tcely <ntpsec+aports@tcely.33mail.com> +pkgname=ntpsec +pkgver=1.1.3 +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() { + 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" |