aboutsummaryrefslogtreecommitdiffstats
path: root/main/fping/APKBUILD
blob: 38cbe7aaddece3f2b5ec1b6f4526acd897b81091 (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
46
47
48
49
50
51
52
53
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=fping
pkgver=3.10
pkgrel=2
pkgdesc="A utility to ping multiple hosts at once"
url="http://fping.org/"
arch="all"
license="BSD"
depends=""
subpackages="$pkgname-doc"
source="http://fping.org/dist/fping-$pkgver.tar.gz
	musl-getaddrinfo-workaround.patch
	musl-ipv6-icmp-workaround.patch
	"
options="suid"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build () {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--enable-ipv6 \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make install DESTDIR="$pkgdir" || return 1
	chmod 4755 "$pkgdir"/usr/sbin/fping
}

md5sums="6a0ddecb671df1d580d20c0dd1095773  fping-3.10.tar.gz
7507bc4dca2e0e90137b02d97c032c8e  musl-getaddrinfo-workaround.patch
ef31bb9581ea624cdd0913d4f65a6dda  musl-ipv6-icmp-workaround.patch"
sha256sums="cd47e842f32fe6aa72369d8a0e3545f7c137bb019e66f47379dc70febad357d8  fping-3.10.tar.gz
dad94189cb843b321755b558550f7a64dcdd7fd45db663dd1a86858568cec815  musl-getaddrinfo-workaround.patch
76c0d27cbdef016590d5d1959652cc89dc3905b1cba0ca3f5a9743382144aa02  musl-ipv6-icmp-workaround.patch"
sha512sums="64bf93c7dbfa2b8adc3344514b2e6e182f1e5950da08b042b8d4d5e4c94b2b8bdc3aaba804339d0461dd88e0efbdfc0bd914a10d22810da8138c9c45335f7047  fping-3.10.tar.gz
487e903dc4c293c109324c739cdc481ff270023acd8c0c0c0aa5953e9e5752f896b3f5aa39bbcf7378a672c2174221fddb503c96deaad1944c1622762331d3c2  musl-getaddrinfo-workaround.patch
cd9aa4e19a6e570cb6cedc6413bbd078a3f5299addaaf9cf83be7c29f1171ca6efc650dd2dd86e61096de595b7e1bd362150cd4269020e822fa1067ca614ced5  musl-ipv6-icmp-workaround.patch"