CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Merged changes from noeabi (72cbd18e791bd2edff0e8d23873136187f0cd936)
[crossrootfs.git] / iproute2 / Pkgfile
CommitLineData
6dca1d21
JB
1# Description: A collection of utilites for controlling TCP/IP networking and traffic in Linux
2# URL: http://linux-net.osdl.org/index.php/Iproute2
3# Maintainer: CRUX System Team, core-ports at crux dot nu
83e7e2d0 4# Arch Maintainer: CRUX-ARM System Team, devel@crux-arm.nu
6dca1d21
JB
5# Depends on: db
6
7name=iproute2
370189bf
VM
8version=2.6.33
9release=1
6dca1d21
JB
10source=(http://developer.osdl.org/dev/iproute2/download/$name-$version.tar.bz2 \
11 net.iproute2)
12
13build() {
14 cd $name-$version
28439a6c 15
6dca1d21 16 sed -i "s|local/lib/iptables|lib/xtables|" include/iptables.h
28439a6c
JB
17 sed -i "s|gcc |$CC $CFLAGS|g" configure
18
19 make DBM_INCLUDE="$CLFS/usr/include" CC="$CC $CFLAGS"
6dca1d21 20 make MANDIR=/usr/man DESTDIR=$PKG install
28439a6c 21
6dca1d21
JB
22 rm -r $PKG/{share,usr/lib}
23 install -D -m 0755 $SRC/net.iproute2 $PKG/etc/rc.d/net
24}