chiark / gitweb /
Merge from sid [dgit]
[authbind.git] / debian / rules
index 2e872bcdffec05ae2ef9f432e20259d0b74d655e..c9091ed8231d1f72cedb0f7091687a1153febb70 100755 (executable)
@@ -29,6 +29,8 @@ minor=0
 
 arch = $(shell dpkg --print-architecture)
 
+export SOURCE_DATE_EPOCH = $(shell date -d "$$(dpkg-parsechangelog --count 1 -SDate)" +%s)
+
 INSTALL = install
 INSTALL_FILE    = $(INSTALL) -p    -o root -g root  -m  644
 INSTALL_PROGRAM = $(INSTALL) -p    -o root -g root  -m  755
@@ -86,15 +88,12 @@ binary-arch:        checkroot build
        gzip -9 debian/tmp/usr/share/man/man*/* $(udp)/*
        $(INSTALL_FILE) debian/copyright $(udp)/.
        $(INSTALL_SCRIPT) debian/{postrm,prerm,postinst} debian/tmp/DEBIAN
-ifneq ($(arch),alpha)
-       $(INSTALL_FILE) debian/shlibs debian/tmp/DEBIAN
-else
-       $(INSTALL_FILE) debian/shlibs.alpha debian/tmp/DEBIAN/shlibs
-endif
        dpkg-shlibdeps ./authbind
        dpkg-gencontrol -isp
        chown -R root.root debian/tmp
        chmod -R g-ws debian/tmp
+       find debian/tmp -newermt "@$$SOURCE_DATE_EPOCH" -print0 | \
+               xargs -0r touch --no-dereference --date="@$$SOURCE_DATE_EPOCH"
        dpkg --build debian/tmp ..
 
 binary:         binary-indep binary-arch