2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-03-07 12:53:41 +01:00
|
|
|
#
|
|
|
|
# tzdata
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-03-07 12:53:41 +01:00
|
|
|
|
2013-11-05 19:28:05 +01:00
|
|
|
TZDATA_VERSION = 2013h
|
2013-03-07 12:53:41 +01:00
|
|
|
TZDATA_SOURCE = tzdata$(TZDATA_VERSION).tar.gz
|
2013-06-29 02:09:10 +02:00
|
|
|
TZDATA_SITE = ftp://ftp.iana.org/tz/releases
|
2013-03-07 12:53:41 +01:00
|
|
|
TZDATA_DEPENDENCIES = host-zic
|
|
|
|
TZDATA_LICENSE = Public domain
|
|
|
|
|
|
|
|
TZDATA_DEFAULT_ZONELIST = africa antarctica asia australasia backward etcetera \
|
|
|
|
europe factory northamerica pacificnew southamerica
|
|
|
|
|
|
|
|
ifeq ($(call qstrip,$(BR2_PACKAGE_TZDATA_ZONELIST)),default)
|
|
|
|
TZDATA_ZONELIST = $(TZDATA_DEFAULT_ZONELIST)
|
|
|
|
else
|
|
|
|
TZDATA_ZONELIST = $(call qstrip,$(BR2_PACKAGE_TZDATA_ZONELIST))
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Don't strip any path components during extraction.
|
|
|
|
define TZDATA_EXTRACT_CMDS
|
|
|
|
gzip -d -c $(DL_DIR)/$(TZDATA_SOURCE) \
|
|
|
|
| $(TAR) --strip-components=0 -C $(@D) -xf -
|
|
|
|
endef
|
|
|
|
|
|
|
|
define TZDATA_BUILD_CMDS
|
|
|
|
(cd $(@D); \
|
|
|
|
for zone in $(TZDATA_ZONELIST); do \
|
|
|
|
$(ZIC) -d _output/posix -y yearistype.sh $$zone; \
|
|
|
|
$(ZIC) -d _output/right -L leapseconds -y yearistype.sh $$zone; \
|
|
|
|
done; \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define TZDATA_INSTALL_TARGET_CMDS
|
|
|
|
mkdir -p $(TARGET_DIR)/usr/share/zoneinfo
|
|
|
|
cp -a $(@D)/_output/* $(TARGET_DIR)/usr/share/zoneinfo
|
|
|
|
cd $(TARGET_DIR)/usr/share/zoneinfo; \
|
|
|
|
for zone in posix/*; do \
|
|
|
|
ln -sfn "$${zone}" "$${zone##*/}"; \
|
|
|
|
done
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|