diff options
Diffstat (limited to 'meta/recipes-core/ifupdown/ifupdown_0.8.36.bb')
-rw-r--r-- | meta/recipes-core/ifupdown/ifupdown_0.8.36.bb | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/meta/recipes-core/ifupdown/ifupdown_0.8.36.bb b/meta/recipes-core/ifupdown/ifupdown_0.8.36.bb new file mode 100644 index 0000000000..5b425da95c --- /dev/null +++ b/meta/recipes-core/ifupdown/ifupdown_0.8.36.bb | |||
@@ -0,0 +1,55 @@ | |||
1 | SUMMARY = "ifupdown: basic ifup and ifdown used by initscripts" | ||
2 | DESCRIPTION = "High level tools to configure network interfaces \ | ||
3 | This package provides the tools ifup and ifdown which may be used to \ | ||
4 | configure (or, respectively, deconfigure) network interfaces, based on \ | ||
5 | the file /etc/network/interfaces." | ||
6 | LICENSE = "GPLv2" | ||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | ||
8 | |||
9 | SRC_URI = "git://salsa.debian.org/debian/ifupdown.git;protocol=https \ | ||
10 | file://defn2-c-man-don-t-rely-on-dpkg-architecture-to-set-a.patch \ | ||
11 | file://99_network \ | ||
12 | file://0001-Define-FNM_EXTMATCH-for-musl.patch \ | ||
13 | file://0001-Makefile-do-not-use-dpkg-for-determining-OS-type.patch \ | ||
14 | file://run-ptest \ | ||
15 | ${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'file://tweak-ptest-script.patch', '', d)} \ | ||
16 | " | ||
17 | SRCREV = "c73226073e2b13970ca613b20a13b9c0253bf9da" | ||
18 | |||
19 | S = "${WORKDIR}/git" | ||
20 | |||
21 | |||
22 | inherit ptest update-alternatives | ||
23 | |||
24 | do_compile () { | ||
25 | chmod a+rx *.pl *.sh | ||
26 | oe_runmake 'CC=${CC}' "CFLAGS=${CFLAGS} -Wall -W -D'IFUPDOWN_VERSION=\"${PV}\"'" | ||
27 | } | ||
28 | |||
29 | do_install () { | ||
30 | install -d ${D}${mandir}/man8 \ | ||
31 | ${D}${mandir}/man5 \ | ||
32 | ${D}${base_sbindir} | ||
33 | |||
34 | # If volatiles are used, then we'll also need /run/network there too. | ||
35 | install -d ${D}/etc/default/volatiles | ||
36 | install -m 0644 ${WORKDIR}/99_network ${D}/etc/default/volatiles | ||
37 | |||
38 | install -m 0755 ifup ${D}${base_sbindir}/ | ||
39 | ln ${D}${base_sbindir}/ifup ${D}${base_sbindir}/ifdown | ||
40 | install -m 0644 ifup.8 ${D}${mandir}/man8 | ||
41 | install -m 0644 interfaces.5 ${D}${mandir}/man5 | ||
42 | cd ${D}${mandir}/man8 && ln -s ifup.8 ifdown.8 | ||
43 | } | ||
44 | |||
45 | do_install_ptest () { | ||
46 | install -d ${D}${PTEST_PATH}/tests | ||
47 | cp -r ${S}/tests/testbuild-linux ${D}${PTEST_PATH}/tests/ | ||
48 | cp -r ${S}/tests/linux ${D}${PTEST_PATH}/tests/ | ||
49 | } | ||
50 | |||
51 | ALTERNATIVE_PRIORITY = "100" | ||
52 | ALTERNATIVE_${PN} = "ifup ifdown" | ||
53 | |||
54 | ALTERNATIVE_LINK_NAME[ifup] = "${base_sbindir}/ifup" | ||
55 | ALTERNATIVE_LINK_NAME[ifdown] = "${base_sbindir}/ifdown" | ||