diff options
| author | Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> | 2014-11-03 11:13:50 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-11-09 10:21:22 +0000 |
| commit | 9e3c886ad5e10919977cd5b6901e124ce27e1084 (patch) | |
| tree | a0610c3d94b8f42cdbd1dc5504925afc84ce7c02 | |
| parent | 1d1979182844e748cf87a99e28e442fe76677043 (diff) | |
| download | poky-9e3c886ad5e10919977cd5b6901e124ce27e1084.tar.gz | |
debianutils: Add recipe from meta-oe
This recipe is a running dependency of recipe apt
(From OE-Core rev: de8278300eca1e29747be0a0f94787ff90926598)
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-support/debianutils/debianutils_4.4.bb | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-support/debianutils/debianutils_4.4.bb b/meta/recipes-support/debianutils/debianutils_4.4.bb new file mode 100644 index 0000000000..346eaf16eb --- /dev/null +++ b/meta/recipes-support/debianutils/debianutils_4.4.bb | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | SUMMARY = "Miscellaneous utilities specific to Debian" | ||
| 2 | SECTION = "base" | ||
| 3 | LICENSE = "GPLv2 & SMAIL_GPL" | ||
| 4 | LIC_FILES_CHKSUM = "file://debian/copyright;md5=f01a5203d50512fc4830b4332b696a9f" | ||
| 5 | |||
| 6 | SRC_URI = "${DEBIAN_MIRROR}/main/d/${BPN}/${BPN}_${PV}.tar.gz" | ||
| 7 | SRC_URI[md5sum] = "c0cb076754d7f4eb1e3397d00916647f" | ||
| 8 | SRC_URI[sha256sum] = "190850cdd6b5302e0a1ba1aaed1bc7074d67d3bd8d04c613f242f7145afa53a6" | ||
| 9 | |||
| 10 | inherit autotools update-alternatives | ||
| 11 | |||
| 12 | do_configure_prepend() { | ||
| 13 | sed -i -e 's:tempfile.1 which.1:which.1:g' ${S}/Makefile.am | ||
| 14 | } | ||
| 15 | |||
| 16 | do_install_append() { | ||
| 17 | if [ "${base_bindir}" != "${bindir}" ]; then | ||
| 18 | # Debian places some utils into ${base_bindir} as does busybox | ||
| 19 | install -d ${D}${base_bindir} | ||
| 20 | for app in run-parts tempfile; do | ||
| 21 | mv ${D}${bindir}/$app ${D}${base_bindir}/$app | ||
| 22 | done | ||
| 23 | fi | ||
| 24 | } | ||
| 25 | |||
| 26 | ALTERNATIVE_PRIORITY="100" | ||
| 27 | ALTERNATIVE_${PN} = "add-shell installkernel remove-shell run-parts savelog tempfile which" | ||
| 28 | |||
| 29 | ALTERNATIVE_LINK_NAME[add-shell]="${sbindir}/add-shell" | ||
| 30 | ALTERNATIVE_LINK_NAME[installkernel]="${sbindir}/installkernel" | ||
| 31 | ALTERNATIVE_LINK_NAME[remove-shell]="${sbindir}/remove-shell" | ||
| 32 | ALTERNATIVE_LINK_NAME[run-parts]="${base_bindir}/run-parts" | ||
| 33 | ALTERNATIVE_LINK_NAME[savelog]="${bindir}/savelog" | ||
| 34 | ALTERNATIVE_LINK_NAME[tempfile]="${base_bindir}/tempfile" | ||
| 35 | ALTERNATIVE_LINK_NAME[which]="${bindir}/which" | ||
