- tar axf $(DIR_DL)/tzdata$(TZDATA_VER).tar.gz -C $(DIR_APP)/tzdata$(TZDATA_VER)
- tar axf $(DIR_DL)/tzcode$(TZCODE_VER).tar.gz -C $(DIR_APP)/tzcode$(TZCODE_VER)
-
- cd $(DIR_APP) && sed -e 's|@objpfx@|$(DIR_APP)/obj/|' \
- -e 's|@datadir@|/usr/share|' \
- Makeconfig.in > Makeconfig
- cd $(DIR_APP) && make $(MAKETUNING)
-
- cd $(DIR_APP) && sed -i 's|@install_root@||' Makeconfig
- cd $(DIR_APP) && make install
+ tar axf $(DIR_DL)/tzdata$(TZDATA_VER).tar.gz -C $(DIR_APP)
+ tar axf $(DIR_DL)/tzcode$(TZCODE_VER).tar.gz -C $(DIR_APP)
+
+ cd $(DIR_APP) && mkdir -pv zoneinfo/{,posix,right}
+ cd $(DIR_APP) && zic -y ./yearistype -d zoneinfo \
+ -L /dev/null -p GMT $(FILES)
+ cd $(DIR_APP) && zic -y ./yearistype -d zoneinfo/posix \
+ -L /dev/null $(FILES)
+ cd $(DIR_APP) && zic -y ./yearistype -d zoneinfo/right \
+ -L leapseconds $(FILES)
+
+ rm -rf /usr/share/zoneinfo
+ cd $(DIR_APP) && cp -prd zoneinfo /usr/share
+ cd $(DIR_APP) && install -p -m 644 zone.tab iso3166.tab \
+ /usr/share/zoneinfo
+
+ rm -vf /usr/share/zoneinfo/localtime
+ rm -vf /etc/localtime
+ cp -vf /usr/share/zoneinfo/GMT /etc/localtime