X-Git-Url: https://git.deb.at/w?p=pkg%2Ft-prot.git;a=blobdiff_plain;f=debian%2Frules;fp=debian%2Frules;h=3104ee7cbf347106377ae6d7f445ed75433c6d83;hp=0c667399bd6a980bb7a2dc486ea735e08610c648;hb=11c9459470c8ca6202d85107f8bca040675348e7;hpb=ad3f3fc07fe92ea71fa8e9afece7a654ba0a06f8 diff --git a/debian/rules b/debian/rules index 0c66739..3104ee7 100755 --- a/debian/rules +++ b/debian/rules @@ -5,6 +5,7 @@ PKG = t-prot TMP = $(CURDIR)/debian/$(PKG) +BUILD_DATE = $(shell dpkg-parsechangelog --show-field Date) INSTALL = install INSTALL_FILE = $(INSTALL) -p -oroot -groot -m644 @@ -71,6 +72,8 @@ binary-indep: install 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) ..