xref: /openbmc/openbmc/poky/meta/recipes-core/init-ifupdown/init-ifupdown_1.0.bb (revision edff49234e31f23dc79f823473c9e286a21596c1)
1SUMMARY = "Basic TCP/IP networking init scripts and configuration files"
2DESCRIPTION = "This package provides high level tools to configure network interfaces"
3HOMEPAGE = "http://packages.debian.org/ifupdown"
4SECTION = "base"
5LICENSE = "GPL-2.0-only"
6LIC_FILES_CHKSUM = "file://${S}/copyright;md5=3dd6192d306f582dee7687da3d8748ab"
7
8inherit update-rc.d
9
10INITSCRIPT_NAME = "networking"
11INITSCRIPT_PARAMS = "start 01 2 3 4 5 . stop 80 0 6 1 ."
12
13SRC_URI = "file://copyright \
14           file://init \
15           file://interfaces \
16           file://nfsroot"
17
18S = "${WORKDIR}/sources"
19UNPACKDIR = "${S}"
20
21do_install () {
22	install -d ${D}${sysconfdir}/init.d \
23			${D}${sysconfdir}/network/if-pre-up.d \
24			${D}${sysconfdir}/network/if-up.d \
25			${D}${sysconfdir}/network/if-down.d \
26			${D}${sysconfdir}/network/if-post-down.d
27	install -m 0755 ${S}/init ${D}${sysconfdir}/init.d/networking
28	install -m 0644 ${S}/interfaces ${D}${sysconfdir}/network/interfaces
29	install -m 0755 ${S}/nfsroot ${D}${sysconfdir}/network/if-pre-up.d
30}
31
32do_install:append:qemuall () {
33	# Disable network manager on machines that commonly do NFS booting
34	touch ${D}${sysconfdir}/network/nm-disabled-eth0
35}
36
37PACKAGE_ARCH = "${MACHINE_ARCH}"
38RDEPENDS:${PN} = "netbase"
39RCONFLICTS:${PN} = "netbase (< 1:5.0)"
40
41CONFFILES:${PN} = "${sysconfdir}/network/interfaces"
42