[Pkg-db-devel] Bug#446807: Bug#446807: Please add md5sums

Clint Adams schizo at debian.org
Mon Oct 15 20:58:42 UTC 2007


tags 446807 + pending
quit

On Mon, Oct 15, 2007 at 10:07:13PM +0200, Romain Francoise wrote:
> The various binary packages built from the 'db' source do not provide
> md5sums, having them would be nice.

Committing this to the git repo, but probably waiting for testing
propagation before uploading. 

diff --git a/debian/rules b/debian/rules
index 7303f82..710610b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -122,6 +122,7 @@ binary-indep: checkroot build install-stamp
 	$(INSTALL_FILE) debian/changelog debian/$(package)-doc/usr/share/doc/$(package)-doc/changelog.Debian
 	gzip -9frq debian/$(package)-doc/usr/share/doc/$(package)-doc/changelog.Debian
 
+	cd debian/$(package)-doc && find * -type f ! -regex '^DEBIAN/.*' -print0 | xargs -r0 md5sum > DEBIAN/md5sums
 	dpkg-gencontrol -isp -p$(package)-doc -Pdebian/$(package)-doc
 	chown -R root:root debian/$(package)-doc
 	chmod -R ugo=rX,u+w debian/$(package)-doc
@@ -219,6 +220,7 @@ endif
 
 	for i in $(DB_BINARY_PKGS); \
 	do dpkg-shlibdeps -Tdebian/substvars.$${i} -dDepends `find debian/$${i}/usr/lib -name "*.so"` `find debian/$${i}/usr/bin -type f` ; \
+	   (cd debian/$${i} && find * -type f ! -regex '^DEBIAN/.*' -print0 | xargs -r0 md5sum > DEBIAN/md5sums) \
 	   dpkg-gencontrol -isp -p$${i} -Pdebian/$${i} -Tdebian/substvars.$${i} ; \
 	   chown -R root:root debian/$${i} ; \
 	   chmod -R ugo=rX,u+w debian/$${i} ; \





More information about the Pkg-db-devel mailing list