blob: aea81221e6940472975cf688e76981613a2ee128 (
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
|
# Contributor:
# Maintainer:
pkgname=ntpsec
pkgver=1.1.1
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"
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="838ed81c94e14a3d8588670ce63a1c4f6216d2f79be5149ad6a845cec00bdf6d7fe77310ce9c33c4675d3db54e59c3d9d02ae4351913ffbd9a3883716c443f83 ntpsec-1.1.1.tar.gz
27053715fd6d3dbeeaf851faf502df380733826f02542ba73a36bf9129f00d710740f3702b36a7a950f4445e747f52f090c863a1a67680cc389810b117e4603a python-to-python3.patch"
|