CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Imported core-cross ports from 2.5
[crossrootfs.git] / iputils / Pkgfile
CommitLineData
6dca1d21
JB
1# Description: Basic networking applet
2# URL: http://www.linux-foundation.org/en/Net:Iputils
3# Maintainer: CRUX System Team, core-ports at crux dot nu
4# Packager: Juergen Daubert, juergen dot daubert at t-online dot de
5# Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org
6
7name=iputils
8version=s20071127
9release=1
10source=(http://www.skbuff.net/iputils/$name-$version.tar.bz2 \
11 $name-$version-fixes-2.patch \
12 $name-$version-manpages-2.patch)
13
14build() {
15 cd $name-$version
16 patch -p1 -i $SRC/$name-$version-fixes-2.patch
17 patch -p1 -i $SRC/$name-$version-manpages-2.patch
18
19 sed 's/IPV6_TARGETS=*/IPV6_TARGETS=/' -i Makefile
20 make CC="$CC" CFLAGS="$CFLAGS"
21
22 install -d $PKG/{{s,}bin,usr/{man/man8,sbin}}
23 install ping $PKG/bin/
24 install arping $PKG/sbin/
25 install tracepath clockdiff rdisc ipg $PKG/usr/sbin/
26 rm traceroute6.*
27 cp *.8 $PKG/usr/man/man8
28 chmod u+s $PKG/bin/ping
29
30 # TODO: ipv6 binaries
31}