From: Russ Allbery <rra@debian.org>
Date: Sun, 16 Mar 2008 20:17:12 +0000 (+0000)
Subject: Add md5sums control file
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=e7758fe11b288d84e0d5f0f8eab5c1ae4d786ce3;p=debian%2Fdebian-policy.git

Add md5sums control file

Add an md5sums control file to the debian-policy package.

git-archimport-id: rra@debian.org--lenny/debian-policy--devel--3.7--patch-39
---

diff --git a/debian/changelog b/debian/changelog
index 99a6039..ac674e9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -23,6 +23,7 @@ debian-policy (3.7.4.0) unstable; urgency=low
     to Josh Triplett                                         (Closes: #455602).
   * Bug fix: "Minor typos and wording suggestions", thanks to Michael
     Tautschnig                                               (Closes: #422552).
+  * Add an md5sums control file.
   * Remove build system support for FHS 2.1 and FSSTND, mostly commented out.
   * Remove the FSSTND license from debian/copyright; no FSSTND files are
     currently part of policy.
diff --git a/debian/rules b/debian/rules
index 1f5faba..1e31ad4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -153,6 +153,9 @@ stamp-policy:  build $(sanitycheck)
 	  tar -C $(DOCDIR) -zxf $$file.html.tar.gz; \
 	done
 	$(install_file)     $(FHS_HTML)   $(DOCDIR)/fhs
+	@set -ex; \
+	cd debian/tmp; \
+	find . -type f -printf '%P\0' | xargs -r0 md5sum > DEBIAN/md5sums
 	sed -e 's/#PACKAGE#/$(package)/g' debian/postinst.in > debian/postinst
 	sed -e 's/#PACKAGE#/$(package)/g' debian/prerm.in > debian/prerm
 	$(install_program)  debian/postinst          debian/tmp/DEBIAN/