summaryrefslogtreecommitdiffstats
path: root/iproute2
diff options
context:
space:
mode:
authorLukc <lukc@upyum.com>2010-12-11 19:15:23 +0100
committerLukc <lukc@upyum.com>2010-12-11 19:15:35 +0100
commit6d908a38e05b9d4135c65d23114a5874215b5bb8 (patch)
treeb5e6da6d95b9a1235d82032b509b80483a886ff5 /iproute2
downloadbase-6d908a38e05b9d4135c65d23114a5874215b5bb8.tar.gz
base-6d908a38e05b9d4135c65d23114a5874215b5bb8.tar.bz2
base-6d908a38e05b9d4135c65d23114a5874215b5bb8.tar.xz
base-6d908a38e05b9d4135c65d23114a5874215b5bb8.zip
Engagement initial.
Diffstat (limited to 'iproute2')
-rw-r--r--iproute2/.footprint68
-rw-r--r--iproute2/.md5sum2
-rw-r--r--iproute2/Pkgfile19
-rw-r--r--iproute2/Pkgfile.old19
-rw-r--r--iproute2/iproute2-tc_install.patch17
-rw-r--r--iproute2/net.iproute233
6 files changed, 158 insertions, 0 deletions
diff --git a/iproute2/.footprint b/iproute2/.footprint
new file mode 100644
index 0000000..1276d88
--- /dev/null
+++ b/iproute2/.footprint
@@ -0,0 +1,68 @@
+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 lib/
+drwxr-xr-x root/root lib/tc/
+lrwxrwxrwx root/root lib/tc/m_ipt.so -> m_xt.so
+-rwxr-xr-x root/root lib/tc/m_xt.so
+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/
+-rw-r--r-- root/root usr/lib/tc/experimental.dist
+-rw-r--r-- root/root usr/lib/tc/normal.dist
+-rw-r--r-- root/root usr/lib/tc/pareto.dist
+-rw-r--r-- root/root usr/lib/tc/paretonormal.dist
+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/arpd.8.gz
+lrwxrwxrwx root/root usr/man/man8/ctstat.8.gz -> lnstat.8.gz
+-rw-r--r-- root/root usr/man/man8/ip.8.gz
+-rw-r--r-- root/root usr/man/man8/lnstat.8.gz
+lrwxrwxrwx root/root usr/man/man8/nstat.8.gz -> rtacct.8.gz
+lrwxrwxrwx root/root usr/man/man8/routef.8.gz -> routel.8.gz
+-rw-r--r-- root/root usr/man/man8/routel.8.gz
+-rw-r--r-- root/root usr/man/man8/rtacct.8.gz
+-rw-r--r-- root/root usr/man/man8/rtmon.8.gz
+lrwxrwxrwx root/root usr/man/man8/rtstat.8.gz -> lnstat.8.gz
+-rw-r--r-- root/root usr/man/man8/ss.8.gz
+-rw-r--r-- root/root usr/man/man8/tc-bfifo.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-drr.8.gz
+-rw-r--r-- root/root usr/man/man8/tc-htb.8.gz
+lrwxrwxrwx root/root usr/man/man8/tc-pfifo.8.gz -> tc-bfifo.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
+drwxr-xr-x root/root var/
+drwxr-xr-x root/root var/lib/
+drwxr-xr-x root/root var/lib/arpd/
diff --git a/iproute2/.md5sum b/iproute2/.md5sum
new file mode 100644
index 0000000..8cda67b
--- /dev/null
+++ b/iproute2/.md5sum
@@ -0,0 +1,2 @@
+b0f281b3124bf04669e18f5fe16d4934 iproute2-2.6.35.tar.bz2
+0b01b0404718d043adf55cfa314c80bd net.iproute2
diff --git a/iproute2/Pkgfile b/iproute2/Pkgfile
new file mode 100644
index 0000000..132bec2
--- /dev/null
+++ b/iproute2/Pkgfile
@@ -0,0 +1,19 @@
+description="A collection of utilites for controlling TCP/IP networking and traffic in Linux"
+packager=""
+maintainer="CRUX System Team, core-ports at crux dot nu"
+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/iproute2-2.6.35.tar.bz2 net.iproute2)
+build ()
+{
+ cd $name-$version;
+ sed -i "s|-O2|$CFLAGS -DIPT_LIB_DIR=\\\\\"/usr/lib/xtables\\\\\"|" Makefile;
+ make;
+ make MANDIR=/usr/man DESTDIR=$PKG install;
+ rm -r $PKG/share;
+ install -D -m 0755 $SRC/net.iproute2 $PKG/etc/rc.d/net
+}
diff --git a/iproute2/Pkgfile.old b/iproute2/Pkgfile.old
new file mode 100644
index 0000000..e2ca5ba
--- /dev/null
+++ b/iproute2/Pkgfile.old
@@ -0,0 +1,19 @@
+# Description: A collection of utilites for controlling TCP/IP networking and traffic in Linux
+# URL: http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2
+# Maintainer: CRUX System Team, core-ports at crux dot nu
+# Depends on: 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=\\\\\"/usr/lib/xtables\\\\\"|" Makefile
+ make
+ make MANDIR=/usr/man DESTDIR=$PKG install
+ rm -r $PKG/share
+ install -D -m 0755 $SRC/net.iproute2 $PKG/etc/rc.d/net
+}
diff --git a/iproute2/iproute2-tc_install.patch b/iproute2/iproute2-tc_install.patch
new file mode 100644
index 0000000..c1391a2
--- /dev/null
+++ b/iproute2/iproute2-tc_install.patch
@@ -0,0 +1,17 @@
+diff -pruN iproute2-2.6.34.orig/tc/Makefile iproute2-2.6.34/tc/Makefile
+--- iproute2-2.6.34.orig/tc/Makefile 2010-06-03 12:46:19.597183871 +1000
++++ iproute2-2.6.34/tc/Makefile 2010-06-03 12:47:28.332176460 +1000
+@@ -99,10 +99,10 @@ libtc.a: $(TCLIB)
+ $(AR) rcs $@ $(TCLIB)
+
+ install: all
+- echo mkdir -p $(MODDESTDIR)
+- echo install -m 0755 tc $(DESTDIR)$(SBINDIR)
++ mkdir -p $(MODDESTDIR)
++ install -m 0755 tc $(DESTDIR)$(SBINDIR)
+ for i in $(TCSO); \
+- do echo install -m 755 $$i $(MODDESTDIR); \
++ do install -m 755 $$i $(MODDESTDIR); \
+ done
+ if [ ! -f $(MODDESTDIR)/m_ipt.so ]; then \
+ if [ -f $(MODDESTDIR)/m_xt.so ]; \
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