summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/netbase/netbase_5.0.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/netbase/netbase_5.0.bb')
-rw-r--r--meta/recipes-core/netbase/netbase_5.0.bb32
1 files changed, 4 insertions, 28 deletions
diff --git a/meta/recipes-core/netbase/netbase_5.0.bb b/meta/recipes-core/netbase/netbase_5.0.bb
index 3aea87412d..03fdc38a67 100644
--- a/meta/recipes-core/netbase/netbase_5.0.bb
+++ b/meta/recipes-core/netbase/netbase_5.0.bb
@@ -5,44 +5,20 @@ SECTION = "base"
5LICENSE = "GPLv2" 5LICENSE = "GPLv2"
6LIC_FILES_CHKSUM = "file://debian/copyright;md5=3dd6192d306f582dee7687da3d8748ab" 6LIC_FILES_CHKSUM = "file://debian/copyright;md5=3dd6192d306f582dee7687da3d8748ab"
7PR = "r0" 7PR = "r0"
8 8PE = "1"
9inherit update-rc.d
10
11INITSCRIPT_NAME = "networking"
12INITSCRIPT_PARAMS = "start 40 S . stop 40 0 6 1 ."
13 9
14SRC_URI = "${DEBIAN_MIRROR}/main/n/netbase/netbase_${PV}.tar.gz \ 10SRC_URI = "${DEBIAN_MIRROR}/main/n/netbase/netbase_${PV}.tar.gz \
15 file://init \ 11 file://hosts"
16 file://hosts \
17 file://interfaces \
18 file://nfsroot"
19 12
20SRC_URI[md5sum] = "a379d9199d44d817543eddc211a29b70" 13SRC_URI[md5sum] = "a379d9199d44d817543eddc211a29b70"
21SRC_URI[sha256sum] = "ac9424d3cb2bd3c07b6c5bc5875c434d3bc687a73cd7c54b7dc7122308afa9dc" 14SRC_URI[sha256sum] = "ac9424d3cb2bd3c07b6c5bc5875c434d3bc687a73cd7c54b7dc7122308afa9dc"
22 15
23do_install () { 16do_install () {
24 install -d ${D}${sysconfdir}/init.d \ 17 install -d ${D}/${mandir}/man8 ${D}${sysconfdir}
25 ${D}${mandir}/man8 \
26 ${D}${sysconfdir}/network/if-pre-up.d \
27 ${D}${sysconfdir}/network/if-up.d \
28 ${D}${sysconfdir}/network/if-down.d \
29 ${D}${sysconfdir}/network/if-post-down.d
30 install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/networking
31 install -m 0644 ${WORKDIR}/hosts ${D}${sysconfdir}/hosts 18 install -m 0644 ${WORKDIR}/hosts ${D}${sysconfdir}/hosts
32 install -m 0644 etc-rpc ${D}${sysconfdir}/rpc 19 install -m 0644 etc-rpc ${D}${sysconfdir}/rpc
33 install -m 0644 etc-protocols ${D}${sysconfdir}/protocols 20 install -m 0644 etc-protocols ${D}${sysconfdir}/protocols
34 install -m 0644 etc-services ${D}${sysconfdir}/services 21 install -m 0644 etc-services ${D}${sysconfdir}/services
35 install -m 0644 ${WORKDIR}/interfaces ${D}${sysconfdir}/network/interfaces
36 install -m 0755 ${WORKDIR}/nfsroot ${D}${sysconfdir}/network/if-pre-up.d
37
38 # Disable network manager on machines that commonly do NFS booting
39 case "${MACHINE}" in
40 "qemuarm*" | "qemux86" | "qemux86-64" | "qemumips*" | "qemuppc" | "qemush*")
41 touch ${D}${sysconfdir}/network/nm-disabled-eth0
42 ;;
43 *)
44 ;;
45 esac
46} 22}
47 23
48CONFFILES_${PN} = "${sysconfdir}/hosts ${sysconfdir}/network/interfaces" 24CONFFILES_${PN} = "${sysconfdir}/hosts"