chiark / gitweb /
Rewrite part of the packaging to use `debhelper` classic
authorNiels Thykier <niels@thykier.net>
Mon, 30 Dec 2024 19:23:27 +0000 (19:23 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 12 Jan 2025 18:37:50 +0000 (18:37 +0000)
commit60a1dab706b6bcb18a557f57821b49257009f07f
treea9fe3d0ee5ab95b110ab7fc1cb88861232a0c5e0
parentbb41735e3c29ee02576146373b5ff4422e4f1a4c
Rewrite part of the packaging to use `debhelper` classic

This rewrites `debian/rules` to use `debhelper` more. With this,

 1) The package now builds without requiring root.
 2) The package now produces dbgsym packages
 3) The package now includes the md5sums control member.
 4) The package now uses dh_clean to properly clean up after the
    debhelper commands.

There are no loess of functionality or features in any of the debs.
The only delta to the original debs is that the original debs uses
"non-standard" mode for symlinks (like we saw with authbind). However,
that mode is ignored on unpack, so the delta is irrelevant.

The `debian/chiark-backup/conffiles` file was made obsolete by using
`dh_installdeb`, which generates that content automatically
(admittedly, with a slightly different order, but the order is
semantically irrelevant).

One downside with this approach is that the `binary-one` target has
to restore the setuid mode of `really`, which is a bit awkward in the
current design. Long term is to remove the `binary-one` target, but that
will when the `debian/tmp/$PKG` is rewritten to be `debian/$PKG`, so the
debhelper tools work better out of the box with those directories.

Closes: #1089303
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
.gitignore
cprogs/Makefile
debian/chiark-backup/conffiles [deleted file]
debian/control
debian/rules
settings.make
sync-accounts/Makefile