aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/chrony/APKBUILD10
-rw-r--r--main/chrony/fix-tests.patch12
2 files changed, 21 insertions, 1 deletions
diff --git a/main/chrony/APKBUILD b/main/chrony/APKBUILD
index 28ff2d8db3..0cf797dd92 100644
--- a/main/chrony/APKBUILD
+++ b/main/chrony/APKBUILD
@@ -3,7 +3,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=chrony
pkgver=3.2
-pkgrel=1
+pkgrel=2
_ver=${pkgver/_/-}
pkgdesc="NTP client and server programs"
url="https://chrony.tuxfamily.org/"
@@ -14,8 +14,10 @@ license="GPL2"
install="$pkgname.pre-install $pkgname.pre-upgrade"
depends=""
makedepends="libcap-dev texinfo asciidoctor"
+checkdepends="bash"
subpackages="$pkgname-doc"
source="https://download.tuxfamily.org/$pkgname/$pkgname-$_ver.tar.gz
+ fix-tests.patch
max_resolve_interval.patch
chronyd.confd
chronyd.initd
@@ -51,6 +53,11 @@ build() {
make all docs
}
+check() {
+ cd "$builddir"
+ make check
+}
+
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
@@ -78,6 +85,7 @@ package() {
}
sha512sums="496af5bed91600f268c1a0fa577bb8c7785e485f78598b666829c674e94770c16548cec4289a2ae9d0a51191d2705eda00886cb6cccae3828aa201a49d4783a4 chrony-3.2.tar.gz
+067d47224a8c075ec8f63ffc58e65b030fdf228a72c4f03d50a2f2c17414da65bb5d27c7c2e4ba99e909f452041db83eaebe3c9e34c0c8fce18e05ebb489735e fix-tests.patch
19faf017e4502947a9b549b8165bf31bf11b814f2bf7b013a1ac11460afa654287d58de341cfa1f10b6a34334ed7d1d34e58b350c3c68bf6336530712d4db13c max_resolve_interval.patch
6919c7bddce2a8f81c0f2759c7c58506e97f89102bfeb7b5c19c6da5ed4cbd9070faddd4f3fb411bb4c653fffbdcc93a7f7dc810f38b199f038b1d4072f57640 chronyd.confd
9a18c9744d7b78d9b9be3f0ae0b43cb988b294c342764802e0d5df835d450e748584c0b345f7161f14d84e15c8bbd491514ee9dc45e4a65f1276c52124d2e312 chronyd.initd
diff --git a/main/chrony/fix-tests.patch b/main/chrony/fix-tests.patch
new file mode 100644
index 0000000000..6291fb0469
--- /dev/null
+++ b/main/chrony/fix-tests.patch
@@ -0,0 +1,12 @@
+diff -upr chrony-3.2.orig/test/unit/test.c chrony-3.2/test/unit/test.c
+--- chrony-3.2.orig/test/unit/test.c 2017-11-29 11:32:23.610059580 +0100
++++ chrony-3.2/test/unit/test.c 2017-11-29 11:32:51.213742887 +0100
+@@ -23,6 +23,8 @@
+ #include <logging.h>
+ #include <localp.h>
+
++#include <sys/param.h>
++
+ #include "test.h"
+
+ void