aboutsummaryrefslogtreecommitdiffstats
path: root/main/c-ares
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-02-05 15:20:42 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2018-02-07 04:58:01 +0000
commitbbaa1d1b4422e07ed8ae0aff7e60e1810f80afe7 (patch)
treea1538c9ddeb68ad611c20c1344549b9ac046e996 /main/c-ares
parent1cf5954dc49c568a12ad63e838471f21af2c0349 (diff)
downloadaports-bbaa1d1b4422e07ed8ae0aff7e60e1810f80afe7.tar.bz2
aports-bbaa1d1b4422e07ed8ae0aff7e60e1810f80afe7.tar.xz
main/c-ares: modernise, add test suite
Diffstat (limited to 'main/c-ares')
-rw-r--r--main/c-ares/APKBUILD28
1 files changed, 19 insertions, 9 deletions
diff --git a/main/c-ares/APKBUILD b/main/c-ares/APKBUILD
index 50f3f0033d..fbf4f1c80c 100644
--- a/main/c-ares/APKBUILD
+++ b/main/c-ares/APKBUILD
@@ -2,34 +2,44 @@
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=c-ares
pkgver=1.13.0
-pkgrel=0
+pkgrel=1
pkgdesc="An asynchronously DNS/names resolver library"
url="https://c-ares.haxx.se/"
arch="all"
+options="!checkroot"
license="MIT"
depends=""
makedepends=""
subpackages="$pkgname-doc $pkgname-dev"
source="https://c-ares.haxx.se/download/$pkgname-$pkgver.tar.gz"
-_builddir="$srcdir"/$pkgname-$pkgver
-
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
- --enable-shared \
- || return 1
- make || return 1
+ --enable-shared
+ make
+}
+
+check() {
+ cd "$builddir"
+
+ # This is only needed for < 1.14.0, where the .sh file was not
+ # distributed properly - see https://da.gd/carestest
+ echo "#!/bin/true" > test/fuzzcheck.sh
+ chmod a+x test/fuzzcheck.sh
+
+ make -C test check
}
+
package() {
- cd "$_builddir"
- make -j1 DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make -j1 DESTDIR="$pkgdir" install
}
sha512sums="4a7942e754673f5b8d55a7471e31b0f390e8324b14c12077580c956147fad4d165c7fe8a3190199b1add95c710ceeb1a7957706d4f0d6299d39c5dddc719bd9d c-ares-1.13.0.tar.gz"