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, devel at crux-arm dot nu
6 # Depends on: sysfsutils
11 source=(http://www.skbuff.net/iputils/$name-$version.tar.bz2
12 http://crux.nu/files/distfiles/$name-man-$version.tar.xz
13 iputils-s20101006-fixes-1.patch)
17 sed -e "s|arping.o -lsysfs|arping.o $CLFS/usr/lib/libsysfs.so|" \
18 -e 's/IPV6_TARGETS=*/IPV6_TARGETS=/' -i Makefile
20 patch -p1 -i $SRC/iputils-s20101006-fixes-1.patch
21 make CC="$CC" CFLAGS="$CFLAGS $CCOPT -I$CLFS/usr/include"
23 install -d $PKG/{{s,}bin,usr/{man/man8,sbin}}
25 install arping $PKG/sbin
26 install tracepath clockdiff rarpd rdisc ipg $PKG/usr/sbin
27 cp -d $SRC/$name-man-$version/* $PKG/usr/man/man8
29 rm $PKG/usr/man/man8/*6.*
30 chmod u+s $PKG/bin/ping