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 = "GPLv2"
6LIC_FILES_CHKSUM = "file://${WORKDIR}/copyright;md5=3dd6192d306f582dee7687da3d8748ab"
7PR = "r7"
8
9inherit update-rc.d
10
11INITSCRIPT_NAME = "networking"
12INITSCRIPT_PARAMS = "start 01 2 3 4 5 . stop 80 0 6 1 ."
13
14SRC_URI = "file://copyright \
15           file://init \
16           file://interfaces \
17           file://nfsroot"
18
19S = "${WORKDIR}"
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 ${WORKDIR}/init ${D}${sysconfdir}/init.d/networking
28	install -m 0644 ${WORKDIR}/interfaces ${D}${sysconfdir}/network/interfaces
29	install -m 0755 ${WORKDIR}/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_qemuall = "${MACHINE_ARCH}"
38RDEPENDS_${PN} = "netbase"
39RCONFLICTS_${PN} = "netbase (< 1:5.0)"
40
41CONFFILES_${PN} = "${sysconfdir}/network/interfaces"
42