CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
iproute2: updated to 4.9.0
[crossrootfs.git] / iproute2 / Pkgfile
1 # Description: A collection of utilites for controlling TCP/IP networking and traffic in Linux
2 # URL: http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
5 # Depends on: db iptables
6
7 name=iproute2
8 version=4.9.0
9 release=1
10 source=(https://www.kernel.org/pub/linux/utils/net/$name/$name-$version.tar.xz \
11 lo.iproute2 net.iproute2)
12
13 build() {
14 cd $name-$version
15
16 ./configure --build=$CHOST \
17 --host=$CTARGET
18 make CCOPTS="$CFLAGS" CC="$CC" AR="$AR" RANLIB="$RANLIB" DBM_INCLUDE="-I$CLFS/usr/include" HOSTCC="gcc" CCOPTS="-O2 -pipe"
19 make MANDIR=/usr/share/man DESTDIR=$PKG install
20
21 rm -r $PKG/usr/share/doc
22 install -D -m 0755 $SRC/lo.iproute2 $PKG/etc/rc.d/lo
23 install -D -m 0755 $SRC/net.iproute2 $PKG/etc/rc.d/net
24 }