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://${WORKDIR}/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}"
19
20do_install () {
21	install -d ${D}${sysconfdir}/init.d \
22			${D}${sysconfdir}/network/if-pre-up.d \
23			${D}${sysconfdir}/network/if-up.d \
24			${D}${sysconfdir}/network/if-down.d \
25			${D}${sysconfdir}/network/if-post-down.d
26	install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/networking
27	install -m 0644 ${WORKDIR}/interfaces ${D}${sysconfdir}/network/interfaces
28	install -m 0755 ${WORKDIR}/nfsroot ${D}${sysconfdir}/network/if-pre-up.d
29}
30
31do_install:append:qemuall () {
32	# Disable network manager on machines that commonly do NFS booting
33	touch ${D}${sysconfdir}/network/nm-disabled-eth0
34}
35
36PACKAGE_ARCH = "${MACHINE_ARCH}"
37RDEPENDS:${PN} = "netbase"
38RCONFLICTS:${PN} = "netbase (< 1:5.0)"
39
40CONFFILES:${PN} = "${sysconfdir}/network/interfaces"
41