This makes the build reproducible.
+t-prot (3.3-2) UNRELEASED; urgency=medium
+
+ * debian/rules: Set timestamp of all new files to the same time to make
+ builds reproducible.
+
+ -- Axel Beckert <abe@debian.org> Sun, 08 Feb 2015 01:13:18 +0100
+
t-prot (3.3-1) unstable; urgency=medium
* New upstream release
PKG = t-prot
TMP = $(CURDIR)/debian/$(PKG)
+BUILD_DATE = $(shell dpkg-parsechangelog --show-field Date)
INSTALL = install
INSTALL_FILE = $(INSTALL) -p -oroot -groot -m644
dpkg-gencontrol -ldebian/changelog -isp -p$(PKG) -P$(TMP)
cd $(TMP) && find * -type f ! -regex '^DEBIAN/.*' -print0 | \
xargs -r0 md5sum > DEBIAN/md5sums
+ find $(TMP) -depth -newermt '$(BUILD_DATE)' -print0 | \
+ xargs -0r touch --no-dereference --date='$(BUILD_DATE)'
dpkg --build $(TMP) ..