diff options
Diffstat (limited to 'meta/recipes-extended/tar/tar.inc')
-rw-r--r-- | meta/recipes-extended/tar/tar.inc | 25 |
1 files changed, 25 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..cf72d4893b --- /dev/null +++ b/meta/recipes-extended/tar/tar.inc | |||
@@ -0,0 +1,25 @@ | |||
1 | DESCRIPTION = "GNU tar saves many files together into a single tape \ | ||
2 | or disk archive, and can restore individual files from the archive." | ||
3 | HOMEPAGE = "http://www.gnu.org/software/tar/" | ||
4 | SECTION = "base" | ||
5 | |||
6 | SRC_URI = "${GNU_MIRROR}/tar/tar-${PV}.tar.bz2" | ||
7 | |||
8 | inherit autotools gettext | ||
9 | |||
10 | do_install () { | ||
11 | autotools_do_install | ||
12 | install -d ${D}${base_bindir} | ||
13 | mv ${D}${bindir}/tar ${D}${base_bindir}/tar.${PN} | ||
14 | mv ${D}${libexecdir}/rmt ${D}${libexecdir}/rmt.${PN} | ||
15 | } | ||
16 | |||
17 | pkg_postinst_${PN} () { | ||
18 | update-alternatives --install ${base_bindir}/tar tar tar.${PN} 100 | ||
19 | update-alternatives --install ${libexecdir}/rmt rmt rmt.${PN} 100 | ||
20 | } | ||
21 | |||
22 | pkg_prerm_${PN} () { | ||
23 | update-alternatives --remove tar tar.${PN} | ||
24 | update-alternatives --remove rmt rmt.${PN} | ||
25 | } | ||