summaryrefslogtreecommitdiff
path: root/experimental/ntp/APKBUILD
diff options
context:
space:
mode:
authorDan Theisen <djt@hxx.in>2018-06-25 23:13:13 -0700
committerDan Theisen <djt@hxx.in>2018-06-25 23:13:13 -0700
commit20ab3f9cc7186a0498f1d05d39465cf5005a8a8a (patch)
tree7f36c52bf1562d7cb9fbb36f0240b44ed02e344c /experimental/ntp/APKBUILD
parent7a5ee27c1a7b3daec16e6310f94341a8473b6c61 (diff)
downloadpackages-20ab3f9cc7186a0498f1d05d39465cf5005a8a8a.tar.gz
packages-20ab3f9cc7186a0498f1d05d39465cf5005a8a8a.tar.bz2
packages-20ab3f9cc7186a0498f1d05d39465cf5005a8a8a.tar.xz
packages-20ab3f9cc7186a0498f1d05d39465cf5005a8a8a.zip
user/ntp: deleted from user repo, moved to experimental, notes in APKBUILD
Diffstat (limited to 'experimental/ntp/APKBUILD')
-rw-r--r--experimental/ntp/APKBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/experimental/ntp/APKBUILD b/experimental/ntp/APKBUILD
new file mode 100644
index 000000000..b389caf47
--- /dev/null
+++ b/experimental/ntp/APKBUILD
@@ -0,0 +1,46 @@
+# Contributor: Dan Theisen <djt@hxx.in>
+# Maintainer: Dan Theisen <djt@hxx.in>
+# TODO: split oneoff client packages to subpackage, add openrc subpackage, add sample config with no listeners
+# Notes: This package fails to build on multiple architectures, also autokey is nonstandard and uses weak cryptography
+pkgname=ntp
+pkgver=4.2.8p11
+pkgrel=0
+pkgdesc="an implementation of RFC-5905 (NTPv4)"
+url="http://www.ntp.org/"
+arch="all"
+license="BSD-2-Clause"
+depends=""
+makedepends="openssl-dev libedit-dev libevent-dev"
+subpackages="$pkgname-dbg $pkgname-doc"
+source="http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/$pkgname-${pkgver%.*}/$pkgname-$pkgver.tar.gz"
+builddir="$srcdir/$pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ --with-lineeditlibs=edit \
+ --enable-system-libevent \
+ --enable-debugging \
+ --enable-ipv6 \
+ --with-crypto \
+ --enable-autokey
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="05ac60f15a6aac50aaf340d40e4e439a421fa6e3d897bf30a69b2cef0cc97f8a6956012bfc6ceba055f4c3485a24f7fb8ebbd055e1875f1c69cbfdc35e71f236 ntp-4.2.8p11.tar.gz"