diff options
author | Saul Wold <sgw@linux.intel.com> | 2013-07-29 10:24:27 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-08-03 10:33:11 +0100 |
commit | f8781d3e3292a1c330e817bba70e05c2bd9a31ed (patch) | |
tree | f8cbaff9265cebc280f0e1207592ab1c5b9cbbaa /meta/recipes-connectivity/resolvconf/resolvconf_1.74.bb | |
parent | 0f5e88107fe8e2f7b9e527e5ec01743c9d8eed85 (diff) | |
download | poky-f8781d3e3292a1c330e817bba70e05c2bd9a31ed.tar.gz |
resolvconf: upgrade to 1.74
(From OE-Core rev: 46f47315ee922c9f1b6daec7da99ae366b110b45)
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/resolvconf/resolvconf_1.74.bb')
-rw-r--r-- | meta/recipes-connectivity/resolvconf/resolvconf_1.74.bb | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/resolvconf/resolvconf_1.74.bb b/meta/recipes-connectivity/resolvconf/resolvconf_1.74.bb new file mode 100644 index 0000000000..eb1ce8d76f --- /dev/null +++ b/meta/recipes-connectivity/resolvconf/resolvconf_1.74.bb | |||
@@ -0,0 +1,53 @@ | |||
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.gz" | ||
15 | |||
16 | SRC_URI[md5sum] = "2f190d3bb8960b69157f63590c262e93" | ||
17 | SRC_URI[sha256sum] = "2e72e6884e9105cbf57101ab0f11e768717b6f76b7f5100c6a2a0cc69bb3d4a0" | ||
18 | |||
19 | inherit allarch | ||
20 | |||
21 | do_compile () { | ||
22 | : | ||
23 | } | ||
24 | |||
25 | do_install () { | ||
26 | install -d ${D}${sysconfdir}/default/volatiles | ||
27 | echo "d root root 0755 ${localstatedir}/run/${BPN}/interface none" \ | ||
28 | > ${D}${sysconfdir}/default/volatiles/99_resolvconf | ||
29 | if ${@base_contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | ||
30 | install -d ${D}${sysconfdir}/tmpfiles.d | ||
31 | echo "d /run/${BPN}/interface - - - -" \ | ||
32 | > ${D}${sysconfdir}/tmpfiles.d/resolvconf.conf | ||
33 | fi | ||
34 | install -d ${D}${sysconfdir}/${BPN} | ||
35 | ln -snf ${localstatedir}/run/${BPN} ${D}${sysconfdir}/${BPN}/run | ||
36 | install -d ${D}${sysconfdir} ${D}${base_sbindir} | ||
37 | install -d ${D}${mandir}/man8 ${D}${docdir}/${P} | ||
38 | cp -pPR etc/* ${D}${sysconfdir}/ | ||
39 | chown -R root:root ${D}${sysconfdir}/ | ||
40 | install -m 0755 bin/resolvconf ${D}${base_sbindir}/ | ||
41 | install -m 0644 README ${D}${docdir}/${P}/ | ||
42 | install -m 0644 man/resolvconf.8 ${D}${mandir}/man8/ | ||
43 | } | ||
44 | |||
45 | pkg_postinst_${PN} () { | ||
46 | if [ -z "$D" ]; then | ||
47 | if command -v systemd-tmpfiles >/dev/null; then | ||
48 | systemd-tmpfiles --create | ||
49 | elif [ -e ${sysconfdir}/init.d/populate-volatile.sh ]; then | ||
50 | ${sysconfdir}/init.d/populate-volatile.sh update | ||
51 | fi | ||
52 | fi | ||
53 | } | ||