debian: Install s-s-d under /usr/sbin
commit7c961df91bb81f27657cdca31d761b86140e9a76
authorGuillem Jover <guillem@debian.org>
Thu, 4 Jan 2024 19:15:44 +0000 (4 20:15 +0100)
committerGuillem Jover <guillem@debian.org>
Fri, 19 Jan 2024 04:33:10 +0000 (19 05:33 +0100)
treea056a11418ea5d3a621201be572fa33fd69369e5
parentc135a2c414e5cada7785d13c6784a19575a8b1db
debian: Install s-s-d under /usr/sbin

On systems that have a merged-/usr this makes sure to install the
program in its canonical location on disk. On derivatives that do not
use a merged-/usr layout we create backward compatibility symlinks,
which can be removed once there are no more references to the absolute
pathname or the one under /sbin.

This makes it possible to remove the special casing for s-s-d and its
destination on install.

Closes: #1059982
debian/dpkg.install
debian/dpkg.postinst
debian/dpkg.postrm
debian/rules
debian/tests/test-not-root
debian/tests/test-root