]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - scripts/package/builddeb
kbuild: deb-pkg md5sums
[~shefty/rdma-dev.git] / scripts / package / builddeb
index 8b357b0bd250b0e04012a08815c01cd3f95f22a3..07f2fbde2abf85a5f92040a10608a38e23db3905 100644 (file)
@@ -18,6 +18,8 @@ create_package() {
        cp debian/copyright "$pdir/usr/share/doc/$pname/"
        cp debian/changelog "$pdir/usr/share/doc/$pname/changelog.Debian"
        gzip -9 "$pdir/usr/share/doc/$pname/changelog.Debian"
+       sh -c "cd '$pdir'; find . -type f ! -path './DEBIAN/*' -printf '%P\0' \
+               | xargs -r0 md5sum > DEBIAN/md5sums"
 
        # Fix ownership and permissions
        chown -R root:root "$pdir"