summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/netbase
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-08-27 14:14:24 (GMT)
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-27 14:29:45 (GMT)
commit29d6678fd546377459ef75cf54abeef5b969b5cf (patch)
tree8edd65790e37a00d01c3f203f773fe4b5012db18 /meta/recipes-core/netbase
parentda49de6885ee1bc424e70bc02f21f6ab920efb55 (diff)
downloadpoky-29d6678fd546377459ef75cf54abeef5b969b5cf.tar.gz
Major layout change to the packages directory
Having one monolithic packages directory makes it hard to find things and is generally overwhelming. This commit splits it into several logical sections roughly based on function, recipes.txt gives more information about the classifications used. The opportunity is also used to switch from "packages" to "recipes" as used in OpenEmbedded as the term "packages" can be confusing to people and has many different meanings. Not all recipes have been classified yet, this is just a first pass at separating things out. Some packages are moved to meta-extras as they're no longer actively used or maintained. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-core/netbase')
-rw-r--r--meta/recipes-core/netbase/netbase/colinux/interfaces8
-rw-r--r--meta/recipes-core/netbase/netbase/epia/interfaces10
-rw-r--r--meta/recipes-core/netbase/netbase/hosts2
-rw-r--r--meta/recipes-core/netbase/netbase/init52
-rw-r--r--meta/recipes-core/netbase/netbase/interfaces30
-rw-r--r--meta/recipes-core/netbase/netbase/mtx-1/interfaces29
-rw-r--r--meta/recipes-core/netbase/netbase/nfsroot39
-rw-r--r--meta/recipes-core/netbase/netbase/nokia800/interfaces5
-rw-r--r--meta/recipes-core/netbase/netbase/openmn/hosts2
-rw-r--r--meta/recipes-core/netbase/netbase/openmn/interfaces10
-rw-r--r--meta/recipes-core/netbase/netbase/qemuarm/interfaces13
-rw-r--r--meta/recipes-core/netbase/netbase/qemuarmv6/interfaces13
-rw-r--r--meta/recipes-core/netbase/netbase/qemuarmv7/interfaces13
-rw-r--r--meta/recipes-core/netbase/netbase/qemux86/interfaces15
-rw-r--r--meta/recipes-core/netbase/netbase/tosa/interfaces24
-rw-r--r--meta/recipes-core/netbase/netbase/wrt54/interfaces23
-rw-r--r--meta/recipes-core/netbase/netbase/xxs1500/interfaces15
-rw-r--r--meta/recipes-core/netbase/netbase_4.41.bb55
18 files changed, 358 insertions, 0 deletions
diff --git a/meta/recipes-core/netbase/netbase/colinux/interfaces b/meta/recipes-core/netbase/netbase/colinux/interfaces
new file mode 100644
index 0000000..0e495e1
--- /dev/null
+++ b/meta/recipes-core/netbase/netbase/colinux/interfaces
@@ -0,0 +1,8 @@
1# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
2
3# The loopback interface
4auto lo
5iface lo inet loopback
6
7# Wired or wireless interfaces
8iface eth0 inet dhcp
diff --git a/meta/recipes-core/netbase/netbase/epia/interfaces b/meta/recipes-core/netbase/netbase/epia/interfaces
new file mode 100644
index 0000000..673618f
--- /dev/null
+++ b/meta/recipes-core/netbase/netbase/epia/interfaces
@@ -0,0 +1,10 @@
1# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
2
3# The loopback interface
4auto lo
5iface lo inet loopback
6
7# Ethernet
8auto eth0
9iface eth0 inet dhcp
10
diff --git a/meta/recipes-core/netbase/netbase/hosts b/meta/recipes-core/netbase/netbase/hosts
new file mode 100644
index 0000000..2f33245
--- /dev/null
+++ b/meta/recipes-core/netbase/netbase/hosts
@@ -0,0 +1,2 @@
1127.0.0.1 localhost.localdomain localhost
2
diff --git a/meta/recipes-core/netbase/netbase/init b/meta/recipes-core/netbase/netbase/init
new file mode 100644
index 0000000..8a67e1c
--- /dev/null
+++ b/meta/recipes-core/netbase/netbase/init
@@ -0,0 +1,52 @@
1#!/bin/sh
2#
3### BEGIN INIT INFO
4# Provides: networking
5# Required-Start: $local_fs mountvirtfs
6# Required-Stop: $local_fs
7# Default-Start: S
8# Default-Stop: 0 6
9# Short-Description: Raise network interfaces and configure them
10### END INIT INFO
11
12PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
13
14if ! [ -x /sbin/ifup ]; then
15 exit 0
16fi
17
18case "$1" in
19 start)
20 echo -n "Configuring network interfaces... "
21 ifup -a
22 echo "done."
23 ;;
24 stop)
25 if sed -n 's/^[^ ]* \([^ ]*\) \([^ ]*\) .*$/\1 \2/p' /proc/mounts |
26 grep -q "^/ nfs$"; then
27 echo "NOT deconfiguring network interfaces: / is an NFS mount"
28 elif sed -n 's/^[^ ]* \([^ ]*\) \([^ ]*\) .*$/\1 \2/p' /proc/mounts |
29 grep -q "^/ smbfs$"; then
30 echo "NOT deconfiguring network interfaces: / is an SMB mount"
31 elif sed -n 's/^[^ ]* \([^ ]*\) \([^ ]*\) .*$/\2/p' /proc/mounts |
32 grep -qE '^(nfs|smbfs|ncp|coda)$'; then
33 echo "NOT deconfiguring network interfaces: network shares still mounted."
34 else
35 echo -n "Deconfiguring network interfaces... "
36 ifdown -a
37 echo "done."
38 fi
39 ;;
40 force-reload|restart)
41 echo -n "Reconfiguring network interfaces... "
42 ifdown -a
43 ifup -a
44 echo "done."
45 ;;
46 *)
47 echo "Usage: /etc/init.d/networking {start|stop|restart|force-reload}"
48 exit 1
49 ;;
50esac
51
52exit 0
diff --git a/meta/recipes-core/netbase/netbase/interfaces b/meta/recipes-core/netbase/netbase/interfaces
new file mode 100644
index 0000000..b06924f
--- /dev/null
+++ b/meta/recipes-core/netbase/netbase/interfaces
@@ -0,0 +1,30 @@
1# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
2
3# The loopback interface
4auto lo
5iface lo inet loopback
6
7# Wireless interfaces
8iface wlan0 inet dhcp
9 wireless_mode managed
10 wireless_essid any
11 wpa-driver wext
12 wpa-conf /etc/wpa_supplicant.conf
13
14iface atml0 inet dhcp
15
16# Wired or wireless interfaces
17iface eth0 inet dhcp
18iface eth1 inet dhcp
19
20# Ethernet/RNDIS gadget (g_ether)
21# ... or on host side, usbnet and random hwaddr
22iface usb0 inet static
23 address 192.168.7.2
24 netmask 255.255.255.0
25 network 192.168.7.0
26 gateway 192.168.7.1
27
28# Bluetooth networking
29iface bnep0 inet dhcp
30
diff --git a/meta/recipes-core/netbase/netbase/mtx-1/interfaces b/meta/recipes-core/netbase/netbase/mtx-1/interfaces
new file mode 100644
index 0000000..a7c6da5
--- /dev/null
+++ b/meta/recipes-core/netbase/netbase/mtx-1/interfaces
@@ -0,0 +1,29 @@
1# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
2
3# The loopback interface
4auto lo
5iface lo inet loopback
6
7# Ethernet
8auto eth0
9iface eth0 inet dhcp
10
11# wlan interface 1 for clients
12auto wlan0
13iface wlan0 inet static
14 address 10.0.0.1
15 netmask 255.0.0.0
16 wireless_mode master
17 wireless_essid cube-ap
18 wireless_channel 1
19
20# wlan interface 2 for mesh
21auto wlan1
22iface wlan1 inet static
23 address 172.16.0.1
24 netmask 255.240.0.0
25 broadcast 172.31.255.255
26 wireless_mode ad-hoc
27 wireless_essid cube-mesh
28 wireless_channel 11
29 wireless_rts 250
diff --git a/meta/recipes-core/netbase/netbase/nfsroot b/meta/recipes-core/netbase/netbase/nfsroot
new file mode 100644
index 0000000..fc384a8
--- /dev/null
+++ b/meta/recipes-core/netbase/netbase/nfsroot
@@ -0,0 +1,39 @@
1#! /bin/sh
2
3# In case the interface is used as nfsroot, avoid ifup, otherwise
4# nfsroot may lose response
5
6nfsroot=0
7
8if test "x$IFACE" = xlo ; then
9 exit 0
10fi
11
12exec 9<&0 < /proc/mounts
13while read dev mtpt fstype rest; do
14 if test $mtpt = "/" ; then
15 case $fstype in
16 nfs | nfs4)
17 nfsroot=1
18 nfs_addr=`echo $rest | sed -e 's/^.*addr=\([0-9.]*\).*$/\1/'`
19 break
20 ;;
21 *)
22 ;;
23 esac
24 fi
25done
26exec 0<&9 9<&-
27
28test $nfsroot -eq 0 && exit 0
29
30if test -x /sbin/ip ; then
31 nfs_iface=`ip route get $nfs_addr | grep dev | sed -e 's/^.*dev \([-a-z0-9.]*\).*$/\1/'`
32fi
33
34if test "x$IFACE" = "x$nfs_iface" ; then
35 echo "ifup skipped for nfsroot interface $nfs_iface"
36 exit 1
37fi
38
39exit 0
diff --git a/meta/recipes-core/netbase/netbase/nokia800/interfaces b/meta/recipes-core/netbase/netbase/nokia800/interfaces
new file mode 100644
index 0000000..1696776
--- /dev/null
+++ b/meta/recipes-core/netbase/netbase/nokia800/interfaces
@@ -0,0 +1,5 @@
1# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
2
3# The loopback interface
4auto lo
5iface lo inet loopback
diff --git a/meta/recipes-core/netbase/netbase/openmn/hosts b/meta/recipes-core/netbase/netbase/openmn/hosts
new file mode 100644
index 0000000..0205b98
--- /dev/null
+++ b/meta/recipes-core/netbase/netbase/openmn/hosts
@@ -0,0 +1,2 @@
1127.0.0.1 localhost.localdomain localhost
2192.168.233.1 www.mn-solutions.de
diff --git a/meta/recipes-core/netbase/netbase/openmn/interfaces b/meta/recipes-core/netbase/netbase/openmn/interfaces
new file mode 100644
index 0000000..9ebe9b8
--- /dev/null
+++ b/meta/recipes-core/netbase/netbase/openmn/interfaces
@@ -0,0 +1,10 @@
1auto lo
2auto eth1
3
4iface lo inet loopback
5
6iface eth0 inet dhcp
7
8iface eth1 inet dhcp
9 wireless_mode managed
10 wireless_essid any
diff --git a/meta/recipes-core/netbase/netbase/qemuarm/interfaces b/meta/recipes-core/netbase/netbase/qemuarm/interfaces
new file mode 100644
index 0000000..f657944
--- /dev/null
+++ b/meta/recipes-core/netbase/netbase/qemuarm/interfaces
@@ -0,0 +1,13 @@
1# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
2
3# The loopback interface
4auto lo
5iface lo inet loopback
6
7# Wired or wireless interfaces
8auto eth0
9iface eth0 inet static
10 address 192.168.7.2
11 netmask 255.255.255.0
12 network 192.168.7.0
13 gateway 192.168.7.1
diff --git a/meta/recipes-core/netbase/netbase/qemuarmv6/interfaces b/meta/recipes-core/netbase/netbase/qemuarmv6/interfaces
new file mode 100644
index 0000000..f657944
--- /dev/null
+++ b/meta/recipes-core/netbase/netbase/qemuarmv6/interfaces
@@ -0,0 +1,13 @@
1# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
2
3# The loopback interface
4auto lo
5iface lo inet loopback
6
7# Wired or wireless interfaces
8auto eth0
9iface eth0 inet static
10 address 192.168.7.2
11 netmask 255.255.255.0
12 network 192.168.7.0
13 gateway 192.168.7.1
diff --git a/meta/recipes-core/netbase/netbase/qemuarmv7/interfaces b/meta/recipes-core/netbase/netbase/qemuarmv7/interfaces
new file mode 100644
index 0000000..f657944
--- /dev/null
+++ b/meta/recipes-core/netbase/netbase/qemuarmv7/interfaces
@@ -0,0 +1,13 @@
1# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
2
3# The loopback interface
4auto lo
5iface lo inet loopback
6
7# Wired or wireless interfaces
8auto eth0
9iface eth0 inet static
10 address 192.168.7.2
11 netmask 255.255.255.0
12 network 192.168.7.0
13 gateway 192.168.7.1
diff --git a/meta/recipes-core/netbase/netbase/qemux86/interfaces b/meta/recipes-core/netbase/netbase/qemux86/interfaces
new file mode 100644
index 0000000..9b44235
--- /dev/null
+++ b/meta/recipes-core/netbase/netbase/qemux86/interfaces
@@ -0,0 +1,15 @@
1# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
2
3# The loopback interface
4auto lo
5iface lo inet loopback
6
7# Wired or wireless interfaces
8auto eth0
9iface eth0 inet static
10 address 192.168.7.2
11 netmask 255.255.255.0
12 network 192.168.7.0
13 gateway 192.168.7.1
14
15
diff --git a/meta/recipes-core/netbase/netbase/tosa/interfaces b/meta/recipes-core/netbase/netbase/tosa/interfaces
new file mode 100644
index 0000000..0da7168
--- /dev/null
+++ b/meta/recipes-core/netbase/netbase/tosa/interfaces
@@ -0,0 +1,24 @@
1# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
2
3# The loopback interface
4auto lo
5iface lo inet loopback
6
7# Wireless interfaces
8iface wlan0 inet dhcp
9 wireless_type wlan-ng
10 wireless_mode Managed
11 pre-up modprobe prism2_usb
12# pre-up /sbin/usbctl on 1
13# post-down /sbin/usbctl off 1
14 post-down rmmod prism2_usb
15
16# Wired or wireless interfaces
17iface eth0 inet dhcp
18iface eth1 inet dhcp
19
20# Zaurus usbnet
21iface usbd0 inet dhcp
22
23# usbnet from the other side
24iface usb0 inet dhcp
diff --git a/meta/recipes-core/netbase/netbase/wrt54/interfaces b/meta/recipes-core/netbase/netbase/wrt54/interfaces
new file mode 100644
index 0000000..8b2852a
--- /dev/null
+++ b/meta/recipes-core/netbase/netbase/wrt54/interfaces
@@ -0,0 +1,23 @@
1# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
2
3# loopback interface
4auto lo
5iface lo inet loopback
6
7# the 4 LAN ports
8auto vlan0
9iface vlan0 inet static
10 address 192.168.1.1
11 netmask 255.255.255.0
12
13# WAN port
14auto vlan1
15iface vlan1 inet dhcp
16
17# wireless interface
18auto eth1
19iface eth1 inet static
20 wireless_mode master
21 wireless_essid wrt
22 address 10.0.0.1
23 netmask 255.255.255.0
diff --git a/meta/recipes-core/netbase/netbase/xxs1500/interfaces b/meta/recipes-core/netbase/netbase/xxs1500/interfaces
new file mode 100644
index 0000000..23ccccd
--- /dev/null
+++ b/meta/recipes-core/netbase/netbase/xxs1500/interfaces
@@ -0,0 +1,15 @@
1# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
2
3# The loopback interface
4auto lo
5iface lo inet loopback
6
7# Ethernet
8auto eth0 eth1
9iface eth0 inet static
10 address 192.168.127.1
11 netmask 255.255.255.0
12
13iface eth1 inet static
14 address 192.168.128.1
15 netmask 255.255.255.0
diff --git a/meta/recipes-core/netbase/netbase_4.41.bb b/meta/recipes-core/netbase/netbase_4.41.bb
new file mode 100644
index 0000000..88b524f
--- /dev/null
+++ b/meta/recipes-core/netbase/netbase_4.41.bb
@@ -0,0 +1,55 @@
1DESCRIPTION = "This package provides the necessary infrastructure for basic TCP/IP based networking"
2HOMEPAGE = "http://packages.debian.org/netbase"
3SECTION = "base"
4LICENSE = "GPLv2"
5PR = "r0"
6
7inherit update-rc.d
8
9INITSCRIPT_NAME = "networking"
10INITSCRIPT_PARAMS = "start 40 S . stop 40 0 6 1 ."
11# On MNCI etc, start very late so that our own apps come up faster
12INITSCRIPT_PARAMS_openmn = "start 85 1 2 3 4 5 . stop 85 0 6 1 ."
13# On SlugOS (NSLU2) delay the stop until after network apps have exited
14# Do not stop in single user - there's no way to sulogin!
15INITSCRIPT_PARAMS_slugos = "start 42 S 0 6 ."
16
17SRC_URI = "${DEBIAN_MIRROR}/main/n/netbase/netbase_${PV}.tar.gz \
18 file://init \
19 file://hosts \
20 file://interfaces \
21 file://nfsroot"
22
23do_install () {
24 install -d ${D}${sysconfdir}/init.d \
25 ${D}${sbindir} \
26 ${D}${mandir}/man8 \
27 ${D}${sysconfdir}/network/if-pre-up.d \
28 ${D}${sysconfdir}/network/if-up.d \
29 ${D}${sysconfdir}/network/if-down.d \
30 ${D}${sysconfdir}/network/if-post-down.d
31 install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/networking
32 install -m 0644 ${WORKDIR}/hosts ${D}${sysconfdir}/hosts
33 install -m 0644 etc-rpc ${D}${sysconfdir}/rpc
34 install -m 0644 etc-protocols ${D}${sysconfdir}/protocols
35 install -m 0644 etc-services ${D}${sysconfdir}/services
36 install -m 0644 ${WORKDIR}/interfaces ${D}${sysconfdir}/network/interfaces
37 install -m 0755 ${WORKDIR}/nfsroot ${D}${sysconfdir}/network/if-pre-up.d
38
39 # Disable network manager on machines that commonly do NFS booting
40 case "${MACHINE}" in
41 "omap-3430sdp" | "omap-3430ldp" | "omap-2430sdp" | "qemuarm" | "qemux86" )
42 touch ${D}${sysconfdir}/network/nm-disabled-eth0
43 ;;
44 *)
45 ;;
46 esac
47}
48
49CONFFILES_${PN} = "${sysconfdir}/hosts ${sysconfdir}/network/interfaces"
50
51PACKAGE_ARCH_omap-3430sdp = "${MACHINE_ARCH}"
52PACKAGE_ARCH_omap-3430ldp = "${MACHINE_ARCH}"
53PACKAGE_ARCH_omap-2430sdp = "${MACHINE_ARCH}"
54PACKAGE_ARCH_qemuarm = "${MACHINE_ARCH}"
55PACKAGE_ARCH_qemux86 = "${MACHINE_ARCH}"