aboutsummaryrefslogtreecommitdiffstats
path: root/main/iputils/APKBUILD
blob: 75cf4c5b919a8bf5c880faf5aa2e0c9b4455064e (plain) (blame)
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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=iputils
pkgver=20100214
pkgrel=0
pkgdesc="IP Configuration Utilities (and Ping)"
url="http://www.linuxfoundation.org/en/Net:Iputils"
license="GPL"
install=$pkgname.post-install
depends=
source="http://www.skbuff.net/$pkgname/$pkgname-s$pkgver.tar.bz2"

build() {
	cd "$srcdir"/$pkgname-s$pkgver
	make KERNEL_INCLUDE=/usr/include || return 1
}

package() {
	cd "$srcdir"/$pkgname-s$pkgver
	for i in arping clockdiff ipg rarpd rdisc tftpd tracepath tracepath6; do
		install -D -m755 $i "$pkgdir"/usr/sbin/$i
	done
	for i in ping ping6 traceroute6; do
		install -D -m4755 $i "$pkgdir"/bin/$i
	done
}
md5sums="37596c8b3eed537294e77464b9804726  iputils-s20100214.tar.bz2"