aboutsummaryrefslogtreecommitdiffstats
path: root/main/c-ares/APKBUILD
blob: 5977622f51ea6d18c85b979f056879455af3796b (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
41
42
43
44
45
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=c-ares
pkgver=1.17.2
pkgrel=0
pkgdesc="An asynchronously DNS/names resolver library"
url="https://c-ares.haxx.se/"
arch="all"
options="!check"
license="MIT"
subpackages="$pkgname-doc $pkgname-static $pkgname-dev"
source="https://c-ares.haxx.se/download/c-ares-$pkgver.tar.gz"

# secfixes:
#   1.17.2-r0:
#     - CVE-2021-3672

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--enable-shared
	make
}

check() {
	# 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() {
	make -j1 DESTDIR="$pkgdir" install
}

sha512sums="
f625e0ef8508af6475d3e83b51ab29be8a4878e2a87e7f518bea046b76a74bfde7043ca6ec2a9e714c898ab9e5d4a5a678c3347a9f9eb68980438f7ca8ae3fc8  c-ares-1.17.2.tar.gz
"