aboutsummaryrefslogtreecommitdiffstats
path: root/main/iputils/APKBUILD
blob: 31b0daf9fc10495825f96dfd396999b9602d138e (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=iputils
pkgver=20100214
pkgrel=3
pkgdesc="IP Configuration Utilities (and Ping)"
url="http://www.linuxfoundation.org/en/Net:Iputils"
arch="all"
license="GPL"
install=$pkgname.post-install
depends=
replaces="bbsuid"
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"