summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/resolvconf
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2015-10-09 20:59:03 (GMT)
committerTudor Florea <tudor.florea@enea.com>2015-10-09 20:59:03 (GMT)
commit972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch)
tree97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-connectivity/resolvconf
downloadpoky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-connectivity/resolvconf')
-rw-r--r--meta/recipes-connectivity/resolvconf/resolvconf/99_resolvconf4
-rw-r--r--meta/recipes-connectivity/resolvconf/resolvconf/fix-path-for-busybox.patch19
-rw-r--r--meta/recipes-connectivity/resolvconf/resolvconf_1.75.bb64
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 0000000..3790d77
--- /dev/null
+++ b/meta/recipes-connectivity/resolvconf/resolvconf/99_resolvconf
@@ -0,0 +1,4 @@
1d root root 0755 /var/run/resolvconf/interface none
2f root root 0644 /etc/resolvconf/run/resolv.conf none
3f root root 0644 /etc/resolvconf/run/enable-updates none
4l 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 0000000..fc4605e
--- /dev/null
+++ b/meta/recipes-connectivity/resolvconf/resolvconf/fix-path-for-busybox.patch
@@ -0,0 +1,19 @@
1
2busybox installs readlink into /usr/bin, so ensure /usr/bin
3is in the path.
4
5Upstream-Status: Submitted
6Signed-off-by: Saul Wold <sgw@linux.intel.com>
7
8Index: 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 0000000..ee171c0
--- /dev/null
+++ b/meta/recipes-connectivity/resolvconf/resolvconf_1.75.bb
@@ -0,0 +1,64 @@
1SUMMARY = "name server information handler"
2DESCRIPTION = "Resolvconf is a framework for keeping track of the system's \
3information about currently available nameservers. It sets \
4itself up as the intermediary between programs that supply \
5nameserver information and programs that need nameserver \
6information."
7SECTION = "console/network"
8LICENSE = "GPLv2+"
9LIC_FILES_CHKSUM = "file://COPYING;md5=c93c0550bd3173f4504b2cbd8991e50b"
10AUTHOR = "Thomas Hood"
11HOMEPAGE = "http://packages.debian.org/resolvconf"
12RDEPENDS_${PN} = "bash"
13
14SRC_URI = "${DEBIAN_MIRROR}/main/r/resolvconf/resolvconf_${PV}.tar.xz \
15 file://fix-path-for-busybox.patch \
16 file://99_resolvconf \
17 "
18
19
20SRC_URI[md5sum] = "4b8bc86a3cf070e3fd0e9aff7eaaba56"
21SRC_URI[sha256sum] = "16167f37a77ef4bc4596dcbefece269b6a10d10fa448594ec55ed3303193086e"
22
23inherit allarch
24
25do_compile () {
26 :
27}
28
29do_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
54pkg_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
64FILES_${PN} += "${base_libdir}/${BPN}"