aboutsummaryrefslogtreecommitdiffstats
path: root/extra/iputils/APKBUILD
blob: 02face483a5d43568e7a8b2acebcacc00f14a5bf (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=20071127
pkgrel=1
pkgdesc="IP Configuration Utilities (and Ping)"
url="http://www.linuxfoundation.org/en/Net:Iputils"
license="GPL"
install=$pkgname.post-install
depends="uclibc"
source="http://www.skbuff.net/$pkgname/$pkgname-s$pkgver.tar.bz2
	$pkgname-20070202-no-open-max.patch
	$install"

build ()
{
	cd "$srcdir"/$pkgname-s$pkgver
	patch -Np1 -i ../iputils-20070202-no-open-max.patch || return 1
	make KERNEL_INCLUDE=/usr/include || return 1
	for i in arping clockdiff 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="12245e9927d60ff5cf4a99d265bcb7d3  iputils-s20071127.tar.bz2
a2cbc0174dd883f68297aa7f3e7c4f5c  iputils-20070202-no-open-max.patch
b84506d253e04db3c5af9016fead45a3  iputils.post-install"