diff options
| -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" | ||
