For a little something I made (that used to be a word-of-mouth thing only and that's interesting to just a very narrow, and usually non-technical, user base), I'd like to be able to provide a
.deb file for easier installation.
The something doesn't have any actual files that it needs to install in the system. Instead it needs to add some lines to already existing files (which belong to the
xkb-data package on Debian-derived distributions). To the best of my knowledge, after searching and asking around, there's no way to put these lines into new, separate files and still have them be picked up by the system, so I wrote a Rakefile to do the installation. That works well but requires the user to interact with a command-line, which doesn't always work so well. Also, whenever
xkb-data gets updated through the package manager, the rake task needs to be ran again manually, which is cumbersome.
Is there any way to have a Debian package automatically cause its own reinstall based on the condition that one or all of its dependencies have just been updated? I'm explicitly also interested in a hackish way to do so, DontBreakDebian be damned.