Skip to content
Commits on Source (4)
tzdata (2019c-3) UNRELEASED; urgency=medium
* Build the timezone data from tzdata.zi.
* Install leapseconds file /usr/share/zoneinfo.
-- Aurelien Jarno <aurel32@debian.org> Mon, 30 Sep 2019 21:56:49 +0200
tzdata (2019c-2) unstable; urgency=medium
[ Paul Eggert ]
......
......@@ -3,20 +3,6 @@
export LC_ALL=C
TZGEN := $(CURDIR)/tzgen
VERSION := $(shell dpkg-parsechangelog | sed -e '/^Version/!d;s/^Version: //g;s/.*://g;s/-.*//g')
TIMEZONES := africa \
antarctica \
asia \
australasia \
europe \
northamerica \
southamerica \
etcetera \
factory \
backward \
systemv \
pacificnew
TEMPLATES_FILE := $(CURDIR)/debian/tzdata.templates
TEMPLATES_AREAS := Africa \
......@@ -37,19 +23,17 @@ TEMPLATES_AREAS := Africa \
dh $@
override_dh_auto_build-indep:
# Build the "default" version
for zone in $(TIMEZONES); do \
/usr/sbin/zic -d $(TZGEN) -L /dev/null $${zone} ; \
/usr/sbin/zic -d $(TZGEN)/posix -L /dev/null $${zone} ; \
/usr/sbin/zic -d $(TZGEN)/right -L leapseconds $${zone} ; \
done
# Generate a posixrules file
ln -s America/New_York $(TZGEN)/posixrules
# Generate a tzdata.zi file
$(MAKE) AWK=gawk BACKWARD="backward pacificnew" VERSION_DEPS= tzdata.zi
# Generate the leapseconds file
$(MAKE) AWK=gawk leapseconds
# Build the timezone data
/usr/sbin/zic -d $(TZGEN) -L /dev/null tzdata.zi ; \
/usr/sbin/zic -d $(TZGEN)/posix -L /dev/null tzdata.zi ; \
/usr/sbin/zic -d $(TZGEN)/right -L leapseconds tzdata.zi ; \
# Replace hardlinks by symlinks
grep '^L ' $(CURDIR)/tzdata.zi | while read L target name ; do \
ln -sf $(TZGEN)/$$target $(TZGEN)/$$name ; \
......@@ -58,6 +42,9 @@ override_dh_auto_build-indep:
done
symlinks -r -s -c $(TZGEN)
# Generate a posixrules file
ln -s America/New_York $(TZGEN)/posixrules
# Generate the templates file
( echo "Template: tzdata/Areas" ; \
echo "Type: select" ; \
......
debian/tzconfig /usr/sbin
tzgen/* usr/share/zoneinfo/
iso3166.tab usr/share/zoneinfo/
leap-seconds.list usr/share/zoneinfo/
leapseconds usr/share/zoneinfo/
tzdata.zi usr/share/zoneinfo/
tzgen/* usr/share/zoneinfo/
zone.tab usr/share/zoneinfo/
zone1970.tab usr/share/zoneinfo/
leap-seconds.list usr/share/zoneinfo/