CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Merged changes from noeabi (72cbd18e791bd2edff0e8d23873136187f0cd936)
[crossrootfs.git] / iputils / Pkgfile
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@crux-arm.nu
6 # Depends on:
7
8 name=iputils
9 version=s20100214
10 release=1
11 source=(http://www.skbuff.net/iputils/$name-$version.tar.bz2 \
12 http://crux.nu/files/distfiles/$name-man-$version.tar.xz)
13
14 build() {
15 cd $name-$version
16 sed -i "/^CCOPT=/s|-O2|$CFLAGS|;s| -g$||" Makefile
17 sed 's/IPV6_TARGETS=*/IPV6_TARGETS=/' -i Makefile
18
19 make CC="$CC" CFLAGS="$CFLAGS"
20
21 install -d $PKG/{{s,}bin,usr/{man/man8,sbin}}
22 install ping $PKG/bin
23 install arping $PKG/sbin
24 install tracepath clockdiff rarpd rdisc ipg tftpd $PKG/usr/sbin
25 cp -d $SRC/$name-man-$version/* $PKG/usr/man/man8
26
27 rm $PKG/usr/man/man8/*6.*
28 chmod u+s $PKG/bin/ping
29 }