diff options
Diffstat (limited to 'meta/recipes-connectivity/resolvconf')
3 files changed, 87 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/resolvconf/resolvconf/99_resolvconf b/meta/recipes-connectivity/resolvconf/resolvconf/99_resolvconf new file mode 100644 index 0000000000..3790d774a7 --- /dev/null +++ b/meta/recipes-connectivity/resolvconf/resolvconf/99_resolvconf | |||
@@ -0,0 +1,4 @@ | |||
1 | d root root 0755 /var/run/resolvconf/interface none | ||
2 | f root root 0644 /etc/resolvconf/run/resolv.conf none | ||
3 | f root root 0644 /etc/resolvconf/run/enable-updates none | ||
4 | l root root 0644 /etc/resolv.conf /etc/resolvconf/run/resolv.conf | ||
diff --git a/meta/recipes-connectivity/resolvconf/resolvconf/fix-path-for-busybox.patch b/meta/recipes-connectivity/resolvconf/resolvconf/fix-path-for-busybox.patch new file mode 100644 index 0000000000..fc4605e94d --- /dev/null +++ b/meta/recipes-connectivity/resolvconf/resolvconf/fix-path-for-busybox.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | |||
2 | busybox installs readlink into /usr/bin, so ensure /usr/bin | ||
3 | is in the path. | ||
4 | |||
5 | Upstream-Status: Submitted | ||
6 | Signed-off-by: Saul Wold <sgw@linux.intel.com> | ||
7 | |||
8 | Index: resolvconf-1.76/etc/resolvconf/update.d/libc | ||
9 | =================================================================== | ||
10 | --- resolvconf-1.76.orig/etc/resolvconf/update.d/libc | ||
11 | +++ resolvconf-1.76/etc/resolvconf/update.d/libc | ||
12 | @@ -16,7 +16,7 @@ | ||
13 | # | ||
14 | |||
15 | set -e | ||
16 | -PATH=/sbin:/bin | ||
17 | +PATH=/sbin:/bin:/usr/bin | ||
18 | |||
19 | [ -x /lib/resolvconf/list-records ] || exit 1 | ||
diff --git a/meta/recipes-connectivity/resolvconf/resolvconf_1.75.bb b/meta/recipes-connectivity/resolvconf/resolvconf_1.75.bb new file mode 100644 index 0000000000..ee171c065e --- /dev/null +++ b/meta/recipes-connectivity/resolvconf/resolvconf_1.75.bb | |||
@@ -0,0 +1,64 @@ | |||
1 | SUMMARY = "name server information handler" | ||
2 | DESCRIPTION = "Resolvconf is a framework for keeping track of the system's \ | ||
3 | information about currently available nameservers. It sets \ | ||
4 | itself up as the intermediary between programs that supply \ | ||
5 | nameserver information and programs that need nameserver \ | ||
6 | information." | ||
7 | SECTION = "console/network" | ||
8 | LICENSE = "GPLv2+" | ||
9 | LIC_FILES_CHKSUM = "file://COPYING;md5=c93c0550bd3173f4504b2cbd8991e50b" | ||
10 | AUTHOR = "Thomas Hood" | ||
11 | HOMEPAGE = "http://packages.debian.org/resolvconf" | ||
12 | RDEPENDS_${PN} = "bash" | ||
13 | |||
14 | SRC_URI = "${DEBIAN_MIRROR}/main/r/resolvconf/resolvconf_${PV}.tar.xz \ | ||
15 | file://fix-path-for-busybox.patch \ | ||
16 | file://99_resolvconf \ | ||
17 | " | ||
18 | |||
19 | |||
20 | SRC_URI[md5sum] = "4b8bc86a3cf070e3fd0e9aff7eaaba56" | ||
21 | SRC_URI[sha256sum] = "16167f37a77ef4bc4596dcbefece269b6a10d10fa448594ec55ed3303193086e" | ||
22 | |||
23 | inherit allarch | ||
24 | |||
25 | do_compile () { | ||
26 | : | ||
27 | } | ||
28 | |||
29 | do_install () { | ||
30 | install -d ${D}${sysconfdir}/default/volatiles | ||
31 | install -m 0644 ${WORKDIR}/99_resolvconf ${D}${sysconfdir}/default/volatiles | ||
32 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | ||
33 | install -d ${D}${sysconfdir}/tmpfiles.d | ||
34 | echo "d /run/${BPN}/interface - - - -" \ | ||
35 | > ${D}${sysconfdir}/tmpfiles.d/resolvconf.conf | ||
36 | fi | ||
37 | install -d ${D}${base_libdir}/${BPN} | ||
38 | install -d ${D}${sysconfdir}/${BPN} | ||
39 | ln -snf ${localstatedir}/run/${BPN} ${D}${sysconfdir}/${BPN}/run | ||
40 | install -d ${D}${sysconfdir} ${D}${base_sbindir} | ||
41 | install -d ${D}${mandir}/man8 ${D}${docdir}/${P} | ||
42 | cp -pPR etc/* ${D}${sysconfdir}/ | ||
43 | chown -R root:root ${D}${sysconfdir}/ | ||
44 | install -m 0755 bin/resolvconf ${D}${base_sbindir}/ | ||
45 | install -m 0755 bin/list-records ${D}${base_libdir}/${BPN} | ||
46 | install -d ${D}/${sysconfdir}/network/if-up.d | ||
47 | install -m 0755 debian/resolvconf.000resolvconf.if-up ${D}/${sysconfdir}/network/if-up.d/000resolvconf | ||
48 | install -d ${D}/${sysconfdir}/network/if-down.d | ||
49 | install -m 0755 debian/resolvconf.resolvconf.if-down ${D}/${sysconfdir}/network/if-down.d/resolvconf | ||
50 | install -m 0644 README ${D}${docdir}/${P}/ | ||
51 | install -m 0644 man/resolvconf.8 ${D}${mandir}/man8/ | ||
52 | } | ||
53 | |||
54 | pkg_postinst_${PN} () { | ||
55 | if [ -z "$D" ]; then | ||
56 | if command -v systemd-tmpfiles >/dev/null; then | ||
57 | systemd-tmpfiles --create ${sysconfdir}/tmpfiles.d/resolvconf.conf | ||
58 | elif [ -e ${sysconfdir}/init.d/populate-volatile.sh ]; then | ||
59 | ${sysconfdir}/init.d/populate-volatile.sh update | ||
60 | fi | ||
61 | fi | ||
62 | } | ||
63 | |||
64 | FILES_${PN} += "${base_libdir}/${BPN}" | ||