ports/core (2.3): iproute2: moved from opt, added iproute2 /etc/rc.d/net template
commit 3212b2de078bcdf6fbc728ff78de30b60ba05d2b Author: Matt Housh <jaeger@crux.nu> Date: Tue Dec 19 14:45:51 2006 -0600 iproute2: moved from opt, added iproute2 /etc/rc.d/net template diff --git a/iproute2/.footprint b/iproute2/.footprint new file mode 100644 index 0000000..68f02dd --- /dev/null +++ b/iproute2/.footprint @@ -0,0 +1,52 @@ +drwxr-xr-x root/root etc/ +drwxr-xr-x root/root etc/iproute2/ +-rw-r--r-- root/root etc/iproute2/ematch_map +-rw-r--r-- root/root etc/iproute2/rt_dsfield +-rw-r--r-- root/root etc/iproute2/rt_protos +-rw-r--r-- root/root etc/iproute2/rt_realms +-rw-r--r-- root/root etc/iproute2/rt_scopes +-rw-r--r-- root/root etc/iproute2/rt_tables +drwxr-xr-x root/root etc/rc.d/ +-rwxr-xr-x root/root etc/rc.d/net +drwxr-xr-x root/root sbin/ +-rwxr-xr-x root/root sbin/arpd +lrwxrwxrwx root/root sbin/ctstat -> lnstat +-rwxr-xr-x root/root sbin/genl +-rwxr-xr-x root/root sbin/ifcfg +-rwxr-xr-x root/root sbin/ifstat +-rwxr-xr-x root/root sbin/ip +-rwxr-xr-x root/root sbin/lnstat +-rwxr-xr-x root/root sbin/nstat +-rwxr-xr-x root/root sbin/routef +-rwxr-xr-x root/root sbin/routel +-rwxr-xr-x root/root sbin/rtacct +-rwxr-xr-x root/root sbin/rtmon +-rwxr-xr-x root/root sbin/rtpr +lrwxrwxrwx root/root sbin/rtstat -> lnstat +-rwxr-xr-x root/root sbin/ss +-rwxr-xr-x root/root sbin/tc +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/tc/ +-rwxr-xr-x root/root usr/lib/tc/experimental.dist +-rwxr-xr-x root/root usr/lib/tc/normal.dist +-rwxr-xr-x root/root usr/lib/tc/pareto.dist +-rwxr-xr-x root/root usr/lib/tc/paretonormal.dist +-rwxr-xr-x root/root usr/lib/tc/q_netem.so +drwxr-xr-x root/root usr/man/ +drwxr-xr-x root/root usr/man/man3/ +-rw-r--r-- root/root usr/man/man3/libnetlink.3.gz +drwxr-xr-x root/root usr/man/man8/ +-rw-r--r-- root/root usr/man/man8/ip.8.gz +lrwxrwxrwx root/root usr/man/man8/tc-bfifo.8.gz -> tc-pbfifo.8.gz +-rw-r--r-- root/root usr/man/man8/tc-cbq-details.8.gz +-rw-r--r-- root/root usr/man/man8/tc-cbq.8.gz +-rw-r--r-- root/root usr/man/man8/tc-htb.8.gz +-rw-r--r-- root/root usr/man/man8/tc-pbfifo.8.gz +lrwxrwxrwx root/root usr/man/man8/tc-pfifo.8.gz -> tc-pbfifo.8.gz +-rw-r--r-- root/root usr/man/man8/tc-pfifo_fast.8.gz +-rw-r--r-- root/root usr/man/man8/tc-prio.8.gz +-rw-r--r-- root/root usr/man/man8/tc-red.8.gz +-rw-r--r-- root/root usr/man/man8/tc-sfq.8.gz +-rw-r--r-- root/root usr/man/man8/tc-tbf.8.gz +-rw-r--r-- root/root usr/man/man8/tc.8.gz diff --git a/iproute2/.md5sum b/iproute2/.md5sum new file mode 100644 index 0000000..21e0100 --- /dev/null +++ b/iproute2/.md5sum @@ -0,0 +1,2 @@ +193b570128cf852afba337438413adf9 iproute2-2.6.18-061002.tar.gz +0b01b0404718d043adf55cfa314c80bd net.iproute2 diff --git a/iproute2/Pkgfile b/iproute2/Pkgfile new file mode 100644 index 0000000..9847432 --- /dev/null +++ b/iproute2/Pkgfile @@ -0,0 +1,18 @@ +# Description: a collection of utilites for controlling TCP/IP networking and traffic in Linux +# URL: http://linux-net.osdl.org/index.php/Iproute2 +# Maintainer: Simone Rota, sip at crux dot nu +# Packager: Mikhail Kolesnik, mike at openbunker dot org + +name=iproute2 +version=2.6.18-061002 +release=2 +source=(http://developer.osdl.org/dev/iproute2/download/$name-$version.tar.gz \ + net.iproute2) + +build() { + cd $name-$version + make KERNEL_INCLUDE="/lib/modules/`uname -r`/source/include" + make SBINDIR=/sbin MANDIR=/usr/man DESTDIR=$PKG install + rm -rf $PKG/usr/share + install -D -o root -g root -m 0755 $SRC/net.iproute2 $PKG/etc/rc.d/net +} diff --git a/iproute2/net.iproute2 b/iproute2/net.iproute2 new file mode 100644 index 0000000..d3c9e3c --- /dev/null +++ b/iproute2/net.iproute2 @@ -0,0 +1,33 @@ +#!/bin/sh +# +# /etc/rc.d/net: start/stop network +# + +case $1 in +start) + # loopback + /sbin/ip addr add 127.0.0.1/8 dev lo broadcast + scope host + /sbin/ip link set lo up + # ethernet + /sbin/ip addr add 192.168.1.100/24 dev eth0 broadcast + + /sbin/ip link set eth0 up + # default route + /sbin/ip route add default via 192.168.1.1 + ;; +stop) + /sbin/ip route del default + /sbin/ip link set eth0 down + /sbin/ip addr del 192.168.1.100/24 dev eth0 + /sbin/ip link set lo down + /sbin/ip addr del 127.0.0.1/8 dev lo + ;; +restart) + $0 stop + $0 start + ;; +*) + echo "usage: $0 [start|stop|restart]" + ;; +esac + +# End of file
participants (1)
-
crux@crux.nu