diff options
author | Scott Garman <sgarman@zenlinux.com> | 2010-07-23 12:08:28 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-24 00:07:31 +0100 |
commit | ac5a0210322635055819da5c3f3bc0064da56f86 (patch) | |
tree | bc805450ef36137548f4fe9d8b270252c91f441a /meta/packages/tar/tar.inc | |
parent | 80986444aaa796b45658f4d903f88d26a2379b5f (diff) | |
download | openembedded-core-ac5a0210322635055819da5c3f3bc0064da56f86.tar.gz openembedded-core-ac5a0210322635055819da5c3f3bc0064da56f86.tar.bz2 openembedded-core-ac5a0210322635055819da5c3f3bc0064da56f86.zip |
tar: New recipe additions 1.17 and 1.23
* tar 1.23 is GPLv3
* tar 1.17 is latest GPLv2
Recipes and patches dervied from OpenEmbedded and Debian
Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Diffstat (limited to 'meta/packages/tar/tar.inc')
-rw-r--r-- | meta/packages/tar/tar.inc | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/meta/packages/tar/tar.inc b/meta/packages/tar/tar.inc new file mode 100644 index 0000000000..cf72d4893b --- /dev/null +++ b/meta/packages/tar/tar.inc @@ -0,0 +1,25 @@ +DESCRIPTION = "GNU tar saves many files together into a single tape \ +or disk archive, and can restore individual files from the archive." +HOMEPAGE = "http://www.gnu.org/software/tar/" +SECTION = "base" + +SRC_URI = "${GNU_MIRROR}/tar/tar-${PV}.tar.bz2" + +inherit autotools gettext + +do_install () { + autotools_do_install + install -d ${D}${base_bindir} + mv ${D}${bindir}/tar ${D}${base_bindir}/tar.${PN} + mv ${D}${libexecdir}/rmt ${D}${libexecdir}/rmt.${PN} +} + +pkg_postinst_${PN} () { + update-alternatives --install ${base_bindir}/tar tar tar.${PN} 100 + update-alternatives --install ${libexecdir}/rmt rmt rmt.${PN} 100 +} + +pkg_prerm_${PN} () { + update-alternatives --remove tar tar.${PN} + update-alternatives --remove rmt rmt.${PN} +} |