Best way to handle config overrides in packages
I have a case when I need to add multiple configuration files for another package into the system as parts of its split config. The thing is, I need to remove them when I remove my package because they include lines which are only valid when the package is installed. Is there any nice way to go about this using dh or anything in the debian folder of the package? __ Best Regards, Oleg
Re: Best way to handle config overrides in packages
Hi Oleg, I'd say the best way to handle this would be to work with the package maintainer/upstream to allow config files to be specified in /usr/share/. This way dpkg will automatically remove the files for you. Before going down that path I did attempt it in /etc/. It was messy but the closest thing to a working solution was manually calling `mv_conffile` in the postrm script. See https://salsa.debian.org/Mobian-team/miniramfs/-/merge_requests/7/diffs for an example.