summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/tar/tar.inc
diff options
context:
space:
mode:
authorAndre McCurdy <armccurdy@gmail.com>2018-04-26 10:49:40 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-05-04 13:28:05 +0100
commitb6c35d1c5bea5c651c5261cd034f4848180c8664 (patch)
tree38ccd82157333553ff0aedaf70c59bcf9efd6f5f /meta/recipes-extended/tar/tar.inc
parentd49bfa2eaeb99b6cadf9f65053d2066b22c52e07 (diff)
downloadpoky-b6c35d1c5bea5c651c5261cd034f4848180c8664.tar.gz
tar: merge tar.inc into tar recipe
There's only one user of tar.inc (meta-gplv2 has its own copy), so merge the .inc file into the tar recipe. (From OE-Core rev: cce7b627f9046c15dde49c001481003cee33fc9c) Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/tar/tar.inc')
-rw-r--r--meta/recipes-extended/tar/tar.inc52
1 files changed, 0 insertions, 52 deletions
diff --git a/meta/recipes-extended/tar/tar.inc b/meta/recipes-extended/tar/tar.inc
deleted file mode 100644
index 93e4da114b..0000000000
--- a/meta/recipes-extended/tar/tar.inc
+++ /dev/null
@@ -1,52 +0,0 @@
1SUMMARY = "GNU file archiving program"
2DESCRIPTION = "GNU tar saves many files together into a single tape \
3or disk archive, and can restore individual files from the archive."
4HOMEPAGE = "http://www.gnu.org/software/tar/"
5SECTION = "base"
6
7SRC_URI = "${GNU_MIRROR}/tar/tar-${PV}.tar.bz2"
8
9inherit autotools gettext texinfo
10
11EXTRA_OECONF += "DEFAULT_RMT_DIR=${base_sbindir}"
12
13# Let aclocal use the relative path for the m4 file rather than the
14# absolute since tar has a lot of m4 files, otherwise there might
15# be an "Argument list too long" error when it is built in a long/deep
16# directory.
17acpaths = "-I ./m4"
18
19do_install () {
20 autotools_do_install
21 ln -s tar ${D}${bindir}/gtar
22}
23
24do_install_append_class-target() {
25 if [ "${base_bindir}" != "${bindir}" ]; then
26 install -d ${D}${base_bindir}
27 mv ${D}${bindir}/tar ${D}${base_bindir}/tar
28 mv ${D}${bindir}/gtar ${D}${base_bindir}/gtar
29 rmdir ${D}${bindir}/
30 fi
31}
32
33PACKAGES =+ "${PN}-rmt"
34
35FILES_${PN}-rmt = "${base_sbindir}/rmt*"
36
37inherit update-alternatives
38
39ALTERNATIVE_PRIORITY = "100"
40
41ALTERNATIVE_${PN} = "tar"
42ALTERNATIVE_${PN}-rmt = "rmt"
43ALTERNATIVE_${PN}_class-nativesdk = ""
44ALTERNATIVE_${PN}-rmt_class-nativesdk = ""
45
46ALTERNATIVE_LINK_NAME[tar] = "${base_bindir}/tar"
47ALTERNATIVE_LINK_NAME[rmt] = "${base_sbindir}/rmt"
48
49PROVIDES_append_class-native = " tar-replacement-native"
50NATIVE_PACKAGE_PATH_SUFFIX = "/${PN}"
51
52BBCLASSEXTEND = "native nativesdk"