diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2012-11-15 15:28:12 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-12-06 12:30:31 +0000 |
commit | cc5879ce75713506e76481f36d6e45dc3b31948c (patch) | |
tree | 286bc5c024d8057af5a8ba9922323b1f7e97c1a5 /meta/recipes-extended/tar/tar.inc | |
parent | 487d58a98cd9fe4b368f0e7d119f8ff7ac852781 (diff) | |
download | openembedded-core-cc5879ce75713506e76481f36d6e45dc3b31948c.tar.gz openembedded-core-cc5879ce75713506e76481f36d6e45dc3b31948c.tar.bz2 openembedded-core-cc5879ce75713506e76481f36d6e45dc3b31948c.zip |
tar: Split RMT from tar
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 tar as it's likely not useful to many users.
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-extended/tar/tar.inc')
-rw-r--r-- | meta/recipes-extended/tar/tar.inc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/meta/recipes-extended/tar/tar.inc b/meta/recipes-extended/tar/tar.inc index b50425e6a1..f49c7de4a5 100644 --- a/meta/recipes-extended/tar/tar.inc +++ b/meta/recipes-extended/tar/tar.inc @@ -8,6 +8,8 @@ SRC_URI = "${GNU_MIRROR}/tar/tar-${PV}.tar.bz2" inherit autotools gettext +EXTRA_OECONF += "DEFAULT_RMT_DIR=${base_sbindir}" + EXTRAINSTALL = "do_install_extra" do_install () { @@ -21,11 +23,16 @@ do_install_extra () { rmdir ${D}${bindir}/ } +PACKAGES =+ "${PN}-rmt" + +FILES_${PN}-rmt = "${base_sbindir}/rmt*" + inherit update-alternatives ALTERNATIVE_PRIORITY = "100" -ALTERNATIVE_${PN} = "tar rmt" +ALTERNATIVE_${PN} = "tar" +ALTERNATIVE_${PN}-rmt = "rmt" ALTERNATIVE_LINK_NAME[tar] = "${base_bindir}/tar" -ALTERNATIVE_LINK_NAME[rmt] = "${libexecdir}/rmt" +ALTERNATIVE_LINK_NAME[rmt] = "${base_sbindir}/rmt" |