CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
diffutils: updated to 2.9
[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
54de1e76 6# Depends on:
6dca1d21
JB
7
8name=iputils
9version=s20071127
10release=1
11source=(http://www.skbuff.net/iputils/$name-$version.tar.bz2 \
54de1e76
JB
12 http://crux.nu/~jue/files/dist/$name-man-$version.tar.bz2 \
13 $name-$version-open_max.patch)
6dca1d21
JB
14
15build() {
16 cd $name-$version
54de1e76
JB
17 patch -p1 -i $SRC/$name-$version-open_max.patch
18 sed -i "/^CCOPT=/s|-O2|$CFLAGS|;s| -g$||" Makefile
6dca1d21 19 sed 's/IPV6_TARGETS=*/IPV6_TARGETS=/' -i Makefile
54de1e76 20
6dca1d21
JB
21 make CC="$CC" CFLAGS="$CFLAGS"
22
23 install -d $PKG/{{s,}bin,usr/{man/man8,sbin}}
54de1e76
JB
24 install ping $PKG/bin
25 install arping $PKG/sbin
26 install tracepath clockdiff rarpd rdisc ipg tftpd $PKG/usr/sbin
27 cp -d $SRC/$name-man-$version/* $PKG/usr/man/man8
6dca1d21 28
54de1e76
JB
29 rm $PKG/usr/man/man8/*6.*
30 chmod u+s $PKG/bin/ping
6dca1d21 31}