CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
iproute2: updated to 4.9.0
[crossrootfs.git] / iproute2 / Pkgfile
index 3a72342576c5aa301be2021f0e4e4cf464753f17..0e02d251ac2e6f4e13686fcd35b8cd4abb8d3739 100644 (file)
@@ -1,20 +1,24 @@
 # Description: A collection of utilites for controlling TCP/IP networking and traffic in Linux
-# URL: http://linux-net.osdl.org/index.php/Iproute2
+# URL: http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2
 # Maintainer: CRUX System Team, core-ports at crux dot nu
-# Arch Maintainer: CRUX ARM System Team
-# Depends on: db
+# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
+# Depends on: db iptables
 
 name=iproute2
-version=2.6.28
-release=2
-source=(http://developer.osdl.org/dev/iproute2/download/$name-$version.tar.bz2 \
-        net.iproute2)
+version=4.9.0
+release=1
+source=(https://www.kernel.org/pub/linux/utils/net/$name/$name-$version.tar.xz \
+        lo.iproute2 net.iproute2)
 
 build() {
   cd $name-$version
-  sed -i "s|local/lib/iptables|lib/xtables|" include/iptables.h
-  make DBM_INCLUDE="$CLFS/usr/include" CC="$CC"
-  make MANDIR=/usr/man DESTDIR=$PKG install
-  rm -r $PKG/{share,usr/lib}
+
+  ./configure --build=$CHOST \
+              --host=$CTARGET
+  make CCOPTS="$CFLAGS" CC="$CC" AR="$AR" RANLIB="$RANLIB" DBM_INCLUDE="-I$CLFS/usr/include" HOSTCC="gcc" CCOPTS="-O2 -pipe"
+  make MANDIR=/usr/share/man DESTDIR=$PKG install
+
+  rm -r $PKG/usr/share/doc
+  install -D -m 0755 $SRC/lo.iproute2 $PKG/etc/rc.d/lo
   install -D -m 0755 $SRC/net.iproute2 $PKG/etc/rc.d/net
 }