diff -urNad tp-smapi.orig/tp-smapi-0.41/debian/rules tp-smapi/tp-smapi-0.41/debian/rules --- tp-smapi.orig/tp-smapi-0.41/debian/rules 2015-02-12 12:32:41.685367935 +0000 +++ tp-smapi/tp-smapi-0.41/debian/rules 2015-02-12 12:37:32.530138621 +0000 @@ -18,6 +18,8 @@ sversion:=$(shell dpkg-parsechangelog|grep "^Version:"|cut -d" " -f2|rev|cut -d- -f2-|rev|cut -d':' -f2) +BUILD_DATE := $(shell dpkg-parsechangelog --show-field Date) + ### KERNEL SETUP ### Setup the stuff needed for making kernel module packages ### taken from /usr/share/kernel-package/sample.module.rules @@ -82,7 +84,7 @@ debian/README.Debian \ debian/compat debian/$(psource)/usr/src/modules/$(sname)/debian/ install -m 0755 debian/rules.modules debian/$(psource)/usr/src/modules/$(sname)/debian/rules - cd debian/$(psource)/usr/src && tar c modules | bzip2 -9 > $(sname).tar.bz2 && rm -rf modules + cd debian/$(psource)/usr/src && tar --mtime="$(BUILD_DATE)" c modules | bzip2 -9 > $(sname).tar.bz2 && rm -rf modules # Prepare dkms.conf from the dkms.conf.in template sed "s/__VERSION__/$(sversion)/g" debian/dkms.conf.in > debian/$(pdkms)/usr/src/$(sname)-$(sversion)/dkms.conf