From 487d58a98cd9fe4b368f0e7d119f8ff7ac852781 Mon Sep 17 00:00:00 2001 From: Mark Hatle Date: Thu, 15 Nov 2012 15:26:09 -0600 Subject: cpio: Split RMT from cpio After the recent change of the libexecdir definition, the update-alternatives for the libexec rmt broke. Fix this by moving rmt from libexec to /sbin. Also split the rmt app from cpio as it's likely not useful to many users. Signed-off-by: Mark Hatle Signed-off-by: Saul Wold --- meta/recipes-extended/cpio/cpio_v2.inc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'meta/recipes-extended/cpio/cpio_v2.inc') diff --git a/meta/recipes-extended/cpio/cpio_v2.inc b/meta/recipes-extended/cpio/cpio_v2.inc index 3b3402b536..30446b0ced 100644 --- a/meta/recipes-extended/cpio/cpio_v2.inc +++ b/meta/recipes-extended/cpio/cpio_v2.inc @@ -14,6 +14,8 @@ inherit autotools gettext S = "${WORKDIR}/cpio-${PV}" +EXTRA_OECONF += "DEFAULT_RMT_DIR=${base_sbindir}" + do_install () { autotools_do_install install -d ${D}${base_bindir}/ @@ -21,13 +23,18 @@ do_install () { rmdir ${D}${bindir}/ } +PACKAGES =+ "${PN}-rmt" + +FILES_${PN}-rmt = "${base_sbindir}/rmt*" + inherit update-alternatives ALTERNATIVE_PRIORITY = "100" -ALTERNATIVE_${PN} = "cpio rmt" +ALTERNATIVE_${PN} = "cpio" +ALTERNATIVE_${PN}-rmt = "rmt" ALTERNATIVE_LINK_NAME[cpio] = "${base_bindir}/cpio" ALTERNATIVE_PRIORITY[rmt] = "50" -ALTERNATIVE_LINK_NAME[rmt] = "${libexecdir}/rmt" +ALTERNATIVE_LINK_NAME[rmt] = "${base_sbindir}/rmt" -- cgit 1.2.3-korg