blob: a75c1aec8baa00300a05f0a7ce0b7ad5efc084b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
description="A collection of utilites for controlling TCP/IP networking and traffic in Linux."
packager="CRUX System Team <core-ports AT crux DOT nu>"
maintainer="Lukc <lukc AT upyum DOT com>"
url="http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2"
depends=(db)
name=iproute2
version=2.6.35
release=1
source=(http://devresources.linuxfoundation.org/dev/iproute2/download/$name-$version.tar.bz2 net.iproute2)
build ()
{
cd $name-$version;
sed -i "s|-O2|$CFLAGS -DIPT_LIB_DIR=\\\\\"$prefix/lib/xtables\\\\\"|" Makefile;
make ${CTARGET:+CC=$CTARGET-gcc};
make MANDIR=$mandir DESTDIR=$PKG install;
install -d $PKG/{{s,}bin,$prefix/{${mandir/$prefix}/man8,sbin}}
install ping $PKG/bin
install arping $PKG/sbin
install tracepath clockdiff rarpd rdisc ipg tftpd $PKG$prefix/sbin
cp -d $SRC/$name-man-$version/* $PKG$mandir/man8
rm $PKG$mandir/man8/*6.*
chmod u+s $PKG/bin/ping
install -D -m 0755 $SRC/net.iproute2 $PKG/etc/rc.d/net
}
|