package/tzdata: install missing files
authorYann E. MORIN <yann.morin.1998@free.fr>
Sun, 4 May 2014 16:01:27 +0000 (18:01 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 4 May 2014 21:02:44 +0000 (23:02 +0200)
Install two additional files:
  - zone.tab   : {country-code,coordinates,timezone} tuples
  - iso3166.tab: {country-code,country} tuples

[Peter: simplify copy handling]
Reported-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/tzdata/tzdata.mk

index 05a82a23d474af75f8f9a54e263418fbdfc82fb9..a498d10c35bd9b2bcd36c55ffe7de536f9411792 100644 (file)
@@ -38,7 +38,7 @@ endef
 
 define TZDATA_INSTALL_TARGET_CMDS
        mkdir -p $(TARGET_DIR)/usr/share/zoneinfo
-       cp -a $(@D)/_output/* $(TARGET_DIR)/usr/share/zoneinfo
+       cp -a $(@D)/_output/* $(@D)/*.tab $(TARGET_DIR)/usr/share/zoneinfo
        cd $(TARGET_DIR)/usr/share/zoneinfo;    \
        for zone in posix/*; do                 \
            ln -sfn "$${zone}" "$${zone##*/}";  \
@@ -66,7 +66,7 @@ endef
 
 define HOST_TZDATA_INSTALL_CMDS
        mkdir -p $(HOST_DIR)/usr/share/zoneinfo
-       cp -a $(@D)/_output/* $(HOST_DIR)/usr/share/zoneinfo
+       cp -a $(@D)/_output/* $(@D)/*.tab $(HOST_DIR)/usr/share/zoneinfo
 endef
 
 $(eval $(generic-package))