2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2003-02-15 11:23:19 +01:00
|
|
|
#
|
|
|
|
# tar
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2010-12-17 17:00:58 +01:00
|
|
|
|
2016-05-17 01:00:13 +02:00
|
|
|
TAR_VERSION = 1.29
|
2013-12-06 11:29:01 +01:00
|
|
|
TAR_SOURCE = tar-$(TAR_VERSION).tar.xz
|
2010-12-17 17:00:58 +01:00
|
|
|
TAR_SITE = $(BR2_GNU_MIRROR)/tar
|
2014-10-19 15:38:08 +02:00
|
|
|
# busybox installs in /bin, so we need tar to install as well in /bin
|
|
|
|
# so that it overrides the Busybox symlinks.
|
|
|
|
TAR_CONF_OPTS = --exec-prefix=/
|
2017-03-30 15:43:33 +02:00
|
|
|
TAR_LICENSE = GPL-3.0+
|
2013-01-22 04:35:49 +01:00
|
|
|
TAR_LICENSE_FILES = COPYING
|
2003-02-15 11:23:19 +01:00
|
|
|
|
2011-11-13 23:27:57 +01:00
|
|
|
# Prefer full-blown tar over buybox's version
|
|
|
|
ifeq ($(BR2_PACKAGE_BUSYBOX),y)
|
|
|
|
TAR_DEPENDENCIES += busybox
|
|
|
|
endif
|
|
|
|
|
2015-01-19 17:14:13 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_ACL),y)
|
|
|
|
TAR_DEPENDENCIES += acl
|
|
|
|
TAR_CONF_OPTS += --with-posix-acls
|
|
|
|
else
|
|
|
|
TAR_CONF_OPTS += --without-posix-acls
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_ATTR),y)
|
|
|
|
TAR_DEPENDENCIES += attr
|
|
|
|
TAR_CONF_OPTS += --with-xattrs
|
|
|
|
else
|
|
|
|
TAR_CONF_OPTS += --without-xattrs
|
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|
2012-02-08 17:22:20 +01:00
|
|
|
|
|
|
|
# host-tar: use cpio.gz instead of tar.gz to prevent chicken-egg problem
|
|
|
|
# of needing tar to build tar.
|
|
|
|
HOST_TAR_SOURCE = tar-$(TAR_VERSION).cpio.gz
|
|
|
|
define HOST_TAR_EXTRACT_CMDS
|
|
|
|
mkdir -p $(@D)
|
|
|
|
cd $(@D) && \
|
2013-12-02 12:51:48 +01:00
|
|
|
$(call suitable-extractor,$(HOST_TAR_SOURCE)) $(DL_DIR)/$(HOST_TAR_SOURCE) | cpio -i --preserve-modification-time
|
2012-02-08 17:22:20 +01:00
|
|
|
mv $(@D)/tar-$(TAR_VERSION)/* $(@D)
|
|
|
|
rmdir $(@D)/tar-$(TAR_VERSION)
|
|
|
|
endef
|
2012-07-03 00:06:54 +02:00
|
|
|
$(eval $(host-autotools-package))
|