summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/tar/tar.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/tar/tar.inc')
-rw-r--r--meta/recipes-extended/tar/tar.inc25
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 @@
1DESCRIPTION = "GNU tar saves many files together into a single tape \
2or disk archive, and can restore individual files from the archive."
3HOMEPAGE = "http://www.gnu.org/software/tar/"
4SECTION = "base"
5
6SRC_URI = "${GNU_MIRROR}/tar/tar-${PV}.tar.bz2"
7
8inherit autotools gettext
9
10do_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
17pkg_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
22pkg_prerm_${PN} () {
23 update-alternatives --remove tar tar.${PN}
24 update-alternatives --remove rmt rmt.${PN}
25}