From: Victor Martinez Date: Mon, 16 Nov 2015 10:14:31 +0000 (+0000) Subject: iproute2: added new port X-Git-Url: http://gitweb/?a=commitdiff_plain;h=d450ca5aa25b958739ca1b3c7aeeeb34108e42ba;p=crossrootfs.git iproute2: added new port --- diff --git a/iproute2/.footprint b/iproute2/.footprint new file mode 100644 index 0000000..660f432 --- /dev/null +++ b/iproute2/.footprint @@ -0,0 +1,119 @@ +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/group +-rw-r--r-- root/root etc/iproute2/nl_protos +-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/lo +-rwxr-xr-x root/root etc/rc.d/net +drwxr-xr-x root/root sbin/ +-rwxr-xr-x root/root sbin/arpd +-rwxr-xr-x root/root sbin/bridge +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/share/ +drwxr-xr-x root/root usr/share/man/ +drwxr-xr-x root/root usr/share/man/man3/ +-rw-r--r-- root/root usr/share/man/man3/libnetlink.3.gz +drwxr-xr-x root/root usr/share/man/man7/ +-rw-r--r-- root/root usr/share/man/man7/tc-hfsc.7.gz +drwxr-xr-x root/root usr/share/man/man8/ +-rw-r--r-- root/root usr/share/man/man8/arpd.8.gz +-rw-r--r-- root/root usr/share/man/man8/bridge.8.gz +-rw-r--r-- root/root usr/share/man/man8/ctstat.8.gz +-rw-r--r-- root/root usr/share/man/man8/ip-address.8.gz +-rw-r--r-- root/root usr/share/man/man8/ip-addrlabel.8.gz +-rw-r--r-- root/root usr/share/man/man8/ip-fou.8.gz +-rw-r--r-- root/root usr/share/man/man8/ip-gue.8.gz +-rw-r--r-- root/root usr/share/man/man8/ip-l2tp.8.gz +-rw-r--r-- root/root usr/share/man/man8/ip-link.8.gz +-rw-r--r-- root/root usr/share/man/man8/ip-maddress.8.gz +-rw-r--r-- root/root usr/share/man/man8/ip-monitor.8.gz +-rw-r--r-- root/root usr/share/man/man8/ip-mroute.8.gz +-rw-r--r-- root/root usr/share/man/man8/ip-neighbour.8.gz +-rw-r--r-- root/root usr/share/man/man8/ip-netconf.8.gz +-rw-r--r-- root/root usr/share/man/man8/ip-netns.8.gz +-rw-r--r-- root/root usr/share/man/man8/ip-ntable.8.gz +-rw-r--r-- root/root usr/share/man/man8/ip-route.8.gz +-rw-r--r-- root/root usr/share/man/man8/ip-rule.8.gz +-rw-r--r-- root/root usr/share/man/man8/ip-tcp_metrics.8.gz +-rw-r--r-- root/root usr/share/man/man8/ip-token.8.gz +-rw-r--r-- root/root usr/share/man/man8/ip-tunnel.8.gz +-rw-r--r-- root/root usr/share/man/man8/ip-xfrm.8.gz +-rw-r--r-- root/root usr/share/man/man8/ip.8.gz +-rw-r--r-- root/root usr/share/man/man8/lnstat.8.gz +-rw-r--r-- root/root usr/share/man/man8/nstat.8.gz +-rw-r--r-- root/root usr/share/man/man8/routef.8.gz +-rw-r--r-- root/root usr/share/man/man8/routel.8.gz +-rw-r--r-- root/root usr/share/man/man8/rtacct.8.gz +-rw-r--r-- root/root usr/share/man/man8/rtmon.8.gz +-rw-r--r-- root/root usr/share/man/man8/rtpr.8.gz +-rw-r--r-- root/root usr/share/man/man8/rtstat.8.gz +-rw-r--r-- root/root usr/share/man/man8/ss.8.gz +-rw-r--r-- root/root usr/share/man/man8/tc-basic.8.gz +-rw-r--r-- root/root usr/share/man/man8/tc-bfifo.8.gz +-rw-r--r-- root/root usr/share/man/man8/tc-bpf.8.gz +-rw-r--r-- root/root usr/share/man/man8/tc-cbq-details.8.gz +-rw-r--r-- root/root usr/share/man/man8/tc-cbq.8.gz +-rw-r--r-- root/root usr/share/man/man8/tc-cgroup.8.gz +-rw-r--r-- root/root usr/share/man/man8/tc-choke.8.gz +-rw-r--r-- root/root usr/share/man/man8/tc-codel.8.gz +-rw-r--r-- root/root usr/share/man/man8/tc-drr.8.gz +-rw-r--r-- root/root usr/share/man/man8/tc-ematch.8.gz +-rw-r--r-- root/root usr/share/man/man8/tc-flow.8.gz +-rw-r--r-- root/root usr/share/man/man8/tc-flower.8.gz +-rw-r--r-- root/root usr/share/man/man8/tc-fq.8.gz +-rw-r--r-- root/root usr/share/man/man8/tc-fq_codel.8.gz +-rw-r--r-- root/root usr/share/man/man8/tc-fw.8.gz +-rw-r--r-- root/root usr/share/man/man8/tc-hfsc.8.gz +-rw-r--r-- root/root usr/share/man/man8/tc-htb.8.gz +-rw-r--r-- root/root usr/share/man/man8/tc-mqprio.8.gz +-rw-r--r-- root/root usr/share/man/man8/tc-netem.8.gz +-rw-r--r-- root/root usr/share/man/man8/tc-pfifo.8.gz +-rw-r--r-- root/root usr/share/man/man8/tc-pfifo_fast.8.gz +-rw-r--r-- root/root usr/share/man/man8/tc-pie.8.gz +-rw-r--r-- root/root usr/share/man/man8/tc-prio.8.gz +-rw-r--r-- root/root usr/share/man/man8/tc-red.8.gz +-rw-r--r-- root/root usr/share/man/man8/tc-route.8.gz +-rw-r--r-- root/root usr/share/man/man8/tc-sfb.8.gz +-rw-r--r-- root/root usr/share/man/man8/tc-sfq.8.gz +-rw-r--r-- root/root usr/share/man/man8/tc-stab.8.gz +-rw-r--r-- root/root usr/share/man/man8/tc-tbf.8.gz +-rw-r--r-- root/root usr/share/man/man8/tc-tcindex.8.gz +-rw-r--r-- root/root usr/share/man/man8/tc-u32.8.gz +-rw-r--r-- root/root usr/share/man/man8/tc.8.gz +-rw-r--r-- root/root usr/share/man/man8/tipc-bearer.8.gz +-rw-r--r-- root/root usr/share/man/man8/tipc-link.8.gz +-rw-r--r-- root/root usr/share/man/man8/tipc-media.8.gz +-rw-r--r-- root/root usr/share/man/man8/tipc-nametable.8.gz +-rw-r--r-- root/root usr/share/man/man8/tipc-node.8.gz +-rw-r--r-- root/root usr/share/man/man8/tipc-socket.8.gz +-rw-r--r-- root/root usr/share/man/man8/tipc.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..234b47e --- /dev/null +++ b/iproute2/.md5sum @@ -0,0 +1,3 @@ +1a2bbb80cfc7ab3f3e987e18b3207c2f iproute2-4.3.0.tar.xz +7b469125cfe2d9916ba03f7c65b9dcd5 lo.iproute2 +826848debe693f2e2a3e235ce9abe601 net.iproute2 diff --git a/iproute2/Pkgfile b/iproute2/Pkgfile new file mode 100644 index 0000000..a1c440d --- /dev/null +++ b/iproute2/Pkgfile @@ -0,0 +1,24 @@ +# 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 +# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu +# Depends on: db iptables + +name=iproute2 +version=4.3.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 + + ./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 +} diff --git a/iproute2/lo.iproute2 b/iproute2/lo.iproute2 new file mode 100644 index 0000000..1eefd52 --- /dev/null +++ b/iproute2/lo.iproute2 @@ -0,0 +1,24 @@ +#!/bin/sh +# +# /etc/rc.d/lo: start/stop loopback interface +# + +case $1 in +start) + /sbin/ip addr add 127.0.0.1/8 dev lo broadcast + scope host + /sbin/ip link set lo up + ;; +stop) + /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 diff --git a/iproute2/net.iproute2 b/iproute2/net.iproute2 new file mode 100644 index 0000000..c5091fd --- /dev/null +++ b/iproute2/net.iproute2 @@ -0,0 +1,48 @@ +#!/bin/sh +# +# /etc/rc.d/net: start/stop network interface +# + +# Connection type: "DHCP" or "static" +TYPE="DHCP" + +# For "static" connections, specify your settings here: +# To see your available devices run "ip link". +DEV=enp11s0 +ADDR=192.168.1.100 +MASK=24 +GW=192.168.1.1 + +# Optional settings: +DHCPOPTS="-h `/bin/hostname` -t 10" + +case $1 in + start) + if [ "${TYPE}" = "DHCP" ]; then + /sbin/dhcpcd ${DHCPOPTS} + else + /sbin/ip addr add ${ADDR}/${MASK} dev ${DEV} broadcast + + /sbin/ip link set ${DEV} up + /sbin/ip route add default via ${GW} + fi + ;; + stop) + if [ "${TYPE}" = "DHCP" ]; then + /sbin/dhcpcd -x + else + /sbin/ip route del default + /sbin/ip link set ${DEV} down + /sbin/ip addr del ${ADDR}/${MASK} dev ${DEV} + fi + ;; + restart) + $0 stop + $0 start + ;; + *) + echo "Usage: $0 [start|stop|restart]" + ;; +esac + +# End of file +