APKBUILD 973 Bytes
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>

Natanael Copa's avatar
Natanael Copa committed
3
pkgname=fping
Natanael Copa's avatar
Natanael Copa committed
4
pkgver=3.6
Natanael Copa's avatar
Natanael Copa committed
5
pkgrel=0
Natanael Copa's avatar
Natanael Copa committed
6
pkgdesc="A utility to ping multiple hosts at once"
Natanael Copa's avatar
Natanael Copa committed
7
url="http://fping.org/"
8
arch="all"
Natanael Copa's avatar
Natanael Copa committed
9
license="fping"
10
depends=""
Natanael Copa's avatar
Natanael Copa committed
11
subpackages="$pkgname-doc"
Natanael Copa's avatar
Natanael Copa committed
12
source="http://fping.org/dist/fping-$pkgver.tar.gz"
Natanael Copa's avatar
Natanael Copa committed
13

Natanael Copa's avatar
Natanael Copa committed
14
_builddir="$srcdir"/$pkgname-$pkgver
Natanael Copa's avatar
Natanael Copa committed
15

16 17 18 19 20
prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}

Natanael Copa's avatar
Natanael Copa committed
21
build () { 
Natanael Copa's avatar
Natanael Copa committed
22
	cd "$_builddir"
23 24 25 26 27 28
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		|| return 1
Natanael Copa's avatar
Natanael Copa committed
29
	make || return 1
Natanael Copa's avatar
Natanael Copa committed
30 31 32 33 34 35
}

package() {
	cd "$_builddir"
	make install DESTDIR="$pkgdir" || return 1
	chmod 4755 "$pkgdir"/usr/sbin/fping
Natanael Copa's avatar
Natanael Copa committed
36
}
Natanael Copa's avatar
Natanael Copa committed
37 38 39
md5sums="997b1e998caff6ad5b28c48a5a8bf84b  fping-3.6.tar.gz"
sha256sums="e1ba303e25401100e09cc2f6971d6d8c2ec19756e7da4764d8c408923a812d31  fping-3.6.tar.gz"
sha512sums="dd6fa33ffb898a82a9aae489818a21caa1c6a5bac55d88dd682b78b2ad150dcd61026bdeb8c636e15525289a2f87dfe17f15e0e12f4337632d9132f3364a8692  fping-3.6.tar.gz"