diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 13:53:46 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 13:53:46 +0000 |
commit | 3cae781eef548a700dbfc995625e56db4cf96acc (patch) | |
tree | 25fb958b46b0712cc4050cdf1fb26824f3400afd /debian/rules | |
parent | Adding upstream version 2024a. (diff) | |
download | tzdata-3cae781eef548a700dbfc995625e56db4cf96acc.tar.xz tzdata-3cae781eef548a700dbfc995625e56db4cf96acc.zip |
Adding debian version 2024a-1.debian/2024a-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-x | debian/rules | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..793422d --- /dev/null +++ b/debian/rules @@ -0,0 +1,48 @@ +#!/usr/bin/make -f + +export LC_ALL=C + +TZGEN := $(CURDIR)/tzgen + +%: + dh $@ + +override_dh_auto_build-indep: + # Generate a tzdata.zi file + $(MAKE) AWK=gawk BACKWARD="backward" PACKRATDATA=backzone PACKRATLIST=zone.tab VERSION_DEPS= tzdata.zi + + # Generate the leapseconds file + $(MAKE) AWK=gawk PACKRATDATA=backzone PACKRATLIST=zone.tab leapseconds + + # Build the timezone data + /usr/sbin/zic -d $(TZGEN) -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 -srf $(TZGEN)/$$target $(TZGEN)/$$name ; \ + ln -srf $(TZGEN)/right/$$target $(TZGEN)/right/$$name ; \ + done + + # Generate a posixrules file + ln -s America/New_York $(TZGEN)/posixrules + + debian/generate_debconf_templates -d "$(TZGEN)" > debian/tzdata.templates + debconf-updatepo + +# The upstream tests are related to the sources. Just skip it. +override_dh_auto_test: + debian/test_timezone_conversions -z "$(TZGEN)" + PYTHONTZPATH="$(TZGEN)" debian/tests/python + debian/check_translations debian/po/*.po + +override_dh_auto_install: + mkdir -p debian/tmp/usr/share/zoneinfo + cp -r tzgen/* debian/tmp/usr/share/zoneinfo + +override_dh_auto_clean: + -rm -rf $(TZGEN) + dh_auto_clean + +override_dh_installchangelogs: + dh_installchangelogs NEWS |