summaryrefslogtreecommitdiffstats
path: root/main/fping/APKBUILD
blob: 9241e998b89128120c0cf3113bd73b93f82183e5 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>

pkgname=fping
pkgver=3.6
pkgrel=0
pkgdesc="A utility to ping multiple hosts at once"
url="http://fping.org/"
arch="all"
license="fping"
depends=""
subpackages="$pkgname-doc"
source="http://fping.org/dist/fping-$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}

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

package() {
	cd "$_builddir"
	make install DESTDIR="$pkgdir" || return 1
	chmod 4755 "$pkgdir"/usr/sbin/fping
}
md5sums="997b1e998caff6ad5b28c48a5a8bf84b  fping-3.6.tar.gz"
sha256sums="e1ba303e25401100e09cc2f6971d6d8c2ec19756e7da4764d8c408923a812d31  fping-3.6.tar.gz"
sha512sums="dd6fa33ffb898a82a9aae489818a21caa1c6a5bac55d88dd682b78b2ad150dcd61026bdeb8c636e15525289a2f87dfe17f15e0e12f4337632d9132f3364a8692  fping-3.6.tar.gz"