Package: liblockfile
Version: 1.08-3
Severity: minor
Tags: patch
User: [email protected]
Usertags: origin-ubuntu lucid ubuntu-patch

        Hi

 Please compute md5sums for use with debsums during the build of
 liblockfile; attached patch does this for me.

   Thanks,
-- 
Loïc Minier
diff -u liblockfile-1.08/debian/changelog liblockfile-1.08/debian/changelog
--- liblockfile-1.08/debian/changelog
+++ liblockfile-1.08/debian/changelog
@@ -1,3 +1,9 @@
+liblockfile (1.08-3ubuntu1) lucid; urgency=low
+
+  * Compute md5sums during build.
+
+ -- Loïc Minier <[email protected]>  Tue, 12 Jan 2010 00:08:22 +0100
+
 liblockfile (1.08-3) unstable; urgency=high
 
   * Don't stale lockfiles after 10 seconds instead of 5 minutes;
diff -u liblockfile-1.08/debian/rules liblockfile-1.08/debian/rules
--- liblockfile-1.08/debian/rules
+++ liblockfile-1.08/debian/rules
@@ -11,6 +11,8 @@
 
 tmp	= debian/tmp
 
+do_md5sums = cd $(tmp) && find -type f \! -regex '.*/DEBIAN/.*' -printf '%P\0' | xargs -r0 md5sum >DEBIAN/md5sums
+
 INSTALL=install
 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 	INSTALL+=-s
@@ -62,6 +64,7 @@
 	gzip -9f $(tmp)/usr/share/doc/liblockfile1/*
 	install -o root -m 644 COPYRIGHT \
 		$(tmp)/usr/share/doc/liblockfile1/copyright
+	$(do_md5sums)
 	dpkg-shlibdeps liblockfile.so
 	dpkg-gencontrol -pliblockfile1 -P$(tmp) -isp
 	dpkg --build $(tmp) ..
@@ -94,6 +97,7 @@
 	gzip -9f $(tmp)/usr/share/doc/liblockfile-dev/*
 	install -o root -m 644 COPYRIGHT \
 		$(tmp)/usr/share/doc/liblockfile-dev/copyright
+	$(do_md5sums)
 	dpkg-gencontrol -pliblockfile-dev -P$(tmp) -isp
 	dpkg --build $(tmp) ..
 
@@ -121,6 +125,7 @@
 	gzip -9f $(tmp)/usr/share/doc/libnfslock/*
 	install -o root -m 644 COPYRIGHT \
 		$(tmp)/usr/share/doc/libnfslock/copyright
+	$(do_md5sums)
 	dpkg-gencontrol -plibnfslock -P$(tmp)
 	dpkg --build $(tmp) ..
 

Reply via email to