I have a tar file with everything I want to install in the target filesystem, already with the final directory layout and attributes (owner, group, and permission bits). What is the right way of untarring the file? I can get this to almost work with
SRC_URI="<the tar file>"
S="${WORKDIR}"
src_install() {
insinto /
doins -r .
}
This puts all the files in the right places, but it doesn't preserve their attributes. I am also suspecting that the files are first extracted into a temporary location by the default src_unpack(), and then copied---not a huge deal, but it would help to avoid the extra copy (a few gigabytes).
I am tempted to get this to work by making src_unpack() do nothing, and rewriting src_install() to invoke tar directly, but would that be horrible?
Thanks!