PKG_NAME:=zoneinfo
PKG_VERSION:=2023c
-PKG_RELEASE:=1
+PKG_RELEASE:=2
#As i couldn't find real license used "Public Domain"
#as referense to http://www.iana.org/time-zones/repository/tz-link.html
$(eval $(call Download,tzcode))
define Package/zoneinfo/Default
- SUBMENU:=Zoneinfo
+ SUBMENU:=Time Zone info
TITLE:=Zone Information
SECTION:=utils
CATEGORY:=Utilities
define Package/zoneinfo-simple
$(call Package/zoneinfo/Default)
TITLE:=Zone Information (simple)
+ DEPENDS+= +zoneinfo-core
endef
define Package/zoneinfo-africa
$(call Package/zoneinfo/Default)
TITLE:=Zone Information (Africa)
+ DEPENDS+= +zoneinfo-core
endef
-define Package/zoneinfo-northamerica
+define Package/zoneinfo-america
$(call Package/zoneinfo/Default)
- TITLE:=Zone Information (NorthAmerica)
-endef
-
-define Package/zoneinfo-southamerica
-$(call Package/zoneinfo/Default)
- TITLE:=Zone Information (SouthAmerica)
+ TITLE:=Zone Information (America North/South)
+ PROVIDES:=zoneinfo-northamerica zoneinfo-southamerica
+ DEPENDS+= +zoneinfo-core
endef
define Package/zoneinfo-poles
$(call Package/zoneinfo/Default)
TITLE:=Zone Information (Arctic, Antarctic)
+ DEPENDS+= +zoneinfo-core
endef
define Package/zoneinfo-asia
$(call Package/zoneinfo/Default)
TITLE:=Zone Information (Asia)
+ DEPENDS+= +zoneinfo-core
endef
define Package/zoneinfo-atlantic
$(call Package/zoneinfo/Default)
- TITLE:=Zone Information (Atlantic)
+ TITLE:=Zone Information (Atlantic Ocean)
+ DEPENDS+= +zoneinfo-core
endef
define Package/zoneinfo-australia-nz
$(call Package/zoneinfo/Default)
TITLE:=Zone Information (Australia-NZ)
+ DEPENDS+= +zoneinfo-core
endef
define Package/zoneinfo-pacific
$(call Package/zoneinfo/Default)
- TITLE:=Zone Information (Pacific)
+ TITLE:=Zone Information (Pacific Ocean)
+ DEPENDS+= +zoneinfo-core
endef
define Package/zoneinfo-europe
$(call Package/zoneinfo/Default)
TITLE:=Zone Information (Europe)
+ DEPENDS+= +zoneinfo-core
endef
-define Package/zoneinfo-india
+define Package/zoneinfo-indian
$(call Package/zoneinfo/Default)
- TITLE:=Zone Information (India)
+ TITLE:=Zone Information (Indian Ocean)
+ PROVIDES:=zoneinfo-india
+ DEPENDS+= +zoneinfo-core
endef
define Package/zoneinfo-all
DEPENDS:= \
+zoneinfo-core \
+zoneinfo-africa \
- +zoneinfo-northamerica \
- +zoneinfo-southamerica \
+ +zoneinfo-america \
+zoneinfo-poles \
+zoneinfo-asia \
+zoneinfo-atlantic \
+zoneinfo-australia-nz \
+zoneinfo-pacific \
+zoneinfo-europe \
- +zoneinfo-india
+ +zoneinfo-indian
endef
define Build/Prepare
define Package/zoneinfo-core/install
$(INSTALL_DIR) $(1)/usr/share/zoneinfo
for i in \
- CET CST6CDT EET EST EST5EDT GB-Eire Eire \
+ CET CST6CDT EET EST EST5EDT GB-Eire \
GB GMT GMT+0 GMT-0 GMT0 Greenwich \
HST MET MST MST7MDT \
PRC PST8PDT ROC ROK UCT UTC \
endef
define Package/zoneinfo-africa/install
- $(INSTALL_DIR) $(1)/usr/share/zoneinfo/Africa
- $(CP) $(PKG_INSTALL_DIR)/zoneinfo/Africa/* \
- $(1)/usr/share/zoneinfo/Africa
-endef
-
-define Package/zoneinfo-northamerica/install
$(INSTALL_DIR) $(1)/usr/share/zoneinfo
- for i in US America Canada Mexico Cuba Jamaica Navajo ; do \
+ for i in Africa Egypt Libya ; do \
$(CP) $(PKG_INSTALL_DIR)/zoneinfo/$$$$i \
$(1)/usr/share/zoneinfo ; \
done
- rm -rf $(1)/usr/share/zoneinfo/America/Argentina
endef
-define Package/zoneinfo-southamerica/install
+define Package/zoneinfo-america/install
$(INSTALL_DIR) $(1)/usr/share/zoneinfo
- for i in Brazil Chile ; do \
+ for i in America Brazil Canada Chile Cuba Jamaica Mexico Navajo US ; do \
$(CP) $(PKG_INSTALL_DIR)/zoneinfo/$$$$i \
$(1)/usr/share/zoneinfo ; \
done
- $(INSTALL_DIR) $(1)/usr/share/zoneinfo/America/Argentina
- $(CP) $(PKG_INSTALL_DIR)/zoneinfo/America/Argentina/* \
- $(1)/usr/share/zoneinfo/America/Argentina
endef
define Package/zoneinfo-poles/install
define Package/zoneinfo-asia/install
$(INSTALL_DIR) $(1)/usr/share/zoneinfo
- for i in Asia Japan Singapore Hongkong ; do \
+ for i in Asia Hongkong Iran Israel Japan Singapore ; do \
$(CP) $(PKG_INSTALL_DIR)/zoneinfo/$$$$i \
$(1)/usr/share/zoneinfo ; \
done
define Package/zoneinfo-europe/install
$(INSTALL_DIR) $(1)/usr/share/zoneinfo
- for i in Europe Portugal Poland ; do \
+ for i in Europe Eire Portugal Poland Turkey ; do \
$(CP) $(PKG_INSTALL_DIR)/zoneinfo/$$$$i \
$(1)/usr/share/zoneinfo ; \
done
endef
-define Package/zoneinfo-india/install
+define Package/zoneinfo-indian/install
$(INSTALL_DIR) $(1)/usr/share/zoneinfo
for i in Indian ; do \
$(CP) $(PKG_INSTALL_DIR)/zoneinfo/$$$$i \
$(eval $(call BuildPackage,zoneinfo-simple))
$(eval $(call BuildPackage,zoneinfo-core))
$(eval $(call BuildPackage,zoneinfo-africa))
-$(eval $(call BuildPackage,zoneinfo-northamerica))
-$(eval $(call BuildPackage,zoneinfo-southamerica))
+$(eval $(call BuildPackage,zoneinfo-america))
$(eval $(call BuildPackage,zoneinfo-poles))
$(eval $(call BuildPackage,zoneinfo-asia))
$(eval $(call BuildPackage,zoneinfo-atlantic))
$(eval $(call BuildPackage,zoneinfo-australia-nz))
$(eval $(call BuildPackage,zoneinfo-pacific))
$(eval $(call BuildPackage,zoneinfo-europe))
-$(eval $(call BuildPackage,zoneinfo-india))
+$(eval $(call BuildPackage,zoneinfo-indian))
$(eval $(call BuildPackage,zoneinfo-all))