summaryrefslogtreecommitdiffstats
path: root/main/iputils/APKBUILD
blob: b5d7e25db68445fbbb911d3300b98ac2c3f09291 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=iputils
pkgver=20100214
pkgrel=1
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"