mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-13 00:16:45 +02:00
musl uses POSIX strerror_r, causing an int-conversion error patch the source directly instead of messing with defines
50 lines
1.2 KiB
Text
50 lines
1.2 KiB
Text
# Contributor: Thomas Deutsch <thomas@tuxpeople.org>
|
|
# Maintainer: Thomas Deutsch <thomas@tuxpeople.org>
|
|
pkgname=dnsperf
|
|
pkgver=2.14.0
|
|
pkgrel=0
|
|
pkgdesc="Dnsperf and resperf gather accurate latency and throughput metrics for DNS"
|
|
url="https://www.dns-oarc.net/tools/dnsperf"
|
|
arch="all"
|
|
license="Apache-2.0"
|
|
makedepends="
|
|
ck-dev
|
|
fstrm-dev
|
|
json-c-dev
|
|
krb5-dev
|
|
ldns-dev
|
|
libcap-dev
|
|
libxml2-dev
|
|
nghttp2-dev
|
|
openssl-dev
|
|
protobuf-c-dev
|
|
"
|
|
subpackages="$pkgname-doc"
|
|
source="https://www.dns-oarc.net/files/dnsperf/dnsperf-$pkgver.tar.gz
|
|
musl-perf_strerror_r.patch
|
|
"
|
|
|
|
build() {
|
|
CFLAGS="$CFLAGS -flto=auto -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L" \
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--mandir=/usr/share/man \
|
|
--localstatedir=/var
|
|
make
|
|
}
|
|
|
|
check() {
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
sha512sums="
|
|
ebca70071a07b2f5b2a07866c22aa9f459981f70be06047ada760bf7e53bf44c355cf964674483ce5eae736a64b9061d773a44e8c46f956525d29144ca48a9fd dnsperf-2.14.0.tar.gz
|
|
79c2b01ae091df3cb00c250b8f6fcdde2ec2ad72dfd61f246dd7711fe789287b2fa5c8190eb12f995c03bc36041ca363430f92d593f6d2e6e43d2e4fb92e3f85 musl-perf_strerror_r.patch
|
|
"
|