diff options
Diffstat (limited to 'meta/recipes-extended/tar/tar.inc')
-rw-r--r-- | meta/recipes-extended/tar/tar.inc | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/meta/recipes-extended/tar/tar.inc b/meta/recipes-extended/tar/tar.inc new file mode 100644 index 0000000000..51d49340a1 --- /dev/null +++ b/meta/recipes-extended/tar/tar.inc | |||
@@ -0,0 +1,45 @@ | |||
1 | SUMMARY = "GNU file archiving program" | ||
2 | DESCRIPTION = "GNU tar saves many files together into a single tape \ | ||
3 | or disk archive, and can restore individual files from the archive." | ||
4 | HOMEPAGE = "http://www.gnu.org/software/tar/" | ||
5 | SECTION = "base" | ||
6 | |||
7 | SRC_URI = "${GNU_MIRROR}/tar/tar-${PV}.tar.bz2" | ||
8 | |||
9 | inherit autotools gettext texinfo | ||
10 | |||
11 | EXTRA_OECONF += "DEFAULT_RMT_DIR=${base_sbindir}" | ||
12 | |||
13 | EXTRAINSTALL = "do_install_extra" | ||
14 | EXTRAINSTALL_class-nativesdk = "" | ||
15 | |||
16 | do_install () { | ||
17 | autotools_do_install | ||
18 | ${EXTRAINSTALL} | ||
19 | } | ||
20 | |||
21 | do_install_extra () { | ||
22 | install -d ${D}${base_bindir} | ||
23 | mv ${D}${bindir}/tar ${D}${base_bindir}/tar | ||
24 | rmdir ${D}${bindir}/ | ||
25 | } | ||
26 | |||
27 | PACKAGES =+ "${PN}-rmt" | ||
28 | |||
29 | PACKAGECONFIG[acl] = "--with-posix-acls, --without-posix-acls, acl," | ||
30 | |||
31 | FILES_${PN}-rmt = "${base_sbindir}/rmt*" | ||
32 | |||
33 | inherit update-alternatives | ||
34 | |||
35 | ALTERNATIVE_PRIORITY = "100" | ||
36 | |||
37 | ALTERNATIVE_${PN} = "tar" | ||
38 | ALTERNATIVE_${PN}-rmt = "rmt" | ||
39 | ALTERNATIVE_${PN}_class-nativesdk = "" | ||
40 | ALTERNATIVE_${PN}-rmt_class-nativesdk = "" | ||
41 | |||
42 | ALTERNATIVE_LINK_NAME[tar] = "${base_bindir}/tar" | ||
43 | ALTERNATIVE_LINK_NAME[rmt] = "${base_sbindir}/rmt" | ||
44 | |||
45 | BBCLASSEXTEND = "nativesdk" | ||