aports/main/fping/APKBUILD

32 lines
786 B
Text

# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=fping
pkgver=5.3
pkgrel=0
pkgdesc="A utility to ping multiple hosts at once"
url="https://fping.org/"
arch="all"
license="MIT"
makedepends="libcap-utils"
subpackages="$pkgname-doc"
source="https://fping.org/dist/fping-$pkgver.tar.gz"
# setcap: needs cap_net_raw to be able to send icmp packets
options="!check setcap" # no testsuite
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--mandir=/usr/share/man \
--enable-ipv6
make
}
package() {
make install DESTDIR="$pkgdir"
setcap cap_net_raw=+ep "$pkgdir"/usr/sbin/fping
}
sha512sums="
b8cdc6bbd64cc854387b3868843e14d493ddae5ed3edbdc907326e16f1a9418a4bff3c9d07611edd0e78c055bca735ff7d326ef154b34e32b2d2d35956eb06fe fping-5.3.tar.gz
"