2008-09-19 12:09:41 +02:00
|
|
|
# Description: A collection of utilites for controlling TCP/IP networking and traffic in Linux
|
2009-12-30 18:04:52 +01:00
|
|
|
# URL: http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2
|
2008-09-19 12:09:41 +02:00
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
2018-04-03 14:49:50 +02:00
|
|
|
# Depends on: db iptables libcap
|
2006-12-19 21:45:51 +01:00
|
|
|
|
|
|
|
name=iproute2
|
2019-09-26 11:38:02 +02:00
|
|
|
version=5.3.0
|
2018-01-29 18:48:27 +01:00
|
|
|
release=1
|
2013-05-03 08:42:20 +02:00
|
|
|
source=(https://www.kernel.org/pub/linux/utils/net/$name/$name-$version.tar.xz \
|
2014-04-15 21:34:12 +02:00
|
|
|
lo.iproute2 net.iproute2)
|
2006-12-19 21:45:51 +01:00
|
|
|
|
|
|
|
build() {
|
2012-12-15 10:59:18 +01:00
|
|
|
cd $name-$version
|
2015-06-29 13:27:42 +02:00
|
|
|
|
2018-01-05 12:54:49 +01:00
|
|
|
# don't link against libelf
|
2019-01-08 11:27:18 +01:00
|
|
|
sed -e 's/^check_elf$/echo "no"/' -i configure
|
2018-01-05 12:54:49 +01:00
|
|
|
|
2011-01-08 17:25:00 +01:00
|
|
|
./configure
|
2018-01-05 12:54:49 +01:00
|
|
|
make -j1 CCOPTS="$CFLAGS"
|
2019-01-08 11:27:18 +01:00
|
|
|
make -j1 DESTDIR=$PKG install
|
2015-06-29 13:27:42 +02:00
|
|
|
|
2015-07-25 23:23:36 +02:00
|
|
|
rm -r $PKG/usr/share/doc
|
2014-04-15 21:34:12 +02:00
|
|
|
install -D -m 0755 $SRC/lo.iproute2 $PKG/etc/rc.d/lo
|
2008-09-19 12:09:41 +02:00
|
|
|
install -D -m 0755 $SRC/net.iproute2 $PKG/etc/rc.d/net
|
2017-09-04 19:23:23 +02:00
|
|
|
|
|
|
|
# add ip to user path via symlink
|
|
|
|
install -d $PKG/bin
|
|
|
|
ln -s /sbin/ip $PKG/bin/ip
|
2006-12-19 21:45:51 +01:00
|
|
|
}
|