debianutils: create package for run-parts

Also add an RDEPENDS to dpkg so it will still
pull in run-parts.

(From OE-Core rev: aba3ef50d65e0dc8659a48bf98d0fb00dd44a6fc)

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Joe Slater 2015-09-02 15:24:20 -07:00 committed by Richard Purdie
parent d8caef4f6e
commit c80b582212
1 changed files with 10 additions and 1 deletions

View File

@ -26,8 +26,17 @@ do_install_append() {
fi
}
# Note that we package the update-alternatives name.
#
PACKAGES =+ "${PN}-run-parts"
FILES_${PN}-run-parts = "${base_bindir}/run-parts.debianutils"
RDEPENDS_${PN} += "${PN}-run-parts"
ALTERNATIVE_PRIORITY="100"
ALTERNATIVE_${PN} = "add-shell installkernel remove-shell run-parts savelog tempfile which"
ALTERNATIVE_${PN} = "add-shell installkernel remove-shell savelog tempfile which"
ALTERNATIVE_${PN}-run-parts = "run-parts"
ALTERNATIVE_LINK_NAME[add-shell]="${sbindir}/add-shell"
ALTERNATIVE_LINK_NAME[installkernel]="${sbindir}/installkernel"