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

pkgname=fping
pkgver=2.4_beta2
_myver=2.4b2_to
pkgrel=4
pkgdesc="A utility to ping multiple hosts at once"
url="http://www.fping.com/"
arch="all"
license="fping"
depends=""
subpackages="$pkgname-doc"

# what happened to upstream download? use gentoo distfiles meanwhile
#source="http://www.$pkgname.com/download/$pkgname-${myver}.tar.gz"
source=http://distfiles.gentoo.org/distfiles/fping-${_myver}.tar.gz

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

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

package() {
	cd "$_builddir"
	make install DESTDIR="$pkgdir" || return 1
	chmod 4755 "$pkgdir"/usr/sbin/fping
}
md5sums="d5e8be59e307cef76bc479e1684df705  fping-2.4b2_to.tar.gz"