Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (4)
Build the timezone data from tzdata.zi.
· 729d5d0d
Aurelien Jarno
authored
Sep 30, 2019
729d5d0d
Drop useless variable VERSION
· da4cc33d
Aurelien Jarno
authored
Sep 30, 2019
da4cc33d
Install leapseconds file /usr/share/zoneinfo.
· 63342cfe
Aurelien Jarno
authored
Sep 30, 2019
63342cfe
Sort tzdata.install
· 73f54d89
Aurelien Jarno
authored
Sep 30, 2019
73f54d89
Show whitespace changes
Inline
Side-by-side
debian/changelog
View file @
73f54d89
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 ]
...
...
debian/rules
View file @
73f54d89
...
...
@@ -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/tzdata.install
View file @
73f54d89
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
/