From e1abae623a6b3afcb29f325220cc79453efb4e77 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 20 Nov 2011 09:50:46 -0800 Subject: netbase: Update recipe 4.46 -> 4.47 moreover 4.46 tar is not available on debian pools Signed-off-by: Khem Raj Signed-off-by: Richard Purdie --- meta/recipes-core/netbase/netbase-4.46/hosts | 2 - meta/recipes-core/netbase/netbase-4.46/init | 52 --------------------- meta/recipes-core/netbase/netbase-4.46/interfaces | 31 ------------- meta/recipes-core/netbase/netbase-4.46/nfsroot | 39 ---------------- .../netbase/netbase-4.46/qemuarm/interfaces | 5 -- .../netbase/netbase-4.46/qemuarmv6/interfaces | 5 -- .../netbase/netbase-4.46/qemuarmv7/interfaces | 5 -- .../netbase/netbase-4.46/qemumips/interfaces | 8 ---- .../netbase/netbase-4.46/qemuppc/interfaces | 8 ---- .../netbase/netbase-4.46/qemux86-64/interfaces | 8 ---- .../netbase/netbase-4.46/qemux86/interfaces | 8 ---- meta/recipes-core/netbase/netbase-4.47/hosts | 2 + meta/recipes-core/netbase/netbase-4.47/init | 52 +++++++++++++++++++++ meta/recipes-core/netbase/netbase-4.47/interfaces | 31 +++++++++++++ meta/recipes-core/netbase/netbase-4.47/nfsroot | 39 ++++++++++++++++ .../netbase/netbase-4.47/qemuarm/interfaces | 5 ++ .../netbase/netbase-4.47/qemuarmv6/interfaces | 5 ++ .../netbase/netbase-4.47/qemuarmv7/interfaces | 5 ++ .../netbase/netbase-4.47/qemumips/interfaces | 8 ++++ .../netbase/netbase-4.47/qemuppc/interfaces | 8 ++++ .../netbase/netbase-4.47/qemux86-64/interfaces | 8 ++++ .../netbase/netbase-4.47/qemux86/interfaces | 8 ++++ meta/recipes-core/netbase/netbase_4.46.bb | 53 ---------------------- meta/recipes-core/netbase/netbase_4.47.bb | 53 ++++++++++++++++++++++ 24 files changed, 224 insertions(+), 224 deletions(-) delete mode 100644 meta/recipes-core/netbase/netbase-4.46/hosts delete mode 100644 meta/recipes-core/netbase/netbase-4.46/init delete mode 100644 meta/recipes-core/netbase/netbase-4.46/interfaces delete mode 100644 meta/recipes-core/netbase/netbase-4.46/nfsroot delete mode 100644 meta/recipes-core/netbase/netbase-4.46/qemuarm/interfaces delete mode 100644 meta/recipes-core/netbase/netbase-4.46/qemuarmv6/interfaces delete mode 100644 meta/recipes-core/netbase/netbase-4.46/qemuarmv7/interfaces delete mode 100644 meta/recipes-core/netbase/netbase-4.46/qemumips/interfaces delete mode 100644 meta/recipes-core/netbase/netbase-4.46/qemuppc/interfaces delete mode 100644 meta/recipes-core/netbase/netbase-4.46/qemux86-64/interfaces delete mode 100644 meta/recipes-core/netbase/netbase-4.46/qemux86/interfaces create mode 100644 meta/recipes-core/netbase/netbase-4.47/hosts create mode 100644 meta/recipes-core/netbase/netbase-4.47/init create mode 100644 meta/recipes-core/netbase/netbase-4.47/interfaces create mode 100644 meta/recipes-core/netbase/netbase-4.47/nfsroot create mode 100644 meta/recipes-core/netbase/netbase-4.47/qemuarm/interfaces create mode 100644 meta/recipes-core/netbase/netbase-4.47/qemuarmv6/interfaces create mode 100644 meta/recipes-core/netbase/netbase-4.47/qemuarmv7/interfaces create mode 100644 meta/recipes-core/netbase/netbase-4.47/qemumips/interfaces create mode 100644 meta/recipes-core/netbase/netbase-4.47/qemuppc/interfaces create mode 100644 meta/recipes-core/netbase/netbase-4.47/qemux86-64/interfaces create mode 100644 meta/recipes-core/netbase/netbase-4.47/qemux86/interfaces delete mode 100644 meta/recipes-core/netbase/netbase_4.46.bb create mode 100644 meta/recipes-core/netbase/netbase_4.47.bb diff --git a/meta/recipes-core/netbase/netbase-4.46/hosts b/meta/recipes-core/netbase/netbase-4.46/hosts deleted file mode 100644 index 2f332451b..000000000 --- a/meta/recipes-core/netbase/netbase-4.46/hosts +++ /dev/null @@ -1,2 +0,0 @@ -127.0.0.1 localhost.localdomain localhost - diff --git a/meta/recipes-core/netbase/netbase-4.46/init b/meta/recipes-core/netbase/netbase-4.46/init deleted file mode 100644 index 8a67e1cef..000000000 --- a/meta/recipes-core/netbase/netbase-4.46/init +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/sh -# -### BEGIN INIT INFO -# Provides: networking -# Required-Start: $local_fs mountvirtfs -# Required-Stop: $local_fs -# Default-Start: S -# Default-Stop: 0 6 -# Short-Description: Raise network interfaces and configure them -### END INIT INFO - -PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin - -if ! [ -x /sbin/ifup ]; then - exit 0 -fi - -case "$1" in - start) - echo -n "Configuring network interfaces... " - ifup -a - echo "done." - ;; - stop) - if sed -n 's/^[^ ]* \([^ ]*\) \([^ ]*\) .*$/\1 \2/p' /proc/mounts | - grep -q "^/ nfs$"; then - echo "NOT deconfiguring network interfaces: / is an NFS mount" - elif sed -n 's/^[^ ]* \([^ ]*\) \([^ ]*\) .*$/\1 \2/p' /proc/mounts | - grep -q "^/ smbfs$"; then - echo "NOT deconfiguring network interfaces: / is an SMB mount" - elif sed -n 's/^[^ ]* \([^ ]*\) \([^ ]*\) .*$/\2/p' /proc/mounts | - grep -qE '^(nfs|smbfs|ncp|coda)$'; then - echo "NOT deconfiguring network interfaces: network shares still mounted." - else - echo -n "Deconfiguring network interfaces... " - ifdown -a - echo "done." - fi - ;; - force-reload|restart) - echo -n "Reconfiguring network interfaces... " - ifdown -a - ifup -a - echo "done." - ;; - *) - echo "Usage: /etc/init.d/networking {start|stop|restart|force-reload}" - exit 1 - ;; -esac - -exit 0 diff --git a/meta/recipes-core/netbase/netbase-4.46/interfaces b/meta/recipes-core/netbase/netbase-4.46/interfaces deleted file mode 100644 index 0acf4cf44..000000000 --- a/meta/recipes-core/netbase/netbase-4.46/interfaces +++ /dev/null @@ -1,31 +0,0 @@ -# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) - -# The loopback interface -auto lo -iface lo inet loopback - -# Wireless interfaces -iface wlan0 inet dhcp - wireless_mode managed - wireless_essid any - wpa-driver wext - wpa-conf /etc/wpa_supplicant.conf - -iface atml0 inet dhcp - -# Wired or wireless interfaces -auto eth0 -iface eth0 inet dhcp -iface eth1 inet dhcp - -# Ethernet/RNDIS gadget (g_ether) -# ... or on host side, usbnet and random hwaddr -iface usb0 inet static - address 192.168.7.2 - netmask 255.255.255.0 - network 192.168.7.0 - gateway 192.168.7.1 - -# Bluetooth networking -iface bnep0 inet dhcp - diff --git a/meta/recipes-core/netbase/netbase-4.46/nfsroot b/meta/recipes-core/netbase/netbase-4.46/nfsroot deleted file mode 100644 index 750c0a98f..000000000 --- a/meta/recipes-core/netbase/netbase-4.46/nfsroot +++ /dev/null @@ -1,39 +0,0 @@ -#! /bin/sh - -# In case the interface is used as nfsroot, avoid ifup, otherwise -# nfsroot may lose response - -nfsroot=0 - -if test "x$IFACE" = xlo ; then - exit 0 -fi - -exec 9<&0 < /proc/mounts -while read dev mtpt fstype rest; do - if test $mtpt = "/" ; then - case $fstype in - nfs | nfs4) - nfsroot=1 - nfs_addr=`echo $rest | sed -e 's/^.*addr=\([0-9.]*\).*$/\1/'` - break - ;; - *) - ;; - esac - fi -done -exec 0<&9 9<&- - -test $nfsroot -eq 0 && exit 0 - -if [ -x /bin/ip -o -x /sbin/ip ] ; then - nfs_iface=`ip route get $nfs_addr | grep dev | sed -e 's/^.*dev \([-a-z0-9.]*\).*$/\1/'` -fi - -if test "x$IFACE" = "x$nfs_iface" ; then - echo "ifup skipped for nfsroot interface $nfs_iface" - exit 1 -fi - -exit 0 diff --git a/meta/recipes-core/netbase/netbase-4.46/qemuarm/interfaces b/meta/recipes-core/netbase/netbase-4.46/qemuarm/interfaces deleted file mode 100644 index 16967763e..000000000 --- a/meta/recipes-core/netbase/netbase-4.46/qemuarm/interfaces +++ /dev/null @@ -1,5 +0,0 @@ -# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) - -# The loopback interface -auto lo -iface lo inet loopback diff --git a/meta/recipes-core/netbase/netbase-4.46/qemuarmv6/interfaces b/meta/recipes-core/netbase/netbase-4.46/qemuarmv6/interfaces deleted file mode 100644 index 16967763e..000000000 --- a/meta/recipes-core/netbase/netbase-4.46/qemuarmv6/interfaces +++ /dev/null @@ -1,5 +0,0 @@ -# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) - -# The loopback interface -auto lo -iface lo inet loopback diff --git a/meta/recipes-core/netbase/netbase-4.46/qemuarmv7/interfaces b/meta/recipes-core/netbase/netbase-4.46/qemuarmv7/interfaces deleted file mode 100644 index 16967763e..000000000 --- a/meta/recipes-core/netbase/netbase-4.46/qemuarmv7/interfaces +++ /dev/null @@ -1,5 +0,0 @@ -# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) - -# The loopback interface -auto lo -iface lo inet loopback diff --git a/meta/recipes-core/netbase/netbase-4.46/qemumips/interfaces b/meta/recipes-core/netbase/netbase-4.46/qemumips/interfaces deleted file mode 100644 index f62b9a897..000000000 --- a/meta/recipes-core/netbase/netbase-4.46/qemumips/interfaces +++ /dev/null @@ -1,8 +0,0 @@ -# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) - -# The loopback interface -auto lo -iface lo inet loopback - - - diff --git a/meta/recipes-core/netbase/netbase-4.46/qemuppc/interfaces b/meta/recipes-core/netbase/netbase-4.46/qemuppc/interfaces deleted file mode 100644 index f62b9a897..000000000 --- a/meta/recipes-core/netbase/netbase-4.46/qemuppc/interfaces +++ /dev/null @@ -1,8 +0,0 @@ -# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) - -# The loopback interface -auto lo -iface lo inet loopback - - - diff --git a/meta/recipes-core/netbase/netbase-4.46/qemux86-64/interfaces b/meta/recipes-core/netbase/netbase-4.46/qemux86-64/interfaces deleted file mode 100644 index f62b9a897..000000000 --- a/meta/recipes-core/netbase/netbase-4.46/qemux86-64/interfaces +++ /dev/null @@ -1,8 +0,0 @@ -# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) - -# The loopback interface -auto lo -iface lo inet loopback - - - diff --git a/meta/recipes-core/netbase/netbase-4.46/qemux86/interfaces b/meta/recipes-core/netbase/netbase-4.46/qemux86/interfaces deleted file mode 100644 index f62b9a897..000000000 --- a/meta/recipes-core/netbase/netbase-4.46/qemux86/interfaces +++ /dev/null @@ -1,8 +0,0 @@ -# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) - -# The loopback interface -auto lo -iface lo inet loopback - - - diff --git a/meta/recipes-core/netbase/netbase-4.47/hosts b/meta/recipes-core/netbase/netbase-4.47/hosts new file mode 100644 index 000000000..2f332451b --- /dev/null +++ b/meta/recipes-core/netbase/netbase-4.47/hosts @@ -0,0 +1,2 @@ +127.0.0.1 localhost.localdomain localhost + diff --git a/meta/recipes-core/netbase/netbase-4.47/init b/meta/recipes-core/netbase/netbase-4.47/init new file mode 100644 index 000000000..8a67e1cef --- /dev/null +++ b/meta/recipes-core/netbase/netbase-4.47/init @@ -0,0 +1,52 @@ +#!/bin/sh +# +### BEGIN INIT INFO +# Provides: networking +# Required-Start: $local_fs mountvirtfs +# Required-Stop: $local_fs +# Default-Start: S +# Default-Stop: 0 6 +# Short-Description: Raise network interfaces and configure them +### END INIT INFO + +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin + +if ! [ -x /sbin/ifup ]; then + exit 0 +fi + +case "$1" in + start) + echo -n "Configuring network interfaces... " + ifup -a + echo "done." + ;; + stop) + if sed -n 's/^[^ ]* \([^ ]*\) \([^ ]*\) .*$/\1 \2/p' /proc/mounts | + grep -q "^/ nfs$"; then + echo "NOT deconfiguring network interfaces: / is an NFS mount" + elif sed -n 's/^[^ ]* \([^ ]*\) \([^ ]*\) .*$/\1 \2/p' /proc/mounts | + grep -q "^/ smbfs$"; then + echo "NOT deconfiguring network interfaces: / is an SMB mount" + elif sed -n 's/^[^ ]* \([^ ]*\) \([^ ]*\) .*$/\2/p' /proc/mounts | + grep -qE '^(nfs|smbfs|ncp|coda)$'; then + echo "NOT deconfiguring network interfaces: network shares still mounted." + else + echo -n "Deconfiguring network interfaces... " + ifdown -a + echo "done." + fi + ;; + force-reload|restart) + echo -n "Reconfiguring network interfaces... " + ifdown -a + ifup -a + echo "done." + ;; + *) + echo "Usage: /etc/init.d/networking {start|stop|restart|force-reload}" + exit 1 + ;; +esac + +exit 0 diff --git a/meta/recipes-core/netbase/netbase-4.47/interfaces b/meta/recipes-core/netbase/netbase-4.47/interfaces new file mode 100644 index 000000000..0acf4cf44 --- /dev/null +++ b/meta/recipes-core/netbase/netbase-4.47/interfaces @@ -0,0 +1,31 @@ +# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) + +# The loopback interface +auto lo +iface lo inet loopback + +# Wireless interfaces +iface wlan0 inet dhcp + wireless_mode managed + wireless_essid any + wpa-driver wext + wpa-conf /etc/wpa_supplicant.conf + +iface atml0 inet dhcp + +# Wired or wireless interfaces +auto eth0 +iface eth0 inet dhcp +iface eth1 inet dhcp + +# Ethernet/RNDIS gadget (g_ether) +# ... or on host side, usbnet and random hwaddr +iface usb0 inet static + address 192.168.7.2 + netmask 255.255.255.0 + network 192.168.7.0 + gateway 192.168.7.1 + +# Bluetooth networking +iface bnep0 inet dhcp + diff --git a/meta/recipes-core/netbase/netbase-4.47/nfsroot b/meta/recipes-core/netbase/netbase-4.47/nfsroot new file mode 100644 index 000000000..750c0a98f --- /dev/null +++ b/meta/recipes-core/netbase/netbase-4.47/nfsroot @@ -0,0 +1,39 @@ +#! /bin/sh + +# In case the interface is used as nfsroot, avoid ifup, otherwise +# nfsroot may lose response + +nfsroot=0 + +if test "x$IFACE" = xlo ; then + exit 0 +fi + +exec 9<&0 < /proc/mounts +while read dev mtpt fstype rest; do + if test $mtpt = "/" ; then + case $fstype in + nfs | nfs4) + nfsroot=1 + nfs_addr=`echo $rest | sed -e 's/^.*addr=\([0-9.]*\).*$/\1/'` + break + ;; + *) + ;; + esac + fi +done +exec 0<&9 9<&- + +test $nfsroot -eq 0 && exit 0 + +if [ -x /bin/ip -o -x /sbin/ip ] ; then + nfs_iface=`ip route get $nfs_addr | grep dev | sed -e 's/^.*dev \([-a-z0-9.]*\).*$/\1/'` +fi + +if test "x$IFACE" = "x$nfs_iface" ; then + echo "ifup skipped for nfsroot interface $nfs_iface" + exit 1 +fi + +exit 0 diff --git a/meta/recipes-core/netbase/netbase-4.47/qemuarm/interfaces b/meta/recipes-core/netbase/netbase-4.47/qemuarm/interfaces new file mode 100644 index 000000000..16967763e --- /dev/null +++ b/meta/recipes-core/netbase/netbase-4.47/qemuarm/interfaces @@ -0,0 +1,5 @@ +# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) + +# The loopback interface +auto lo +iface lo inet loopback diff --git a/meta/recipes-core/netbase/netbase-4.47/qemuarmv6/interfaces b/meta/recipes-core/netbase/netbase-4.47/qemuarmv6/interfaces new file mode 100644 index 000000000..16967763e --- /dev/null +++ b/meta/recipes-core/netbase/netbase-4.47/qemuarmv6/interfaces @@ -0,0 +1,5 @@ +# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) + +# The loopback interface +auto lo +iface lo inet loopback diff --git a/meta/recipes-core/netbase/netbase-4.47/qemuarmv7/interfaces b/meta/recipes-core/netbase/netbase-4.47/qemuarmv7/interfaces new file mode 100644 index 000000000..16967763e --- /dev/null +++ b/meta/recipes-core/netbase/netbase-4.47/qemuarmv7/interfaces @@ -0,0 +1,5 @@ +# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) + +# The loopback interface +auto lo +iface lo inet loopback diff --git a/meta/recipes-core/netbase/netbase-4.47/qemumips/interfaces b/meta/recipes-core/netbase/netbase-4.47/qemumips/interfaces new file mode 100644 index 000000000..f62b9a897 --- /dev/null +++ b/meta/recipes-core/netbase/netbase-4.47/qemumips/interfaces @@ -0,0 +1,8 @@ +# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) + +# The loopback interface +auto lo +iface lo inet loopback + + + diff --git a/meta/recipes-core/netbase/netbase-4.47/qemuppc/interfaces b/meta/recipes-core/netbase/netbase-4.47/qemuppc/interfaces new file mode 100644 index 000000000..f62b9a897 --- /dev/null +++ b/meta/recipes-core/netbase/netbase-4.47/qemuppc/interfaces @@ -0,0 +1,8 @@ +# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) + +# The loopback interface +auto lo +iface lo inet loopback + + + diff --git a/meta/recipes-core/netbase/netbase-4.47/qemux86-64/interfaces b/meta/recipes-core/netbase/netbase-4.47/qemux86-64/interfaces new file mode 100644 index 000000000..f62b9a897 --- /dev/null +++ b/meta/recipes-core/netbase/netbase-4.47/qemux86-64/interfaces @@ -0,0 +1,8 @@ +# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) + +# The loopback interface +auto lo +iface lo inet loopback + + + diff --git a/meta/recipes-core/netbase/netbase-4.47/qemux86/interfaces b/meta/recipes-core/netbase/netbase-4.47/qemux86/interfaces new file mode 100644 index 000000000..f62b9a897 --- /dev/null +++ b/meta/recipes-core/netbase/netbase-4.47/qemux86/interfaces @@ -0,0 +1,8 @@ +# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) + +# The loopback interface +auto lo +iface lo inet loopback + + + diff --git a/meta/recipes-core/netbase/netbase_4.46.bb b/meta/recipes-core/netbase/netbase_4.46.bb deleted file mode 100644 index b55a8a116..000000000 --- a/meta/recipes-core/netbase/netbase_4.46.bb +++ /dev/null @@ -1,53 +0,0 @@ -SUMMARY = "Basic TCP/IP networking support" -DESCRIPTION = "This package provides the necessary infrastructure for basic TCP/IP based networking" -HOMEPAGE = "http://packages.debian.org/netbase" -SECTION = "base" -LICENSE = "GPLv2" -LIC_FILES_CHKSUM = "file://debian/copyright;md5=3dd6192d306f582dee7687da3d8748ab" -PR = "r0" - -inherit update-rc.d - -INITSCRIPT_NAME = "networking" -INITSCRIPT_PARAMS = "start 40 S . stop 40 0 6 1 ." - -SRC_URI = "${DEBIAN_MIRROR}/main/n/netbase/netbase_${PV}.tar.gz \ - file://init \ - file://hosts \ - file://interfaces \ - file://nfsroot" - -do_install () { - install -d ${D}${sysconfdir}/init.d \ - ${D}${sbindir} \ - ${D}${mandir}/man8 \ - ${D}${sysconfdir}/network/if-pre-up.d \ - ${D}${sysconfdir}/network/if-up.d \ - ${D}${sysconfdir}/network/if-down.d \ - ${D}${sysconfdir}/network/if-post-down.d - install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/networking - install -m 0644 ${WORKDIR}/hosts ${D}${sysconfdir}/hosts - install -m 0644 etc-rpc ${D}${sysconfdir}/rpc - install -m 0644 etc-protocols ${D}${sysconfdir}/protocols - install -m 0644 etc-services ${D}${sysconfdir}/services - install -m 0644 ${WORKDIR}/interfaces ${D}${sysconfdir}/network/interfaces - install -m 0755 ${WORKDIR}/nfsroot ${D}${sysconfdir}/network/if-pre-up.d - - # Disable network manager on machines that commonly do NFS booting - case "${MACHINE}" in - "qemuarm" | "qemux86" | "qemux86-64" | "qemumips" | "qemuppc" ) - touch ${D}${sysconfdir}/network/nm-disabled-eth0 - ;; - *) - ;; - esac -} - -CONFFILES_${PN} = "${sysconfdir}/hosts ${sysconfdir}/network/interfaces" - -PACKAGE_ARCH_qemuarm = "${MACHINE_ARCH}" -PACKAGE_ARCH_qemux86 = "${MACHINE_ARCH}" -PACKAGE_ARCH_qemux86-64 = "${MACHINE_ARCH}" - -SRC_URI[md5sum] = "e15762f4a8280a62f7ddfea6093120f1" -SRC_URI[sha256sum] = "2fdee144112731ee0028fee2584cc82d664857ca7004c2eb59de7bda5b159838" diff --git a/meta/recipes-core/netbase/netbase_4.47.bb b/meta/recipes-core/netbase/netbase_4.47.bb new file mode 100644 index 000000000..ddfa8ad87 --- /dev/null +++ b/meta/recipes-core/netbase/netbase_4.47.bb @@ -0,0 +1,53 @@ +SUMMARY = "Basic TCP/IP networking support" +DESCRIPTION = "This package provides the necessary infrastructure for basic TCP/IP based networking" +HOMEPAGE = "http://packages.debian.org/netbase" +SECTION = "base" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://debian/copyright;md5=3dd6192d306f582dee7687da3d8748ab" +PR = "r0" + +inherit update-rc.d + +INITSCRIPT_NAME = "networking" +INITSCRIPT_PARAMS = "start 40 S . stop 40 0 6 1 ." + +SRC_URI = "${DEBIAN_MIRROR}/main/n/netbase/netbase_${PV}.tar.gz \ + file://init \ + file://hosts \ + file://interfaces \ + file://nfsroot" + +SRC_URI[md5sum] = "fcd87a62f177592724a8066e3774ae97" +SRC_URI[sha256sum] = "a7e6525c9a09b00eff3395d09739b3c70a18bff8d13f7daa21fdf81989387726" + +do_install () { + install -d ${D}${sysconfdir}/init.d \ + ${D}${sbindir} \ + ${D}${mandir}/man8 \ + ${D}${sysconfdir}/network/if-pre-up.d \ + ${D}${sysconfdir}/network/if-up.d \ + ${D}${sysconfdir}/network/if-down.d \ + ${D}${sysconfdir}/network/if-post-down.d + install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/networking + install -m 0644 ${WORKDIR}/hosts ${D}${sysconfdir}/hosts + install -m 0644 etc-rpc ${D}${sysconfdir}/rpc + install -m 0644 etc-protocols ${D}${sysconfdir}/protocols + install -m 0644 etc-services ${D}${sysconfdir}/services + install -m 0644 ${WORKDIR}/interfaces ${D}${sysconfdir}/network/interfaces + install -m 0755 ${WORKDIR}/nfsroot ${D}${sysconfdir}/network/if-pre-up.d + + # Disable network manager on machines that commonly do NFS booting + case "${MACHINE}" in + "qemuarm" | "qemux86" | "qemux86-64" | "qemumips" | "qemuppc" ) + touch ${D}${sysconfdir}/network/nm-disabled-eth0 + ;; + *) + ;; + esac +} + +CONFFILES_${PN} = "${sysconfdir}/hosts ${sysconfdir}/network/interfaces" + +PACKAGE_ARCH_qemuarm = "${MACHINE_ARCH}" +PACKAGE_ARCH_qemux86 = "${MACHINE_ARCH}" +PACKAGE_ARCH_qemux86-64 = "${MACHINE_ARCH}" -- cgit v1.2.3